| /scripts/include/ |
| D | list.h | 19 #define container_of(ptr, type, member) ({ \ argument 20 void *__mptr = (void *)(ptr); \ 21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 22 __same_type(*(ptr), void), \ 228 #define list_entry(ptr, type, member) \ argument 229 container_of(ptr, type, member) 239 #define list_first_entry(ptr, type, member) \ argument 240 list_entry((ptr)->next, type, member) 250 #define list_last_entry(ptr, type, member) \ argument 251 list_entry((ptr)->prev, type, member) [all …]
|
| D | hash.h | 23 static inline unsigned int hash_ptr(const void *ptr) in hash_ptr() argument 25 return hash_32((unsigned int)(unsigned long)ptr); in hash_ptr()
|
| /scripts/dtc/ |
| D | fdtput.c | 61 char *ptr; /* pointer to current value position */ in encode_value() local 93 ptr = value + upto; in encode_value() 95 memcpy(ptr, *arg, len); in encode_value() 97 fprintf(stderr, "\tstring: '%s'\n", ptr); in encode_value() 99 int *iptr = (int *)ptr; in encode_value() 104 *ptr = (uint8_t)ival; in encode_value()
|
| D | flattree.c | 567 char *base, *limit, *ptr; member 574 inb->ptr = inb->base; in inbuf_init() 579 if ((inb->ptr + len) > inb->limit) in flat_read_chunk() 582 memcpy(p, inb->ptr, len); in flat_read_chunk() 584 inb->ptr += len; in flat_read_chunk() 591 assert(((inb->ptr - inb->base) % sizeof(val)) == 0); in flat_read_word() 600 int off = inb->ptr - inb->base; in flat_realign() 602 inb->ptr = inb->base + ALIGN(off, align); in flat_realign() 603 if (inb->ptr > inb->limit) in flat_realign() 610 const char *p = inb->ptr; in flat_read_string() [all …]
|
| D | util.c | 308 const char *ptr = blob; in utilfdt_write_err() local 320 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err()
|
| /scripts/atomic/ |
| D | gen-atomic-instrumented.sh | 103 typeof(ptr) __ai_ptr = (ptr); \\ 119 typeof(ptr) __ai_ptr = (ptr); \\
|
| /scripts/ |
| D | recordmcount.c | 236 uint32_t *ptr; in make_nop_x86() local 240 ptr = map + offset; in make_nop_x86() 241 if (*ptr != 0) in make_nop_x86() 278 char *ptr; in make_nop_arm() local 283 ptr = map + offset; in make_nop_arm() 284 if (memcmp(ptr, bl_mcount_arm, 4) == 0) { in make_nop_arm() 285 if (memcmp(ptr - 4, push_arm, 4) == 0) { in make_nop_arm() 291 } else if (memcmp(ptr - 2, push_bl_mcount_thumb, 6) == 0) { in make_nop_arm() 314 uint32_t *ptr; in make_nop_arm64() local 316 ptr = map + offset; in make_nop_arm64() [all …]
|
| D | checkpatch.pl | 3446 my $ptr = substr($blank, 0, length($utf8_prefix)) . "^"; 3447 my $hereptr = "$hereline$ptr\n"; 3497 my $ptr = substr($blank, 0, $-[1]) . "^" x length($typo); 3498 my $hereptr = "$hereline$ptr\n"; 5153 my $ptr = substr($blank, 0, $off) . "^"; 5154 my $hereptr = "$hereline$ptr\n"; 6523 my $ptr = $1; 6525 if ((($ptr =~ /\b(union|struct)\s+$attr\b/ && 6528 ($ptr !~ /\b(union|struct)\s+$attr\b/ &&
|
| /scripts/gdb/linux/ |
| D | utils.py | 69 def container_of(ptr, typeobj, member): argument 70 return (ptr.cast(get_long_type()) - 84 def invoke(self, ptr, typename, elementname): argument 85 return container_of(ptr, gdb.lookup_type(typename.string()).pointer(),
|
| D | slab.py | 99 def freelist_ptr_decode(cache, ptr, ptr_addr): argument 101 return ptr['v'] ^ cache['random'] ^ swab64(int(ptr_addr)) 103 return ptr['v']
|
| /scripts/dtc/libfdt/ |
| D | fdt_sw.c | 327 void *ptr; in fdt_property() local 330 ret = fdt_property_placeholder(fdt, name, len, &ptr); in fdt_property() 333 memcpy(ptr, val, len); in fdt_property()
|
| /scripts/gendwarfksyms/ |
| D | symbols.c | 108 void symbol_set_ptr(struct symbol *sym, Dwarf_Die *ptr) in symbol_set_ptr() argument 110 if (for_each(sym->name, set_ptr, ptr) == 0) in symbol_set_ptr()
|
| D | gendwarfksyms.h | 129 void symbol_set_ptr(struct symbol *sym, Dwarf_Die *ptr);
|
| /scripts/kconfig/lxdialog/ |
| D | util.c | 601 void item_set_data(void *ptr) in item_set_data() argument 603 item_cur->node.data = ptr; in item_set_data()
|