Lines Matching refs:old_state
51 int enable, int *old_state) in bd70528_set_wake() argument
60 if (old_state) { in bd70528_set_wake()
62 *old_state |= BD70528_WAKE_STATE_BIT; in bd70528_set_wake()
64 *old_state &= ~BD70528_WAKE_STATE_BIT; in bd70528_set_wake()
66 if (!enable == !(*old_state & BD70528_WAKE_STATE_BIT)) in bd70528_set_wake()
80 int enable, int *old_state) in bd70528_set_elapsed_tmr() argument
102 if (old_state) { in bd70528_set_elapsed_tmr()
104 *old_state |= BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr()
106 *old_state &= ~BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr()
108 if ((!enable) == (!(*old_state & BD70528_ELAPSED_STATE_BIT))) in bd70528_set_elapsed_tmr()
122 int *old_state) in bd70528_set_rtc_based_timers() argument
127 old_state); in bd70528_set_rtc_based_timers()
135 old_state); in bd70528_set_rtc_based_timers()
142 old_state); in bd70528_set_rtc_based_timers()
153 int old_state) in bd70528_re_enable_rtc_based_timers() argument
155 return bd70528_set_rtc_based_timers(r, old_state, NULL); in bd70528_re_enable_rtc_based_timers()
159 int *old_state) in bd70528_disable_rtc_based_timers() argument
161 return bd70528_set_rtc_based_timers(r, 0, old_state); in bd70528_disable_rtc_based_timers()