Home
last modified time | relevance | path

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

1234

/scripts/
Dconmakehash.c33 char *p = *p0; in getunicode() local
35 while (*p == ' ' || *p == '\t') in getunicode()
36 p++; in getunicode()
37 if (*p != 'U' || p[1] != '+' || in getunicode()
38 !isxdigit(p[2]) || !isxdigit(p[3]) || !isxdigit(p[4]) || in getunicode()
39 !isxdigit(p[5]) || isxdigit(p[6])) in getunicode()
41 *p0 = p+6; in getunicode()
42 return strtol(p+2,0,16); in getunicode()
84 char *p, *p1; in main() local
116 if ( (p = strchr(buffer, '\n')) != NULL ) in main()
[all …]
Dextract-module-sig.pl48 my $p = $len - length($magic_number);
49 my $raw_magic = substr($buf, $p);
55 $p -= 12;
56 my $raw_info = substr($buf, $p, 12);
75 unless ($p >= $name_len + $kid_len + $sig_len);
77 $p -= $sig_len;
78 my $raw_sig = substr($buf, $p, $sig_len);
79 $p -= $kid_len;
80 my $raw_kid = substr($buf, $p, $kid_len);
81 $p -= $name_len;
[all …]
/scripts/coccinelle/misc/
Dsemicolon.cocci17 position p;
21 default: ...;@p
25 position p;
30 case ...:;@p
36 case ...:;@p
43 case ...:;@p
50 position p != {r_default.p, r_case.p};
56 S@p1;@p
60 p << r1.p;
63 if p[0].line != p1[0].line_end:
[all …]
Dwarn.cocci17 position p;
21 printk@p(...);
25 position p != bad1.p;
28 printk@p(...);
32 p << r1.p;
35 cocci.print_main("printk + WARN_ON can be just WARN",p)
38 p << r1.p;
42 coccilib.report.print_report(p[0],msg)
46 position p != bad1.p;
49 -printk@p(
[all …]
Dirqf_oneshot.cocci20 position p;
23 request_threaded_irq@p(irq, NULL, thread_fn,
31 devm_request_threaded_irq@p(dev, irq, NULL, thread_fn,
42 position p != r1.p;
51 request_threaded_irq@p(irq, NULL, thread_fn, flags, ...);
53 devm_request_threaded_irq@p(dev, irq, NULL, thread_fn, flags, ...);
58 position p != {r1.p,r2.p};
61 request_threaded_irq@p(irq, NULL, thread_fn,
71 devm_request_threaded_irq@p(dev, irq, NULL, thread_fn,
84 position p != {r1.p,r2.p};
[all …]
Dboolinit.cocci91 position p;
95 * t@p == true
97 * true == t@p
99 * t@p != true
101 * true != t@p
103 * t@p == false
105 * false == t@p
107 * t@p != false
109 * false != t@p
114 position p;
[all …]
Dnoderef.cocci55 position p;
60 *x = <+... sizeof@p(x) ...+>
62 *f(...,(T)(x),...,sizeof@p(x),...)
64 *f(...,sizeof@p(x),...,(T)(x),...)
66 *f(...,(T)(x),...,i*sizeof@p(x),...)
68 *f(...,i*sizeof@p(x),...,(T)(x),...)
72 p << r.p;
75 cocci.print_main("application of sizeof to pointer",p)
78 p << r.p;
82 coccilib.report.print_report(p[0],msg)
Difaddr.cocci18 position p;
21 *if@p (&x)
25 p << r.p;
28 cocci.print_main("test of a variable/field address",p)
31 p << r.p;
35 coccilib.report.print_report(p[0],msg)
Dorplus.cocci20 position p;
26 c1@i1 +@p c@i
54 position r.p;
58 * c1 +@p c2
61 p << r.p;
64 cocci.print_main("sum of probable bitmasks, consider |",p)
67 p << r.p;
71 coccilib.report.print_report(p[0],msg)
/scripts/coccinelle/api/
Dmemdup.cocci20 position p;
23 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag);
28 position p;
33 to = \(kmalloc@p\|kzalloc@p\)(x,flag);
37 position p != {r1.p,r2.p};
41 - to = \(kmalloc@p\|kzalloc@p\)(size,flag);
48 position p != {r1.p,r2.p};
52 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
57 p << r.p;
60 coccilib.org.print_todo(p[0], "WARNING opportunity for kmemdup")
[all …]
Dresource_size.cocci50 position p;
53 (res->end@p - res->start) + 1
57 position p != r_org.p;
60 res->end@p - res->start
63 p << r_org.p;
69 coccilib.org.print_todo(p[0], msg_safe)
72 p << r_org.p;
77 coccilib.report.print_report(p[0], msg)
80 p << rbad_org.p;
86 coccilib.org.print_todo(p[0], msg_safe)
[all …]
Dptr_ret.cocci63 p << r1.p1;
66 coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
70 p << r2.p2;
73 coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
76 p << r3.p3;
79 coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
82 p << r1.p1;
85 coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
88 p << r2.p2;
91 coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
[all …]
/scripts/kconfig/
Dutil.c84 void *p = malloc(size); in xmalloc() local
85 if (p) in xmalloc()
86 return p; in xmalloc()
93 void *p = calloc(nmemb, size); in xcalloc() local
94 if (p) in xcalloc()
95 return p; in xcalloc()
100 void *xrealloc(void *p, size_t size) in xrealloc() argument
102 p = realloc(p, size); in xrealloc()
103 if (p) in xrealloc()
104 return p; in xrealloc()
[all …]
Dpreprocess.c143 FILE *p; in do_shell() local
151 p = popen(cmd, "r"); in do_shell()
152 if (!p) { in do_shell()
157 nread = fread(buf, 1, sizeof(buf), p); in do_shell()
173 if (pclose(p) == -1) { in do_shell()
348 char *tmp, *name, *res, *endptr, *prev, *p; in eval_clause() local
368 prev = p = tmp; in eval_clause()
384 while (*p) { in eval_clause()
385 if (nest == 0 && *p == ',') { in eval_clause()
386 *p = 0; in eval_clause()
[all …]
/scripts/coccinelle/free/
Ddevm_free.cocci62 position p;
94 kfree@p(x)
96 kzfree@p(x)
98 __krealloc@p(x, ...)
100 krealloc@p(x, ...)
102 free_pages@p(x, ...)
104 free_page@p(x)
106 free_irq@p(x)
108 iounmap@p(x)
110 ioport_unmap@p(x)
[all …]
Difnullfree.cocci41 position p;
45 * \(kfree@p\|kzfree@p\|debugfs_remove@p\|debugfs_remove_recursive@p\|
46 * usb_free_urb@p\|kmem_cache_destroy@p\|mempool_destroy@p\|
47 * dma_pool_destroy@p\)(E);
50 p << r.p;
53 cocci.print_main("NULL check before that freeing function is not needed", p)
56 p << r.p;
60 coccilib.report.print_report(p[0], msg)
Dkfreeaddr.cocci17 position p;
21 * kfree@p(&e->f)
23 * kzfree@p(&e->f)
27 p << r.p;
30 cocci.print_main("kfree",p)
33 p << r.p;
37 coccilib.report.print_report(p[0],msg)
/scripts/coccinelle/api/alloc/
Dzalloc-simple.cocci139 position p;
142 x = (T)kmalloc@p(E1,E2);
147 p << r.p;
153 coccilib.org.print_todo(p[0], msg_safe)
156 p << r.p;
161 coccilib.report.print_report(p[0], msg)
169 position p;
172 x = (T)vmalloc@p(E1);
177 p << r1.p;
183 coccilib.org.print_todo(p[0], msg_safe)
[all …]
/scripts/basic/
Dfixdep.c242 static void parse_config_file(const char *p) in parse_config_file() argument
245 const char *start = p; in parse_config_file()
247 while ((p = strstr(p, "CONFIG_"))) { in parse_config_file()
248 if (p > start && (isalnum(p[-1]) || p[-1] == '_')) { in parse_config_file()
249 p += 7; in parse_config_file()
252 p += 7; in parse_config_file()
253 q = p; in parse_config_file()
256 if (str_ends_with(p, q - p, "_MODULE")) in parse_config_file()
260 if (r > p) in parse_config_file()
261 use_config(p, r - p); in parse_config_file()
[all …]
/scripts/coccinelle/tests/
Dunsigned_lesser_than_zero.cocci24 position p;
33 (\( v@p < 0 \| v@p <= 0 \| v@p >= 0 \| v@p > 0 \))
36 position r_cmp.p;
46 * (\( v@p <=@e 0 \| v@p >@e 0 \))
50 (\( v@p < 0 \| v@p <= 0 \)) || ... || (\( v >= c \| v > c \))
52 (\( v >= c \| v > c \)) || ... || (\( v@p < 0 \| v@p <= 0 \))
54 (\( v@p >= 0 \| v@p > 0 \)) && ... && (\( v < c \| v <= c \))
56 ((\( v < c \| v <= c \) && ... && \( v@p >= 0 \| v@p > 0 \)))
58 * (\( v@p <@e 0 \| v@p >=@e 0 \))
63 p << r_cmp.p;
[all …]
Ddoublebitand.cocci22 position p;
26 * E@p
29 * E@p
32 * E@p
35 * E@p
38 * !E@p
41 * !E@p
46 p << r.p;
49 cocci.print_main("duplicated argument to & or |",p)
52 p << r.p;
[all …]
Ddoubletest.cocci21 position p;
25 E@p || ... || E
27 E@p && ... && E
32 position r.p;
37 E@p
44 position r.p;
47 *E@p
50 p << r.p;
53 cocci.print_main("duplicated argument to && or ||",p)
56 p << r.p;
[all …]
Dodd_ptr_err.cocci19 position p;
24 PTR_ERR@p(x)
30 position p;
36 PTR_ERR@p(\(e1 ? e2 : x\|e1 ? x : e2\))
38 PTR_ERR@p(x)
45 position p != {ok1.p,ok2.p};
54 PTR_ERR@p(
65 position p != {ok1.p,ok2.p};
76 PTR_ERR@j1@p(
84 position p != {ok1.p,ok2.p};
[all …]
/scripts/dtc/
Dfdtdump.c18 #define PALIGN(p, a) ((void *)(ALIGN((unsigned long)(p), (a)))) argument
19 #define GET_CELL(p) (p += 4, *((const uint32_t *)(p-4))) argument
24 const char *p = data; in print_data() local
35 printf("0x%08x%s", fdt32_to_cpu(GET_CELL(p)), in print_data()
41 printf("%02x%s", *p++, i < len - 1 ? " " : ""); in print_data()
59 const char *p, *s, *t; in dump_blob() local
98 p = p_struct; in dump_blob()
99 while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) { in dump_blob()
104 s = p; in dump_blob()
105 p = PALIGN(p + strlen(s) + 1, 4); in dump_blob()
[all …]
/scripts/coccinelle/null/
Dbadzero.cocci53 position p;
58 * 0@p
61 * 0@p
63 * 0@p
66 * 0@p
71 p << t1.p;
74 coccilib.org.print_todo(p[0], "WARNING comparing pointer to 0")
77 p << t1.p;
80 coccilib.report.print_report(p[0], "WARNING comparing pointer to 0")
169 p << t2.p1;
[all …]

1234