Home
last modified time | relevance | path

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

/linux/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, days; 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()
/linux/arch/s390/include/asm/
H A Dtimex.h28 __uint128_t tod : 64; /* bits 0-63 of tod clock */ member
70 static __always_inline void store_tod_clock_ext(union tod_clock *tod) in store_tod_clock_ext() argument
72 asm volatile("stcke %0" : "=Q" (*tod) : : "cc"); in store_tod_clock_ext()
189 return clk.tod; in get_tod_clock()
206 return get_tod_clock() - tod_clock_base.tod; in __get_tod_clock_monotonic()
218 unsigned long tod; in get_tod_clock_monotonic() local
221 tod = __get_tod_clock_monotonic(); in get_tod_clock_monotonic()
223 return tod; in get_tod_clock_monotonic()
/linux/tools/perf/util/
H A Ddebug.c75 struct timeval tod; in fprintf_time() local
82 if (gettimeofday(&tod, NULL) != 0) in fprintf_time()
85 if (localtime_r(&tod.tv_sec, &ltime) == NULL) in fprintf_time()
89 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.c1397 bool tod) in ctf_writer__setup_clock() argument
1403 if (tod) { in ctf_writer__setup_clock()
1511 struct perf_session *session, bool tod) in ctf_writer__init() argument
1535 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()
H A Ddata-convert-json.c354 if (opts->tod) { in bt_convert__perf2json()
/linux/tools/perf/
H A Dbuiltin-data.c44 OPT_BOOLEAN(0, "tod", &opts.tod, "Convert time to wall clock time"),
H A Dbuiltin-script.c639 bool tod = false; in perf_session__check_output_opt() local
670 tod |= output[j].fields & PERF_OUTPUT_TOD; in perf_session__check_output_opt()
711 if (tod && !perf_session__env(session)->clock.enabled) { in perf_session__check_output_opt()
/linux/tools/perf/Documentation/
H A Dperf-data.txt33 --tod::
/linux/drivers/ptp/
H A Dptp_clockmatrix.h109 u8 tod; member
H A Dptp_ocp.c334 struct tod_reg __iomem *tod; member
610 OCP_MEM_RESOURCE(tod),
942 OCP_MEM_RESOURCE(tod),
1552 if (bp->tod) { in ptp_ocp_watchdog()
1553 status = ioread32(&bp->tod->utc_status); in ptp_ocp_watchdog()
1633 ctrl = ioread32(&bp->tod->ctrl); in ptp_ocp_tod_init()
1636 iowrite32(ctrl, &bp->tod->ctrl); in ptp_ocp_tod_init()
1638 reg = ioread32(&bp->tod->utc_status); in ptp_ocp_tod_init()
3681 val = ioread32(&bp->tod->adj_sec); in tod_correction_show()
3706 iowrite32(val, &bp->tod->adj_sec); in tod_correction_store()
[all …]
/linux/arch/parisc/include/asm/
H A Dpdc.h66 int pdc_tod_read(struct pdc_tod *tod);
/linux/Documentation/virt/kvm/s390/
H A Ds390-pv-dump.rst42 point, vector, control and tod/timers of a vcpu. The vcpu dump can
/linux/arch/parisc/kernel/
H A Dfirmware.c1088 int pdc_tod_read(struct pdc_tod *tod) in pdc_tod_read() argument
1096 memcpy(tod, pdc_result, sizeof(*tod)); in pdc_tod_read()
/linux/arch/s390/kvm/
H A Dkvm-s390.c1283 gtod.epoch_idx, gtod.tod); in kvm_s390_set_tod_ext()
1307 if (copy_from_user(&gtod.tod, (void __user *)attr->addr, in kvm_s390_set_tod_low()
1308 sizeof(gtod.tod))) in kvm_s390_set_tod_low()
1312 VM_EVENT(kvm, 3, "SET: TOD base: 0x%llx", gtod.tod); in kvm_s390_set_tod_low()
1362 gtod->tod = clk.tod + kvm->arch.epoch; in kvm_s390_get_tod_clock()
1366 if (gtod->tod < clk.tod) in kvm_s390_get_tod_clock()
1383 gtod.epoch_idx, gtod.tod); in kvm_s390_get_tod_ext()
4563 kvm->arch.epoch = gtod->tod - clk.tod; in __kvm_s390_set_tod_clock()
4567 if (kvm->arch.epoch > gtod->tod) in __kvm_s390_set_tod_clock()
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt843 [S390] tod