Home
last modified time | relevance | path

Searched refs:rycr (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/rtc/
Drtc-pxa.c99 static void tm_calc(u32 rycr, u32 rdcr, struct rtc_time *tm) in tm_calc() argument
101 tm->tm_year = ((rycr & RYxR_YEAR_MASK) >> RYxR_YEAR_S) - 1900; in tm_calc()
102 tm->tm_mon = (((rycr & RYxR_MONTH_MASK) >> RYxR_MONTH_S)) - 1; in tm_calc()
103 tm->tm_mday = (rycr & RYxR_DAY_MASK); in tm_calc()
104 tm->tm_wday = ((rycr & RDxR_DOW_MASK) >> RDxR_DOW_S) - 1; in tm_calc()
224 u32 rycr, rdcr; in pxa_rtc_read_time() local
226 rycr = rtc_readl(pxa_rtc, RYCR); in pxa_rtc_read_time()
229 tm_calc(rycr, rdcr, tm); in pxa_rtc_read_time()