Lines Matching refs:pmu_state
114 static volatile enum pmu_state { enum
121 } pmu_state; variable
348 pmu_state = idle; in find_via_pmu()
448 } while (pmu_state != idle); in via_pmu_start()
546 while (interrupt_data[0][0] || pmu_state != idle) { in init_pmu()
551 if (pmu_state == idle) in init_pmu()
1154 if (pmu_state == idle) in pmu_queue_request()
1223 if (req == 0 || pmu_state != idle in pmu_start()
1227 pmu_state = sending; in pmu_start()
1260 } while (pmu_suspended && (adb_int_pending || pmu_state != idle in pmu_poll_adb()
1269 while((pmu_state != idle && pmu_state != locked) || !req->complete) in pmu_wait_complete()
1299 if (!adb_int_pending && pmu_state == idle && !req_awaiting_reply) { in pmu_suspend()
1461 if (pmu_state == reading || pmu_state == reading_intr) in pmu_sr_intr()
1468 switch (pmu_state) { in pmu_sr_intr()
1483 pmu_state = idle; in pmu_sr_intr()
1490 pmu_state = reading; in pmu_sr_intr()
1500 pmu_state = reading_intr; in pmu_sr_intr()
1523 if (pmu_state == reading_intr) { in pmu_sr_intr()
1524 pmu_state = idle; in pmu_sr_intr()
1537 pmu_state = locked; in pmu_sr_intr()
1539 pmu_state = idle; in pmu_sr_intr()
1546 pmu_state); in pmu_sr_intr()
1573 intr, in_8(&via[IER]), pmu_state); in via_pmu_interrupt()
1589 if (pmu_state == idle) { in via_pmu_interrupt()
1597 pmu_state = intack; in via_pmu_interrupt()
1645 if (pmu_state == locked) in pmu_unlock()
1646 pmu_state = idle; in pmu_unlock()
2466 while (pmu_state != idle) in pmu_polled_request()