Lines Matching refs:try_catch
18 void __noreturn kunit_try_catch_throw(struct kunit_try_catch *try_catch) in kunit_try_catch_throw() argument
20 try_catch->try_result = -EFAULT; in kunit_try_catch_throw()
21 kthread_complete_and_exit(try_catch->try_completion, -EFAULT); in kunit_try_catch_throw()
27 struct kunit_try_catch *try_catch = data; in kunit_generic_run_threadfn_adapter() local
29 try_catch->try(try_catch->context); in kunit_generic_run_threadfn_adapter()
31 kthread_complete_and_exit(try_catch->try_completion, 0); in kunit_generic_run_threadfn_adapter()
59 void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context) in kunit_try_catch_run() argument
62 struct kunit *test = try_catch->test; in kunit_try_catch_run()
66 try_catch->context = context; in kunit_try_catch_run()
67 try_catch->try_completion = &try_completion; in kunit_try_catch_run()
68 try_catch->try_result = 0; in kunit_try_catch_run()
70 try_catch, "kunit_try_catch_thread"); in kunit_try_catch_run()
72 try_catch->catch(try_catch->context); in kunit_try_catch_run()
81 try_catch->try_result = -ETIMEDOUT; in kunit_try_catch_run()
86 exit_code = try_catch->try_result; in kunit_try_catch_run()
92 try_catch->try_result = 0; in kunit_try_catch_run()
100 try_catch->catch(try_catch->context); in kunit_try_catch_run()