Home
last modified time | relevance | path

Searched refs:tod (Results 1 - 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/rtc/
H A 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, day in pcap_rtc_set_time() local
[all...]
H A Drtc-mxc.c134 u32 tod, day, hr, min, sec, temp; in set_alarm_or_time() local
138 day = div_s64_rem(time, 86400, &tod); in set_alarm_or_time()
141 hr = tod / 3600; in set_alarm_or_time()
142 tod -= hr * 3600; in set_alarm_or_time()
145 min = tod / 60; in set_alarm_or_time()
146 sec = tod - min * 60; in set_alarm_or_time()
H A 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()
/kernel/linux/linux-6.6/drivers/rtc/
H A 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, day in pcap_rtc_set_time() local
[all...]
H A Drtc-mxc.c118 u32 tod, day, hr, min, sec, temp; in set_alarm_or_time() local
122 day = div_s64_rem(time, 86400, &tod); in set_alarm_or_time()
125 hr = tod / 3600; in set_alarm_or_time()
126 tod -= hr * 3600; in set_alarm_or_time()
129 min = tod / 60; in set_alarm_or_time()
130 sec = tod - min * 60; in set_alarm_or_time()
H A 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()
/kernel/linux/linux-6.6/arch/s390/include/asm/
H A Dtimex.h26 __uint128_t tod : 64; /* bits 0-63 of tod clock */ member
31 __uint128_t eitod : 72; /* epoch index + bits 0-63 tod clock */
66 static __always_inline void store_tod_clock_ext(union tod_clock *tod) in store_tod_clock_ext() argument
68 asm volatile("stcke %0" : "=Q" (*tod) : : "cc"); in store_tod_clock_ext()
94 #define PTFF_QTO 0x01 /* query tod offset */
97 #define PTFF_ATO 0x40 /* adjust tod offset */
98 #define PTFF_STO 0x41 /* set tod offset */
185 return clk.tod; in get_tod_clock()
209 return get_tod_clock() - tod_clock_base.tod; in __get_tod_clock_monotonic()
221 unsigned long tod; get_tod_clock_monotonic() local
[all...]
/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dtimex.h60 #define PTFF_QTO 0x01 /* query tod offset */
63 #define PTFF_ATO 0x40 /* adjust tod offset */
64 #define PTFF_STO 0x41 /* set tod offset */
191 unsigned long long tod; in get_tod_clock_monotonic() local
194 tod = get_tod_clock() - *(unsigned long long *) &tod_clock_base[1]; in get_tod_clock_monotonic()
196 return tod; in get_tod_clock_monotonic()
/kernel/linux/linux-6.6/tools/perf/util/
H A Ddebug.c56 struct timeval tod; in fprintf_time() local
63 if (gettimeofday(&tod, NULL) != 0) in fprintf_time()
66 if (localtime_r(&tod.tv_sec, &ltime) == NULL) in fprintf_time()
70 return fprintf(file, "[%s.%06lu] ", date, (long)tod.tv_usec); in fprintf_time()
H A Ddata-convert.h10 bool tod; member
H A Ddata-convert-bt.c1395 bool tod) in ctf_writer__setup_clock()
1401 if (tod) { in ctf_writer__setup_clock()
1405 pr_err("Can't provide --tod time, missing clock data. " in ctf_writer__setup_clock()
1509 struct perf_session *session, bool tod) in ctf_writer__init()
1533 if (ctf_writer__setup_clock(cw, session, tod)) { in ctf_writer__init()
1648 if (ctf_writer__init(cw, path, session, opts->tod)) in bt_convert__perf2ctf()
1393 ctf_writer__setup_clock(struct ctf_writer *cw, struct perf_session *session, bool tod) ctf_writer__setup_clock() argument
1508 ctf_writer__init(struct ctf_writer *cw, const char *path, struct perf_session *session, bool tod) ctf_writer__init() argument
/kernel/linux/linux-5.10/tools/perf/util/
H A Ddata-convert.h8 bool tod; member
H A Ddata-convert-bt.c1389 bool tod) in ctf_writer__setup_clock()
1395 if (tod) { in ctf_writer__setup_clock()
1399 pr_err("Can't provide --tod time, missing clock data. " in ctf_writer__setup_clock()
1503 struct perf_session *session, bool tod) in ctf_writer__init()
1527 if (ctf_writer__setup_clock(cw, session, tod)) { in ctf_writer__init()
1642 if (ctf_writer__init(cw, path, session, opts->tod)) in bt_convert__perf2ctf()
1387 ctf_writer__setup_clock(struct ctf_writer *cw, struct perf_session *session, bool tod) ctf_writer__setup_clock() argument
1502 ctf_writer__init(struct ctf_writer *cw, const char *path, struct perf_session *session, bool tod) ctf_writer__init() argument
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-data.c68 OPT_BOOLEAN(0, "tod", &opts.tod, "Convert time to wall clock time"), in cmd_data_convert()
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-data.c44 OPT_BOOLEAN(0, "tod", &opts.tod, "Convert time to wall clock time"),
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dearly.c72 tod_clock_base.tod = TOD_UNIX_EPOCH; in reset_tod_clock()
239 if (test_facility(139) && (tod_clock_base.tod >> 63)) { in detect_machine_facilities()
/kernel/linux/linux-5.10/arch/parisc/include/asm/
H A Dpdc.h66 int pdc_tod_read(struct pdc_tod *tod);
/kernel/linux/linux-6.6/arch/parisc/include/asm/
H A Dpdc.h66 int pdc_tod_read(struct pdc_tod *tod);
/kernel/linux/linux-6.6/drivers/ptp/
H A Dptp_clockmatrix.h109 u8 tod; member
H A Dptp_ocp.c303 struct tod_reg __iomem *tod; member
573 OCP_MEM_RESOURCE(tod),
1317 if (bp->tod) { in ptp_ocp_watchdog()
1318 status = ioread32(&bp->tod->utc_status); in ptp_ocp_watchdog()
1398 ctrl = ioread32(&bp->tod->ctrl); in ptp_ocp_tod_init()
1401 iowrite32(ctrl, &bp->tod->ctrl); in ptp_ocp_tod_init()
1403 reg = ioread32(&bp->tod->utc_status); in ptp_ocp_tod_init()
3263 val = ioread32(&bp->tod->adj_sec); in tod_correction_show()
3288 iowrite32(val, &bp->tod->adj_sec); in tod_correction_store()
3876 val = ioread32(&bp->tod in ptp_ocp_tod_status_show()
[all...]
H A Dptp_clockmatrix.c304 ref = ptp_find_pin(channel->ptp_clock, PTP_PF_EXTTS, channel->tod); in idtcm_extts_enable()
308 __func__, channel->tod); in idtcm_extts_enable()
2193 /* Set tod addresses */ in configure_channel_tod()
2249 /* Set tod addresses */ in idtcm_enable_channel()
2314 /* Set tod addresses */ in idtcm_enable_extts_channel()
2381 idtcm->channel[0].tod = 0; in set_default_masks()
2382 idtcm->channel[1].tod = 1; in set_default_masks()
2383 idtcm->channel[2].tod = 2; in set_default_masks()
2384 idtcm->channel[3].tod = 3; in set_default_masks()
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/
H A Dkvm.h92 __u64 tod; member
251 __u64 todpr; /* tod programmable register [ARCH0] */
/kernel/linux/linux-6.6/arch/s390/include/uapi/asm/
H A Dkvm.h93 __u64 tod; member
268 __u64 todpr; /* tod programmable register [ARCH0] */
/kernel/linux/linux-5.10/tools/arch/s390/include/uapi/asm/
H A Dkvm.h92 __u64 tod; member
251 __u64 todpr; /* tod programmable register [ARCH0] */
/kernel/linux/linux-6.6/tools/arch/s390/include/uapi/asm/
H A Dkvm.h93 __u64 tod; member
252 __u64 todpr; /* tod programmable register [ARCH0] */

Completed in 23 milliseconds

12