Lines Matching refs:suspend_state
117 enum apm_suspend_state suspend_state; member
231 if (as->suspend_state == SUSPEND_PENDING && in apm_read()
233 as->suspend_state = SUSPEND_READ; in apm_read()
279 switch (as->suspend_state) { in apm_ioctl()
286 as->suspend_state = SUSPEND_ACKED; in apm_ioctl()
304 as->suspend_state != SUSPEND_ACKED)) in apm_ioctl()
312 as->suspend_state = SUSPEND_WAIT; in apm_ioctl()
325 as->suspend_state = SUSPEND_NONE; in apm_ioctl()
348 if (as->suspend_state == SUSPEND_PENDING || in apm_release()
349 as->suspend_state == SUSPEND_READ) in apm_release()
553 if (as->suspend_state != SUSPEND_WAIT && as->reader && in apm_suspend_notifier()
555 as->suspend_state = SUSPEND_PENDING; in apm_suspend_notifier()
590 if (as->suspend_state == SUSPEND_PENDING || in apm_suspend_notifier()
591 as->suspend_state == SUSPEND_READ) { in apm_suspend_notifier()
592 as->suspend_state = SUSPEND_ACKTO; in apm_suspend_notifier()
623 if (as->suspend_state == SUSPEND_ACKED) { in apm_suspend_notifier()
631 as->suspend_state = SUSPEND_DONE; in apm_suspend_notifier()