Lines Matching refs:admin_state_code
15 static const struct admin_state_code VDO_CODE_NORMAL_OPERATION = {
19 const struct admin_state_code *VDO_ADMIN_STATE_NORMAL_OPERATION = &VDO_CODE_NORMAL_OPERATION;
20 static const struct admin_state_code VDO_CODE_OPERATING = {
25 const struct admin_state_code *VDO_ADMIN_STATE_OPERATING = &VDO_CODE_OPERATING;
26 static const struct admin_state_code VDO_CODE_FORMATTING = {
31 const struct admin_state_code *VDO_ADMIN_STATE_FORMATTING = &VDO_CODE_FORMATTING;
32 static const struct admin_state_code VDO_CODE_PRE_LOADING = {
37 const struct admin_state_code *VDO_ADMIN_STATE_PRE_LOADING = &VDO_CODE_PRE_LOADING;
38 static const struct admin_state_code VDO_CODE_PRE_LOADED = {
41 const struct admin_state_code *VDO_ADMIN_STATE_PRE_LOADED = &VDO_CODE_PRE_LOADED;
42 static const struct admin_state_code VDO_CODE_LOADING = {
48 const struct admin_state_code *VDO_ADMIN_STATE_LOADING = &VDO_CODE_LOADING;
49 static const struct admin_state_code VDO_CODE_LOADING_FOR_RECOVERY = {
54 const struct admin_state_code *VDO_ADMIN_STATE_LOADING_FOR_RECOVERY =
56 static const struct admin_state_code VDO_CODE_LOADING_FOR_REBUILD = {
61 const struct admin_state_code *VDO_ADMIN_STATE_LOADING_FOR_REBUILD = &VDO_CODE_LOADING_FOR_REBUILD;
62 static const struct admin_state_code VDO_CODE_WAITING_FOR_RECOVERY = {
66 const struct admin_state_code *VDO_ADMIN_STATE_WAITING_FOR_RECOVERY =
68 static const struct admin_state_code VDO_CODE_NEW = {
72 const struct admin_state_code *VDO_ADMIN_STATE_NEW = &VDO_CODE_NEW;
73 static const struct admin_state_code VDO_CODE_INITIALIZED = {
76 const struct admin_state_code *VDO_ADMIN_STATE_INITIALIZED = &VDO_CODE_INITIALIZED;
77 static const struct admin_state_code VDO_CODE_RECOVERING = {
82 const struct admin_state_code *VDO_ADMIN_STATE_RECOVERING = &VDO_CODE_RECOVERING;
83 static const struct admin_state_code VDO_CODE_REBUILDING = {
88 const struct admin_state_code *VDO_ADMIN_STATE_REBUILDING = &VDO_CODE_REBUILDING;
89 static const struct admin_state_code VDO_CODE_SAVING = {
95 const struct admin_state_code *VDO_ADMIN_STATE_SAVING = &VDO_CODE_SAVING;
96 static const struct admin_state_code VDO_CODE_SAVED = {
100 const struct admin_state_code *VDO_ADMIN_STATE_SAVED = &VDO_CODE_SAVED;
101 static const struct admin_state_code VDO_CODE_SCRUBBING = {
107 const struct admin_state_code *VDO_ADMIN_STATE_SCRUBBING = &VDO_CODE_SCRUBBING;
108 static const struct admin_state_code VDO_CODE_SAVE_FOR_SCRUBBING = {
113 const struct admin_state_code *VDO_ADMIN_STATE_SAVE_FOR_SCRUBBING = &VDO_CODE_SAVE_FOR_SCRUBBING;
114 static const struct admin_state_code VDO_CODE_STOPPING = {
120 const struct admin_state_code *VDO_ADMIN_STATE_STOPPING = &VDO_CODE_STOPPING;
121 static const struct admin_state_code VDO_CODE_STOPPED = {
125 const struct admin_state_code *VDO_ADMIN_STATE_STOPPED = &VDO_CODE_STOPPED;
126 static const struct admin_state_code VDO_CODE_SUSPENDING = {
132 const struct admin_state_code *VDO_ADMIN_STATE_SUSPENDING = &VDO_CODE_SUSPENDING;
133 static const struct admin_state_code VDO_CODE_SUSPENDED = {
137 const struct admin_state_code *VDO_ADMIN_STATE_SUSPENDED = &VDO_CODE_SUSPENDED;
138 static const struct admin_state_code VDO_CODE_SUSPENDED_OPERATION = {
142 const struct admin_state_code *VDO_ADMIN_STATE_SUSPENDED_OPERATION = &VDO_CODE_SUSPENDED_OPERATION;
143 static const struct admin_state_code VDO_CODE_RESUMING = {
147 const struct admin_state_code *VDO_ADMIN_STATE_RESUMING = &VDO_CODE_RESUMING;
157 static const struct admin_state_code *get_next_state(const struct admin_state *state, in get_next_state()
158 const struct admin_state_code *operation) in get_next_state()
160 const struct admin_state_code *code = vdo_get_admin_state_code(state); in get_next_state()
223 const struct admin_state_code *operation, in begin_operation()
228 const struct admin_state_code *next_state = get_next_state(state, operation); in begin_operation()
268 const struct admin_state_code *operation, in start_operation()
286 static bool check_code(bool valid, const struct admin_state_code *code, const char *what, in check_code()
308 static bool __must_check assert_vdo_drain_operation(const struct admin_state_code *operation, in assert_vdo_drain_operation()
323 const struct admin_state_code *operation, in vdo_start_draining()
326 const struct admin_state_code *code = vdo_get_admin_state_code(state); in vdo_start_draining()
372 bool vdo_assert_load_operation(const struct admin_state_code *operation, in vdo_assert_load_operation()
387 const struct admin_state_code *operation, in vdo_start_loading()
421 static bool __must_check assert_vdo_resume_operation(const struct admin_state_code *operation, in assert_vdo_resume_operation()
437 const struct admin_state_code *operation, in vdo_start_resuming()
486 const struct admin_state_code *operation) in vdo_start_operation()
499 const struct admin_state_code *operation, in vdo_start_operation_with_waiter()