Lines Matching +full:x +full:- +full:size
1 // SPDX-License-Identifier: GPL-2.0-only
8 // Options: --no-includes --include-headers
24 expression E, E1, size;
27 identifier x;
33 * if (size cmp E1 || ...)@p {
37 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
41 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
47 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
49 when != size = E1
53 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
57 * T x = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\|
59 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...);
60 ... when != x = E1
61 when != size = E1
63 * if (x == NULL)@p {
65 * x = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
87 expression E, E1, size, node;
89 identifier flags, x;
94 - if (size cmp E1)
95 - E = kmalloc(size, flags);
96 - else
97 - E = vmalloc(size);
98 + E = kvmalloc(size, flags);
100 - if (size cmp E1)
101 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
102 - else
103 - E = vmalloc(size);
104 + E = kvmalloc(size, GFP_KERNEL);
106 - E = kmalloc(size, flags | __GFP_NOWARN);
107 - if (E == NULL)
108 - E = vmalloc(size);
109 + E = kvmalloc(size, flags);
111 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
112 - if (E == NULL)
113 - E = vmalloc(size);
114 + E = kvmalloc(size, GFP_KERNEL);
116 - T x = kmalloc(size, flags | __GFP_NOWARN);
117 - if (x == NULL)
118 - x = vmalloc(size);
119 + T x = kvmalloc(size, flags);
121 - T x = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
122 - if (x == NULL)
123 - x = vmalloc(size);
124 + T x = kvmalloc(size, GFP_KERNEL);
126 - if (size cmp E1)
127 - E = kzalloc(size, flags);
128 - else
129 - E = vzalloc(size);
130 + E = kvzalloc(size, flags);
132 - if (size cmp E1)
133 - E = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
134 - else
135 - E = vzalloc(size);
136 + E = kvzalloc(size, GFP_KERNEL);
138 - E = kzalloc(size, flags | __GFP_NOWARN);
139 - if (E == NULL)
140 - E = vzalloc(size);
141 + E = kvzalloc(size, flags);
143 - E = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
144 - if (E == NULL)
145 - E = vzalloc(size);
146 + E = kvzalloc(size, GFP_KERNEL);
148 - T x = kzalloc(size, flags | __GFP_NOWARN);
149 - if (x == NULL)
150 - x = vzalloc(size);
151 + T x = kvzalloc(size, flags);
153 - T x = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
154 - if (x == NULL)
155 - x = vzalloc(size);
156 + T x = kvzalloc(size, GFP_KERNEL);
158 - if (size cmp E1)
159 - E = kmalloc_node(size, flags, node);
160 - else
161 - E = vmalloc_node(size, node);
162 + E = kvmalloc_node(size, flags, node);
164 - if (size cmp E1)
165 - E = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
166 - else
167 - E = vmalloc_node(size, node);
168 + E = kvmalloc_node(size, GFP_KERNEL, node);
170 - E = kmalloc_node(size, flags | __GFP_NOWARN, node);
171 - if (E == NULL)
172 - E = vmalloc_node(size, node);
173 + E = kvmalloc_node(size, flags, node);
175 - E = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
176 - if (E == NULL)
177 - E = vmalloc_node(size, node);
178 + E = kvmalloc_node(size, GFP_KERNEL, node);
180 - T x = kmalloc_node(size, flags | __GFP_NOWARN, node);
181 - if (x == NULL)
182 - x = vmalloc_node(size, node);
183 + T x = kvmalloc_node(size, flags, node);
185 - T x = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
186 - if (x == NULL)
187 - x = vmalloc_node(size, node);
188 + T x = kvmalloc_node(size, GFP_KERNEL, node);
190 - if (size cmp E1)
191 - E = kvzalloc_node(size, flags, node);
192 - else
193 - E = vzalloc_node(size, node);
194 + E = kvzalloc_node(size, flags, node);
196 - if (size cmp E1)
197 - E = kvzalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
198 - else
199 - E = vzalloc_node(size, node);
200 + E = kvzalloc_node(size, GFP_KERNEL, node);
202 - E = kvzalloc_node(size, flags | __GFP_NOWARN, node);
203 - if (E == NULL)
204 - E = vzalloc_node(size, node);
205 + E = kvzalloc_node(size, flags, node);
207 - E = kvzalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
208 - if (E == NULL)
209 - E = vzalloc_node(size, node);
210 + E = kvzalloc_node(size, GFP_KERNEL, node);
212 - T x = kvzalloc_node(size, flags | __GFP_NOWARN, node);
213 - if (x == NULL)
214 - x = vzalloc_node(size, node);
215 + T x = kvzalloc_node(size, flags, node);
217 - T x = kvzalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node);
218 - if (x == NULL)
219 - x = vzalloc_node(size, node);
220 + T x = kvzalloc_node(size, GFP_KERNEL, node);
228 - if (is_vmalloc_addr(E))@p
229 - vfree(E);
230 - else
231 - kfree(E);