Lines Matching refs:waiter

203 	if (state->waiter != NULL)  in vdo_finish_operation()
204 vdo_set_completion_result(state->waiter, result); in vdo_finish_operation()
208 if (state->waiter != NULL) in vdo_finish_operation()
209 vdo_launch_completion(vdo_forget(state->waiter)); in vdo_finish_operation()
224 struct vdo_completion *waiter, in begin_operation() argument
235 } else if (state->waiter != NULL) { in begin_operation()
240 state->waiter = waiter; in begin_operation()
254 if (waiter != NULL) in begin_operation()
255 vdo_continue_completion(waiter, result); in begin_operation()
269 struct vdo_completion *waiter, in start_operation() argument
272 return (begin_operation(state, operation, waiter, initiator) == VDO_SUCCESS); in start_operation()
287 struct vdo_completion *waiter) in check_code() argument
296 if (waiter != NULL) in check_code()
297 vdo_continue_completion(waiter, result); in check_code()
309 struct vdo_completion *waiter) in assert_vdo_drain_operation() argument
311 return check_code(operation->draining, operation, "drain operation", waiter); in assert_vdo_drain_operation()
324 struct vdo_completion *waiter, vdo_admin_initiator_fn initiator) in vdo_start_draining() argument
328 if (!assert_vdo_drain_operation(operation, waiter)) in vdo_start_draining()
332 vdo_launch_completion(waiter); in vdo_start_draining()
339 vdo_continue_completion(waiter, VDO_INVALID_ADMIN_STATE); in vdo_start_draining()
343 return start_operation(state, operation, waiter, initiator); in vdo_start_draining()
373 struct vdo_completion *waiter) in vdo_assert_load_operation() argument
375 return check_code(operation->loading, operation, "load operation", waiter); in vdo_assert_load_operation()
388 struct vdo_completion *waiter, vdo_admin_initiator_fn initiator) in vdo_start_loading() argument
390 return (vdo_assert_load_operation(operation, waiter) && in vdo_start_loading()
391 start_operation(state, operation, waiter, initiator)); in vdo_start_loading()
422 struct vdo_completion *waiter) in assert_vdo_resume_operation() argument
425 "resume operation", waiter); in assert_vdo_resume_operation()
438 struct vdo_completion *waiter, vdo_admin_initiator_fn initiator) in vdo_start_resuming() argument
440 return (assert_vdo_resume_operation(operation, waiter) && in vdo_start_resuming()
441 start_operation(state, operation, waiter, initiator)); in vdo_start_resuming()
500 struct vdo_completion *waiter, in vdo_start_operation_with_waiter() argument
503 return (check_code(operation->operating, operation, "operation", waiter) ? in vdo_start_operation_with_waiter()
504 begin_operation(state, operation, waiter, initiator) : in vdo_start_operation_with_waiter()