Home
last modified time | relevance | path

Searched refs:kt (Results 1 - 25 of 74) sorted by relevance

123

/kernel/linux/linux-5.10/include/linux/
H A Dktime.h60 * res = kt + nsval:
62 #define ktime_add_ns(kt, nsval) ((kt) + (nsval))
66 * res = kt - nsval:
68 #define ktime_sub_ns(kt, nsval) ((kt) - (nsval))
77 #define ktime_to_timespec64(kt) ns_to_timespec64((kt))
80 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() argument
82 return kt; in ktime_to_ns()
130 ktime_divns(const ktime_t kt, s64 div) 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()
/kernel/linux/linux-6.6/include/linux/
H A Dktime.h60 * res = kt + nsval:
62 #define ktime_add_ns(kt, nsval) ((kt) + (nsval))
66 * res = kt - nsval:
68 #define ktime_sub_ns(kt, nsval) ((kt) - (nsval))
77 #define ktime_to_timespec64(kt) ns_to_timespec64((kt))
80 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() argument
82 return kt; in ktime_to_ns()
130 ktime_divns(const ktime_t kt, s64 div) 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dselftest_timeline.c261 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 in bench_sync()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/
H A Dspu_profiler.c135 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-6.6/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 in bench_sync()
[all...]
/kernel/linux/linux-5.10/drivers/iio/pressure/
H A Ddps310.c630 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()
[all...]
/kernel/linux/linux-6.6/drivers/iio/pressure/
H A Ddps310.c630 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()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Dptp.c452 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, (u6 in efx_ptp_s_qns_to_ktime_correction()
571 ktime_t kt = { 0 }; efx_ptp_mac_nic_to_ktime_correction() local
620 ktime_t kt; efx_ptp_nic_to_kernel_time() local
2156 ktime_t kt; efx_phc_gettime() local
[all...]
/kernel/linux/linux-6.6/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, (u6 in efx_ptp_s_qns_to_ktime_correction()
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
2111 ktime_t kt; efx_phc_gettime() local
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dbt1-pvt.c686 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-6.6/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()
/kernel/linux/linux-5.10/include/net/
H A Derspan.h226 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dptp.c506 ktime_t kt; in efx_ptp_s_qns_to_ktime_correction() local
511 kt = ktime_set(nic_major, nic_minor); in efx_ptp_s_qns_to_ktime_correction()
514 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_qns_to_ktime_correction()
516 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_qns_to_ktime_correction()
517 return kt; in efx_ptp_s_qns_to_ktime_correction()
551 ktime_t kt = { 0 }; in efx_ptp_mac_nic_to_ktime_correction() local
590 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction()
593 return kt; in efx_ptp_mac_nic_to_ktime_correction()
600 ktime_t kt; efx_ptp_nic_to_kernel_time() local
2159 ktime_t kt; efx_phc_gettime() local
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Dlib.c134 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-6.6/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()
/kernel/linux/linux-5.10/drivers/media/rc/
H A Dserial_ir.c321 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-6.6/drivers/media/rc/
H A Dserial_ir.c321 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/kernel/debug/kdb/
H A Dkdb_main.c2484 kdbtab_t *kt; in kdb_help() local
2490 for_each_kdbcmd(kt, i) { in kdb_help()
2494 if (!kt->cmd_name) in kdb_help()
2496 if (!kdb_check_flags(kt->cmd_flags, kdb_cmd_enabled, true)) in kdb_help()
2498 if (strlen(kt->cmd_usage) > 20) in kdb_help()
2500 kdb_printf("%-15.15s %-20s%s%s\n", kt->cmd_name, in kdb_help()
2501 kt->cmd_usage, space, kt->cmd_help); in kdb_help()
/kernel/linux/linux-6.6/kernel/debug/kdb/
H A Dkdb_main.c2417 kdbtab_t *kt; in kdb_help() local
2422 list_for_each_entry(kt, &kdb_cmds_head, list_node) { in kdb_help()
2426 if (!kdb_check_flags(kt->flags, kdb_cmd_enabled, true)) in kdb_help()
2428 if (strlen(kt->usage) > 20) in kdb_help()
2430 kdb_printf("%-15.15s %-20s%s%s\n", kt->name, in kdb_help()
2431 kt->usage, space, kt->help); in kdb_help()
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
H A Dadm1266.c433 time64_t kt; in adm1266_set_rtc() local
437 kt = ktime_get_seconds(); in adm1266_set_rtc()
442 write_buf[2 + i] = (kt >> (i * 8)) & 0xFF; in adm1266_set_rtc()
/kernel/linux/linux-5.10/lib/
H A Dtest_vmalloc.c463 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/gpu/drm/nouveau/
H A Dnouveau_fence.c272 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()

Completed in 28 milliseconds

123