Lines Matching refs:alrm_data
195 u8 alrm_data[NUM_ALARM_REGS]; in rk808_rtc_readalarm() local
201 alrm_data, NUM_ALARM_REGS); in rk808_rtc_readalarm()
207 alrm->time.tm_sec = bcd2bin(alrm_data[0] & SECONDS_REG_MSK); in rk808_rtc_readalarm()
208 alrm->time.tm_min = bcd2bin(alrm_data[1] & MINUTES_REG_MAK); in rk808_rtc_readalarm()
209 alrm->time.tm_hour = bcd2bin(alrm_data[2] & HOURS_REG_MSK); in rk808_rtc_readalarm()
210 alrm->time.tm_mday = bcd2bin(alrm_data[3] & DAYS_REG_MSK); in rk808_rtc_readalarm()
211 alrm->time.tm_mon = (bcd2bin(alrm_data[4] & MONTHS_REG_MSK)) - 1; in rk808_rtc_readalarm()
212 alrm->time.tm_year = (bcd2bin(alrm_data[5] & YEARS_REG_MSK)) + 100; in rk808_rtc_readalarm()
256 u8 alrm_data[NUM_ALARM_REGS]; in rk808_rtc_setalarm() local
268 alrm_data[0] = bin2bcd(alrm->time.tm_sec); in rk808_rtc_setalarm()
269 alrm_data[1] = bin2bcd(alrm->time.tm_min); in rk808_rtc_setalarm()
270 alrm_data[2] = bin2bcd(alrm->time.tm_hour); in rk808_rtc_setalarm()
271 alrm_data[3] = bin2bcd(alrm->time.tm_mday); in rk808_rtc_setalarm()
272 alrm_data[4] = bin2bcd(alrm->time.tm_mon + 1); in rk808_rtc_setalarm()
273 alrm_data[5] = bin2bcd(alrm->time.tm_year - 100); in rk808_rtc_setalarm()
277 alrm_data, NUM_ALARM_REGS); in rk808_rtc_setalarm()