/kernel/linux/linux-5.10/include/linux/ |
D | ktime.h | 62 #define ktime_add_ns(kt, nsval) ((kt) + (nsval)) argument 68 #define ktime_sub_ns(kt, nsval) ((kt) - (nsval)) argument 77 #define ktime_to_timespec64(kt) ns_to_timespec64((kt)) argument 80 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() argument 82 return kt; in ktime_to_ns() 129 extern s64 __ktime_divns(const ktime_t kt, s64 div); 130 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument 138 s64 ns = kt; in ktime_divns() 144 return __ktime_divns(kt, div); in ktime_divns() 148 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument [all …]
|
D | pps_kernel.h | 93 static inline void timespec_to_pps_ktime(struct pps_ktime *kt, in timespec_to_pps_ktime() argument 96 kt->sec = ts.tv_sec; in timespec_to_pps_ktime() 97 kt->nsec = ts.tv_nsec; in timespec_to_pps_ktime()
|
D | rtc.h | 27 struct rtc_time rtc_ktime_to_tm(ktime_t kt);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | selftest_timeline.c | 261 ktime_t kt; in bench_sync() local 273 kt = ktime_get(); in bench_sync() 283 kt = ktime_sub(ktime_get(), kt); in bench_sync() 285 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 286 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync() 291 kt = ktime_get(); in bench_sync() 299 kt = ktime_sub(ktime_get(), kt); in bench_sync() 300 kt = ktime_sub_ns(kt, (count * prng32_1M * 2) >> 20); in bench_sync() 302 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 307 kt = ktime_get(); in bench_sync() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/ |
D | spu_profiler.c | 135 ktime_t kt; in profile_spus() local 179 kt = profiling_interval; in profile_spus() 182 hrtimer_forward(timer, timer->base->get_time(), kt); in profile_spus() 200 ktime_t kt; in start_spu_profiling_cycles() local 203 kt = profiling_interval; in start_spu_profiling_cycles() 205 hrtimer_set_expires(&timer, kt); in start_spu_profiling_cycles() 216 hrtimer_start(&timer, kt, HRTIMER_MODE_REL); in start_spu_profiling_cycles()
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | dps310.c | 630 s64 kt; in dps310_calculate_pressure() local 639 kt = (s64)kti; in dps310_calculate_pressure() 663 denoms[4] = kt; in dps310_calculate_pressure() 665 denoms[5] = kp * kt; in dps310_calculate_pressure() 667 denoms[6] = kp * kp * kt; in dps310_calculate_pressure() 737 int kt = dps310_get_temp_k(data); in dps310_calculate_temp() local 739 if (kt < 0) in dps310_calculate_temp() 740 return kt; in dps310_calculate_temp() 743 c0 = div_s64((s64)kt * (s64)data->c0, 2); in dps310_calculate_temp() 749 return (int)div_s64(t * 1000LL, kt); in dps310_calculate_temp()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | ptp.c | 452 ktime_t kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_ns_to_ktime_correction() local 454 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_ns_to_ktime_correction() 456 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_ns_to_ktime_correction() 457 return kt; in efx_ptp_s_ns_to_ktime_correction() 526 ktime_t kt; in efx_ptp_s_qns_to_ktime_correction() local 531 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction() 534 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_qns_to_ktime_correction() 536 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_qns_to_ktime_correction() 537 return kt; in efx_ptp_s_qns_to_ktime_correction() 571 ktime_t kt = { 0 }; in efx_ptp_mac_nic_to_ktime_correction() local [all …]
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | bt1-pvt.c | 686 ktime_t kt, cache; in pvt_write_timeout() local 699 cache = kt = ms_to_ktime(val); in pvt_write_timeout() 701 kt = ktime_divns(kt, PVT_SENSORS_NUM); in pvt_write_timeout() 708 kt = ktime_sub_ns(kt, PVT_TOUT_MIN); in pvt_write_timeout() 709 if (ktime_to_ns(kt) < 0) in pvt_write_timeout() 710 kt = ktime_set(0, 0); in pvt_write_timeout() 716 data = ktime_divns(kt * rate, NSEC_PER_SEC); in pvt_write_timeout()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | lib.c | 134 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm() argument 139 ts = ktime_to_timespec64(kt); in rtc_ktime_to_tm()
|
/kernel/linux/linux-5.10/include/net/ |
D | erspan.h | 226 ktime_t kt; in erspan_get_timestamp() local 228 kt = ktime_get_real(); in erspan_get_timestamp() 229 h_usecs = ktime_divns(kt, 100 * NSEC_PER_USEC); in erspan_get_timestamp()
|
D | sock.h | 2463 ktime_t kt; in sock_read_timestamp() local 2467 kt = sk->sk_stamp; in sock_read_timestamp() 2470 return kt; in sock_read_timestamp() 2476 static inline void sock_write_timestamp(struct sock *sk, ktime_t kt) in sock_write_timestamp() argument 2480 sk->sk_stamp = kt; in sock_write_timestamp() 2483 WRITE_ONCE(sk->sk_stamp, kt); in sock_write_timestamp() 2495 ktime_t kt = skb->tstamp; in sock_recv_timestamp() local 2506 (kt && sk->sk_tsflags & SOF_TIMESTAMPING_SOFTWARE) || in sock_recv_timestamp() 2511 sock_write_timestamp(sk, kt); in sock_recv_timestamp()
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
D | serial_ir.c | 321 ktime_t kt; in serial_ir_irq_handler() local 344 kt = ktime_get(); in serial_ir_irq_handler() 358 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 363 delkt = ktime_sub(kt, serial_ir.lastkt); in serial_ir_irq_handler() 370 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 382 serial_ir.lastkt = kt; in serial_ir_irq_handler()
|
/kernel/linux/linux-5.10/lib/ |
D | test_vmalloc.c | 463 ktime_t kt; in test_func() local 490 kt = ktime_get(); in test_func() 501 delta = (u64) ktime_us_delta(ktime_get(), kt); in test_func()
|
/kernel/linux/linux-5.10/drivers/ptp/ |
D | ptp_clock.c | 125 ktime_t kt; in ptp_clock_adjtime() local 137 kt = timespec64_to_ktime(ts); in ptp_clock_adjtime() 138 delta = ktime_to_ns(kt); in ptp_clock_adjtime()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_fence.c | 272 ktime_t kt; in nouveau_fence_wait_legacy() local 284 kt = sleep_time; in nouveau_fence_wait_legacy() 285 schedule_hrtimeout(&kt, HRTIMER_MODE_REL); in nouveau_fence_wait_legacy()
|
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/ |
D | adm1266.c | 432 time64_t kt; in adm1266_set_rtc() local 436 kt = ktime_get_seconds(); in adm1266_set_rtc() 441 write_buf[2 + i] = (kt >> (i * 8)) & 0xFF; in adm1266_set_rtc()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rng/ |
D | sparc_sun_oracle_rng.txt | 9 …- 'SUNW,kt-rng' for Rainbow/Yosemite Falls Platform (SUN SPARC T3/T4), (UltraSPARC KT/Niagara 3 - …
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb-ioctl.c | 370 enum omap_dss_trans_key_type kt; in _omapfb_set_color_key() local 390 kt = OMAP_DSS_COLOR_KEY_GFX_DST; in _omapfb_set_color_key() 393 kt = OMAP_DSS_COLOR_KEY_VID_SRC; in _omapfb_set_color_key() 401 info.trans_key_type = kt; in _omapfb_set_color_key()
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
D | procfs.c | 302 ktime_t kt = ktime_set(mono, NSEC_PER_SEC/2); in ktime_mono_to_real_seconds() local 304 return ktime_divns(ktime_mono_to_real(kt), NSEC_PER_SEC); in ktime_mono_to_real_seconds()
|
/kernel/linux/linux-5.10/kernel/debug/kdb/ |
D | kdb_main.c | 2486 kdbtab_t *kt; in kdb_help() local 2492 for_each_kdbcmd(kt, i) { in kdb_help() 2496 if (!kt->cmd_name) in kdb_help() 2498 if (!kdb_check_flags(kt->cmd_flags, kdb_cmd_enabled, true)) in kdb_help() 2500 if (strlen(kt->cmd_usage) > 20) in kdb_help() 2502 kdb_printf("%-15.15s %-20s%s%s\n", kt->cmd_name, in kdb_help() 2503 kt->cmd_usage, space, kt->cmd_help); in kdb_help()
|
/kernel/linux/linux-5.10/drivers/xen/events/ |
D | events_base.c | 1612 ktime_t kt = ktime_get(); in handle_irq_for_port() local 1615 kt = ktime_add_ms(kt, in handle_irq_for_port() 1617 ctrl->timeout = kt; in handle_irq_for_port() 1618 } else if (kt > ctrl->timeout) { in handle_irq_for_port()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_pmu.c | 142 static inline s64 ktime_since(const ktime_t kt) in ktime_since() argument 144 return ktime_to_ns(ktime_sub(ktime_get(), kt)); in ktime_since()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | sm_make_chunk.c | 1709 ktime_t kt; in sctp_unpack_cookie() local 1787 kt = skb_get_ktime(skb); in sctp_unpack_cookie() 1789 kt = ktime_get_real(); in sctp_unpack_cookie() 1791 if (!asoc && ktime_before(bear_cookie->expiration, kt)) { in sctp_unpack_cookie() 1792 suseconds_t usecs = ktime_to_us(ktime_sub(kt, bear_cookie->expiration)); in sctp_unpack_cookie()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
D | max3420_udc.c | 852 ktime_t kt = ns_to_ktime(1000 * 1000 * 250); /* 250ms */ in max3420_thread() local 863 schedule_hrtimeout(&kt, HRTIMER_MODE_REL); in max3420_thread()
|
/kernel/linux/linux-5.10/kernel/time/ |
D | hrtimer.c | 303 s64 __ktime_divns(const ktime_t kt, s64 div) in __ktime_divns() argument 309 dclc = ktime_to_ns(kt); in __ktime_divns()
|