Lines Matching refs:operation

158 						     const struct admin_state_code *operation)  in get_next_state()  argument
165 if (operation == VDO_ADMIN_STATE_SAVING) in get_next_state()
168 if (operation == VDO_ADMIN_STATE_SUSPENDING) { in get_next_state()
174 if (operation == VDO_ADMIN_STATE_STOPPING) in get_next_state()
177 if (operation == VDO_ADMIN_STATE_PRE_LOADING) in get_next_state()
180 if (operation == VDO_ADMIN_STATE_SUSPENDED_OPERATION) { in get_next_state()
223 const struct admin_state_code *operation, in begin_operation() argument
228 const struct admin_state_code *next_state = get_next_state(state, operation); in begin_operation()
233 operation->name, in begin_operation()
238 operation->name); in begin_operation()
242 vdo_set_admin_state_code(state, operation); in begin_operation()
268 const struct admin_state_code *operation, in start_operation() argument
272 return (begin_operation(state, operation, waiter, initiator) == VDO_SUCCESS); in start_operation()
308 static bool __must_check assert_vdo_drain_operation(const struct admin_state_code *operation, in assert_vdo_drain_operation() argument
311 return check_code(operation->draining, operation, "drain operation", waiter); in assert_vdo_drain_operation()
323 const struct admin_state_code *operation, in vdo_start_draining() argument
328 if (!assert_vdo_drain_operation(operation, waiter)) in vdo_start_draining()
338 operation->name, code->name); in vdo_start_draining()
343 return start_operation(state, operation, waiter, initiator); in vdo_start_draining()
372 bool vdo_assert_load_operation(const struct admin_state_code *operation, in vdo_assert_load_operation() argument
375 return check_code(operation->loading, operation, "load operation", waiter); in vdo_assert_load_operation()
387 const struct admin_state_code *operation, 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()
421 static bool __must_check assert_vdo_resume_operation(const struct admin_state_code *operation, in assert_vdo_resume_operation() argument
424 return check_code(operation == VDO_ADMIN_STATE_RESUMING, operation, in assert_vdo_resume_operation()
437 const struct admin_state_code *operation, 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()
486 const struct admin_state_code *operation) in vdo_start_operation() argument
488 return vdo_start_operation_with_waiter(state, operation, NULL, NULL); in vdo_start_operation()
499 const struct admin_state_code *operation, 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()