Home
last modified time | relevance | path

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

123

/openbmc/linux/include/linux/
H A Dktime.h62 #define ktime_add_ns(kt, nsval) ((kt) + (nsval)) argument
68 #define ktime_sub_ns(kt, nsval) ((kt) - (nsval)) argument
77 #define ktime_to_timespec64(kt) ns_to_timespec64((kt)) argument
80 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() argument
82 return kt; in ktime_to_ns()
129 extern s64 __ktime_divns(const ktime_t kt, s64 div);
130 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument
138 s64 ns = kt; in ktime_divns()
144 return __ktime_divns(kt, div); in ktime_divns()
148 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument
[all …]
H A Dpps_kernel.h92 static inline void timespec_to_pps_ktime(struct pps_ktime *kt, in timespec_to_pps_ktime() argument
95 kt->sec = ts.tv_sec; in timespec_to_pps_ktime()
96 kt->nsec = ts.tv_nsec; in timespec_to_pps_ktime()
/openbmc/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 …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/crash/crash/
H A D0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch39 + kt->flags |= RELOC_FORCE;
45 if (kt->flags & (RELOC_SET|RELOC_FORCE))
56 - if (kt->flags & RELOC_SET)
57 + if (kt->flags & (RELOC_SET|RELOC_FORCE))
72 kt->flags &= ~(RELOC_SET|RELOC_FORCE);
78 - kt->flags &= ~RELOC_FORCE;
83 + return symval - kt->relocate;
/openbmc/telemetry/src/metrics/
H A Dcollection_data.cpp72 for (auto kt = std::next(readings.rbegin()); kt != readings.rend(); in cleanup() local
73 ++kt) in cleanup()
75 const auto& [nextItemTimestamp, nextItemReading] = *std::prev(kt); in cleanup()
79 it = kt.base(); in cleanup()
H A Dcollection_function.cpp72 const auto kt = std::next(it); in calculate() local
73 const auto duration = kt->first - it->first; in calculate()
112 const auto kt = std::next(it); in calculate() local
114 calculateMultiplier(kt->first - it->first); in calculate()
/openbmc/linux/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 *val = (int)div_s64(t * 1000LL, kt); in dps310_calculate_temp()
/openbmc/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 …]
/openbmc/openbmc/poky/meta/classes/
H A Dccmake.bbclass82 for k, kt, v in added:
84 f.write(" -D{0}:{1}={2} \\\n".format(k, kt, escaped))
89 for k, kt, v in added:
90 f.write("SET({0} \"{1}\" CACHE {2} \"\")\n".format(k, v, kt))
/openbmc/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()
/openbmc/linux/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; in efx_ptp_nic_to_kernel_time() local
603 kt = efx_ptp_mac_nic_to_ktime_correction(efx, ptp, in efx_ptp_nic_to_kernel_time()
[all …]
/openbmc/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()
/openbmc/qemu/hw/block/
H A Dfdc.c1467 uint8_t kh, kt, ks; in fdctrl_start_transfer() local
1471 kt = fdctrl->fifo[2]; in fdctrl_start_transfer()
1475 GET_CUR_DRV(fdctrl), kh, kt, ks, in fdctrl_start_transfer()
1476 fd_sector_calc(kh, kt, ks, cur_drv->last_sect, in fdctrl_start_transfer()
1478 switch (fd_seek(cur_drv, kh, kt, ks, fdctrl->config & FD_CONFIG_EIS)) { in fdctrl_start_transfer()
1482 fdctrl->fifo[3] = kt; in fdctrl_start_transfer()
1489 fdctrl->fifo[3] = kt; in fdctrl_start_transfer()
1496 fdctrl->fifo[3] = kt; in fdctrl_start_transfer()
1513 fdctrl->fifo[3] = kt; in fdctrl_start_transfer()
1536 fdctrl->fifo[3] = kt; in fdctrl_start_transfer()
[all …]
/openbmc/linux/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()
/openbmc/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()
/openbmc/phosphor-pid-control/pid/
H A Dzone.hpp196 auto kt = _failSafeSensors.find(sensorInput); in processSensorInputs() local
197 if (kt != _failSafeSensors.end()) in processSensorInputs()
205 _failSafeSensors.erase(kt); in processSensorInputs()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_fence.c287 ktime_t kt; in nouveau_fence_wait_legacy() local
299 kt = sleep_time; in nouveau_fence_wait_legacy()
300 schedule_hrtimeout(&kt, HRTIMER_MODE_REL); in nouveau_fence_wait_legacy()
/openbmc/linux/drivers/ptp/
H A Dptp_clock.c116 ktime_t kt; in ptp_clock_adjtime() local
128 kt = timespec64_to_ktime(ts); in ptp_clock_adjtime()
129 delta = ktime_to_ns(kt); in ptp_clock_adjtime()
/openbmc/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 - …
/openbmc/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()
/openbmc/linux/sound/soc/sof/
H A Dipc4-mtrace.c427 ktime_t kt; in ipc4_mtrace_enable() local
440 kt = ktime_add_us(ktime_get_real(), FW_EPOCH_DELTA * USEC_PER_SEC); in ipc4_mtrace_enable()
441 system_time = ktime_to_us(kt); in ipc4_mtrace_enable()
/openbmc/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()
/openbmc/linux/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()

123