Lines Matching refs:x
32 expression x;
37 * x = (T)\(kmalloc(E1, ...)\|vmalloc(E1)\|dma_alloc_coherent(...,E1,...)\|
40 if ((x==NULL) || ...) S
41 * memset((T2)x,0,E1);
49 expression x;
55 - x = kmalloc(E1,E2);
56 + x = kzalloc(E1,E2);
58 - x = (T *)kmalloc(E1,E2);
59 + x = kzalloc(E1,E2);
61 - x = (T)kmalloc(E1,E2);
62 + x = (T)kzalloc(E1,E2);
64 - x = vmalloc(E1);
65 + x = vzalloc(E1);
67 - x = (T *)vmalloc(E1);
68 + x = vzalloc(E1);
70 - x = (T)vmalloc(E1);
71 + x = (T)vzalloc(E1);
73 - x = kmalloc_node(E1,E2,E3);
74 + x = kzalloc_node(E1,E2,E3);
76 - x = (T *)kmalloc_node(E1,E2,E3);
77 + x = kzalloc_node(E1,E2,E3);
79 - x = (T)kmalloc_node(E1,E2,E3);
80 + x = (T)kzalloc_node(E1,E2,E3);
82 - x = kmem_cache_alloc(E3,E4);
83 + x = kmem_cache_zalloc(E3,E4);
85 - x = (T *)kmem_cache_alloc(E3,E4);
86 + x = kmem_cache_zalloc(E3,E4);
88 - x = (T)kmem_cache_alloc(E3,E4);
89 + x = (T)kmem_cache_zalloc(E3,E4);
91 - x = kmem_alloc(E1,E2);
92 + x = kmem_zalloc(E1,E2);
94 - x = (T *)kmem_alloc(E1,E2);
95 + x = kmem_zalloc(E1,E2);
97 - x = (T)kmem_alloc(E1,E2);
98 + x = (T)kmem_zalloc(E1,E2);
100 - x = devm_kmalloc(E2,E1,E3);
101 + x = devm_kzalloc(E2,E1,E3);
103 - x = (T *)devm_kmalloc(E2,E1,E3);
104 + x = devm_kzalloc(E2,E1,E3);
106 - x = (T)devm_kmalloc(E2,E1,E3);
107 + x = (T)devm_kzalloc(E2,E1,E3);
109 - x = kvmalloc(E1,E2);
110 + x = kvzalloc(E1,E2);
112 - x = (T *)kvmalloc(E1,E2);
113 + x = kvzalloc(E1,E2);
115 - x = (T)kvmalloc(E1,E2);
116 + x = (T)kvzalloc(E1,E2);
118 - x = kvmalloc_node(E1,E2,E3);
119 + x = kvzalloc_node(E1,E2,E3);
121 - x = (T *)kvmalloc_node(E1,E2,E3);
122 + x = kvzalloc_node(E1,E2,E3);
124 - x = (T)kvmalloc_node(E1,E2,E3);
125 + x = (T)kvzalloc_node(E1,E2,E3);
127 if ((x==NULL) || ...) S
128 - memset((T2)x,0,E1);
132 expression x;
136 x = (T)dma_alloc_coherent(E1, E2, E3, E4);
137 if ((x==NULL) || ...) S
138 - memset((T2)x, 0, E2);
146 expression x;
152 x = (T)kmalloc@p(E1,E2);
153 if ((x==NULL) || ...) S
154 memset((T2)x,0,E1);
158 x << r.x;
161 msg="%s" % (x)
167 x << r.x;
170 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x)
176 expression x;
182 x = (T)vmalloc@p(E1);
183 if ((x==NULL) || ...) S
184 memset((T2)x,0,E1);
188 x << r1.x;
191 msg="%s" % (x)
197 x << r1.x;
200 msg="WARNING: vzalloc should be used for %s, instead of vmalloc/memset" % (x)
206 expression x;
212 x = (T)dma_alloc_coherent@p(E1,E2,E3,E4);
213 if ((x==NULL) || ...) S
214 memset((T2)x,0,E2);
218 x << r2.x;
221 msg="%s" % (x)
227 x << r2.x;
230 …g="WARNING: dma_alloc_coherent used in %s already zeroes out memory, so memset is not needed" % (x)
236 expression x;
242 x = (T)kmalloc_node@p(E1,E2,E3);
243 if ((x==NULL) || ...) S
244 memset((T2)x,0,E1);
248 x << r3.x;
251 msg="%s" % (x)
257 x << r3.x;
260 msg="WARNING: kzalloc_node should be used for %s, instead of kmalloc_node/memset" % (x)
266 expression x;
272 x = (T)kmem_cache_alloc@p(E2,E3);
273 if ((x==NULL) || ...) S
274 memset((T2)x,0,E1);
278 x << r4.x;
281 msg="%s" % (x)
287 x << r4.x;
290 msg="WARNING: kmem_cache_zalloc should be used for %s, instead of kmem_cache_alloc/memset" % (x)
296 expression x;
302 x = (T)kmem_alloc@p(E1,E2);
303 if ((x==NULL) || ...) S
304 memset((T2)x,0,E1);
308 x << r5.x;
311 msg="%s" % (x)
317 x << r5.x;
320 msg="WARNING: kmem_zalloc should be used for %s, instead of kmem_alloc/memset" % (x)
326 expression x;
332 x = (T)devm_kmalloc@p(E2,E1,E3);
333 if ((x==NULL) || ...) S
334 memset((T2)x,0,E1);
338 x << r6.x;
341 msg="%s" % (x)
347 x << r6.x;
350 msg="WARNING: devm_kzalloc should be used for %s, instead of devm_kmalloc/memset" % (x)
356 expression x;
362 x = (T)kvmalloc@p(E1,E2);
363 if ((x==NULL) || ...) S
364 memset((T2)x,0,E1);
368 x << r7.x;
371 msg="%s" % (x)
377 x << r7.x;
380 msg="WARNING: kvzalloc should be used for %s, instead of kvmalloc/memset" % (x)
386 expression x;
392 x = (T)kvmalloc_node@p(E1,E2,E3);
393 if ((x==NULL) || ...) S
394 memset((T2)x,0,E1);
398 x << r9.x;
401 msg="%s" % (x)
407 x << r9.x;
410 msg="WARNING: kvzalloc_node should be used for %s, instead of kvmalloc_node/memset" % (x)