Home
last modified time | relevance | path

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

12345678910>>...252

/netbsd/src/sys/kern/
Dsystrace_args.c17 const struct sys_syscall_args *p = params; in systrace_args() local
18 iarg[0] = SCARG(p, code); /* int */ in systrace_args()
19 iarg[1] = SCARG(p, args[0]); /* register_t */ in systrace_args()
25 const struct sys_exit_args *p = params; in systrace_args() local
26 iarg[0] = SCARG(p, rval); /* int */ in systrace_args()
37 const struct sys_read_args *p = params; in systrace_args() local
38 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
39 uarg[1] = (intptr_t) SCARG(p, buf); /* void * */ in systrace_args()
40 uarg[2] = SCARG(p, nbyte); /* size_t */ in systrace_args()
46 const struct sys_write_args *p = params; in systrace_args() local
[all …]
/netbsd/src/sys/compat/linux/arch/i386/
Dlinux_systrace_args.c22 const struct linux_sys_exit_args *p = params; in systrace_args() local
23 iarg[0] = SCARG(p, rval); /* int */ in systrace_args()
34 const struct sys_read_args *p = params; in systrace_args() local
35 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
36 uarg[1] = (intptr_t) SCARG(p, buf); /* void * */ in systrace_args()
37 uarg[2] = SCARG(p, nbyte); /* size_t */ in systrace_args()
43 const struct sys_write_args *p = params; in systrace_args() local
44 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
45 uarg[1] = (intptr_t) SCARG(p, buf); /* const void * */ in systrace_args()
46 uarg[2] = SCARG(p, nbyte); /* size_t */ in systrace_args()
[all …]
/netbsd/src/sys/compat/linux/arch/arm/
Dlinux_systrace_args.c22 const struct linux_sys_exit_args *p = params; in systrace_args() local
23 iarg[0] = SCARG(p, rval); /* int */ in systrace_args()
34 const struct sys_read_args *p = params; in systrace_args() local
35 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
36 uarg[1] = (intptr_t) SCARG(p, buf); /* void * */ in systrace_args()
37 uarg[2] = SCARG(p, nbyte); /* size_t */ in systrace_args()
43 const struct sys_write_args *p = params; in systrace_args() local
44 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
45 uarg[1] = (intptr_t) SCARG(p, buf); /* const void * */ in systrace_args()
46 uarg[2] = SCARG(p, nbyte); /* size_t */ in systrace_args()
[all …]
/netbsd/src/sys/compat/netbsd32/
Dnetbsd32_systrace_args.c17 const struct netbsd32_syscall_args *p = params; in systrace_args() local
18 iarg[0] = SCARG(p, code); /* int */ in systrace_args()
19 iarg[1] = SCARG(p, args[0]); /* register32_t */ in systrace_args()
25 const struct netbsd32_exit_args *p = params; in systrace_args() local
26 iarg[0] = SCARG(p, rval); /* int */ in systrace_args()
37 const struct netbsd32_read_args *p = params; in systrace_args() local
38 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
39 uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */ in systrace_args()
40 iarg[2] = SCARG(p, nbyte); /* netbsd32_size_t */ in systrace_args()
46 const struct netbsd32_write_args *p = params; in systrace_args() local
[all …]
/netbsd/src/sys/compat/linux/arch/amd64/
Dlinux_systrace_args.c17 const struct sys_read_args *p = params; in systrace_args() local
18 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
19 uarg[1] = (intptr_t) SCARG(p, buf); /* void * */ in systrace_args()
20 uarg[2] = SCARG(p, nbyte); /* size_t */ in systrace_args()
26 const struct sys_write_args *p = params; in systrace_args() local
27 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
28 uarg[1] = (intptr_t) SCARG(p, buf); /* const void * */ in systrace_args()
29 uarg[2] = SCARG(p, nbyte); /* size_t */ in systrace_args()
35 const struct linux_sys_open_args *p = params; in systrace_args() local
36 uarg[0] = (intptr_t) SCARG(p, path); /* const char * */ in systrace_args()
[all …]
/netbsd/src/sys/compat/linux32/arch/amd64/
Dlinux32_systrace_args.c22 const struct linux32_sys_exit_args *p = params; in systrace_args() local
23 iarg[0] = SCARG(p, rval); /* int */ in systrace_args()
34 const struct netbsd32_read_args *p = params; in systrace_args() local
35 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
36 uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */ in systrace_args()
37 iarg[2] = SCARG(p, nbyte); /* netbsd32_size_t */ in systrace_args()
43 const struct netbsd32_write_args *p = params; in systrace_args() local
44 iarg[0] = SCARG(p, fd); /* int */ in systrace_args()
45 uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */ in systrace_args()
46 iarg[2] = SCARG(p, nbyte); /* netbsd32_size_t */ in systrace_args()
[all …]
/netbsd/src/external/bsd/tcpdump/dist/
Dextract.h31 #define EXTRACT_U_1(p) ((uint8_t)(*(p))) argument
32 #define EXTRACT_S_1(p) ((int8_t)(*(p))) argument
89 EXTRACT_BE_U_2(const void *p) in EXTRACT_BE_U_2() argument
91 return ((uint16_t)ntohs(*(const uint16_t *)(p))); in EXTRACT_BE_U_2()
95 EXTRACT_BE_S_2(const void *p) in EXTRACT_BE_S_2() argument
97 return ((int16_t)ntohs(*(const int16_t *)(p))); in EXTRACT_BE_S_2()
101 EXTRACT_BE_U_4(const void *p) in EXTRACT_BE_U_4() argument
103 return ((uint32_t)ntohl(*(const uint32_t *)(p))); in EXTRACT_BE_U_4()
107 EXTRACT_BE_S_4(const void *p) in EXTRACT_BE_S_4() argument
109 return ((int32_t)ntohl(*(const int32_t *)(p))); in EXTRACT_BE_S_4()
[all …]
/netbsd/src/external/bsd/pcc/dist/pcc/cc/ccom/
Doptim.c43 # define SWAP(p,q) {sp=p; p=q; q=sp;} argument
44 # define RCON(p) (p->n_right->n_op==ICON) argument
45 # define RO(p) p->n_right->n_op argument
46 # define RV(p) getlval(p->n_right) argument
47 # define LCON(p) (p->n_left->n_op==ICON) argument
48 # define LO(p) p->n_left->n_op argument
49 # define LV(p) getlval(p->n_left) argument
53 zapleft(NODE *p) in zapleft() argument
57 q = p->n_left; in zapleft()
58 nfree(p->n_right); in zapleft()
[all …]
/netbsd/src/external/bsd/pcc/dist/pcc/cc/cxxcom/
Doptim.c39 # define SWAP(p,q) {sp=p; p=q; q=sp;} argument
40 # define RCON(p) (p->n_right->n_op==ICON) argument
41 # define RO(p) p->n_right->n_op argument
42 # define RV(p) glval(p->n_right) argument
43 # define LCON(p) (p->n_left->n_op==ICON) argument
44 # define LO(p) p->n_left->n_op argument
45 # define LV(p) glval(p->n_left) argument
49 zapleft(NODE *p) in zapleft() argument
53 q = p->n_left; in zapleft()
54 nfree(p->n_right); in zapleft()
[all …]
/netbsd/src/external/bsd/mdocml/dist/
Dterm_ps.c44 #define PNT2AFM(p, x) \ argument
45 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale))
48 #define AFM2PNT(p, x) \ argument
49 ((double)(x) / (1000.0 / (double)(p)->ps->scale))
529 struct termp *p; in pspdf_alloc() local
534 p = mandoc_calloc(1, sizeof(*p)); in pspdf_alloc()
535 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in pspdf_alloc()
536 p->maxtcol = 1; in pspdf_alloc()
537 p->type = type; in pspdf_alloc()
539 p->enc = TERMENC_ASCII; in pspdf_alloc()
[all …]
Dterm.c48 term_setcol(struct termp *p, size_t maxtcol) in term_setcol() argument
50 if (maxtcol > p->maxtcol) { in term_setcol()
51 p->tcols = mandoc_recallocarray(p->tcols, in term_setcol()
52 p->maxtcol, maxtcol, sizeof(*p->tcols)); in term_setcol()
53 p->maxtcol = maxtcol; in term_setcol()
55 p->lasttcol = maxtcol - 1; in term_setcol()
56 p->tcol = p->tcols; in term_setcol()
60 term_free(struct termp *p) in term_free() argument
62 for (p->tcol = p->tcols; p->tcol < p->tcols + p->maxtcol; p->tcol++) in term_free()
63 free(p->tcol->buf); in term_free()
[all …]
/netbsd/src/external/bsd/libpcap/dist/
Dextract.h77 EXTRACT_BE_U_2(const void *p) in EXTRACT_BE_U_2() argument
79 return ((uint16_t)ntohs(*(const uint16_t *)(p))); in EXTRACT_BE_U_2()
83 EXTRACT_BE_S_2(const void *p) in EXTRACT_BE_S_2() argument
85 return ((int16_t)ntohs(*(const int16_t *)(p))); in EXTRACT_BE_S_2()
89 EXTRACT_BE_U_4(const void *p) in EXTRACT_BE_U_4() argument
91 return ((uint32_t)ntohl(*(const uint32_t *)(p))); in EXTRACT_BE_U_4()
95 EXTRACT_BE_S_4(const void *p) in EXTRACT_BE_S_4() argument
97 return ((int32_t)ntohl(*(const int32_t *)(p))); in EXTRACT_BE_S_4()
101 EXTRACT_BE_U_8(const void *p) in EXTRACT_BE_U_8() argument
103 return ((uint64_t)(((uint64_t)ntohl(*((const uint32_t *)(p) + 0))) << 32 | in EXTRACT_BE_U_8()
[all …]
/netbsd/src/external/bsd/libarchive/dist/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 …]
/netbsd/src/usr.bin/audio/common/
Dauconv.h54 change_sign8(u_char *p, int cc) in change_sign8() argument
57 *p ^= 0x80; in change_sign8()
58 ++p; in change_sign8()
63 change_sign16_le(u_char *p, int cc) in change_sign16_le() argument
66 p[1] ^= 0x80; in change_sign16_le()
67 p += 2; in change_sign16_le()
72 change_sign16_be(u_char *p, int cc) in change_sign16_be() argument
75 p[0] ^= 0x80; in change_sign16_be()
76 p += 2; in change_sign16_be()
81 change_sign24_le(u_char *p, int cc) in change_sign24_le() argument
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/
Dparams.c29 OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *p, const char *key) in OSSL_PARAM_locate() argument
31 if (p != NULL && key != NULL) in OSSL_PARAM_locate()
32 for (; p->key != NULL; p++) in OSSL_PARAM_locate()
33 if (strcmp(key, p->key) == 0) in OSSL_PARAM_locate()
34 return p; in OSSL_PARAM_locate()
38 const OSSL_PARAM *OSSL_PARAM_locate_const(const OSSL_PARAM *p, const char *key) in OSSL_PARAM_locate_const() argument
40 return OSSL_PARAM_locate((OSSL_PARAM *)p, key); in OSSL_PARAM_locate_const()
56 int OSSL_PARAM_modified(const OSSL_PARAM *p) in OSSL_PARAM_modified() argument
58 return p != NULL && p->return_size != OSSL_PARAM_UNMODIFIED; in OSSL_PARAM_modified()
61 void OSSL_PARAM_set_all_unmodified(OSSL_PARAM *p) in OSSL_PARAM_set_all_unmodified() argument
[all …]
/netbsd/src/external/bsd/pcc/dist/pcc/arch/vax/
Dorder.c44 stoasg( p, o ) register NODE *p; {
55 deltest( p ) register NODE *p; {
57 p = p->n_left;
58 return( p->n_op == REG || p->n_op == NAME || p->n_op == OREG );
61 autoincr( p ) NODE *p; {
62 register NODE *q = p->left, *r;
65 ISPTR(q->type) && p->type == DECREF(q->type) &&
66 tlen(p) == q->right->lval ) return(1);
71 mkadrs(p) register NODE *p; {
74 o = p->op;
[all …]
Dlocal2.c42 static void acon(NODE *p);
132 tlen(NODE *p) in tlen() argument
134 switch(p->n_type) { in tlen()
225 sconv(NODE *p) in sconv() argument
227 NODE *l = p->n_left; in sconv()
238 td = p->n_type; in sconv()
246 expand(p, INAREG|INBREG, "\tmovl\tAL,A1\n"); in sconv()
250 if (l->n_op == REG && regno(l) == regno(getlr(p, '1'))) in sconv()
252 expand(p, INAREG|INBREG, "\tmovZR\tAL,A1\n"); in sconv()
256 expand(p, INAREG|INBREG, "\tcvtZLl\tAL,A1\n"); in sconv()
[all …]
/netbsd/src/sys/dev/marvell/
Dgtpcireg.h42 #define GTPCI_CS0BARS(p) (0x0c08 | ((p) << 7)) /* CSn[0] */ argument
43 #define GTPCI_CS1BARS(p) (0x0d08 | ((p) << 7)) /* CSn[1] */ argument
44 #define GTPCI_CS2BARS(p) (0x0c0c | ((p) << 7)) /* CSn[2] */ argument
45 #define GTPCI_CS3BARS(p) (0x0d0c | ((p) << 7)) /* CSn[3] */ argument
46 #define GTPCI_DCS0BARS(p) (0x0c10 | ((p) << 7)) /* DevCSn[0] */ argument
47 #define GTPCI_DCS1BARS(p) (0x0d10 | ((p) << 7)) /* DevCSn[1] */ argument
48 #define GTPCI_DCS2BARS(p) (0x0d18 | ((p) << 7)) /* DevCSn[2] */ argument
49 #define GTPCI_BCSBARS(p) (0x0d14 | ((p) << 7)) /* Boot CSn */ argument
50 #define GTPCI_P2PM0BARS(p) (0x0d1c | ((p) << 7)) /* P2P Mem0 */ argument
51 #define GTPCI_P2PIOBARS(p) (0x0d24 | ((p) << 7)) /* P2P I/O */ argument
[all …]
/netbsd/src/external/bsd/libarchive/dist/libarchive/test/
Dtest_write_format_zip64_stream.c45 const unsigned char *p = _p; in bitcrc32() local
48 if (p == NULL) in bitcrc32()
52 c ^= *p++; in bitcrc32()
63 static unsigned i2(const unsigned char *p) { return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); } in i2() argument
64 static unsigned i4(const unsigned char *p) { return (i2(p) | (i2(p + 2) << 16)); } in i4() argument
66 static unsigned i8(const unsigned char *p) { return (i4(p)); } in i8() argument
79 unsigned char *buff, *buffend, *p; in DEFINE_TEST() local
118 eocd_record = p = buffend - 22; /* Assumes there is no zip comment field. */ in DEFINE_TEST()
120 assertEqualMem(p, "PK\005\006", 4); in DEFINE_TEST()
122 assertEqualInt(i2(p + 4), 0); in DEFINE_TEST()
[all …]
Dtest_write_format_zip_file_zip64.c49 const unsigned char *p = _p; in bitcrc32() local
52 if (p == NULL) in bitcrc32()
56 c ^= *p++; in bitcrc32()
67 static unsigned i2(const unsigned char *p) { return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); } in i2() argument
68 static unsigned i4(const unsigned char *p) { return (i2(p) | (i2(p + 2) << 16)); } in i4() argument
70 static unsigned i8(const unsigned char *p) { return (i4(p)); } in i8() argument
87 unsigned char *buff, *buffend, *p; in DEFINE_TEST() local
133 eocd_record = p = buffend - 22; /* Assumes there is no zip comment field. */ in DEFINE_TEST()
135 assertEqualMem(p, "PK\005\006", 4); in DEFINE_TEST()
137 assertEqualInt(i2(p + 4), 0); in DEFINE_TEST()
[all …]
Dtest_write_format_zip_stream.c45 const unsigned char *p = _p; in bitcrc32() local
48 if (p == NULL) in bitcrc32()
52 c ^= *p++; in bitcrc32()
63 static unsigned i2(const unsigned char *p) { return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); } in i2() argument
64 static unsigned i4(const unsigned char *p) { return (i2(p) | (i2(p + 2) << 16)); } in i4() argument
81 unsigned char *buff, *buffend, *p; in DEFINE_TEST() local
119 eocd_record = p = buffend - 22; /* Assumes there is no zip comment field. */ in DEFINE_TEST()
121 assertEqualMem(p, "PK\005\006", 4); in DEFINE_TEST()
123 assertEqualInt(i2(p + 4), 0); in DEFINE_TEST()
125 assertEqualInt(i2(p + 6), 0); in DEFINE_TEST()
[all …]
/netbsd/src/external/bsd/pcc/dist/pcc/arch/pdp11/
Dlocal2.c33 static int argsiz(NODE *p);
113 tlen(p) NODE *p; in tlen() argument
115 switch(p->n_type) {
138 if (!ISPTR(p->n_type))
140 return SZPOINT(p->n_type)/SZCHAR;
148 twolcomp(NODE *p) in twolcomp() argument
150 int o = p->n_op; in twolcomp()
152 int e = p->n_label; in twolcomp()
180 if (p->n_op >= ULE) in twolcomp()
182 expand(p, 0, "cmp AR,AL\n"); in twolcomp()
[all …]
/netbsd/src/sys/external/bsd/drm2/dist/drm/i915/
Di915_syncmap.c104 static inline u32 *__sync_seqno(struct i915_syncmap *p) in __sync_seqno() argument
106 GEM_BUG_ON(p->height); in __sync_seqno()
107 return (u32 *)(p + 1); in __sync_seqno()
110 static inline struct i915_syncmap **__sync_child(struct i915_syncmap *p) in __sync_child() argument
112 GEM_BUG_ON(!p->height); in __sync_child()
113 return (struct i915_syncmap **)(p + 1); in __sync_child()
117 __sync_branch_idx(const struct i915_syncmap *p, u64 id) in __sync_branch_idx() argument
119 return (id >> p->height) & MASK; in __sync_branch_idx()
123 __sync_leaf_idx(const struct i915_syncmap *p, u64 id) in __sync_leaf_idx() argument
125 GEM_BUG_ON(p->height); in __sync_leaf_idx()
[all …]
/netbsd/src/external/bsd/pcc/dist/pcc/arch/pdp10/
Dlocal2.c34 void acon(FILE *, NODE *p);
35 int argsize(NODE *p);
36 void genargs(NODE *p);
208 tlen(p) NODE *p; in tlen() argument
210 switch(p->n_type) {
233 if (!ISPTR(p->n_type))
270 twocomp(NODE *p) in twocomp() argument
272 int o = p->n_op; in twocomp()
274 int isscon = 0, iscon = p->n_right->n_op == ICON; in twocomp()
279 if (iscon && p->n_right->n_name[0] != 0) { in twocomp()
[all …]

12345678910>>...252