Home
last modified time | relevance | path

Searched refs:timespec64_to_ns (Results 1 – 25 of 66) sorted by relevance

123

/openbmc/linux/drivers/pps/generators/
H A Dpps_gen_parport.c113 (dev->port_write_time + timespec64_to_ns(&dts)) >> 1; in hrtimer_event()
118 delta = timespec64_to_ns(&dts); in hrtimer_event()
158 acc += timespec64_to_ns(&b); in calibrate_port()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_clock.c24 return (u64)DIV_ROUND_CLOSEST_ULL(timespec64_to_ns(ts), NSEC_PER_USEC); in timespec_to_us()
29 return (u64)DIV_ROUND_CLOSEST_ULL(timespec64_to_ns(ts), NSEC_PER_MSEC); in timespec_to_ms()
/openbmc/linux/drivers/ptp/
H A Dptp_vclock.c103 ns = timecounter_cyc2time(&vclock->tc, timespec64_to_ns(&pts)); in ptp_vclock_gettimex()
115 u64 ns = timespec64_to_ns(ts); in ptp_vclock_settime()
175 return timespec64_to_ns(&ts); in ptp_vclock_read()
H A Dptp_mock.c80 u64 ns = timespec64_to_ns(ts); in mock_phc_settime64()
H A Dptp_idt82p33.c323 event.timestamp = timespec64_to_ns(&ts); in idt82p33_extts_check_channel()
471 now_ns = timespec64_to_ns(&ts); in _idt82p33_adjtime_immediate()
758 *overhead_ns = timespec64_to_ns(&ts2) - timespec64_to_ns(&ts1); in idt82p33_measure_settime_gettime_gap_overhead()
H A Dptp_dte.c196 dte_write_nco(ptp_dte->regs, timespec64_to_ns(ts)); in ptp_dte_settime()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c297 timecounter_init(&timer->tc, &timer->cycles, timespec64_to_ns(ts)); in mlx5_ptp_settime()
353 ns = timespec64_to_ns(&ts) + delta; in mlx5_ptp_adjtime_real_time()
531 target_ns = timespec64_to_ns(&ts); in perout_conf_internal_timer()
549 ns = timespec64_to_ns(&ts); in perout_conf_1pps()
572 out_pulse_duration = (u32)timespec64_to_ns(&ts); in mlx5_perout_conf_out_pulse_duration()
579 out_pulse_duration = (u32)timespec64_to_ns(&ts) >> 1; in mlx5_perout_conf_out_pulse_duration()
604 if (timespec64_to_ns(&ts) < pps_info->min_npps_period) { in perout_conf_npps_real_time()
880 target_ns = timespec64_to_ns(&ts); in perout_conf_next_event_timer()
/openbmc/linux/include/linux/
H A Dtime64.h130 static inline s64 timespec64_to_ns(const struct timespec64 *ts) in timespec64_to_ns() function
H A Dtime_namespace.h83 return nsec + timespec64_to_ns(&ns_offsets->boottime); in timens_add_boottime_ns()
/openbmc/linux/kernel/time/
H A Ditimer.c175 nval = timespec64_to_ns(&value->it_value); in set_cpu_itimer()
176 ninterval = timespec64_to_ns(&value->it_interval); in set_cpu_itimer()
/openbmc/linux/drivers/net/phy/
H A Dbcm-phy-ptp.c279 ns = timespec64_to_ns(ts); in bcm_ptp_settime_locked()
317 ns = timespec64_to_ns(&ts) + delta_ns; in bcm_ptp_adjtime_locked()
560 ns = timespec64_to_ns(&ts); in bcm_ptp_perout_work()
657 event.timestamp = timespec64_to_ns(&ts); in bcm_ptp_extts_work()
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ptp.c198 nsec = timespec64_to_ns(ts); in xgbe_settime()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c355 return (u64)timespec64_to_ns(&ts); in ixgbe_ptp_read_X550()
426 timestamp = timespec64_to_ns(&systime); in ixgbe_ptp_convert_to_hwtstamp()
572 stamp = timespec64_to_ns(ts); in ixgbe_ptp_gettimex()
605 u64 ns = timespec64_to_ns(ts); in ixgbe_ptp_settime()
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dfec_ptp.c490 ns = timespec64_to_ns(ts); in fec_ptp_settime()
551 period_ns = timespec64_to_ns(&period); in fec_ptp_enable()
566 fep->perout_stime = timespec64_to_ns(&start_time); in fec_ptp_enable()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c125 nsec = timespec64_to_ns(ts); in otx2_ptp_hw_settime()
264 nsec = timespec64_to_ns(ts); in otx2_ptp_tc_settime()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.c222 cycle_width_ns = timespec64_to_ns(&ptp_data->perout_period); in ksz_ptp_enable_perout()
654 now_ns = timespec64_to_ns(&now); in ksz_ptp_restart_perout()
655 first_ns = timespec64_to_ns(&ptp_data->perout_target_time_first); in ksz_ptp_restart_perout()
658 period_ns = timespec64_to_ns(&ptp_data->perout_period); in ksz_ptp_restart_perout()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.c593 u64 ns = timespec64_to_ns(ts); in sja1105_ptp_settime()
749 u64 pin_duration = timespec64_to_ns(&pin_duration_ts); in sja1105_per_out_enable()
750 u64 pin_start = timespec64_to_ns(&pin_start_ts); in sja1105_per_out_enable()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c268 wf_high = timespec64_to_ns(&ts_on); in ocelot_ptp_enable()
273 wf_high = timespec64_to_ns(&ts_period); in ocelot_ptp_enable()
278 wf_low = timespec64_to_ns(&ts_period); in ocelot_ptp_enable()
/openbmc/linux/fs/vboxsf/
H A Dutils.c308 timespec64_to_ns(&iattr->ia_atime); in vboxsf_setattr()
312 timespec64_to_ns(&iattr->ia_mtime); in vboxsf_setattr()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c203 u64 ns = timespec64_to_ns(ts); in mlx4_en_phc_settime()
/openbmc/linux/drivers/net/ethernet/engleder/
H A Dtsnep_ptp.c161 u64 system_time = timespec64_to_ns(ts); in tsnep_ptp_settime64()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dptp.c199 ns = timespec64_to_ns(ts); in e1000e_phc_settime()
/openbmc/linux/drivers/net/ethernet/cavium/common/
H A Dcavium_ptp.c191 nsec = timespec64_to_ns(ts); in cavium_ptp_settime()
/openbmc/linux/drivers/net/ethernet/xscale/
H A Dptp_ixp46x.c179 ns = timespec64_to_ns(ts); in ptp_ixp_settime()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c64 u64 ns = timespec64_to_ns(ts); in bnxt_ptp_settime()
413 target_ns = timespec64_to_ns(&ts); in bnxt_ptp_perout_cfg()
897 ns = timespec64_to_ns(&tsp); in bnxt_ptp_init_rtc()

123