Lines Matching defs:time
13 #include <linux/time.h>
102 * regenerated every time we set the RTC so it should be a
116 * Read current time and date in RTC
152 u32 time = (time1[0] << 16) | time1[1];
154 rtc_time64_to_tm(time, tm);
160 dev_err(dev, "Timed out reading current time\n");
166 * Set current time and date in RTC
173 unsigned long time, new_time;
177 time = rtc_tm_to_time64(tm);
180 (time >> 16) & 0xffff);
186 ret = wm831x_reg_write(wm831x, WM831X_RTC_TIME_2, time & 0xffff);
192 /* Wait for the update to complete - should happen first time
219 if (new_time - time > 1) {
228 * Read alarm time and date in RTC
235 u32 time;
240 dev_err(dev, "Failed to read alarm time: %d\n", ret);
244 time = (data[0] << 16) | data[1];
246 rtc_time64_to_tm(time, &alrm->time);
283 unsigned long time;
285 time = rtc_tm_to_time64(&alrm->time);
294 (time >> 16) & 0xffff);
300 ret = wm831x_reg_write(wm831x, WM831X_RTC_ALARM_2, time & 0xffff);