/linux-4.4.14/include/linux/ |
H A D | ktime.h | 68 * res = kt + nsval: 70 #define ktime_add_ns(kt, nsval) \ 71 ({ (ktime_t){ .tv64 = (kt).tv64 + (nsval) }; }) 75 * res = kt - nsval: 77 #define ktime_sub_ns(kt, nsval) \ 78 ({ (ktime_t){ .tv64 = (kt).tv64 - (nsval) }; }) 99 #define ktime_to_timespec(kt) ns_to_timespec((kt).tv64) 102 #define ktime_to_timespec64(kt) ns_to_timespec64((kt).tv64) 105 #define ktime_to_timeval(kt) ns_to_timeval((kt).tv64) 108 #define ktime_to_ns(kt) ((kt).tv64) 169 extern s64 __ktime_divns(const ktime_t kt, s64 div); ktime_divns() 170 static inline s64 ktime_divns(const ktime_t kt, s64 div) ktime_divns() argument 178 s64 ns = kt.tv64; ktime_divns() 184 return __ktime_divns(kt, div); ktime_divns() 188 static inline s64 ktime_divns(const ktime_t kt, s64 div) 195 return kt.tv64 / div; 199 static inline s64 ktime_to_us(const ktime_t kt) 201 return ktime_divns(kt, NSEC_PER_USEC); 204 static inline s64 ktime_to_ms(const ktime_t kt) 206 return ktime_divns(kt, NSEC_PER_MSEC); 219 static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) 221 return ktime_add_ns(kt, usec * NSEC_PER_USEC); 224 static inline ktime_t ktime_add_ms(const ktime_t kt, const u64 msec) 226 return ktime_add_ns(kt, msec * NSEC_PER_MSEC); 229 static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec) 231 return ktime_sub_ns(kt, usec * NSEC_PER_USEC); 239 * @kt: the ktime_t variable to convert 242 * Return: %true if there was a successful conversion, %false if kt was 0. 244 static inline __must_check bool ktime_to_timespec_cond(const ktime_t kt, 247 if (kt.tv64) { 248 *ts = ktime_to_timespec(kt); 258 * @kt: the ktime_t variable to convert 261 * Return: %true if there was a successful conversion, %false if kt was 0. 263 static inline __must_check bool ktime_to_timespec64_cond(const ktime_t kt, 266 if (kt.tv64) { 267 *ts = ktime_to_timespec64(kt);
|
H A D | pps_kernel.h | 107 static inline void timespec_to_pps_ktime(struct pps_ktime *kt, timespec_to_pps_ktime() argument 110 kt->sec = ts.tv_sec; timespec_to_pps_ktime() 111 kt->nsec = ts.tv_nsec; timespec_to_pps_ktime()
|
H A D | rtc.h | 25 struct rtc_time rtc_ktime_to_tm(ktime_t kt);
|
H A D | tty.h | 496 extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
|
/linux-4.4.14/arch/powerpc/oprofile/cell/ |
H A D | spu_profiler.c | 139 ktime_t kt; profile_spus() local 183 kt = ktime_set(0, profiling_interval); 186 hrtimer_forward(timer, timer->base->get_time(), kt); 204 ktime_t kt; start_spu_profiling_cycles() local 207 kt = ktime_set(0, profiling_interval); start_spu_profiling_cycles() 209 hrtimer_set_expires(&timer, kt); start_spu_profiling_cycles() 220 hrtimer_start(&timer, kt, HRTIMER_MODE_REL); start_spu_profiling_cycles()
|
/linux-4.4.14/drivers/rtc/ |
H A D | rtc-lib.c | 138 struct rtc_time rtc_ktime_to_tm(ktime_t kt) rtc_ktime_to_tm() argument 143 ts = ktime_to_timespec64(kt); rtc_ktime_to_tm()
|
/linux-4.4.14/drivers/ptp/ |
H A D | ptp_clock.c | 137 ktime_t kt; ptp_clock_adjtime() local 149 kt = timespec_to_ktime(ts); ptp_clock_adjtime() 150 delta = ktime_to_ns(kt); ptp_clock_adjtime()
|
/linux-4.4.14/kernel/time/ |
H A D | test_udelay.c | 93 seq_printf(s, "udelay() test (lpj=%ld kt=%ld.%09ld)\n", udelay_test_show()
|
H A D | hrtimer.c | 284 s64 __ktime_divns(const ktime_t kt, s64 div) __ktime_divns() argument 290 dclc = ktime_to_ns(kt); __ktime_divns()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
H A D | nouveau_fence.c | 320 ktime_t kt; nouveau_fence_wait_legacy() local 332 kt = ktime_set(0, sleep_time); nouveau_fence_wait_legacy() 333 schedule_hrtimeout(&kt, HRTIMER_MODE_REL); nouveau_fence_wait_legacy()
|
/linux-4.4.14/drivers/video/fbdev/omap2/omapfb/ |
H A D | omapfb-ioctl.c | 381 enum omap_dss_trans_key_type kt; _omapfb_set_color_key() local 401 kt = OMAP_DSS_COLOR_KEY_GFX_DST; _omapfb_set_color_key() 404 kt = OMAP_DSS_COLOR_KEY_VID_SRC; _omapfb_set_color_key() 412 info.trans_key_type = kt; _omapfb_set_color_key()
|
/linux-4.4.14/kernel/rcu/ |
H A D | tree_trace.c | 146 seq_printf(m, " kt=%d/%c ktl=%x", print_one_rcu_data() 217 seq_printf(m, "%d:%d tasks=%c%c%c%c kt=%c ntb=%lu neb=%lu nnb=%lu ", print_one_rcu_node_boost()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
H A D | ptp.c | 412 ktime_t kt = ktime_set(nic_major, nic_minor); efx_ptp_s_ns_to_ktime_correction() local 414 kt = ktime_add_ns(kt, (u64)correction); efx_ptp_s_ns_to_ktime_correction() 416 kt = ktime_sub_ns(kt, (u64)-correction); efx_ptp_s_ns_to_ktime_correction() 417 return kt; efx_ptp_s_ns_to_ktime_correction() 1859 ktime_t kt; efx_phc_gettime() local 1869 kt = ptp_data->nic_to_kernel_time( efx_phc_gettime() 1872 *ts = ktime_to_timespec64(kt); efx_phc_gettime()
|
/linux-4.4.14/drivers/block/ |
H A D | null_blk.c | 259 ktime_t kt = ktime_set(0, completion_nsec); null_cmd_end_timer() local 261 hrtimer_start(&cmd->timer, kt, HRTIMER_MODE_REL); null_cmd_end_timer()
|
/linux-4.4.14/kernel/debug/kdb/ |
H A D | kdb_main.c | 2412 kdbtab_t *kt; kdb_help() local 2418 for_each_kdbcmd(kt, i) { for_each_kdbcmd() 2422 if (!kt->cmd_name) for_each_kdbcmd() 2424 if (!kdb_check_flags(kt->cmd_flags, kdb_cmd_enabled, true)) for_each_kdbcmd() 2426 if (strlen(kt->cmd_usage) > 20) for_each_kdbcmd() 2428 kdb_printf("%-15.15s %-20s%s%s\n", kt->cmd_name, for_each_kdbcmd() 2429 kt->cmd_usage, space, kt->cmd_help); for_each_kdbcmd()
|
/linux-4.4.14/drivers/char/hw_random/ |
H A D | n2-drv.c | 743 .compatible = "SUNW,kt-rng",
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
H A D | si_dpm.c | 1773 s64 kt, kv, leakage_w, i_leakage, vddc; si_calculate_leakage_for_v_and_t_formula() local 1788 kt = drm_fixp_exp(drm_fixp_mul(tmp, temperature)); si_calculate_leakage_for_v_and_t_formula() 1789 kt = drm_fixp_div(kt, drm_fixp_exp(drm_fixp_mul(tmp, t_ref))); si_calculate_leakage_for_v_and_t_formula() 1792 leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); si_calculate_leakage_for_v_and_t_formula() 1811 s64 kt, kv, leakage_w, i_leakage, vddc; si_calculate_leakage_for_v_formula() local 1816 kt = div64_s64(drm_int2fixp(fixed_kt), 100000000); si_calculate_leakage_for_v_formula() 1820 leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); si_calculate_leakage_for_v_formula()
|
H A D | ni_dpm.c | 745 s64 kt, kv, leakage_w, i_leakage, vddc, temperature; ni_calculate_leakage_for_v_and_t_formula() local 751 kt = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->at), 1000), ni_calculate_leakage_for_v_and_t_formula() 756 leakage_w = drm_fixp_mul(drm_fixp_mul(drm_fixp_mul(i_leakage, kt), kv), vddc); ni_calculate_leakage_for_v_and_t_formula()
|
/linux-4.4.14/drivers/crypto/ |
H A D | n2_core.c | 2203 .compatible = "SUNW,kt-cwq", 2230 .compatible = "SUNW,kt-mau",
|
/linux-4.4.14/net/sctp/ |
H A D | sm_make_chunk.c | 1704 ktime_t kt; sctp_unpack_cookie() local 1781 kt = skb_get_ktime(skb); sctp_unpack_cookie() 1783 kt = ktime_get_real(); sctp_unpack_cookie() 1785 if (!asoc && ktime_before(bear_cookie->expiration, kt)) { sctp_unpack_cookie() 1797 suseconds_t usecs = ktime_to_us(ktime_sub(kt, bear_cookie->expiration)); sctp_unpack_cookie()
|
/linux-4.4.14/fs/ocfs2/ |
H A D | dlmglue.c | 443 ktime_t kt; ocfs2_update_lock_stats() local 453 kt = ktime_sub(ktime_get(), mw->mw_lock_start); ocfs2_update_lock_stats() 454 usec = ktime_to_us(kt); ocfs2_update_lock_stats() 457 stats->ls_total += ktime_to_ns(kt); ocfs2_update_lock_stats() 461 stats->ls_total = ktime_to_ns(kt); ocfs2_update_lock_stats()
|
/linux-4.4.14/include/net/ |
H A D | sock.h | 2140 ktime_t kt = skb->tstamp; sock_recv_timestamp() local 2151 (kt.tv64 && sk->sk_tsflags & SOF_TIMESTAMPING_SOFTWARE) || sock_recv_timestamp() 2156 sk->sk_stamp = kt; sock_recv_timestamp()
|
/linux-4.4.14/drivers/scsi/ |
H A D | scsi_debug.c | 4024 ktime_t kt = ktime_set(0, scsi_debug_ndelay); schedule_resp() local 4037 hrtimer_start(&sd_hp->hrt, kt, HRTIMER_MODE_REL); schedule_resp()
|
/linux-4.4.14/net/wireless/ |
H A D | nl80211.c | 2889 u32 kt = nla_get_u32(info->attrs[NL80211_ATTR_KEY_TYPE]); nl80211_get_key() local 2890 if (kt >= NUM_NL80211_KEYTYPES) nl80211_get_key() 2892 if (kt != NL80211_KEYTYPE_GROUP && nl80211_get_key() 2893 kt != NL80211_KEYTYPE_PAIRWISE) nl80211_get_key() 2895 pairwise = kt == NL80211_KEYTYPE_PAIRWISE; nl80211_get_key()
|