Home
last modified time | relevance | path

Searched refs:kt (Results 1 – 25 of 39) sorted by relevance

12

/linux/include/linux/
H A Dktime.h60 #define ktime_add_ns(kt, nsval) ((kt) + (nsval)) argument
66 #define ktime_sub_ns(kt, nsval) ((kt) - (nsval)) argument
75 #define ktime_to_timespec64(kt) ns_to_timespec64((kt)) argument
78 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() argument
80 return kt; in ktime_to_ns()
127 extern s64 __ktime_divns(const ktime_t kt, s64 div);
128 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument
136 s64 ns = kt; in ktime_divns()
142 return __ktime_divns(kt, div); in ktime_divns()
146 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument
[all …]
H A Dpps_kernel.h93 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()
H A Drtc.h27 struct rtc_time rtc_ktime_to_tm(ktime_t kt);
H A Dskbuff.h4283 static inline void skb_set_delivery_time(struct sk_buff *skb, ktime_t kt, in skb_set_delivery_time() argument
4286 skb->tstamp = kt; in skb_set_delivery_time()
4288 if (kt) in skb_set_delivery_time()
4295 ktime_t kt, clockid_t clockid) in skb_set_delivery_type_by_clockid() argument
4310 kt = 0; in skb_set_delivery_type_by_clockid()
4313 skb_set_delivery_time(skb, kt, tstamp_type); in skb_set_delivery_type_by_clockid()
H A Dtty.h449 int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
/linux/drivers/gpu/drm/xe/
H A Dxe_tile_sysfs.c36 struct kobj_tile *kt; in xe_tile_sysfs_init() local
39 kt = kzalloc(sizeof(*kt), GFP_KERNEL); in xe_tile_sysfs_init()
40 if (!kt) in xe_tile_sysfs_init()
43 kobject_init(&kt->base, &xe_tile_sysfs_kobj_type); in xe_tile_sysfs_init()
44 kt->tile = tile; in xe_tile_sysfs_init()
46 err = kobject_add(&kt->base, &dev->kobj, "tile%d", tile->id); in xe_tile_sysfs_init()
48 kobject_put(&kt->base); in xe_tile_sysfs_init()
52 tile->sysfs = &kt->base; in xe_tile_sysfs_init()
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_timeline.c293 ktime_t kt; in bench_sync() local
305 kt = ktime_get(); in bench_sync()
315 kt = ktime_sub(ktime_get(), kt); in bench_sync()
317 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
318 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync()
323 kt = ktime_get(); in bench_sync()
331 kt = ktime_sub(ktime_get(), kt); in bench_sync()
332 kt = ktime_sub_ns(kt, (count * prng32_1M * 2) >> 20); in bench_sync()
334 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
339 kt = ktime_get(); in bench_sync()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dptp.c451 ktime_t kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_ns_to_ktime_correction() local
453 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_ns_to_ktime_correction()
455 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_ns_to_ktime_correction()
456 return kt; in efx_ptp_s_ns_to_ktime_correction()
525 ktime_t kt; in efx_ptp_s_qns_to_ktime_correction() local
530 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction()
533 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_qns_to_ktime_correction()
535 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_qns_to_ktime_correction()
536 return kt; in efx_ptp_s_qns_to_ktime_correction()
564 ktime_t kt = { 0 }; in efx_ptp_mac_nic_to_ktime_correction() local
[all …]
/linux/drivers/iio/pressure/
H A Ddps310.c646 s64 kt; in dps310_calculate_pressure() local
657 kt = (s64)kti; in dps310_calculate_pressure()
681 denoms[4] = kt; in dps310_calculate_pressure()
683 denoms[5] = kp * kt; in dps310_calculate_pressure()
685 denoms[6] = kp * kp * kt; in dps310_calculate_pressure()
753 int kt, rc; in dps310_calculate_temp() local
755 rc = dps310_get_temp_k(data, &kt); in dps310_calculate_temp()
760 c0 = div_s64((s64)kt * (s64)data->c0, 2); in dps310_calculate_temp()
766 *val = (int)div_s64(t * 1000LL, kt); in dps310_calculate_temp()
/linux/drivers/hwmon/
H A Dbt1-pvt.c662 ktime_t kt, cache; in pvt_write_timeout() local
675 cache = kt = ms_to_ktime(val); in pvt_write_timeout()
677 kt = ktime_divns(kt, PVT_SENSORS_NUM); in pvt_write_timeout()
684 kt = ktime_sub_ns(kt, PVT_TOUT_MIN); in pvt_write_timeout()
685 if (ktime_to_ns(kt) < 0) in pvt_write_timeout()
686 kt = ktime_set(0, 0); in pvt_write_timeout()
692 data = ktime_divns(kt * rate, NSEC_PER_SEC); in pvt_write_timeout()
/linux/drivers/net/ethernet/sfc/
H A Dptp.c512 ktime_t kt; in efx_ptp_s_qns_to_ktime_correction() local
517 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction()
520 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_qns_to_ktime_correction()
522 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_qns_to_ktime_correction()
523 return kt; in efx_ptp_s_qns_to_ktime_correction()
557 ktime_t kt = { 0 }; in efx_ptp_mac_nic_to_ktime_correction() local
596 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction()
599 return kt; in efx_ptp_mac_nic_to_ktime_correction()
606 ktime_t kt; in efx_ptp_nic_to_kernel_time() local
609 kt = efx_ptp_mac_nic_to_ktime_correction(efx, ptp, in efx_ptp_nic_to_kernel_time()
[all …]
/linux/include/net/
H A Derspan.h229 ktime_t kt; in erspan_get_timestamp() local
231 kt = ktime_get_real(); in erspan_get_timestamp()
232 h_usecs = ktime_divns(kt, 100 * NSEC_PER_USEC); in erspan_get_timestamp()
H A Dsock.h2580 ktime_t kt; in sock_read_timestamp() local
2584 kt = sk->sk_stamp; in sock_read_timestamp()
2587 return kt; in sock_read_timestamp()
2593 static inline void sock_write_timestamp(struct sock *sk, ktime_t kt) in sock_write_timestamp() argument
2597 sk->sk_stamp = kt; in sock_write_timestamp()
2600 WRITE_ONCE(sk->sk_stamp, kt); in sock_write_timestamp()
2614 ktime_t kt = skb->tstamp; in sock_recv_timestamp() local
2623 (kt && tsflags & SOF_TIMESTAMPING_SOFTWARE) || in sock_recv_timestamp()
2628 sock_write_timestamp(sk, kt); in sock_recv_timestamp()
/linux/drivers/media/rc/
H A Dserial_ir.c322 ktime_t kt; in serial_ir_irq_handler()
345 kt = ktime_get(); in serial_ir_irq_handler()
359 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler()
364 delkt = ktime_sub(kt, serial_ir.lastkt); in serial_ir_irq_handler()
371 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler()
383 serial_ir.lastkt = kt; in serial_ir_irq_handler()
321 ktime_t kt; serial_ir_irq_handler() local
/linux/drivers/rtc/
H A Dlib.c187 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm() argument
192 ts = ktime_to_timespec64(kt); in rtc_ktime_to_tm()
/linux/lib/
H A Dtest_vmalloc.c449 ktime_t kt; in test_func() local
473 kt = ktime_get(); in test_func()
484 delta = (u64) ktime_us_delta(ktime_get(), kt); in test_func()
/linux/drivers/hwmon/pmbus/
H A Dadm1266.c431 time64_t kt; in adm1266_set_rtc() local
435 kt = ktime_get_seconds(); in adm1266_set_rtc()
440 write_buf[2 + i] = (kt >> (i * 8)) & 0xFF; in adm1266_set_rtc()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_fence.c288 ktime_t kt; in nouveau_fence_wait_legacy()
300 kt = sleep_time; in nouveau_fence_wait_legacy()
301 schedule_hrtimeout(&kt, HRTIMER_MODE_REL); in nouveau_fence_wait_legacy()
287 ktime_t kt; nouveau_fence_wait_legacy() local
/linux/drivers/video/fbdev/omap2/omapfb/
H A Domapfb-ioctl.c370 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()
/linux/drivers/ptp/
H A Dptp_clock.c133 ktime_t kt; in ptp_clock_adjtime() local
145 kt = timespec64_to_ktime(ts); in ptp_clock_adjtime()
146 delta = ktime_to_ns(kt); in ptp_clock_adjtime()
/linux/Documentation/devicetree/bindings/rng/
H A Dsparc_sun_oracle_rng.txt9 …- 'SUNW,kt-rng' for Rainbow/Yosemite Falls Platform (SUN SPARC T3/T4), (UltraSPARC KT/Niagara 3 - …
/linux/fs/reiserfs/
H A Dprocfs.c302 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()
/linux/kernel/debug/kdb/
H A Dkdb_main.c2406 kdbtab_t *kt; in kdb_help() local
2411 list_for_each_entry(kt, &kdb_cmds_head, list_node) { in kdb_help()
2415 if (!kdb_check_flags(kt->flags, kdb_cmd_enabled, true)) in kdb_help()
2417 if (strlen(kt->usage) > 20) in kdb_help()
2419 kdb_printf("%-15.15s %-20s%s%s\n", kt->name, in kdb_help()
2420 kt->usage, space, kt->help); in kdb_help()
/linux/drivers/xen/events/
H A Devents_base.c1671 ktime_t kt = ktime_get(); in handle_irq_for_port() local
1674 kt = ktime_add_ms(kt, in handle_irq_for_port()
1676 ctrl->timeout = kt; in handle_irq_for_port()
1677 } else if (kt > ctrl->timeout) { in handle_irq_for_port()
/linux/net/sctp/
H A Dsm_make_chunk.c1754 ktime_t kt; in sctp_unpack_cookie() local
1832 kt = skb_get_ktime(skb); in sctp_unpack_cookie()
1834 kt = ktime_get_real(); in sctp_unpack_cookie()
1836 if (!asoc && ktime_before(bear_cookie->expiration, kt)) { in sctp_unpack_cookie()
1837 suseconds_t usecs = ktime_to_us(ktime_sub(kt, bear_cookie->expiration)); in sctp_unpack_cookie()

12