Lines Matching refs:state

416                 prefix, path_state_to_string(p->state),  in path_dump()
449 static void path_set_state(Path *p, PathState state) { in path_set_state() argument
453 if (p->state != state) in path_set_state()
456 old_state = p->state; in path_set_state()
457 p->state = state; in path_set_state()
459 if (!IN_SET(state, PATH_WAITING, PATH_RUNNING)) in path_set_state()
462 if (state != old_state) in path_set_state()
463 …t_debug(UNIT(p), "Changed %s -> %s", path_state_to_string(old_state), path_state_to_string(state)); in path_set_state()
465 unit_notify(UNIT(p), state_translation_table[old_state], state_translation_table[state], 0); in path_set_state()
474 assert(p->state == PATH_DEAD); in path_coldplug()
476 if (p->deserialized_state != p->state) { in path_coldplug()
600 assert(IN_SET(p->state, PATH_DEAD, PATH_FAILED)); in path_start()
622 assert(IN_SET(p->state, PATH_WAITING, PATH_RUNNING)); in path_stop()
635 (void) serialize_item(f, "state", path_state_to_string(p->state)); in path_serialize()
665 PathState state; in path_deserialize_item() local
667 state = path_state_from_string(value); in path_deserialize_item()
668 if (state < 0) in path_deserialize_item()
671 p->deserialized_state = state; in path_deserialize_item()
723 return state_translation_table[PATH(u)->state]; in path_active_state()
729 return path_state_to_string(PATH(u)->state); in path_sub_state_to_string()
743 if (!IN_SET(p->state, PATH_WAITING, PATH_RUNNING)) in path_dispatch_io()
785 if (!IN_SET(p->state, PATH_WAITING, PATH_RUNNING)) in path_trigger_notify()
798 if (p->state == PATH_RUNNING && in path_trigger_notify()
802 } else if (p->state == PATH_WAITING && in path_trigger_notify()
814 if (p->state == PATH_FAILED) in path_reset_failed()