Lines Matching refs:state
30 static void slice_set_state(Slice *t, SliceState state) { in slice_set_state() argument
34 if (t->state != state) in slice_set_state()
37 old_state = t->state; in slice_set_state()
38 t->state = state; in slice_set_state()
40 if (state != old_state) in slice_set_state()
44 slice_state_to_string(state)); in slice_set_state()
46 unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], 0); in slice_set_state()
198 assert(t->state == SLICE_DEAD); in slice_coldplug()
200 if (t->deserialized_state != t->state) in slice_coldplug()
214 prefix, slice_state_to_string(t->state)); in slice_dump()
224 assert(t->state == SLICE_DEAD); in slice_start()
241 assert(t->state == SLICE_ACTIVE); in slice_stop()
261 (void) serialize_item(f, "state", slice_state_to_string(s->state)); in slice_serialize()
275 SliceState state; in slice_deserialize_item() local
277 state = slice_state_from_string(value); in slice_deserialize_item()
278 if (state < 0) in slice_deserialize_item()
281 s->deserialized_state = state; in slice_deserialize_item()
292 return state_translation_table[SLICE(u)->state]; in slice_active_state()
298 return slice_state_to_string(SLICE(u)->state); in slice_sub_state_to_string()