Lines Matching refs:date
205 unsigned int time, date; in spear_rtc_read_time() local
211 date = readl(config->ioaddr + DATE_REG); in spear_rtc_read_time()
215 tm->tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_time()
216 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_time()
217 tm->tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; in spear_rtc_read_time()
234 unsigned int time, date; in spear_rtc_set_time() local
241 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time()
244 writel(date, config->ioaddr + DATE_REG); in spear_rtc_set_time()
260 unsigned int time, date; in spear_rtc_read_alarm() local
265 date = readl(config->ioaddr + ALARM_DATE_REG); in spear_rtc_read_alarm()
269 alm->time.tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_alarm()
270 alm->time.tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_alarm()
271 alm->time.tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; in spear_rtc_read_alarm()
290 unsigned int time, date; in spear_rtc_set_alarm() local
299 date = (alm->time.tm_mday << MDAY_SHIFT) | (alm->time.tm_mon << in spear_rtc_set_alarm()
303 writel(date, config->ioaddr + ALARM_DATE_REG); in spear_rtc_set_alarm()