| /src/sys/sys/ |
| container_of.h | 52 * The 0*sizeof((PTR) - ...) causes the compiler to warn if the type of 57 #define __validate_container_of(PTR, TYPE, FIELD) 0 58 #define __validate_const_container_of(PTR, TYPE, FIELD) 0 60 #define __validate_container_of(PTR, TYPE, FIELD) \ 61 (0 * sizeof((PTR) - &((TYPE *)(((char *)(PTR)) - \ 63 #define __validate_const_container_of(PTR, TYPE, FIELD) \ 64 (0 * sizeof((PTR) - &((const TYPE *)(((const char *)(PTR)) - \ 68 #define container_of(PTR, TYPE, FIELD) [all...] |
| /src/sys/external/bsd/common/include/linux/ |
| list.h | 271 #define list_entry(PTR, TYPE, FIELD) container_of(PTR, TYPE, FIELD) 272 #define list_first_entry(PTR, TYPE, FIELD) \ 273 list_entry(list_first((PTR)), TYPE, FIELD) 274 #define list_first_entry_or_null(PTR, TYPE, FIELD) \ 275 (list_empty((PTR)) ? NULL : list_entry(list_first((PTR)), TYPE, FIELD)) 276 #define list_last_entry(PTR, TYPE, FIELD) \ 277 list_entry(list_last((PTR)), TYPE, FIELD) 392 #define hlist_entry(PTR, TYPE, FIELD) container_of(PTR, TYPE, FIELD [all...] |
| bitops.h | 154 __test_and_set_bit(unsigned int bit, volatile unsigned long *ptr) 156 const unsigned int units = (sizeof(*ptr) * CHAR_BIT); 157 volatile unsigned long *const p = &ptr[bit / units]; 168 __test_and_clear_bit(unsigned int bit, volatile unsigned long *ptr) 170 const unsigned int units = (sizeof(*ptr) * CHAR_BIT); 171 volatile unsigned long *const p = &ptr[bit / units]; 182 __test_and_change_bit(unsigned int bit, volatile unsigned long *ptr) 184 const unsigned int units = (sizeof(*ptr) * CHAR_BIT); 185 volatile unsigned long *const p = &ptr[bit / units]; 196 __find_next_bit(const unsigned long *ptr, unsigned long nbits [all...] |
| /src/sys/external/bsd/drm2/include/linux/ |
| kfifo.h | 144 #define kfifo_out_peek(FIFO, PTR, SIZE) \ 145 _kfifo_out_peek(&(FIFO)->kf_meta, (FIFO)->kf_buf, (PTR), (SIZE)) 148 _kfifo_out_peek(struct kfifo_meta *meta, void *buf, void *ptr, size_t size) 151 char *dst = ptr; 179 #define kfifo_out(FIFO, PTR, SIZE) \ 180 _kfifo_out(&(FIFO)->kf_meta, (FIFO)->kf_buf, (PTR), (SIZE)) 183 _kfifo_out(struct kfifo_meta *meta, const void *buf, void *ptr, size_t size) 186 char *dst = ptr; 217 #define kfifo_in(FIFO, PTR, SIZE) \ 218 _kfifo_in(&(FIFO)->kf_meta, (FIFO)->kf_buf, (PTR), (SIZE) [all...] |
| /src/usr.bin/xlint/lint1/ |
| tree.c | 534 if (tn->u.ops.left->tn_type->t_tspec == PTR) 652 lint_assert(ln->tn_type->t_tspec == PTR); 1084 tn->u.ops.left->tn_type->t_tspec == PTR && 1089 return build_op(ADDR, sys, expr_derive_type(tn->tn_type, PTR), 1333 else if (ln->tn_type->t_tspec != PTR) { 1336 ln = convert(NOOP, 0, expr_derive_type(gettyp(VOID), PTR), ln); 1342 type_t *ptr_tp = expr_derive_type(rn->tn_type, PTR); 1363 lint_assert(tp->t_tspec == PTR); 1418 tnode_t *cn = ln->tn_type->t_tspec == PTR 1481 if (rn->tn_type->t_tspec == PTR && is_integer(ln->tn_type->t_tspec)) [all...] |
| decl.c | 99 /* struct, union, enum, ptr, array and func are not shared. */ 404 } else if (t == PTR) { 923 t == FUNC ? *tpp : (*tpp)->t_subt, PTR); 970 if (t == VOID && to != PTR) { 1159 dsym->s_type = tp = block_derive_type(tp, t = PTR); 1236 type_t *tp = block_derive_type(stp, PTR); 2064 else if (dsym->s_type->t_tspec == PTR 2069 else if (dsym->s_type->t_tspec == PTR 2396 sym->s_type = block_derive_type(subt, PTR); 2402 sym->s_type = block_derive_type(sym->s_type, PTR); [all...] |
| README.md | 186 | t | `tspec_t` | a simple type such as `INT`, `FUNC`, `PTR` |
|
| lex.c | 624 return t == PTR || is_uinteger(t) || ((ui & bit(bits - 1)) == 0)
|
| cgram.y | 558 type_t *void_ptr = block_derive_type(gettyp(VOID), PTR);
|
| /src/usr.bin/xlint/common/ |
| inittyp.c | 124 typeinfo("pointer", PTR, PTR, PTR_SIZE, 5, 'p'),
|
| lint.h | 94 PTR, /* pointer */
|
| tyname.c | 285 case PTR:
|
| /src/usr.bin/xlint/lint2/ |
| chk.c | 576 } else if (t1 == PTR && is_integer(t2)) { 724 if ((t1 = tp->t_tspec) == PTR) 790 if (t1 != PTR || 797 if (t1 != PTR || (hflag && t2 != VOID)) 802 if (t1 != PTR) { 890 if ((t1 = tp->t_tspec) == PTR) 901 if (t1 != PTR) { 992 if (t1 != PTR) { 1003 if (t1 != PTR || t2 != PTR) { [all...] |
| read.c | 116 void *ptr = xmalloc(sz); local in function:xalloc 117 (void)memset(ptr, 0, sz); 118 return ptr; 626 return PTR; 690 case PTR: 840 t = PTR; 879 case PTR:
|
| /src/common/lib/libc/atomic/ |
| atomic_init_testset.c | 62 #define HASH(PTR) (((uintptr_t)(PTR) >> 3) & 127) 104 _atomic_cas_up(volatile uint32_t *ptr, uint32_t old, uint32_t new) 109 ret = *ptr; 113 *ptr = new; 122 _atomic_cas_64_up(volatile uint64_t *ptr, uint64_t old, uint64_t new) 127 ret = *ptr; 131 *ptr = new; 140 _atomic_cas_16_up(volatile uint16_t *ptr, uint16_t old, uint16_t new) 145 ret = *ptr; [all...] |
| /src/sys/kern/ |
| subr_kmem.c | 147 "void *"/*ptr*/, \ 158 "void *"/*ptr*/, \ 167 "void *"/*ptr*/, 172 "void *"/*ptr*/, 243 #define KMEM_CACHE_PROBE(ARRAY, INDEX, PTR, REQSIZE, ALLOCSIZE, FLAGS) \ 253 #define KMEM_CACHE_PROBE(ARRAY, INDEX, PTR, REQSIZE, ALLOCSIZE, FLAGS) do \ 260 (uintptr_t)(PTR), \ 571 char *ptr = kmem_alloc(len, flags); local in function:kmem_strdupsize 572 if (ptr == NULL) 577 memcpy(ptr, str, len) 588 char *ptr = kmem_alloc(len + 1, flags); local in function:kmem_strndup [all...] |
| /src/sys/net/ |
| if_pppoe.c | 120 /* Add a 16 bit unsigned value to a buffer pointed to by PTR */ 121 #define PPPOE_ADD_16(PTR, VAL) \ 122 *(PTR)++ = (VAL) / 256; \ 123 *(PTR)++ = (VAL) % 256 125 /* Add a complete PPPoE header to the buffer pointed to by PTR */ 126 #define PPPOE_ADD_HEADER(PTR, CODE, SESS, LEN) \ 127 *(PTR)++ = PPPOE_VERTYPE; \ 128 *(PTR)++ = (CODE); \ 129 PPPOE_ADD_16(PTR, SESS); \ 130 PPPOE_ADD_16(PTR, LEN [all...] |
| /src/sys/dev/pcmcia/ |
| if_xireg.h | 89 #define PTR 0xd /* R - Packets Transmitted register */
|
| /src/sys/dev/pci/ |
| xmm7360.c | 185 #define __validate_container_of(PTR, TYPE, FIELD) \ 186 (0 * sizeof((PTR) - &((TYPE *)(((char *)(PTR)) - \ 188 #define container_of(PTR, TYPE, FIELD) \ 189 ((TYPE *)(((char *)(PTR)) - offsetof(TYPE, FIELD)) \ 190 + __validate_container_of(PTR, TYPE, FIELD)) 377 dma_addr_t ptr; member in struct:cmd_ring_entry 618 static int xmm7360_cmd_ring_execute(struct xmm_dev *xmm, u8 cmd, u8 parm, u16 len, dma_addr_t ptr, u32 extra) 627 xmm->cp->c_ring[wptr].ptr = ptr; [all...] |