| /linux/include/linux/ |
| H A D | ktime.h | 60 #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 D | rtc.h | 28 struct rtc_time rtc_ktime_to_tm(ktime_t kt);
|
| H A D | tty.h | 452 int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
|
| H A D | skbuff.h | 4487 static inline void skb_set_delivery_time(struct sk_buff *skb, ktime_t kt, in skb_set_delivery_type_by_clockid() 4490 skb->tstamp = kt; in skb_set_delivery_type_by_clockid() 4492 if (kt) in skb_set_delivery_type_by_clockid() 4499 ktime_t kt, clockid_t clockid) in skb_set_delivery_type_by_clockid() 4514 kt = 0; in skb_clear_delivery_time() 4517 skb_set_delivery_time(skb, kt, tstamp_type); in skb_clear_delivery_time() 4473 skb_set_delivery_time(struct sk_buff * skb,ktime_t kt,u8 tstamp_type) skb_set_delivery_time() argument 4485 skb_set_delivery_type_by_clockid(struct sk_buff * skb,ktime_t kt,clockid_t clockid) skb_set_delivery_type_by_clockid() argument
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_timeline.c | 293 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/rust/helpers/ |
| H A D | time.c | 27 __rust_helper s64 rust_helper_ktime_to_us(const ktime_t kt) in rust_helper_ktime_to_us() argument 29 return ktime_to_us(kt); in rust_helper_ktime_to_us() 32 __rust_helper s64 rust_helper_ktime_to_ms(const ktime_t kt) in rust_helper_ktime_to_ms() argument 34 return ktime_to_ms(kt); in rust_helper_ktime_to_ms()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | ptp.c | 450 ktime_t kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_ns_to_ktime_correction() 452 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_ns_to_ktime_correction() 454 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_ns_to_ktime_correction() 455 return kt; in efx_ptp_s_ns_to_ktime_correction() 524 ktime_t kt; in efx_ptp_s_qns_to_ktime_correction() 529 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction() 532 kt = ktime_add_ns(kt, (u6 in efx_ptp_s_qns_to_ktime_correction() 451 ktime_t kt = ktime_set(nic_major, nic_minor); efx_ptp_s_ns_to_ktime_correction() local 525 ktime_t kt; efx_ptp_s_qns_to_ktime_correction() local 564 ktime_t kt = { 0 }; efx_ptp_mac_nic_to_ktime_correction() local 613 ktime_t kt; efx_siena_ptp_nic_to_kernel_time() local 2105 ktime_t kt; efx_phc_gettime() local [all...] |
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ptp.c | 513 ktime_t kt; in efx_ptp_s_qns_to_ktime_correction() 518 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction() 521 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_qns_to_ktime_correction() 523 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_qns_to_ktime_correction() 524 return kt; in efx_ptp_s_qns_to_ktime_correction() 558 ktime_t kt = { 0 }; in efx_ptp_mac_nic_to_ktime_correction() 597 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction() 600 return kt; in efx_ptp_mac_nic_to_ktime_correction() 512 ktime_t kt; efx_ptp_s_qns_to_ktime_correction() local 557 ktime_t kt = { 0 }; efx_ptp_mac_nic_to_ktime_correction() local 606 ktime_t kt; efx_ptp_nic_to_kernel_time() local 2147 ktime_t kt; efx_phc_gettime() local [all...] |
| /linux/include/net/ |
| H A D | erspan.h | 229 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 D | sock.h | 2852 ktime_t kt; in sock_write_timestamp() 2856 kt = sk->sk_stamp; in sock_write_timestamp() 2859 return kt; in sock_write_timestamp() 2865 static inline void sock_write_timestamp(struct sock *sk, ktime_t kt) 2869 sk->sk_stamp = kt; 2872 WRITE_ONCE(sk->sk_stamp, kt); in sock_recv_timestamp() 2890 ktime_t kt = skb->tstamp; in sock_recv_timestamp() 2899 (kt && tsflags & SOF_TIMESTAMPING_SOFTWARE) || 2904 sock_write_timestamp(sk, kt); in sock_recv_cmsgs() 2838 ktime_t kt; sock_read_timestamp() local 2851 sock_write_timestamp(struct sock * sk,ktime_t kt) sock_write_timestamp() argument 2876 ktime_t kt = skb->tstamp; sock_recv_timestamp() local
|
| /linux/drivers/media/rc/ |
| H A D | serial_ir.c | 322 ktime_t kt; in serial_ir_irq_handler() local 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()
|
| /linux/drivers/rtc/ |
| H A D | lib.c | 199 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm() argument 204 ts = ktime_to_timespec64(kt); in rtc_ktime_to_tm()
|
| /linux/fs/smb/server/ |
| H A D | transport_tcp.h | 11 void ksmbd_free_transport(struct ksmbd_transport *kt);
|
| H A D | transport_tcp.c | 139 static void ksmbd_tcp_free_transport(struct ksmbd_transport *kt) in kvec_array_init() 141 struct tcp_transport *t = TCP_TRANS(kt); in kvec_array_init() 98 ksmbd_tcp_free_transport(struct ksmbd_transport * kt) ksmbd_tcp_free_transport() argument
|
| H A D | connection.h | 203 void (*free_transport)(struct ksmbd_transport *kt);
|
| /linux/drivers/s390/crypto/ |
| H A D | pkey_base.c | 120 const struct pkey_handler *pkey_handler_get_keytypebased(enum pkey_key_type kt) in pkey_handler_get_keytypebased() argument 128 if (h->is_supported_keytype(kt)) { in pkey_handler_get_keytypebased()
|
| /linux/kernel/printk/ |
| H A D | nbcon.c | 1377 struct task_struct *kt; in nbcon_kthread_create() local 1384 kt = kthread_run(nbcon_kthread_func, con, "pr/%s%d", con->name, con->index); in nbcon_kthread_create() 1385 if (IS_ERR(kt)) { in nbcon_kthread_create() 1390 con->kthread = kt; in nbcon_kthread_create()
|
| H A D | printk.c | 3732 struct task_struct *kt; in legacy_kthread_create() 3736 kt = kthread_run(legacy_kthread_func, NULL, "pr/legacy"); in legacy_kthread_create() 3737 if (IS_ERR(kt)) { in legacy_kthread_create() 3742 printk_legacy_kthread = kt; in legacy_kthread_create() 3730 struct task_struct *kt; legacy_kthread_create() local
|
| /linux/kernel/debug/kdb/ |
| H A D | kdb_main.c | 2303 kdbtab_t *kt; in kdb_help() 2308 list_for_each_entry(kt, &kdb_cmds_head, list_node) { in kdb_help() 2312 if (!kdb_check_flags(kt->flags, kdb_cmd_enabled, true)) in kdb_help() 2314 if (strlen(kt->usage) > 20) in kdb_help() 2316 kdb_printf("%-15.15s %-20s%s%s\n", kt->name, in kdb_help() 2317 kt->usage, space, kt->help); in kdb_help() 2304 kdbtab_t *kt; kdb_help() local
|
| /linux/drivers/ptp/ |
| H A D | ptp_clock.c | 139 ktime_t kt; in ptp_clock_adjtime() local 159 kt = timespec64_to_ktime(ts); in ptp_clock_adjtime() 160 delta = ktime_to_ns(kt); in ptp_clock_adjtime()
|
| /linux/io_uring/ |
| H A D | rw.c | 1271 ktime_t kt; in io_uring_classic_poll() 1283 kt = ktime_set(0, sleep_time); in io_hybrid_iopoll_delay() 1288 hrtimer_set_expires(&timer.timer, kt); in io_hybrid_iopoll_delay() 1277 ktime_t kt; io_hybrid_iopoll_delay() local
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_pmu.c | 198 static inline s64 ktime_since_raw(const ktime_t kt) in ktime_since_raw() argument 200 return ktime_to_ns(ktime_sub(ktime_get_raw(), kt)); in ktime_since_raw()
|
| /linux/net/sctp/ |
| H A D | sm_make_chunk.c | 1746 ktime_t kt; in sctp_unpack_cookie() 1824 kt = skb_get_ktime(skb); in sctp_unpack_cookie() 1826 kt = ktime_get_real(); in sctp_unpack_cookie() 1831 ktime_before(bear_cookie->expiration, kt)) { in sctp_unpack_cookie() 1832 suseconds_t usecs = ktime_to_us(ktime_sub(kt, bear_cookie->expiration)); in sctp_unpack_cookie() 1736 ktime_t kt; sctp_unpack_cookie() local
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | max3420_udc.c | 848 ktime_t kt = ns_to_ktime(1000 * 1000 * 250); /* 250ms */ in max3420_thread() local 859 schedule_hrtimeout(&kt, HRTIMER_MODE_REL); in max3420_thread()
|
| /linux/net/mac80211/ |
| H A D | status.c | 1391 ktime_t kt = ktime_set(0, 0); in ieee80211_free_txskb() local 1393 ieee80211_report_used_skb(local, skb, true, kt); in ieee80211_free_txskb()
|