Lines Matching refs:date
202 unsigned int time, date; in spear_rtc_read_time() local
209 date = readl(config->ioaddr + DATE_REG); in spear_rtc_read_time()
214 tm->tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_time()
215 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_time()
216 tm->tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; in spear_rtc_read_time()
233 unsigned int time, date; in spear_rtc_set_time() local
240 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time()
243 writel(date, config->ioaddr + DATE_REG); in spear_rtc_set_time()
259 unsigned int time, date; in spear_rtc_read_alarm() local
264 date = readl(config->ioaddr + ALARM_DATE_REG); in spear_rtc_read_alarm()
268 alm->time.tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_alarm()
269 alm->time.tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_alarm()
270 alm->time.tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; in spear_rtc_read_alarm()
289 unsigned int time, date; in spear_rtc_set_alarm() local
298 date = (alm->time.tm_mday << MDAY_SHIFT) | (alm->time.tm_mon << in spear_rtc_set_alarm()
302 writel(date, config->ioaddr + ALARM_DATE_REG); in spear_rtc_set_alarm()