Lines Matching refs:init
146 * @init: a user-supplied function to initialize the result (if needed). If
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.
154 kunit_resource_init_t init,
162 * @init: a user-supplied function to initialize the result (if needed). If
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.
170 kunit_resource_init_t init,
176 return __kunit_add_resource(test, init, free, res, data);
185 * @init: a user-supplied function to initialize the resource data, if needed.
189 * @data: value to pass to init function or set in resource data field.
192 kunit_resource_init_t init,
212 return __kunit_add_resource(test, init, free, res, data);
218 * @init: a user supplied function to initialize the resource.
221 * @context: for the user to pass in arbitrary data to the init function.
238 kunit_resource_init_t init,
252 ret = __kunit_add_resource(test, init, free, res, context);
267 * @init: a user supplied function to initialize the resource.
270 * @context: for the user to pass in arbitrary data to the init function.
281 kunit_resource_init_t init,
293 if (!__kunit_add_resource(test, init, free, res, context))