Home
last modified time | relevance | path

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

/drivers/rtc/
Drtc-pcap.c45 u32 tod; /* time of day, seconds since midnight */ in pcap_rtc_read_alarm() local
48 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_TODA, &tod); in pcap_rtc_read_alarm()
49 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_alarm()
63 u32 tod, days; in pcap_rtc_set_alarm() local
65 tod = secs % SEC_PER_DAY; in pcap_rtc_set_alarm()
66 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_TODA, tod); in pcap_rtc_set_alarm()
78 u32 tod, days; in pcap_rtc_read_time() local
80 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_TOD, &tod); in pcap_rtc_read_time()
81 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_time()
95 u32 tod, days; in pcap_rtc_set_time() local
[all …]
Drtc-mxc.c119 u32 tod, day, hr, min, sec, temp; in set_alarm_or_time() local
123 day = div_s64_rem(time, 86400, &tod); in set_alarm_or_time()
126 hr = tod / 3600; in set_alarm_or_time()
127 tod -= hr * 3600; in set_alarm_or_time()
130 min = tod / 60; in set_alarm_or_time()
131 sec = tod - min * 60; in set_alarm_or_time()
Drtc-cpcap.c53 unsigned long int tod; in cpcap2rtc_time() local
56 tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); in cpcap2rtc_time()
57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); in cpcap2rtc_time()
/drivers/ptp/
Dptp_ocp.c153 struct tod_reg __iomem *tod; member
262 OCP_MEM_RESOURCE(tod),
619 version = ioread32(&bp->tod->version); in ptp_ocp_tod_info()
623 ctrl = ioread32(&bp->tod->ctrl); in ptp_ocp_tod_info()
626 iowrite32(ctrl, &bp->tod->ctrl); in ptp_ocp_tod_info()
628 ctrl = ioread32(&bp->tod->ctrl); in ptp_ocp_tod_info()
639 reg = ioread32(&bp->tod->status); in ptp_ocp_tod_info()
642 reg = ioread32(&bp->tod->correction_sec); in ptp_ocp_tod_info()
645 reg = ioread32(&bp->tod->utc_status); in ptp_ocp_tod_info()