Home
last modified time | relevance | path

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

/drivers/rtc/
Drtc-pcap.c46 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
[all …]
Drtc-mc13xxx.c92 unsigned int seconds, days; in mc13xxx_rtc_set_time() local
96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_time()
123 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAY, days); in mc13xxx_rtc_set_time()
158 unsigned int seconds, days; in mc13xxx_rtc_read_alarm() local
173 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days); in mc13xxx_rtc_read_alarm()
189 s1970 = (time64_t)days * SEC_PER_DAY + seconds; in mc13xxx_rtc_read_alarm()
201 u32 seconds, days; in mc13xxx_rtc_set_alarm() local
225 days = div_s64_rem(s1970, SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_alarm()
227 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAYA, days); in mc13xxx_rtc_set_alarm()
Drtc-ftrtc010.c68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local
74 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_read_time()
77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time()
112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local
174 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_probe()
176 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
Dlib.c55 int days; in rtc_time64_to_tm() local
63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
66 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm()
96 udays = ((u32) days) + 719468; in rtc_time64_to_tm()
Dlib_test.c49 s64 days; in rtc_time64_to_tm_test_date_range() local
55 days = div_s64(secs, 86400); in rtc_time64_to_tm_test_date_range()
58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
Drtc-mt6397.c91 int days, sec, ret; in mtk_rtc_read_time() local
112 days = div_s64(time, 86400); in mtk_rtc_read_time()
113 tm->tm_wday = (days + 4) % 7; in mtk_rtc_read_time()
Drtc-rzn1.c81 unsigned int days; in rzn1_rtc_tm_to_wday() local
85 days = div_s64_rem(time, 86400, &secs); in rzn1_rtc_tm_to_wday()
88 return (days + 4) % 7; in rzn1_rtc_tm_to_wday()
Dinterface.c219 unsigned int days; in __rtc_read_alarm() local
357 days = rtc_month_days(alarm->time.tm_mon, in __rtc_read_alarm()
359 } while (days < alarm->time.tm_mday); in __rtc_read_alarm()
/drivers/net/wan/
Dhdlc_cisco.c216 u32 sec, min, hrs, days; in cisco_rx() local
221 days = hrs / 24; hrs -= days * 24; in cisco_rx()
223 days, hrs, min, sec); in cisco_rx()
/drivers/input/misc/
Dhp_sdc_rtc.c186 unsigned int days; in hp_sdc_rtc_read_rt() local
192 days = (unsigned int)(raw >> 24) & 0xffff; in hp_sdc_rtc_read_rt()
195 res->tv_sec = (tenms / 100) + (time64_t)days * 86400; in hp_sdc_rtc_read_rt()
/drivers/platform/x86/dell/
Ddell-laptop.c1169 u8 days; member
1251 info->days = (buffer.output[3] >> 24) & 0xFF; in kbd_get_info()
1467 if (kbd_info.days > 63) in kbd_init_info()
1468 kbd_info.days = 63; in kbd_init_info()
1591 if (value > kbd_info.days) in kbd_led_timeout_store()
1633 } else if (value / (60 * 60 * 24) <= kbd_info.days && kbd_info.days) { in kbd_led_timeout_store()
/drivers/input/mouse/
DKconfig308 They are rather rare these days.
324 They are rather rare these days.
/drivers/net/ppp/
DKconfig14 days support PPP rather than SLIP.
/drivers/base/
DKconfig96 Firmware should not be being built as part of kernel, these days