kt 135 arch/powerpc/oprofile/cell/spu_profiler.c ktime_t kt; kt 179 arch/powerpc/oprofile/cell/spu_profiler.c kt = profiling_interval; kt 182 arch/powerpc/oprofile/cell/spu_profiler.c hrtimer_forward(timer, timer->base->get_time(), kt); kt 200 arch/powerpc/oprofile/cell/spu_profiler.c ktime_t kt; kt 203 arch/powerpc/oprofile/cell/spu_profiler.c kt = profiling_interval; kt 205 arch/powerpc/oprofile/cell/spu_profiler.c hrtimer_set_expires(&timer, kt); kt 216 arch/powerpc/oprofile/cell/spu_profiler.c hrtimer_start(&timer, kt, HRTIMER_MODE_REL); kt 554 arch/sparc/kernel/sys_sparc_64.c struct __kernel_timex *kt = (void *)&txc; kt 568 arch/sparc/kernel/sys_sparc_64.c kt->time.tv_usec = txc.time.tv_usec; kt 569 arch/sparc/kernel/sys_sparc_64.c ret = do_adjtimex(kt); kt 570 arch/sparc/kernel/sys_sparc_64.c txc.time.tv_usec = kt->time.tv_usec; kt 578 arch/sparc/kernel/sys_sparc_64.c struct __kernel_timex *kt = (void *)&txc; kt 600 arch/sparc/kernel/sys_sparc_64.c kt->time.tv_usec = txc.time.tv_usec; kt 601 arch/sparc/kernel/sys_sparc_64.c ret = do_clock_adjtime(which_clock, kt); kt 602 arch/sparc/kernel/sys_sparc_64.c txc.time.tv_usec = kt->time.tv_usec; kt 3416 block/blk-mq.c ktime_t kt; kt 3441 block/blk-mq.c kt = nsecs; kt 3445 block/blk-mq.c hrtimer_set_expires(&hs.timer, kt); kt 643 drivers/block/null_blk_main.c ktime_t kt = cmd->nq->dev->completion_nsec; kt 645 drivers/block/null_blk_main.c hrtimer_start(&cmd->timer, kt, HRTIMER_MODE_REL); kt 1866 drivers/gpu/drm/amd/amdgpu/si_dpm.c s64 kt, kv, leakage_w, i_leakage, vddc; kt 1881 drivers/gpu/drm/amd/amdgpu/si_dpm.c kt = drm_fixp_exp(drm_fixp_mul(tmp, temperature)); kt 1882 drivers/gpu/drm/amd/amdgpu/si_dpm.c kt = drm_fixp_div(kt, drm_fixp_exp(drm_fixp_mul(tmp, t_ref))); kt 1885 drivers/gpu/drm/amd/amdgpu/si_dpm.c leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); kt 1904 drivers/gpu/drm/amd/amdgpu/si_dpm.c s64 kt, kv, leakage_w, i_leakage, vddc; kt 1909 drivers/gpu/drm/amd/amdgpu/si_dpm.c kt = div64_s64(drm_int2fixp(fixed_kt), 100000000); kt 1913 drivers/gpu/drm/amd/amdgpu/si_dpm.c leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); kt 255 drivers/gpu/drm/i915/gt/selftest_timeline.c ktime_t kt; kt 267 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_get(); kt 277 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub(ktime_get(), kt); kt 279 drivers/gpu/drm/i915/gt/selftest_timeline.c __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); kt 280 drivers/gpu/drm/i915/gt/selftest_timeline.c prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); kt 285 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_get(); kt 293 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub(ktime_get(), kt); kt 294 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub_ns(kt, (count * prng32_1M * 2) >> 20); kt 296 drivers/gpu/drm/i915/gt/selftest_timeline.c __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); kt 301 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_get(); kt 311 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub(ktime_get(), kt); kt 312 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub_ns(kt, (count * prng32_1M * 2) >> 20); kt 314 drivers/gpu/drm/i915/gt/selftest_timeline.c __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); kt 323 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_get(); kt 328 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub(ktime_get(), kt); kt 330 drivers/gpu/drm/i915/gt/selftest_timeline.c __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); kt 334 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_get(); kt 342 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub(ktime_get(), kt); kt 344 drivers/gpu/drm/i915/gt/selftest_timeline.c __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); kt 354 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_get(); kt 365 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub(ktime_get(), kt); kt 366 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub_ns(kt, (count * prng32_1M * 2) >> 20); kt 368 drivers/gpu/drm/i915/gt/selftest_timeline.c __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); kt 380 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_get(); kt 394 drivers/gpu/drm/i915/gt/selftest_timeline.c kt = ktime_sub(ktime_get(), kt); kt 397 drivers/gpu/drm/i915/gt/selftest_timeline.c (long long)div64_ul(ktime_to_ns(kt), count)); kt 263 drivers/gpu/drm/nouveau/nouveau_fence.c ktime_t kt; kt 275 drivers/gpu/drm/nouveau/nouveau_fence.c kt = sleep_time; kt 276 drivers/gpu/drm/nouveau/nouveau_fence.c schedule_hrtimeout(&kt, HRTIMER_MODE_REL); kt 747 drivers/gpu/drm/radeon/ni_dpm.c s64 kt, kv, leakage_w, i_leakage, vddc, temperature; kt 753 drivers/gpu/drm/radeon/ni_dpm.c kt = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->at), 1000), kt 758 drivers/gpu/drm/radeon/ni_dpm.c leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); kt 1775 drivers/gpu/drm/radeon/si_dpm.c s64 kt, kv, leakage_w, i_leakage, vddc; kt 1790 drivers/gpu/drm/radeon/si_dpm.c kt = drm_fixp_exp(drm_fixp_mul(tmp, temperature)); kt 1791 drivers/gpu/drm/radeon/si_dpm.c kt = drm_fixp_div(kt, drm_fixp_exp(drm_fixp_mul(tmp, t_ref))); kt 1794 drivers/gpu/drm/radeon/si_dpm.c leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); kt 1813 drivers/gpu/drm/radeon/si_dpm.c s64 kt, kv, leakage_w, i_leakage, vddc; kt 1818 drivers/gpu/drm/radeon/si_dpm.c kt = div64_s64(drm_int2fixp(fixed_kt), 100000000); kt 1822 drivers/gpu/drm/radeon/si_dpm.c leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); kt 480 drivers/iio/pressure/dps310.c s64 kt; kt 489 drivers/iio/pressure/dps310.c kt = (s64)kti; kt 513 drivers/iio/pressure/dps310.c denoms[4] = kt; kt 515 drivers/iio/pressure/dps310.c denoms[5] = kp * kt; kt 517 drivers/iio/pressure/dps310.c denoms[6] = kp * kp * kt; kt 587 drivers/iio/pressure/dps310.c int kt = dps310_get_temp_k(data); kt 589 drivers/iio/pressure/dps310.c if (kt < 0) kt 590 drivers/iio/pressure/dps310.c return kt; kt 593 drivers/iio/pressure/dps310.c c0 = div_s64((s64)kt * (s64)data->c0, 2); kt 599 drivers/iio/pressure/dps310.c return (int)div_s64(t * 1000LL, kt); kt 321 drivers/media/rc/serial_ir.c ktime_t kt; kt 344 drivers/media/rc/serial_ir.c kt = ktime_get(); kt 358 drivers/media/rc/serial_ir.c dcd, sense, ktime_to_ns(kt), kt 363 drivers/media/rc/serial_ir.c delkt = ktime_sub(kt, serial_ir.lastkt); kt 370 drivers/media/rc/serial_ir.c dcd, sense, ktime_to_ns(kt), kt 382 drivers/media/rc/serial_ir.c serial_ir.lastkt = kt; kt 451 drivers/net/ethernet/sfc/ptp.c ktime_t kt = ktime_set(nic_major, nic_minor); kt 453 drivers/net/ethernet/sfc/ptp.c kt = ktime_add_ns(kt, (u64)correction); kt 455 drivers/net/ethernet/sfc/ptp.c kt = ktime_sub_ns(kt, (u64)-correction); kt 456 drivers/net/ethernet/sfc/ptp.c return kt; kt 525 drivers/net/ethernet/sfc/ptp.c ktime_t kt; kt 530 drivers/net/ethernet/sfc/ptp.c kt = ktime_set(nic_major, nic_minor); kt 533 drivers/net/ethernet/sfc/ptp.c kt = ktime_add_ns(kt, (u64)correction); kt 535 drivers/net/ethernet/sfc/ptp.c kt = ktime_sub_ns(kt, (u64)-correction); kt 536 drivers/net/ethernet/sfc/ptp.c return kt; kt 564 drivers/net/ethernet/sfc/ptp.c ktime_t kt = { 0 }; kt 603 drivers/net/ethernet/sfc/ptp.c kt = ptp->nic_to_kernel_time(nic_major, nic_minor, kt 606 drivers/net/ethernet/sfc/ptp.c return kt; kt 613 drivers/net/ethernet/sfc/ptp.c ktime_t kt; kt 616 drivers/net/ethernet/sfc/ptp.c kt = efx_ptp_mac_nic_to_ktime_correction(efx, ptp, kt 621 drivers/net/ethernet/sfc/ptp.c kt = ptp->nic_to_kernel_time( kt 625 drivers/net/ethernet/sfc/ptp.c return kt; kt 2124 drivers/net/ethernet/sfc/ptp.c ktime_t kt; kt 2134 drivers/net/ethernet/sfc/ptp.c kt = ptp_data->nic_to_kernel_time( kt 2137 drivers/net/ethernet/sfc/ptp.c *ts = ktime_to_timespec64(kt); kt 125 drivers/ptp/ptp_clock.c ktime_t kt; kt 137 drivers/ptp/ptp_clock.c kt = timespec64_to_ktime(ts); kt 138 drivers/ptp/ptp_clock.c delta = ktime_to_ns(kt); kt 134 drivers/rtc/lib.c struct rtc_time rtc_ktime_to_tm(ktime_t kt) kt 139 drivers/rtc/lib.c ts = ktime_to_timespec64(kt); kt 1771 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c ktime_t kt; kt 1821 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c kt = WAIT_NANO_SECONDS; kt 1827 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c kt = ktime_set(WAIT_SECONDS, 0); kt 1831 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c hrtimer_start(&vscsi->rsp_q_timer.timer, kt, kt 4354 drivers/scsi/scsi_debug.c ktime_t kt; kt 4357 drivers/scsi/scsi_debug.c kt = ns_to_ktime((u64)delta_jiff * (NSEC_PER_SEC / HZ)); kt 4359 drivers/scsi/scsi_debug.c kt = ndelay; kt 4372 drivers/scsi/scsi_debug.c hrtimer_start(&sd_dp->hrt, kt, HRTIMER_MODE_REL_PINNED); kt 370 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c enum omap_dss_trans_key_type kt; kt 390 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c kt = OMAP_DSS_COLOR_KEY_GFX_DST; kt 393 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c kt = OMAP_DSS_COLOR_KEY_VID_SRC; kt 401 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c info.trans_key_type = kt; kt 438 fs/ocfs2/dlmglue.c ktime_t kt; kt 448 fs/ocfs2/dlmglue.c kt = ktime_sub(ktime_get(), mw->mw_lock_start); kt 449 fs/ocfs2/dlmglue.c usec = ktime_to_us(kt); kt 452 fs/ocfs2/dlmglue.c stats->ls_total += ktime_to_ns(kt); kt 456 fs/ocfs2/dlmglue.c stats->ls_total = ktime_to_ns(kt); kt 302 fs/reiserfs/procfs.c ktime_t kt = ktime_set(mono, NSEC_PER_SEC/2); kt 304 fs/reiserfs/procfs.c return ktime_divns(ktime_mono_to_real(kt), NSEC_PER_SEC); kt 61 include/linux/ktime.h #define ktime_add_ns(kt, nsval) ((kt) + (nsval)) kt 67 include/linux/ktime.h #define ktime_sub_ns(kt, nsval) ((kt) - (nsval)) kt 88 include/linux/ktime.h #define ktime_to_timespec(kt) ns_to_timespec((kt)) kt 91 include/linux/ktime.h #define ktime_to_timespec64(kt) ns_to_timespec64((kt)) kt 94 include/linux/ktime.h #define ktime_to_timeval(kt) ns_to_timeval((kt)) kt 97 include/linux/ktime.h static inline s64 ktime_to_ns(const ktime_t kt) kt 99 include/linux/ktime.h return kt; kt 146 include/linux/ktime.h extern s64 __ktime_divns(const ktime_t kt, s64 div); kt 147 include/linux/ktime.h static inline s64 ktime_divns(const ktime_t kt, s64 div) kt 155 include/linux/ktime.h s64 ns = kt; kt 161 include/linux/ktime.h return __ktime_divns(kt, div); kt 165 include/linux/ktime.h static inline s64 ktime_divns(const ktime_t kt, s64 div) kt 172 include/linux/ktime.h return kt / div; kt 176 include/linux/ktime.h static inline s64 ktime_to_us(const ktime_t kt) kt 178 include/linux/ktime.h return ktime_divns(kt, NSEC_PER_USEC); kt 181 include/linux/ktime.h static inline s64 ktime_to_ms(const ktime_t kt) kt 183 include/linux/ktime.h return ktime_divns(kt, NSEC_PER_MSEC); kt 196 include/linux/ktime.h static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) kt 198 include/linux/ktime.h return ktime_add_ns(kt, usec * NSEC_PER_USEC); kt 201 include/linux/ktime.h static inline ktime_t ktime_add_ms(const ktime_t kt, const u64 msec) kt 203 include/linux/ktime.h return ktime_add_ns(kt, msec * NSEC_PER_MSEC); kt 206 include/linux/ktime.h static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec) kt 208 include/linux/ktime.h return ktime_sub_ns(kt, usec * NSEC_PER_USEC); kt 211 include/linux/ktime.h static inline ktime_t ktime_sub_ms(const ktime_t kt, const u64 msec) kt 213 include/linux/ktime.h return ktime_sub_ns(kt, msec * NSEC_PER_MSEC); kt 226 include/linux/ktime.h static inline __must_check bool ktime_to_timespec_cond(const ktime_t kt, kt 229 include/linux/ktime.h if (kt) { kt 230 include/linux/ktime.h *ts = ktime_to_timespec(kt); kt 245 include/linux/ktime.h static inline __must_check bool ktime_to_timespec64_cond(const ktime_t kt, kt 248 include/linux/ktime.h if (kt) { kt 249 include/linux/ktime.h *ts = ktime_to_timespec64(kt); kt 93 include/linux/pps_kernel.h static inline void timespec_to_pps_ktime(struct pps_ktime *kt, kt 96 include/linux/pps_kernel.h kt->sec = ts.tv_sec; kt 97 include/linux/pps_kernel.h kt->nsec = ts.tv_nsec; kt 27 include/linux/rtc.h struct rtc_time rtc_ktime_to_tm(ktime_t kt); kt 541 include/linux/tty.h extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt); kt 211 include/net/erspan.h ktime_t kt; kt 213 include/net/erspan.h kt = ktime_get_real(); kt 214 include/net/erspan.h h_usecs = ktime_divns(kt, 100 * NSEC_PER_USEC); kt 2341 include/net/sock.h ktime_t kt; kt 2345 include/net/sock.h kt = sk->sk_stamp; kt 2348 include/net/sock.h return kt; kt 2354 include/net/sock.h static inline void sock_write_timestamp(struct sock *sk, ktime_t kt) kt 2358 include/net/sock.h sk->sk_stamp = kt; kt 2361 include/net/sock.h WRITE_ONCE(sk->sk_stamp, kt); kt 2373 include/net/sock.h ktime_t kt = skb->tstamp; kt 2384 include/net/sock.h (kt && sk->sk_tsflags & SOF_TIMESTAMPING_SOFTWARE) || kt 2389 include/net/sock.h sock_write_timestamp(sk, kt); kt 2425 kernel/debug/kdb/kdb_main.c kdbtab_t *kt; kt 2431 kernel/debug/kdb/kdb_main.c for_each_kdbcmd(kt, i) { kt 2435 kernel/debug/kdb/kdb_main.c if (!kt->cmd_name) kt 2437 kernel/debug/kdb/kdb_main.c if (!kdb_check_flags(kt->cmd_flags, kdb_cmd_enabled, true)) kt 2439 kernel/debug/kdb/kdb_main.c if (strlen(kt->cmd_usage) > 20) kt 2441 kernel/debug/kdb/kdb_main.c kdb_printf("%-15.15s %-20s%s%s\n", kt->cmd_name, kt 2442 kernel/debug/kdb/kdb_main.c kt->cmd_usage, space, kt->cmd_help); kt 299 kernel/time/hrtimer.c s64 __ktime_divns(const ktime_t kt, s64 div) kt 305 kernel/time/hrtimer.c dclc = ktime_to_ns(kt); kt 388 lib/test_vmalloc.c ktime_t kt; kt 415 lib/test_vmalloc.c kt = ktime_get(); kt 426 lib/test_vmalloc.c delta = (u64) ktime_us_delta(ktime_get(), kt); kt 3020 net/core/sock.c ktime_t kt = ktime_get_real(); kt 3021 net/core/sock.c sock_write_timestamp(sk, kt);; kt 3022 net/core/sock.c ts = ktime_to_timespec64(kt); kt 1712 net/sctp/sm_make_chunk.c ktime_t kt; kt 1794 net/sctp/sm_make_chunk.c kt = skb_get_ktime(skb); kt 1796 net/sctp/sm_make_chunk.c kt = ktime_get_real(); kt 1798 net/sctp/sm_make_chunk.c if (!asoc && ktime_before(bear_cookie->expiration, kt)) { kt 1799 net/sctp/sm_make_chunk.c suseconds_t usecs = ktime_to_us(ktime_sub(kt, bear_cookie->expiration)); kt 3776 net/wireless/nl80211.c u32 kt = nla_get_u32(info->attrs[NL80211_ATTR_KEY_TYPE]); kt 3778 net/wireless/nl80211.c if (kt != NL80211_KEYTYPE_GROUP && kt 3779 net/wireless/nl80211.c kt != NL80211_KEYTYPE_PAIRWISE) kt 3781 net/wireless/nl80211.c pairwise = kt == NL80211_KEYTYPE_PAIRWISE;