Lines Matching refs:state
217 static bool test_state(unsigned int *tasks, enum psi_states state, bool oncpu) in test_state() argument
219 switch (state) { in test_state()
501 group->total[PSI_POLL][t->state], 0); in init_triggers()
521 new_stall = group->polling_total[t->state] != total[t->state]; in update_triggers()
542 growth = window_update(&t->win, now, total[t->state]); in update_triggers()
1235 enum psi_states state; in psi_trigger_create() local
1243 state = PSI_IO_SOME + res * 2; in psi_trigger_create()
1245 state = PSI_IO_FULL + res * 2; in psi_trigger_create()
1250 if (res == PSI_IRQ && --state != PSI_IRQ_FULL) in psi_trigger_create()
1254 if (state >= PSI_NONIDLE) in psi_trigger_create()
1269 t->state = state; in psi_trigger_create()
1273 group->total[PSI_POLL][t->state], 0); in psi_trigger_create()
1299 group->nr_triggers[t->state]++; in psi_trigger_create()
1300 group->poll_states |= (1 << t->state); in psi_trigger_create()
1334 group->nr_triggers[t->state]--; in psi_trigger_destroy()
1335 if (!group->nr_triggers[t->state]) in psi_trigger_destroy()
1336 group->poll_states &= ~(1 << t->state); in psi_trigger_destroy()