Lines Matching defs:date
42 * Decode time/date into rtc_time structure
47 unsigned int time, date;
52 date = at91_sys_read(calreg);
54 (date != at91_sys_read(calreg)));
65 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */
66 tm->tm_year += bcd2bin((date & AT91_RTC_YEAR) >> 8); /* year */
68 tm->tm_wday = bcd2bin((date & AT91_RTC_DAY) >> 21) - 1; /* day of the week [0-6], Sunday=0 */
69 tm->tm_mon = bcd2bin((date & AT91_RTC_MONTH) >> 16) - 1;
70 tm->tm_mday = bcd2bin((date & AT91_RTC_DATE) >> 24);
74 * Read current time and date in RTC
90 * Set current time and date in RTC
128 * Read alarm time and date in RTC
149 * Set alarm time and date in RTC