Home
last modified time | relevance | path

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

12

/scripts/basic/
A Dfixdep.c244 while ((p = strstr(p, "CONFIG_"))) { in parse_config_file()
245 if (p > start && (isalnum(p[-1]) || p[-1] == '_')) { in parse_config_file()
250 q = p; in parse_config_file()
253 if (str_ends_with(p, q - p, "_MODULE")) in parse_config_file()
263 (q - p == 3 && !memcmp(p, "VAL(", 4))) { in parse_config_file()
270 memcpy(tmp_buf + 4, p, r - p); in parse_config_file()
278 use_config(p, r - p); in parse_config_file()
279 p = q; in parse_config_file()
344 p = m; in parse_dep_file()
345 while (*p && *p != ' ' && *p != '\\' && *p != '\n') in parse_dep_file()
[all …]
/scripts/kconfig/
A Dutil.c86 if (p) in xmalloc()
87 return p; in xmalloc()
95 if (p) in xcalloc()
96 return p; in xcalloc()
103 p = realloc(p, size); in xrealloc()
104 if (p) in xrealloc()
105 return p; in xrealloc()
112 char *p; in xstrdup() local
115 if (p) in xstrdup()
123 char *p; in xstrndup() local
[all …]
A Dpreprocess.c140 FILE *p; in do_shell() local
149 if (!p) { in do_shell()
383 *p = 0; in eval_clause()
394 p++; in eval_clause()
466 p++; in expand_dollar_with_args()
467 q = p; in expand_dollar_with_args()
484 return eval_clause(p, q - p, argc, argv); in expand_dollar_with_args()
508 p++; in __expand_string()
515 in = p; in __expand_string()
522 p++; in __expand_string()
[all …]
A Dconfdata.c46 char *p; in make_parent_dir() local
53 if (!p) in make_parent_dir()
58 p = tmp; in make_parent_dir()
60 p++; in make_parent_dir()
62 while ((p = strchr(p, '/'))) { in make_parent_dir()
63 *p = 0; in make_parent_dir()
69 *p = '/'; in make_parent_dir()
71 p++; in make_parent_dir()
201 if (p[strlen(p) - 1] != '"') { in conf_set_sym_val()
207 p[strlen(p) - 1] = 0; in conf_set_sym_val()
[all …]
A Dstreamline_config.pl448 my ($p) = @_;
450 while ($p =~ /[$valid]/) {
452 if ($p =~ /^[^$valid]*([$valid]+)/) {
455 $p =~ s/^[^$valid]*[$valid]+//;
487 my ($config, $p) = @_;
491 while ($p =~ /[$valid]/) {
493 if ($p =~ /^[^$valid]*([$valid]+)/) {
496 $p =~ s/^[^$valid]*[$valid]+//;
A Dconf.c58 char *p = str; in strip() local
61 while ((isspace(*p))) in strip()
62 p++; in strip()
63 l = strlen(p); in strip()
64 if (p != str) in strip()
65 memmove(str, p, l + 1); in strip()
68 p = str + l - 1; in strip()
69 while ((isspace(*p))) in strip()
70 *p-- = 0; in strip()
/scripts/coccinelle/null/
A Dbadzero.cocci55 position p;
60 * 0@p
63 * 0@p
65 * 0@p
68 * 0@p
73 p << t1.p;
79 p << t1.p;
222 * E == 0@p
224 * E != 0@p
232 p << t3.p;
[all …]
A Dkmerr.cocci24 position p;
28 x@p = f(...);
34 position p1 != withtest.p;
36 position any withtest.p;
42 *x1@p = f(...);
49 position p1 != withtest.p;
52 position any withtest.p;
58 x1@p = f@p2(...);
/scripts/coccinelle/free/
A Difnullfree.cocci39 position p;
43 * \(free@p\|kfree@p\|vfree@p\|debugfs_remove_recursive@p\|
44 * kmem_cache_free@p\|kmem_cache_destroy@p\|gzfree@p\)(E);
47 p << r.p;
50 cocci.print_main("NULL check before that freeing function is not needed", p)
53 p << r.p;
57 coccilib.report.print_report(p[0], msg)
/scripts/dtc/libfdt/
A Dfdt_ro.c111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
265 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen()
266 if (!p) in fdt_path_offset_namelen()
270 p = q; in fdt_path_offset_namelen()
277 p++; in fdt_path_offset_namelen()
281 q = memchr(p, '/', end - p); in fdt_path_offset_namelen()
285 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen()
289 p = q; in fdt_path_offset_namelen()
556 p--; in fdt_get_path()
578 p--; in fdt_get_path()
[all …]
A Dfdt_rw.c58 char *p = splicepoint; in fdt_splice_() local
61 if (((p + oldlen) < p) || ((p + oldlen) > end)) in fdt_splice_()
67 memmove(p + newlen, p + oldlen, end - p - oldlen); in fdt_splice_()
74 int delta = (newn - oldn) * sizeof(*p); in fdt_splice_mem_rsv_()
76 err = fdt_splice_(fdt, p, oldn * sizeof(*p), newn * sizeof(*p)); in fdt_splice_mem_rsv_()
84 static int fdt_splice_struct_(void *fdt, void *p, in fdt_splice_struct_() argument
108 void *p = (char *)fdt in fdt_splice_string_() local
112 if ((err = fdt_splice_(fdt, p, 0, newlen))) in fdt_splice_string_()
131 const char *p; in fdt_find_add_string_() local
140 if (p) in fdt_find_add_string_()
[all …]
A Dfdt.c159 const char *p; in fdt_next_tag() local
173 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
174 } while (p && (*p != '\0')); in fdt_next_tag()
175 if (fdt_chk_basic() && !p) in fdt_next_tag()
299 const char *p; in fdt_find_string_() local
301 for (p = strtab; p <= last; p++) in fdt_find_string_()
302 if (memcmp(p, s, len) == 0) in fdt_find_string_()
303 return p; in fdt_find_string_()
A Dfdt_wip.c53 fdt32_t *p; in fdt_nop_region_() local
55 for (p = start; (char *)p < ((char *)start + len); p++) in fdt_nop_region_()
56 *p = cpu_to_fdt32(FDT_NOP); in fdt_nop_region_()
A Dlibfdt_env.h87 const char *p = memchr(string, 0, max_count); in fdt_strnlen() local
88 return p ? p - string : max_count; in fdt_strnlen()
A Dfdt_sw.c282 const char *p; in fdt_find_add_string_() local
286 p = fdt_find_string_(strtab - strtabsize, strtabsize, s); in fdt_find_add_string_()
287 if (p) in fdt_find_add_string_()
288 return p - strtab; in fdt_find_add_string_()
341 char *p = (char *)fdt; in fdt_finish() local
358 memmove(p + newstroffset, p + oldstroffset, fdt_size_dt_strings(fdt)); in fdt_finish()
/scripts/dtc/
A Dlivetree.c91 while (p) { in reverse_properties()
94 head = p; in reverse_properties()
95 p = next; in reverse_properties()
277 while (*p) in add_property()
278 p = &((*p)->next); in add_property()
280 *p = prop; in add_property()
310 while (*p) in add_child()
311 p = &((*p)->next_sibling); in add_child()
313 *p = child; in add_child()
349 if (p) { in append_to_property()
[all …]
A Ddtc.h110 struct data data_append_data(struct data d, const void *p, int len);
112 const void *p, int len);
180 #define for_each_property_withdel(n, p) \ argument
181 for ((p) = (n)->proplist; (p); (p) = (p)->next)
183 #define for_each_property(n, p) \ argument
184 for_each_property_withdel(n, p) \
185 if (!(p)->deleted)
A Dutil.c64 char *p; in xasprintf() local
68 p = NULL; in xasprintf()
70 p = xrealloc(p, size); in xasprintf()
74 n = vsnprintf(p, size, fmt, ap); in xasprintf()
86 *strp = p; in xasprintf()
87 return strlen(p); in xasprintf()
417 const unsigned char *p = (const unsigned char *)data; in utilfdt_print_data() local
420 printf("%02x%s", *p++, i < len - 1 ? " " : ""); in utilfdt_print_data()
A Dflattree.c449 const char *p; in dump_stringtable_asm() local
452 p = strbuf.val; in dump_stringtable_asm()
455 len = strlen(p); in dump_stringtable_asm()
457 p += len+1; in dump_stringtable_asm()
628 if (p >= inb->limit) in flat_read_string()
661 const char *p; in flat_read_stringtable() local
665 if (p >= inb->limit || p < inb->base) in flat_read_stringtable()
669 if (*p == '\0') in flat_read_stringtable()
672 p++; in flat_read_stringtable()
816 char *p; in dt_from_blob() local
[all …]
A Ddata.c120 struct data data_append_data(struct data d, const void *p, int len) in data_append_data() argument
123 memcpy(d.val + d.len, p, len); in data_append_data()
129 const void *p, int len) in data_insert_at_marker() argument
133 memcpy(d.val + m->offset, p, len); in data_insert_at_marker()
A Dtreesource.c198 const char *p = prop->val.val; in write_propval() local
210 if (! isstring(p[i])) in write_propval()
212 if (p[i] == '\0') in write_propval()
224 if ((p[len-1] == '\0') && (nnotstring == 0) && (nnul < (len-nnul)) in write_propval()
/scripts/coccinelle/misc/
A Dbadty.cocci56 position p;
61 T@p
65 p << r.p;
68 coccilib.org.print_todo(p[0], "WARNING sizeof argument should be pointer type, not structure type")
71 p << r.p;
75 coccilib.report.print_report(p[0], msg)
/scripts/coccinelle/api/alloc/
A Dalloc_cast.cocci77 position p;
80 (T@p *)
84 p << r2.p;
91 coccilib.org.print_safe_todo(p[0], t)
94 p << r2.p;
102 coccilib.report.print_report(p[0], msg)
/scripts/
A Dspdxcheck.py148 def p_expr(self, p): argument
156 def p_error(self, p): argument
157 if not p:
160 raise ParserException(p, 'Syntax error')
220 for p in path.strip('/').split('/'):
221 tree = tree[p]
267 for p in args.path:
268 if os.path.isfile(p):
269 parser.parse_lines(open(p, 'rb'), args.maxlines, p)
270 elif os.path.isdir(p):
[all …]
/scripts/kconfig/lxdialog/
A Dutil.c585 for (p = item_head; p; p = next) { in item_reset()
586 next = p->next; in item_reset()
587 free(p); in item_reset()
596 struct dialog_list *p = malloc(sizeof(*p)); in item_make() local
599 item_cur->next = p; in item_make()
601 item_head = p; in item_make()
602 item_cur = p; in item_make()
603 memset(p, 0, sizeof(*p)); in item_make()
661 for (p = item_head; p; p = p->next) in item_count()
679 for (p = item_head; p; p = p->next) { in item_n()
[all …]

Completed in 37 milliseconds

12