Lines Matching refs:time
62 * Get time values
84 * Set time values
188 struct rtc_time *alrm_tm = &wkalrm->time;
223 u32 date, time;
230 time = readl(chip->base + SUNXI_RTC_HMS);
232 (time != readl(chip->base + SUNXI_RTC_HMS)));
234 rtc_tm->tm_sec = SUNXI_TIME_GET_SEC_VALUE(time);
235 rtc_tm->tm_min = SUNXI_TIME_GET_MIN_VALUE(time);
236 rtc_tm->tm_hour = SUNXI_TIME_GET_HOUR_VALUE(time);
257 struct rtc_time *alrm_tm = &wkalrm->time;
269 dev_err(dev, "Error in getting time\n");
332 u32 time = 0;
359 time = SUNXI_TIME_SET_SEC_VALUE(rtc_tm->tm_sec) |
366 writel(time, chip->base + SUNXI_RTC_HMS);
376 dev_err(dev, "Failed to set rtc time.\n");
390 dev_err(dev, "Failed to set rtc time.\n");