Home
last modified time | relevance | path

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

/scripts/coccinelle/api/
Dptr_ret.cocci21 expression ptr;
24 - if (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0;
25 + return PTR_ERR_OR_ZERO(ptr);
28 expression ptr;
31 - if (IS_ERR(ptr)) return PTR_ERR(ptr); return 0;
32 + return PTR_ERR_OR_ZERO(ptr);
35 expression ptr;
38 - (IS_ERR(ptr) ? PTR_ERR(ptr) : 0)
39 + PTR_ERR_OR_ZERO(ptr)
42 expression ptr;
[all …]
/scripts/kconfig/
Dlist.h19 #define container_of(ptr, type, member) ({ \ argument
20 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
40 #define list_entry(ptr, type, member) \ argument
41 container_of(ptr, type, member)
/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.c566 char *base, *limit, *ptr; member
573 inb->ptr = inb->base; in inbuf_init()
578 if ((inb->ptr + len) > inb->limit) in flat_read_chunk()
581 memcpy(p, inb->ptr, len); in flat_read_chunk()
583 inb->ptr += len; in flat_read_chunk()
590 assert(((inb->ptr - inb->base) % sizeof(val)) == 0); in flat_read_word()
599 int off = inb->ptr - inb->base; in flat_realign()
601 inb->ptr = inb->base + ALIGN(off, align); in flat_realign()
602 if (inb->ptr > inb->limit) in flat_realign()
609 const char *p = inb->ptr; in flat_read_string()
[all …]
Dutil.c296 const char *ptr = blob; in utilfdt_write_err() local
308 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err()
/scripts/
Drecordmcount.c222 uint32_t *ptr; in make_nop_x86() local
226 ptr = map + offset; in make_nop_x86()
227 if (*ptr != 0) in make_nop_x86()
264 char *ptr; in make_nop_arm() local
269 ptr = map + offset; in make_nop_arm()
270 if (memcmp(ptr, bl_mcount_arm, 4) == 0) { in make_nop_arm()
271 if (memcmp(ptr - 4, push_arm, 4) == 0) { in make_nop_arm()
277 } else if (memcmp(ptr - 2, push_bl_mcount_thumb, 6) == 0) { in make_nop_arm()
300 uint32_t *ptr; in make_nop_arm64() local
302 ptr = map + offset; in make_nop_arm64()
[all …]
Dcheckpatch.pl2842 my $ptr = substr($blank, 0, length($utf8_prefix)) . "^";
2843 my $hereptr = "$hereline$ptr\n";
4389 my $ptr = substr($blank, 0, $off) . "^";
4390 my $hereptr = "$hereline$ptr\n";
5658 my $ptr = $1;
5660 if ((($ptr =~ /\b(union|struct)\s+$attr\b/ &&
5663 ($ptr !~ /\b(union|struct)\s+$attr\b/ &&
/scripts/mod/
Dmodpost.h97 #define NOFAIL(ptr) do_nofail((ptr), #ptr) argument
98 void *do_nofail(void *ptr, const char *expr);
Dmodpost.c114 void *do_nofail(void *ptr, const char *expr) in do_nofail() argument
116 if (!ptr) in do_nofail()
119 return ptr; in do_nofail()
/scripts/gdb/linux/
Dutils.py50 def container_of(ptr, typeobj, member): argument
51 return (ptr.cast(get_long_type()) -
65 def invoke(self, ptr, typename, elementname): argument
66 return container_of(ptr, gdb.lookup_type(typename.string()).pointer(),
/scripts/atomic/
Dgen-atomic-instrumented.sh109 typeof(ptr) __ai_ptr = (ptr); \\
/scripts/dtc/libfdt/
Dfdt_sw.c319 void *ptr; in fdt_property() local
322 ret = fdt_property_placeholder(fdt, name, len, &ptr); in fdt_property()
325 memcpy(ptr, val, len); in fdt_property()
/scripts/kconfig/lxdialog/
Dutil.c628 void item_set_data(void *ptr) in item_set_data() argument
630 item_cur->node.data = ptr; in item_set_data()