Lines Matching refs:days
46 u32 days; /* days since 1/1/1970 */ in pcap_rtc_read_alarm() local
51 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); in pcap_rtc_read_alarm()
52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm()
63 u32 tod, days; in pcap_rtc_set_alarm() local
68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm()
69 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); in pcap_rtc_set_alarm()
78 u32 tod, days; in pcap_rtc_read_time() local
83 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAY, &days); in pcap_rtc_read_time()
84 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_time()
95 u32 tod, days; in pcap_rtc_set_time() local
100 days = secs / SEC_PER_DAY; in pcap_rtc_set_time()
101 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAY, days); in pcap_rtc_set_time()