Lines Matching refs:time
152 u32 time = (time1[0] << 16) | time1[1]; in wm831x_rtc_readtime() local
154 rtc_time64_to_tm(time, tm); in wm831x_rtc_readtime()
173 unsigned long time, new_time; in wm831x_rtc_settime() local
177 time = rtc_tm_to_time64(tm); in wm831x_rtc_settime()
180 (time >> 16) & 0xffff); in wm831x_rtc_settime()
186 ret = wm831x_reg_write(wm831x, WM831X_RTC_TIME_2, time & 0xffff); in wm831x_rtc_settime()
219 if (new_time - time > 1) { in wm831x_rtc_settime()
235 u32 time; in wm831x_rtc_readalarm() local
244 time = (data[0] << 16) | data[1]; in wm831x_rtc_readalarm()
246 rtc_time64_to_tm(time, &alrm->time); in wm831x_rtc_readalarm()
283 unsigned long time; in wm831x_rtc_setalarm() local
285 time = rtc_tm_to_time64(&alrm->time); in wm831x_rtc_setalarm()
294 (time >> 16) & 0xffff); in wm831x_rtc_setalarm()
300 ret = wm831x_reg_write(wm831x, WM831X_RTC_ALARM_2, time & 0xffff); in wm831x_rtc_setalarm()