/linux/drivers/ptp/ |
H A D | ptp_s390.c | 28 static struct timespec64 tod_to_timespec64(unsigned long tod) in tod_to_timespec64() argument 30 return ns_to_timespec64(tod_to_ns(tod - TOD_UNIX_EPOCH)); in tod_to_timespec64() 36 union tod_clock tod; in ptp_s390_stcke_gettime() local 41 store_tod_clock_ext(&tod); in ptp_s390_stcke_gettime() 42 *ts = eitod_to_timespec64(&tod); in ptp_s390_stcke_gettime() 49 unsigned long tod; in ptp_s390_qpt_gettime() local 51 ptff(&tod, sizeof(tod), PTFF_QPT); in ptp_s390_qpt_gettime() 52 *ts = tod_to_timespec64(tod); in ptp_s390_qpt_gettime() 69 *device_time = ns_to_ktime(tod_to_ns(clk.tod in s390_arch_ptp_get_crosststamp() [all...] |
H A D | ptp_clockmatrix.h | 109 u8 tod; member
|
H A D | ptp_clockmatrix.c | 292 ref = ptp_find_pin(channel->ptp_clock, PTP_PF_EXTTS, channel->tod); in idtcm_extts_enable() 296 __func__, channel->tod); in idtcm_extts_enable() 2183 /* Set tod addresses */ in configure_channel_tod() 2239 /* Set tod addresses */ in idtcm_enable_channel() 2304 /* Set tod addresses */ in idtcm_enable_extts_channel() 2371 idtcm->channel[0].tod = 0; in set_default_masks() 2372 idtcm->channel[1].tod = 1; in set_default_masks() 2373 idtcm->channel[2].tod = 2; in set_default_masks() 2374 idtcm->channel[3].tod = 3; in set_default_masks()
|
/linux/arch/s390/include/asm/ |
H A D | timex.h | 28 __uint128_t tod : 64; /* bits 0-63 of tod clock */ member 33 __uint128_t eitod : 72; /* epoch index + bits 0-63 tod clock */ 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() 98 #define PTFF_QTO 0x01 /* query tod offset */ 102 #define PTFF_ATO 0x40 /* adjust tod offset */ 103 #define PTFF_STO 0x41 /* set tod offset */ 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; get_tod_clock_monotonic() local [all...] |
/linux/tools/perf/util/ |
H A D | debug.c | 75 struct timeval tod; in fprintf_time() local 82 if (gettimeofday(&tod, NULL) != 0) in fprintf_time() 85 if (localtime_r(&tod.tv_sec, <ime) == NULL) in fprintf_time() 89 return fprintf(file, "[%s.%06lu] ", date, (long)tod.tv_usec); in fprintf_time()
|
H A D | data-convert.h | 10 bool tod; member
|
H A D | data-convert-bt.c | 1397 bool tod) in ctf_writer__setup_clock() argument 1403 if (tod) { in ctf_writer__setup_clock() 1407 pr_err("Can't provide --tod time, missing clock data. " 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 D | data-convert-json.c | 354 if (opts->tod) { in bt_convert__perf2json() 355 pr_err("--tod is currently unsupported for JSON output.\n"); in bt_convert__perf2json()
|
/linux/drivers/rtc/ |
H A D | rtc-cpcap.c | 53 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/tools/perf/ |
H A D | builtin-data.c | 44 OPT_BOOLEAN(0, "tod", &opts.tod, "Convert time to wall clock time"),
|
H A D | builtin-script.c | 207 {.str = "tod", .field = PERF_OUTPUT_TOD}, 645 bool tod = false; in perf_session__check_output_opt() local 676 tod |= output[j].fields & PERF_OUTPUT_TOD; in perf_session__check_output_opt() 717 if (tod && !perf_session__env(session)->clock.enabled) { in perf_session__check_output_opt() 718 pr_err("Can't provide 'tod' time, missing clock data. " in perf_session__check_output_opt() 3760 "phys_addr,metric,misc,srccode,ipc,tod,data_page_size," in cmd_script()
|
/linux/tools/perf/Documentation/ |
H A D | perf-data.txt | 33 --tod::
|
/linux/arch/parisc/include/asm/ |
H A D | pdc.h | 66 int pdc_tod_read(struct pdc_tod *tod);
|
/linux/arch/s390/boot/ |
H A D | startup.c | 117 tod_clock_base.tod = TOD_UNIX_EPOCH; in reset_tod_clock() 136 if (test_facility(139) && (tod_clock_base.tod >> 63)) { in detect_facilities()
|
/linux/Documentation/virt/kvm/s390/ |
H A D | s390-pv-dump.rst | 42 point, vector, control and tod/timers of a vcpu. The vcpu dump can
|
/linux/arch/parisc/kernel/ |
H A D | firmware.c | 1083 * @tod: The return buffer: 1087 int pdc_tod_read(struct pdc_tod *tod) in pdc_tod_read() argument 1095 memcpy(tod, pdc_result, sizeof(*tod)); in pdc_tod_read()
|
/linux/arch/s390/include/uapi/asm/ |
H A D | kvm.h | 406 __u64 tod; member 582 __u64 todpr; /* tod programmable register [ARCH0] */
|
/linux/tools/arch/s390/include/uapi/asm/ |
H A D | kvm.h | 406 __u64 tod; member 582 __u64 todpr; /* tod programmable register [ARCH0] */
|
/linux/arch/s390/kvm/ |
H A D | kvm-s390.c | 1274 gtod.epoch_idx, gtod.tod); in kvm_s390_set_tod_ext() 1298 if (copy_from_user(>od.tod, (void __user *)attr->addr, in kvm_s390_set_tod_low() 1299 sizeof(gtod.tod))) in kvm_s390_set_tod_low() 1303 VM_EVENT(kvm, 3, "SET: TOD base: 0x%llx", gtod.tod); in kvm_s390_set_tod_low() 1353 gtod->tod = clk.tod + kvm->arch.epoch; in kvm_s390_get_tod_clock() 1357 if (gtod->tod < clk.tod) in kvm_s390_get_tod_clock() 1374 gtod.epoch_idx, gtod.tod); in kvm_s390_get_tod_ext() 4675 kvm->arch.epoch = gtod->tod in __kvm_s390_set_tod_clock() [all...] |
H A D | priv.c | 98 rc = read_guest(vcpu, op2, ar, >od.tod, sizeof(gtod.tod)); in handle_set_clock() 102 VCPU_EVENT(vcpu, 3, "SCK: setting guest TOD to 0x%llx", gtod.tod); in handle_set_clock()
|
/linux/include/linux/ |
H A D | ieee80211.h | 1549 u8 tod[6]; member 1563 u32 tod; member
|
/linux/arch/s390/kernel/ |
H A D | perf_cpum_sf.c | 1572 te->progusage2 = tod_clock_base.tod; in aux_sdb_init()
|
H A D | perf_cpum_cf.c | 405 te->tod_base = tod_clock_base.tod; in cfdiag_trailer()
|