Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 14 of 14) sorted by relevance

/scripts/include/
Dlist.h19 #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 …]
Dhash.h23 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/
Dfdtput.c61 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()
Dflattree.c567 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 …]
Dutil.c308 const char *ptr = blob; in utilfdt_write_err() local
320 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err()
/scripts/atomic/
Dgen-atomic-instrumented.sh103 typeof(ptr) __ai_ptr = (ptr); \\
119 typeof(ptr) __ai_ptr = (ptr); \\
/scripts/
Drecordmcount.c236 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 …]
Dcheckpatch.pl3446 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/
Dutils.py69 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(),
Dslab.py99 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/
Dfdt_sw.c327 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/
Dsymbols.c108 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()
Dgendwarfksyms.h129 void symbol_set_ptr(struct symbol *sym, Dwarf_Die *ptr);
/scripts/kconfig/lxdialog/
Dutil.c601 void item_set_data(void *ptr) in item_set_data() argument
603 item_cur->node.data = ptr; in item_set_data()