Lines Matching refs:time
76 time64_t time = rtc_tm_to_time64(tm); in rockchip_to_gregorian() local
77 rtc_time64_to_tm(time + nov2dec_transitions(tm) * 86400, tm); in rockchip_to_gregorian()
83 time64_t time = rtc_tm_to_time64(tm); in gregorian_to_rockchip() local
84 rtc_time64_to_tm(time - extra_days * 86400, tm); in gregorian_to_rockchip()
91 rtc_time64_to_tm(time - (extra_days - 1) * 86400, tm); in gregorian_to_rockchip()
205 alrm->time.tm_sec = bcd2bin(alrm_data[0] & SECONDS_REG_MSK); in rk808_rtc_readalarm()
206 alrm->time.tm_min = bcd2bin(alrm_data[1] & MINUTES_REG_MAK); in rk808_rtc_readalarm()
207 alrm->time.tm_hour = bcd2bin(alrm_data[2] & HOURS_REG_MSK); in rk808_rtc_readalarm()
208 alrm->time.tm_mday = bcd2bin(alrm_data[3] & DAYS_REG_MSK); in rk808_rtc_readalarm()
209 alrm->time.tm_mon = (bcd2bin(alrm_data[4] & MONTHS_REG_MSK)) - 1; in rk808_rtc_readalarm()
210 alrm->time.tm_year = (bcd2bin(alrm_data[5] & YEARS_REG_MSK)) + 100; in rk808_rtc_readalarm()
211 rockchip_to_gregorian(&alrm->time); in rk808_rtc_readalarm()
220 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, in rk808_rtc_readalarm()
221 alrm->time.tm_mday, alrm->time.tm_wday, alrm->time.tm_hour, in rk808_rtc_readalarm()
222 alrm->time.tm_min, alrm->time.tm_sec); in rk808_rtc_readalarm()
265 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, in rk808_rtc_setalarm()
266 alrm->time.tm_mday, alrm->time.tm_wday, alrm->time.tm_hour, in rk808_rtc_setalarm()
267 alrm->time.tm_min, alrm->time.tm_sec); in rk808_rtc_setalarm()
269 gregorian_to_rockchip(&alrm->time); in rk808_rtc_setalarm()
270 alrm_data[0] = bin2bcd(alrm->time.tm_sec); in rk808_rtc_setalarm()
271 alrm_data[1] = bin2bcd(alrm->time.tm_min); in rk808_rtc_setalarm()
272 alrm_data[2] = bin2bcd(alrm->time.tm_hour); in rk808_rtc_setalarm()
273 alrm_data[3] = bin2bcd(alrm->time.tm_mday); in rk808_rtc_setalarm()
274 alrm_data[4] = bin2bcd(alrm->time.tm_mon + 1); in rk808_rtc_setalarm()
275 alrm_data[5] = bin2bcd(alrm->time.tm_year - 100); in rk808_rtc_setalarm()