Lines Matching defs:data
26 * @data: for the user to store arbitrary data.
54 * res->data = kmalloc(params->size, params->gfp);
56 * if (!res->data)
64 * kfree(res->data);
84 void *data;
118 * 'res' itself, just res->data
147 * none is supplied, the resource data value is simply set to @data.
148 * If an init function is supplied, @data is passed to it instead.
151 * @data: value to pass to init function or set in resource data field.
157 void *data);
163 * none is supplied, the resource data value is simply set to @data.
164 * If an init function is supplied, @data is passed to it instead.
167 * @data: value to pass to init function or set in resource data field.
173 void *data)
176 return __kunit_add_resource(test, init, free, res, data);
185 * @init: a user-supplied function to initialize the resource data, if needed.
186 * @free: a user-supplied function to free the resource data, if needed.
189 * @data: value to pass to init function or set in resource data field.
196 void *data)
212 return __kunit_add_resource(test, init, free, res, data);
221 * @context: for the user to pass in arbitrary data to the init function.
228 * struct kunit_resource pointer, not just the 'data' pointer. It therefore
270 * @context: for the user to pass in arbitrary data to the init function.
294 return res->data;
317 * kunit_find_resource() - Find a resource using match function/data.
319 * @match: match function to be applied to resources/match data.
320 * @match_data: data to be used in matching.