Lines Matching refs:state
180 struct siphash state; in timer_get_fixed_delay_hash() local
195 siphash24_init(&state, hash_key); in timer_get_fixed_delay_hash()
196 siphash24_compress(&machine_id, sizeof(sd_id128_t), &state); in timer_get_fixed_delay_hash()
197 siphash24_compress_boolean(MANAGER_IS_SYSTEM(UNIT(t)->manager), &state); in timer_get_fixed_delay_hash()
198 siphash24_compress(&uid, sizeof(uid_t), &state); in timer_get_fixed_delay_hash()
199 siphash24_compress_string(UNIT(t)->id, &state); in timer_get_fixed_delay_hash()
201 return siphash24_finalize(&state); in timer_get_fixed_delay_hash()
251 prefix, timer_state_to_string(t->state), in timer_dump()
281 static void timer_set_state(Timer *t, TimerState state) { in timer_set_state() argument
285 if (t->state != state) in timer_set_state()
288 old_state = t->state; in timer_set_state()
289 t->state = state; in timer_set_state()
291 if (state != TIMER_WAITING) { in timer_set_state()
298 if (state != old_state) in timer_set_state()
299 …debug(UNIT(t), "Changed %s -> %s", timer_state_to_string(old_state), timer_state_to_string(state)); in timer_set_state()
301 unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], 0); in timer_set_state()
310 assert(t->state == TIMER_DEAD); in timer_coldplug()
312 if (t->deserialized_state == t->state) in timer_coldplug()
405 if (state_translation_table[t->state] == UNIT_ACTIVE) in timer_enter_waiting()
437 if (state_translation_table[t->state] == UNIT_ACTIVE) in timer_enter_waiting()
619 assert(IN_SET(t->state, TIMER_DEAD, TIMER_FAILED)); in timer_start()
666 assert(IN_SET(t->state, TIMER_WAITING, TIMER_RUNNING, TIMER_ELAPSED)); in timer_stop()
679 (void) serialize_item(f, "state", timer_state_to_string(t->state)); in timer_serialize()
700 TimerState state; in timer_deserialize_item() local
702 state = timer_state_from_string(value); in timer_deserialize_item()
703 if (state < 0) in timer_deserialize_item()
706 t->deserialized_state = state; in timer_deserialize_item()
730 return state_translation_table[TIMER(u)->state]; in timer_active_state()
736 return timer_state_to_string(TIMER(u)->state); in timer_sub_state_to_string()
744 if (t->state != TIMER_WAITING) in timer_dispatch()
766 switch (t->state) { in timer_trigger_notify()
797 if (t->state == TIMER_FAILED) in timer_reset_failed()
809 if (t->state != TIMER_WAITING) in timer_time_change()
834 if (t->state != TIMER_WAITING) in timer_timezone_change()
853 if (t->state != TIMER_DEAD) in timer_clean()