Home
last modified time | relevance | path

Searched refs:ns_to_ktime (Results 1 – 25 of 135) sorted by relevance

123456

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.h77 return ns_to_ktime(nsec); in mlx5_timecounter_cyc2time()
87 return ns_to_ktime(time); in mlx5_real_time_cyc2time()
/openbmc/linux/drivers/media/cec/core/
H A Dcec-pin.c332 pin->ts = ns_to_ktime(0); in cec_pin_to_idle()
875 hrtimer_forward_now(timer, ns_to_ktime(100000)); in cec_pin_timer()
882 ns_to_ktime(pin->wait_usecs * 1000)); in cec_pin_timer()
887 ns_to_ktime(pin->wait_usecs * 1000)); in cec_pin_timer()
1023 ns_to_ktime(usecs * 1000)); in cec_pin_timer()
1028 hrtimer_forward_now(timer, ns_to_ktime(100000)); in cec_pin_timer()
1065 ns_to_ktime(pin->work_rx_msg.rx_ts)); in cec_pin_thread_func()
1101 hrtimer_start(&pin->timer, ns_to_ktime(0), in cec_pin_thread_func()
1111 hrtimer_start(&pin->timer, ns_to_ktime(0), in cec_pin_thread_func()
1139 pin->timer_ts = ns_to_ktime(0); in cec_pin_adap_enable()
[all …]
/openbmc/linux/drivers/cpuidle/
H A Dcpuidle.c148 time_start = ns_to_ktime(local_clock_noinstr()); in enter_s2idle_proper()
172 time_end = ns_to_ktime(local_clock_noinstr()); in enter_s2idle_proper()
246 time_start = ns_to_ktime(local_clock_noinstr()); in cpuidle_enter_state()
279 time_end = ns_to_ktime(local_clock_noinstr()); in cpuidle_enter_state()
/openbmc/linux/include/linux/dsa/
H A Dksz_common.h23 return ns_to_ktime(ns); in ksz_decode_tstamp()
/openbmc/linux/drivers/powercap/
H A Didle_inject.c136 hrtimer_forward_now(timer, ns_to_ktime(duration_us * NSEC_PER_USEC)); in idle_inject_timer_fn()
235 ns_to_ktime((idle_duration_us + run_duration_us) * in idle_inject_start()
/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-timestamp.c49 hwtstamps->hwtstamp = ns_to_ktime(ns); in mcp251xfd_skb_set_timestamp()
H A Dmcp251xfd-tef.c261 ns_to_ktime(priv->tx_coalesce_usecs_irq * in mcp251xfd_handle_tefif()
H A Dmcp251xfd-rx.c271 ns_to_ktime(priv->rx_coalesce_usecs_irq * in mcp251xfd_handle_rxif()
/openbmc/linux/sound/soc/fsl/
H A Dimx-pcm-fiq.c63 hrtimer_forward_now(hrt, ns_to_ktime(iprtd->poll_time_ns)); in snd_hrtimer_callback()
122 hrtimer_start(&iprtd->hrt, ns_to_ktime(iprtd->poll_time_ns), in snd_imx_pcm_trigger()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.c329 event.timestamp = ns_to_ktime(sja1105_ticks_to_ns(ptpsyncts)); in sja1105_extts_poll()
362 shwt->hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1105_rxtstamp_work()
398 shwt->hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1110_rxtstamp()
442 shwt.hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(tstamp)); in sja1110_process_meta_tstamp()
969 shwt.hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); in sja1105_ptp_txtstamp_skb()
/openbmc/linux/drivers/ptp/
H A Dptp_vclock.c142 xtstamp->device = ns_to_ktime(ns); in ptp_vclock_getcrosststamp()
292 return ns_to_ktime(vclock_ns); in ptp_convert_timestamp()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ctx.c174 return ns_to_ktime(0); in amdgpu_ctx_fence_time()
179 return ns_to_ktime(0); in amdgpu_ctx_fence_time()
192 ktime_t res = ns_to_ktime(0); in amdgpu_ctx_entity_time()
274 ktime_t res = ns_to_ktime(0); in amdgpu_ctx_fini_entity()
976 usage[hw_ip] = ns_to_ktime(ns); in amdgpu_ctx_mgr_usage()
/openbmc/linux/drivers/dma-buf/
H A Ddma-fence-unwrap.c74 timestamp = ns_to_ktime(0); in __dma_fence_unwrap_merge()
/openbmc/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_hwtstamp.c268 shhwtstamps.hwtstamp = ns_to_ktime(ns); in hellcreek_txtstamp_work()
326 shwt->hwtstamp = ns_to_ktime(ns); in hellcreek_get_rxts()
/openbmc/linux/sound/core/
H A Dhrtimer.c101 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
/openbmc/linux/include/linux/
H A Dktime.h222 static inline ktime_t ns_to_ktime(u64 ns) in ns_to_ktime() function
/openbmc/linux/drivers/char/hw_random/
H A Dtimeriomem-rng.c153 priv->period = ns_to_ktime(period * NSEC_PER_USEC); in timeriomem_rng_probe()
/openbmc/linux/kernel/
H A Dwatchdog.c466 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn()
556 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable()
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_ptp.c172 shhwtstamps.hwtstamp = ns_to_ktime(ns); in qede_ptp_task()
546 skb_hwtstamps(skb)->hwtstamp = ns_to_ktime(ns); in qede_ptp_rx_ts()
/openbmc/linux/kernel/time/
H A Dsched_clock.c186 cd.wrap_kt = ns_to_ktime(wrap); in sched_clock_register()
/openbmc/linux/drivers/media/rc/
H A Dir-rx51.c128 ns_to_ktime(US_TO_NS(ir_rx51->wbuf[0])), in ir_rx51_tx()
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A Dhwtstamp.c301 shwt->hwtstamp = ns_to_ktime(ns); in mv88e6xxx_get_rxts()
419 shhwtstamps.hwtstamp = ns_to_ktime(ns); in mv88e6xxx_txtstamp_work()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c71 return ns_to_ktime(nsec); in mlx4_en_get_hwtstamp()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dptp.c121 *device = ns_to_ktime(timecounter_cyc2time(&adapter->tc, dev_cycles)); in e1000e_phc_get_syncdevicetime()
/openbmc/linux/kernel/sched/
H A Didle.c360 hrtimer_start(&it.timer, ns_to_ktime(duration_ns), in play_idle_precise()

123456