Lines Matching refs:scr2_2
147 uint8_t old_scr2, scr2_2; in next_scr2_rtc_update() local
151 scr2_2 = extract32(s->scr2, 8, 8); in next_scr2_rtc_update()
153 if (scr2_2 & 0x1) { in next_scr2_rtc_update()
159 if (((old_scr2 & SCR2_RTCLK) != (scr2_2 & SCR2_RTCLK)) && in next_scr2_rtc_update()
160 ((scr2_2 & SCR2_RTCLK) == 0)) { in next_scr2_rtc_update()
163 ((scr2_2 & SCR2_RTDATA) ? 1 : 0); in next_scr2_rtc_update()
167 ((scr2_2 & SCR2_RTDATA) ? 1 : 0); in next_scr2_rtc_update()
171 scr2_2 = scr2_2 & (~SCR2_RTDATA); in next_scr2_rtc_update()
173 scr2_2 |= SCR2_RTDATA; in next_scr2_rtc_update()
177 ((scr2_2 & SCR2_RTDATA) ? 1 : 0); in next_scr2_rtc_update()
181 scr2_2 = scr2_2 & (~SCR2_RTDATA); in next_scr2_rtc_update()
184 scr2_2 |= SCR2_RTDATA; in next_scr2_rtc_update()
188 ((scr2_2 & SCR2_RTDATA) ? 1 : 0); in next_scr2_rtc_update()
192 scr2_2 = scr2_2 & (~SCR2_RTDATA); in next_scr2_rtc_update()
194 scr2_2 |= SCR2_RTDATA; in next_scr2_rtc_update()
197 ((scr2_2 & SCR2_RTDATA) ? 1 : 0); in next_scr2_rtc_update()
201 scr2_2 = scr2_2 & (~SCR2_RTDATA); in next_scr2_rtc_update()
230 scr2_2 |= SCR2_RTDATA; in next_scr2_rtc_update()
233 ((scr2_2 & SCR2_RTDATA) ? 1 : 0); in next_scr2_rtc_update()
260 s->scr2 = deposit32(s->scr2, 8, 8, scr2_2); in next_scr2_rtc_update()