Lines Matching refs:name

200 #define KFAIL_POINT_DECLARE(name) \  argument
201 extern struct fail_point _FAIL_POINT_NAME(name)
202 #define _FAIL_POINT_NAME(name) _fail_point_##name argument
204 #define KFAIL_POINT_DEFINE(parent, name, flags) \ argument
205 struct fail_point _FAIL_POINT_NAME(name) = { \
206 .fp_name = #name, \
216 SYSCTL_OID(parent, OID_AUTO, name, \
218 &_FAIL_POINT_NAME(name), 0, fail_point_sysctl, \
220 SYSCTL_OID(parent, OID_AUTO, status_##name, \
222 &_FAIL_POINT_NAME(name), 0, \
225 #define _FAIL_POINT_INIT(parent, name, flags) \ argument
226 static KFAIL_POINT_DEFINE(parent, name, flags)
227 #define _FAIL_POINT_EVAL(name, cond, code...) \ argument
231 fail_point_eval(&_FAIL_POINT_NAME(name), &RETURN_VALUE))) { \
236 #define KFAIL_POINT_EVAL(name, code...) \ argument
237 _FAIL_POINT_EVAL(name, true, code)
247 #define KFAIL_POINT_RETURN(parent, name) \ argument
248 KFAIL_POINT_CODE(parent, name, return RETURN_VALUE)
257 #define KFAIL_POINT_RETURN_VOID(parent, name) \ argument
258 KFAIL_POINT_CODE(parent, name, return)
268 #define KFAIL_POINT_ERROR(parent, name, error_var) \ argument
269 KFAIL_POINT_CODE(parent, name, (error_var) = RETURN_VALUE)
281 #define KFAIL_POINT_GOTO(parent, name, error_var, label) \ argument
282 KFAIL_POINT_CODE(parent, name, (error_var) = RETURN_VALUE; goto label)
297 #define KFAIL_POINT_SLEEP_CALLBACKS(parent, name, pre_func, pre_arg, \ argument
299 KFAIL_POINT_CODE_SLEEP_CALLBACKS(parent, name, pre_func, \
320 #define KFAIL_POINT_CODE_SLEEP_CALLBACKS(parent, name, pre_func, pre_arg, \ argument
323 _FAIL_POINT_INIT(parent, name) \
324 _FAIL_POINT_NAME(name).fp_pre_sleep_fn = pre_func; \
325 _FAIL_POINT_NAME(name).fp_pre_sleep_arg = pre_arg; \
326 _FAIL_POINT_NAME(name).fp_post_sleep_fn = post_func; \
327 _FAIL_POINT_NAME(name).fp_post_sleep_arg = post_arg; \
328 _FAIL_POINT_EVAL(name, true, code) \
342 #define KFAIL_POINT_CODE(parent, name, code...) \ argument
344 _FAIL_POINT_INIT(parent, name, 0) \
345 _FAIL_POINT_EVAL(name, true, code) \
348 #define KFAIL_POINT_CODE_FLAGS(parent, name, flags, code...) \ argument
350 _FAIL_POINT_INIT(parent, name, flags) \
351 _FAIL_POINT_EVAL(name, true, code) \
354 #define KFAIL_POINT_CODE_COND(parent, name, cond, flags, code...) \ argument
356 _FAIL_POINT_INIT(parent, name, flags) \
357 _FAIL_POINT_EVAL(name, cond, code) \