Searched refs:alrm_data (Results 1 – 1 of 1) sorted by relevance
195 u8 alrm_data[NUM_ALARM_REGS]; in rk808_rtc_readalarm() local201 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() local268 alrm_data[0] = bin2bcd(alrm->time.tm_sec); in rk808_rtc_setalarm()[all …]