Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 5656) sorted by relevance

12345678910>>...227

/freebsd-10-stable/sys/i386/linux/
Dlinux_systrace_args.c17 struct linux_exit_args *p = params; in systrace_args() local
18 iarg[0] = p->rval; /* int */ in systrace_args()
29 struct read_args *p = params; in systrace_args() local
30 iarg[0] = p->fd; /* int */ in systrace_args()
31 uarg[1] = (intptr_t) p->buf; /* char * */ in systrace_args()
32 uarg[2] = p->nbyte; /* u_int */ in systrace_args()
38 struct write_args *p = params; in systrace_args() local
39 iarg[0] = p->fd; /* int */ in systrace_args()
40 uarg[1] = (intptr_t) p->buf; /* char * */ in systrace_args()
41 uarg[2] = p->nbyte; /* u_int */ in systrace_args()
[all …]
/freebsd-10-stable/sys/kern/
Dsystrace_args.c21 struct sys_exit_args *p = params; in systrace_args() local
22 iarg[0] = p->rval; /* int */ in systrace_args()
33 struct read_args *p = params; in systrace_args() local
34 iarg[0] = p->fd; /* int */ in systrace_args()
35 uarg[1] = (intptr_t) p->buf; /* void * */ in systrace_args()
36 uarg[2] = p->nbyte; /* size_t */ in systrace_args()
42 struct write_args *p = params; in systrace_args() local
43 iarg[0] = p->fd; /* int */ in systrace_args()
44 uarg[1] = (intptr_t) p->buf; /* const void * */ in systrace_args()
45 uarg[2] = p->nbyte; /* size_t */ in systrace_args()
[all …]
Dkern_exit.c101 void (*nlminfo_release_p)(struct proc *p);
106 struct proc *p, *parent; in proc_realparent() local
117 for (p = child; (p->p_treeflag & P_TREE_FIRST_ORPHAN) == 0;) { in proc_realparent()
119 p = __containerof(p->p_orphan.le_prev, struct proc, in proc_realparent()
121 KASSERT((p->p_treeflag & P_TREE_ORPHANED) != 0, in proc_realparent()
122 ("missing P_ORPHAN %p", p)); in proc_realparent()
124 parent = __containerof(p->p_orphan.le_prev, struct proc, in proc_realparent()
130 reaper_abandon_children(struct proc *p, bool exiting) in reaper_abandon_children() argument
135 KASSERT(p != initproc, ("reaper_abandon_children for initproc")); in reaper_abandon_children()
136 if ((p->p_treeflag & P_TREE_REAPER) == 0) in reaper_abandon_children()
[all …]
Dsubr_prof.c87 struct gmonparam *p = &_gmonparam; in kmupetext() local
91 bcopy(p, &np, sizeof(*p)); in kmupetext()
93 if (np.highpc <= p->highpc) in kmupetext()
95 np.textsize = np.highpc - p->lowpc; in kmupetext()
110 if (np.highpc <= p->highpc) { in kmupetext()
126 bcopy(p->tos, np.tos, p->tossize); in kmupetext()
127 bzero((char *)np.tos + p->tossize, np.tossize - p->tossize); in kmupetext()
128 bcopy(p->kcount, np.kcount, p->kcountsize); in kmupetext()
129 bzero((char *)np.kcount + p->kcountsize, np.kcountsize - in kmupetext()
130 p->kcountsize); in kmupetext()
[all …]
/freebsd-10-stable/sys/compat/freebsd32/
Dfreebsd32_systrace_args.c24 struct sys_exit_args *p = params; in systrace_args() local
25 iarg[0] = p->rval; /* int */ in systrace_args()
36 struct read_args *p = params; in systrace_args() local
37 iarg[0] = p->fd; /* int */ in systrace_args()
38 uarg[1] = (intptr_t) p->buf; /* void * */ in systrace_args()
39 uarg[2] = p->nbyte; /* size_t */ in systrace_args()
45 struct write_args *p = params; in systrace_args() local
46 iarg[0] = p->fd; /* int */ in systrace_args()
47 uarg[1] = (intptr_t) p->buf; /* const void * */ in systrace_args()
48 uarg[2] = p->nbyte; /* size_t */ in systrace_args()
[all …]
/freebsd-10-stable/sys/amd64/linux32/
Dlinux32_systrace_args.c17 struct linux_exit_args *p = params; in systrace_args() local
18 iarg[0] = p->rval; /* int */ in systrace_args()
29 struct read_args *p = params; in systrace_args() local
30 iarg[0] = p->fd; /* int */ in systrace_args()
31 uarg[1] = (intptr_t) p->buf; /* char * */ in systrace_args()
32 uarg[2] = p->nbyte; /* u_int */ in systrace_args()
38 struct write_args *p = params; in systrace_args() local
39 iarg[0] = p->fd; /* int */ in systrace_args()
40 uarg[1] = (intptr_t) p->buf; /* char * */ in systrace_args()
41 uarg[2] = p->nbyte; /* u_int */ in systrace_args()
[all …]
/freebsd-10-stable/sys/amd64/linux/
Dlinux_systrace_args.c17 struct read_args *p = params; in systrace_args() local
18 iarg[0] = p->fd; /* int */ in systrace_args()
19 uarg[1] = (intptr_t) p->buf; /* char * */ in systrace_args()
20 uarg[2] = p->nbyte; /* u_int */ in systrace_args()
26 struct write_args *p = params; in systrace_args() local
27 iarg[0] = p->fd; /* int */ in systrace_args()
28 uarg[1] = (intptr_t) p->buf; /* char * */ in systrace_args()
29 uarg[2] = p->nbyte; /* u_int */ in systrace_args()
35 struct linux_open_args *p = params; in systrace_args() local
36 uarg[0] = (intptr_t) p->path; /* char * */ in systrace_args()
[all …]
/freebsd-10-stable/contrib/mdocml/
Dterm.c36 static void adjbuf(struct termp *p, int);
42 term_free(struct termp *p) in term_free() argument
45 if (p->buf) in term_free()
46 free(p->buf); in term_free()
47 if (p->symtab) in term_free()
48 mchars_free(p->symtab); in term_free()
50 free(p); in term_free()
55 term_begin(struct termp *p, term_margin head, in term_begin() argument
59 p->headf = head; in term_begin()
60 p->footf = foot; in term_begin()
[all …]
Dterm_ps.c41 #define PNT2AFM(p, x) /* LINTED */ \ argument
42 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale))
45 #define AFM2PNT(p, x) /* LINTED */ \ argument
46 ((double)(x) / (1000.0 / (double)(p)->ps->scale))
409 struct termp *p; in pdf_alloc() local
411 if (NULL != (p = pspdf_alloc(outopts))) in pdf_alloc()
412 p->type = TERMTYPE_PDF; in pdf_alloc()
414 return(p); in pdf_alloc()
420 struct termp *p; in ps_alloc() local
422 if (NULL != (p = pspdf_alloc(outopts))) in ps_alloc()
[all …]
Dmdoc_term.c42 #define DECL_ARGS struct termp *p, \
255 struct termp *p; in terminal_mdoc() local
257 p = (struct termp *)arg; in terminal_mdoc()
259 if (0 == p->defindent) in terminal_mdoc()
260 p->defindent = 5; in terminal_mdoc()
262 p->overstep = 0; in terminal_mdoc()
263 p->maxrmargin = p->defrmargin; in terminal_mdoc()
264 p->tabwidth = term_len(p, 5); in terminal_mdoc()
266 if (NULL == p->symtab) in terminal_mdoc()
267 p->symtab = mchars_alloc(); in terminal_mdoc()
[all …]
Dman_term.c49 #define DECL_ARGS struct termp *p, \
137 struct termp *p; in terminal_man() local
142 p = (struct termp *)arg; in terminal_man()
144 if (0 == p->defindent) in terminal_man()
145 p->defindent = 7; in terminal_man()
147 p->overstep = 0; in terminal_man()
148 p->maxrmargin = p->defrmargin; in terminal_man()
149 p->tabwidth = term_len(p, 5); in terminal_man()
151 if (NULL == p->symtab) in terminal_man()
152 p->symtab = mchars_alloc(); in terminal_man()
[all …]
/freebsd-10-stable/usr.sbin/dumpcis/
Dprintcis.c49 static void dump_other_cond(u_char *p, int len);
50 static void dump_device_desc(u_char *p, int len, const char *type);
51 static void dump_info_v1(u_char *p, int len);
52 static void dump_longlink_mfc(u_char *p, int len);
53 static void dump_bar(u_char *p, int len);
54 static void dump_device_geo(u_char *p, int len);
55 static void dump_func_id(u_char *p);
56 static void dump_serial_ext(u_char *p, int len);
57 static void dump_disk_ext(u_char *p, int len);
58 static void dump_network_ext(u_char *p, int len);
[all …]
/freebsd-10-stable/usr.sbin/ppp/
Dphysical.c155 physical_SetDescriptor(struct physical *p) in physical_SetDescriptor() argument
157 p->desc.type = PHYSICAL_DESCRIPTOR; in physical_SetDescriptor()
158 p->desc.UpdateSet = physical_UpdateSet; in physical_SetDescriptor()
159 p->desc.IsSet = physical_IsSet; in physical_SetDescriptor()
160 p->desc.Read = physical_DescriptorRead; in physical_SetDescriptor()
161 p->desc.Write = physical_DescriptorWrite; in physical_SetDescriptor()
167 struct physical *p; in physical_Create() local
169 p = (struct physical *)malloc(sizeof(struct physical)); in physical_Create()
170 if (!p) in physical_Create()
173 p->link.type = PHYSICAL_LINK; in physical_Create()
[all …]
Dprompt.c83 prompt_Display(struct prompt *p) in prompt_Display() argument
89 if (p->TermMode || !p->needprompt) in prompt_Display()
92 p->needprompt = 0; in prompt_Display()
94 if (p->nonewline) in prompt_Display()
95 p->nonewline = 0; in prompt_Display()
97 fprintf(p->Term, "\n"); in prompt_Display()
99 if (p->auth == LOCAL_AUTH) in prompt_Display()
104 if (p->bundle->ncp.ipcp.fsm.state == ST_OPENED) in prompt_Display()
107 else if (!Enabled(p->bundle, OPT_IPCP) && in prompt_Display()
108 p->bundle->ncp.ipv6cp.fsm.state == ST_OPENED) in prompt_Display()
[all …]
/freebsd-10-stable/contrib/libarchive/libarchive/
Darchive_ppmd7.c12 #define Ppmd7_GetPtr(p, ptr) (ptr) argument
13 #define Ppmd7_GetContext(p, ptr) (ptr) argument
14 #define Ppmd7_GetStats(p, ctx) ((ctx)->Stats) argument
16 #define Ppmd7_GetPtr(p, offs) ((void *)((p)->Base + (offs))) argument
17 #define Ppmd7_GetContext(p, offs) ((CPpmd7_Context *)Ppmd7_GetPtr((p), (offs))) argument
18 #define Ppmd7_GetStats(p, ctx) ((CPpmd_State *)Ppmd7_GetPtr((p), ((ctx)->Stats))) argument
21 #define Ppmd7_GetBinSumm(p) \ argument
22 &p->BinSumm[Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \
23 p->NS2BSIndx[Ppmd7_GetContext(p, p->MinContext->Suffix)->NumStats - 1] + \
24 (p->HiBitsFlag = p->HB2Flag[p->FoundState->Symbol]) + \
[all …]
Darchive_ppmd8.c18 #define U2I(nu) (p->Units2Indx[(nu) - 1])
19 #define I2U(indx) (p->Indx2Units[indx])
24 #define REF(ptr) ((UInt32)((Byte *)(ptr) - (p)->Base))
29 #define CTX(ref) ((CPpmd8_Context *)Ppmd8_GetContext(p, ref))
30 #define STATS(ctx) Ppmd8_GetStats(p, ctx)
59 #define NODE(offs) ((CPpmd8_Node *)(p->Base + (offs)))
64 void Ppmd8_Construct(CPpmd8 *p) in Ppmd8_Construct() argument
68 p->Base = 0; in Ppmd8_Construct()
73 do { p->Units2Indx[k++] = (Byte)i; } while (--step); in Ppmd8_Construct()
74 p->Indx2Units[i] = (Byte)k; in Ppmd8_Construct()
[all …]
Darchive_pathmatch.c58 const char *p = start; in pm_list() local
66 if ((*p == '!' || *p == '^') && p < end) { in pm_list()
69 ++p; in pm_list()
72 while (p < end) { in pm_list()
74 switch (*p) { in pm_list()
77 if ((rangeStart == '\0') || (p == end - 1)) { in pm_list()
78 if (*p == c) in pm_list()
81 char rangeEnd = *++p; in pm_list()
83 rangeEnd = *++p; in pm_list()
89 ++p; in pm_list()
[all …]
/freebsd-10-stable/contrib/libarchive/libarchive/test/
Dtest_write_format_zip_file_zip64.c50 const unsigned char *p = _p; in bitcrc32() local
53 if (p == NULL) in bitcrc32()
57 c ^= *p++; in bitcrc32()
68 static unsigned i2(const unsigned char *p) { return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); } in i2() argument
69 static unsigned i4(const unsigned char *p) { return (i2(p) | (i2(p + 2) << 16)); } in i4() argument
71 static unsigned i8(const unsigned char *p) { return (i4(p)); } in i8() argument
85 unsigned char *buff, *buffend, *p; in DEFINE_TEST() local
124 eocd_record = p = buffend - 22; /* Assumes there is no zip comment field. */ in DEFINE_TEST()
126 assertEqualMem(p, "PK\005\006", 4); in DEFINE_TEST()
128 assertEqualInt(i2(p + 4), 0); in DEFINE_TEST()
[all …]
Dtest_write_format_zip_file.c50 const unsigned char *p = _p; in bitcrc32() local
53 if (p == NULL) in bitcrc32()
57 c ^= *p++; in bitcrc32()
68 static unsigned i2(const unsigned char *p) { return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); } in i2() argument
69 static unsigned i4(const unsigned char *p) { return (i2(p) | (i2(p + 2) << 16)); } in i4() argument
83 unsigned char *buff, *buffend, *p; in DEFINE_TEST() local
121 eocd_record = p = buffend - 22; /* Assumes there is no zip comment field. */ in DEFINE_TEST()
123 assertEqualMem(p, "PK\005\006", 4); in DEFINE_TEST()
125 assertEqualInt(i2(p + 4), 0); in DEFINE_TEST()
127 assertEqualInt(i2(p + 6), 0); in DEFINE_TEST()
[all …]
/freebsd-10-stable/sys/contrib/ngatm/netnatm/sig/
Dsig_party.c44 static void drop_partyE(struct party *p);
58 set_party_state(struct party *p, enum uni_epstate state) in TIMER_FUNC_PARTY()
60 if (p->state != state) { in TIMER_FUNC_PARTY()
61 VERBOSE(p->call->uni, UNI_FAC_CALL, 1, in TIMER_FUNC_PARTY()
63 p->call->cref, p->call->mine, in TIMER_FUNC_PARTY()
64 p->epref, p->flags & PARTY_MINE, p->state, state); in TIMER_FUNC_PARTY()
65 p->state = state; in TIMER_FUNC_PARTY()
76 struct party *p; in uni_create_partyx() local
82 if ((p = PARTY_ALLOC()) == NULL) in uni_create_partyx()
86 PARTY_FREE(p); in uni_create_partyx()
[all …]
/freebsd-10-stable/contrib/binutils/libiberty/
Dstrtod.c52 char *p; in strtod() local
57 p = str; in strtod()
59 while (ISSPACE (*p)) in strtod()
60 ++p; in strtod()
62 if (*p == '+' || *p == '-') in strtod()
63 ++p; in strtod()
66 if ((p[0] == 'i' || p[0] == 'I') in strtod()
67 && (p[1] == 'n' || p[1] == 'N') in strtod()
68 && (p[2] == 'f' || p[2] == 'F')) in strtod()
70 if ((p[3] == 'i' || p[3] == 'I') in strtod()
[all …]
/freebsd-10-stable/contrib/gcclibs/libiberty/
Dstrtod.c52 char *p; in strtod() local
57 p = str; in strtod()
59 while (ISSPACE (*p)) in strtod()
60 ++p; in strtod()
62 if (*p == '+' || *p == '-') in strtod()
63 ++p; in strtod()
66 if ((p[0] == 'i' || p[0] == 'I') in strtod()
67 && (p[1] == 'n' || p[1] == 'N') in strtod()
68 && (p[2] == 'f' || p[2] == 'F')) in strtod()
70 if ((p[3] == 'i' || p[3] == 'I') in strtod()
[all …]
/freebsd-10-stable/contrib/libpcap/
Dpcap-win32.c120 pcap_stats_win32(pcap_t *p, struct pcap_stat *ps) in pcap_stats_win32() argument
123 if(PacketGetStats(p->adapter, (struct bpf_stat*)ps) != TRUE){ in pcap_stats_win32()
124 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "PacketGetStats error: %s", pcap_win32strerror()); in pcap_stats_win32()
133 pcap_setbuff_win32(pcap_t *p, int dim) in pcap_setbuff_win32() argument
135 if(PacketSetBuff(p->adapter,dim)==FALSE) in pcap_setbuff_win32()
137 …snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: not enough memory to allocate the kernel buff… in pcap_setbuff_win32()
145 pcap_setmode_win32(pcap_t *p, int mode) in pcap_setmode_win32() argument
147 if(PacketSetMode(p->adapter,mode)==FALSE) in pcap_setmode_win32()
149 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: working mode not recognized"); in pcap_setmode_win32()
158 pcap_setmintocopy_win32(pcap_t *p, int size) in pcap_setmintocopy_win32() argument
[all …]
/freebsd-10-stable/tools/tools/net80211/w00t/prga/
Dprga.c83 void usage(char *p) in usage() argument
89 , p); in usage()
93 void load_prga(struct params *p) in load_prga() argument
98 fd = open(p->fname, O_RDONLY); in load_prga()
100 p->prga_len = 0; in load_prga()
104 rd = read(fd, p->iv, 3); in load_prga()
112 rd = read(fd, p->prga, sizeof(p->prga)); in load_prga()
115 p->prga_len = rd; in load_prga()
117 printf("Loaded %d PRGA from %s\n", p->prga_len, p->fname); in load_prga()
121 void save_prga(struct params *p) in save_prga() argument
[all …]
/freebsd-10-stable/contrib/tcpdump/
Dextract.h55 EXTRACT_16BITS(const void *p) in EXTRACT_16BITS() argument
57 return ((u_int16_t)ntohs(((const unaligned_u_int16_t *)(p))->val)); in EXTRACT_16BITS()
61 EXTRACT_32BITS(const void *p) in EXTRACT_32BITS() argument
63 return ((u_int32_t)ntohl(((const unaligned_u_int32_t *)(p))->val)); in EXTRACT_32BITS()
67 EXTRACT_64BITS(const void *p) in EXTRACT_64BITS() argument
69 return ((u_int64_t)(((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 0)->val)) << 32 | \ in EXTRACT_64BITS()
70 ((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 1)->val)) << 0)); in EXTRACT_64BITS()
80 #define EXTRACT_16BITS(p) \ argument
81 ((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 0) << 8 | \
82 (u_int16_t)*((const u_int8_t *)(p) + 1)))
[all …]

12345678910>>...227