Lines Matching refs:time
60 * Get time values
82 * Set time values
186 struct rtc_time *alrm_tm = &wkalrm->time;
221 u32 date, time;
228 time = readl(chip->base + SUNXI_RTC_HMS);
230 (time != readl(chip->base + SUNXI_RTC_HMS)));
232 rtc_tm->tm_sec = SUNXI_TIME_GET_SEC_VALUE(time);
233 rtc_tm->tm_min = SUNXI_TIME_GET_MIN_VALUE(time);
234 rtc_tm->tm_hour = SUNXI_TIME_GET_HOUR_VALUE(time);
255 struct rtc_time *alrm_tm = &wkalrm->time;
267 dev_err(dev, "Error in getting time\n");
330 u32 time = 0;
357 time = SUNXI_TIME_SET_SEC_VALUE(rtc_tm->tm_sec) |
364 writel(time, chip->base + SUNXI_RTC_HMS);
374 dev_err(dev, "Failed to set rtc time.\n");
388 dev_err(dev, "Failed to set rtc time.\n");