Lines Matching refs:old_state
61 int enable, int *old_state) in bd70528_set_wake() argument
70 if (old_state) { in bd70528_set_wake()
72 *old_state |= BD70528_WAKE_STATE_BIT; in bd70528_set_wake()
74 *old_state &= ~BD70528_WAKE_STATE_BIT; in bd70528_set_wake()
76 if (!enable == !(*old_state & BD70528_WAKE_STATE_BIT)) in bd70528_set_wake()
90 int enable, int *old_state) in bd70528_set_elapsed_tmr() argument
112 if (old_state) { in bd70528_set_elapsed_tmr()
114 *old_state |= BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr()
116 *old_state &= ~BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr()
118 if ((!enable) == (!(*old_state & BD70528_ELAPSED_STATE_BIT))) in bd70528_set_elapsed_tmr()
132 int *old_state) in bd70528_set_rtc_based_timers() argument
137 old_state); in bd70528_set_rtc_based_timers()
145 old_state); in bd70528_set_rtc_based_timers()
152 old_state); in bd70528_set_rtc_based_timers()
163 int old_state) in bd70528_re_enable_rtc_based_timers() argument
168 return bd70528_set_rtc_based_timers(r, old_state, NULL); in bd70528_re_enable_rtc_based_timers()
172 int *old_state) in bd70528_disable_rtc_based_timers() argument
177 return bd70528_set_rtc_based_timers(r, 0, old_state); in bd70528_disable_rtc_based_timers()