Lines Matching refs:pmu_state
115 static volatile enum pmu_state { enum
122 } pmu_state; variable
350 pmu_state = idle; in find_via_pmu()
452 } while (pmu_state != idle); in via_pmu_start()
550 while (interrupt_data[0][0] || pmu_state != idle) { in init_pmu()
555 if (pmu_state == idle) in init_pmu()
1159 if (pmu_state == idle) in pmu_queue_request()
1228 if (req == 0 || pmu_state != idle in pmu_start()
1232 pmu_state = sending; in pmu_start()
1265 } while (pmu_suspended && (adb_int_pending || pmu_state != idle in pmu_poll_adb()
1274 while((pmu_state != idle && pmu_state != locked) || !req->complete) in pmu_wait_complete()
1304 if (!adb_int_pending && pmu_state == idle && !req_awaiting_reply) { in pmu_suspend()
1466 if (pmu_state == reading || pmu_state == reading_intr) in pmu_sr_intr()
1473 switch (pmu_state) { in pmu_sr_intr()
1488 pmu_state = idle; in pmu_sr_intr()
1495 pmu_state = reading; in pmu_sr_intr()
1505 pmu_state = reading_intr; in pmu_sr_intr()
1528 if (pmu_state == reading_intr) { in pmu_sr_intr()
1529 pmu_state = idle; in pmu_sr_intr()
1542 pmu_state = locked; in pmu_sr_intr()
1544 pmu_state = idle; in pmu_sr_intr()
1551 pmu_state); in pmu_sr_intr()
1578 intr, in_8(&via[IER]), pmu_state); in via_pmu_interrupt()
1594 if (pmu_state == idle) { in via_pmu_interrupt()
1602 pmu_state = intack; in via_pmu_interrupt()
1650 if (pmu_state == locked) in pmu_unlock()
1651 pmu_state = idle; in pmu_unlock()
2471 while (pmu_state != idle) in pmu_polled_request()