Lines Matching refs:admin_state
52 struct admin_state { struct
67 typedef void (*vdo_admin_initiator_fn)(struct admin_state *state); argument
70 vdo_get_admin_state_code(const struct admin_state *state) in vdo_get_admin_state_code()
81 static inline void vdo_set_admin_state_code(struct admin_state *state, in vdo_set_admin_state_code()
87 static inline bool __must_check vdo_is_state_normal(const struct admin_state *state) in vdo_is_state_normal()
92 static inline bool __must_check vdo_is_state_suspending(const struct admin_state *state) in vdo_is_state_suspending()
97 static inline bool __must_check vdo_is_state_saving(const struct admin_state *state) in vdo_is_state_saving()
102 static inline bool __must_check vdo_is_state_saved(const struct admin_state *state) in vdo_is_state_saved()
107 static inline bool __must_check vdo_is_state_draining(const struct admin_state *state) in vdo_is_state_draining()
112 static inline bool __must_check vdo_is_state_loading(const struct admin_state *state) in vdo_is_state_loading()
117 static inline bool __must_check vdo_is_state_resuming(const struct admin_state *state) in vdo_is_state_resuming()
122 static inline bool __must_check vdo_is_state_clean_load(const struct admin_state *state) in vdo_is_state_clean_load()
129 static inline bool __must_check vdo_is_state_quiescing(const struct admin_state *state) in vdo_is_state_quiescing()
134 static inline bool __must_check vdo_is_state_quiescent(const struct admin_state *state) in vdo_is_state_quiescent()
142 bool vdo_start_loading(struct admin_state *state,
146 bool vdo_finish_loading(struct admin_state *state);
148 bool vdo_finish_loading_with_result(struct admin_state *state, int result);
150 bool vdo_start_resuming(struct admin_state *state,
154 bool vdo_finish_resuming(struct admin_state *state);
156 bool vdo_finish_resuming_with_result(struct admin_state *state, int result);
158 int vdo_resume_if_quiescent(struct admin_state *state);
160 bool vdo_start_draining(struct admin_state *state,
164 bool vdo_finish_draining(struct admin_state *state);
166 bool vdo_finish_draining_with_result(struct admin_state *state, int result);
168 int vdo_start_operation(struct admin_state *state,
171 int vdo_start_operation_with_waiter(struct admin_state *state,
176 bool vdo_finish_operation(struct admin_state *state, int result);