| /linux-6.15/drivers/pps/generators/ |
| H A D | pps_gen_parport.c | 113 (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()
|
| /linux-6.15/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_clock.c | 25 return (u64)DIV_ROUND_CLOSEST_ULL(timespec64_to_ns(ts), NSEC_PER_USEC); in timespec_to_us() 30 return (u64)DIV_ROUND_CLOSEST_ULL(timespec64_to_ns(ts), NSEC_PER_MSEC); in timespec_to_ms()
|
| /linux-6.15/drivers/ptp/ |
| H A D | ptp_vclock.c | 103 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 D | ptp_mock.c | 80 u64 ns = timespec64_to_ns(ts); in mock_phc_settime64()
|
| H A D | ptp_idt82p33.c | 323 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()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | clock.c | 461 timecounter_init(&timer->tc, &timer->cycles, timespec64_to_ns(ts)); in mlx5_clock_settime() 526 ns = timespec64_to_ns(&ts) + delta; in mlx5_ptp_adjtime_real_time() 733 target_ns = timespec64_to_ns(&ts); in perout_conf_internal_timer() 751 ns = timespec64_to_ns(&ts); in perout_conf_1pps() 774 out_pulse_duration = (u32)timespec64_to_ns(&ts); in mlx5_perout_conf_out_pulse_duration() 781 out_pulse_duration = (u32)timespec64_to_ns(&ts) >> 1; in mlx5_perout_conf_out_pulse_duration() 806 if (timespec64_to_ns(&ts) < pps_info->min_npps_period) { in perout_conf_npps_real_time() 1092 target_ns = timespec64_to_ns(&ts); in perout_conf_next_event_timer()
|
| /linux-6.15/include/linux/ |
| H A D | time64.h | 135 static inline s64 timespec64_to_ns(const struct timespec64 *ts) in timespec64_to_ns() function
|
| H A D | time_namespace.h | 86 return nsec + timespec64_to_ns(&ns_offsets->boottime); in timens_add_boottime_ns()
|
| /linux-6.15/drivers/net/phy/ |
| H A D | bcm-phy-ptp.c | 279 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() 658 event.timestamp = timespec64_to_ns(&ts); in bcm_ptp_extts_work()
|
| /linux-6.15/kernel/time/ |
| H A D | itimer.c | 195 nval = timespec64_to_ns(&value->it_value); in set_cpu_itimer() 196 ninterval = timespec64_to_ns(&value->it_interval); in set_cpu_itimer()
|
| /linux-6.15/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ptp.c | 356 return (u64)timespec64_to_ns(&ts); in ixgbe_ptp_read_X550() 428 timestamp = timespec64_to_ns(&systime); in ixgbe_ptp_convert_to_hwtstamp() 577 stamp = timespec64_to_ns(ts); in ixgbe_ptp_gettimex() 610 u64 ns = timespec64_to_ns(ts); in ixgbe_ptp_settime()
|
| /linux-6.15/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-ptp.c | 198 nsec = timespec64_to_ns(ts); in xgbe_settime()
|
| /linux-6.15/drivers/net/ethernet/freescale/ |
| H A D | fec_ptp.c | 482 ns = timespec64_to_ns(ts); in fec_ptp_settime() 541 period_ns = timespec64_to_ns(&period); in fec_ptp_enable() 556 fep->perout_stime = timespec64_to_ns(&start_time); in fec_ptp_enable()
|
| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_ptp.c | 125 nsec = timespec64_to_ns(ts); in otx2_ptp_hw_settime() 265 nsec = timespec64_to_ns(ts); in otx2_ptp_tc_settime()
|
| /linux-6.15/drivers/net/dsa/microchip/ |
| H A D | ksz_ptp.c | 222 cycle_width_ns = timespec64_to_ns(&ptp_data->perout_period); in ksz_ptp_enable_perout() 651 now_ns = timespec64_to_ns(&now); in ksz_ptp_restart_perout() 652 first_ns = timespec64_to_ns(&ptp_data->perout_target_time_first); in ksz_ptp_restart_perout() 655 period_ns = timespec64_to_ns(&ptp_data->perout_period); in ksz_ptp_restart_perout()
|
| /linux-6.15/fs/vboxsf/ |
| H A D | utils.c | 309 timespec64_to_ns(&iattr->ia_atime); in vboxsf_setattr() 313 timespec64_to_ns(&iattr->ia_mtime); in vboxsf_setattr()
|
| /linux-6.15/drivers/net/dsa/sja1105/ |
| H A D | sja1105_ptp.c | 603 u64 ns = timespec64_to_ns(ts); in sja1105_ptp_settime() 759 u64 pin_duration = timespec64_to_ns(&pin_duration_ts); in sja1105_per_out_enable() 760 u64 pin_start = timespec64_to_ns(&pin_start_ts); in sja1105_per_out_enable()
|
| /linux-6.15/drivers/net/ethernet/mscc/ |
| H A D | ocelot_ptp.c | 270 wf_high = timespec64_to_ns(&ts_on); in ocelot_ptp_enable() 275 wf_high = timespec64_to_ns(&ts_period); in ocelot_ptp_enable() 280 wf_low = timespec64_to_ns(&ts_period); in ocelot_ptp_enable()
|
| /linux-6.15/drivers/net/ethernet/ti/icssg/ |
| H A D | icss_iep.c | 377 ns = timespec64_to_ns(ts); in icss_iep_ptp_settime() 434 ns_width = timespec64_to_ns(&ts); in icss_iep_perout_enable_hw() 439 ns_start = timespec64_to_ns(&ts); in icss_iep_perout_enable_hw()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_clock.c | 203 u64 ns = timespec64_to_ns(ts); in mlx4_en_phc_settime()
|
| /linux-6.15/drivers/net/ethernet/engleder/ |
| H A D | tsnep_ptp.c | 161 u64 system_time = timespec64_to_ns(ts); in tsnep_ptp_settime64()
|
| /linux-6.15/drivers/net/ethernet/intel/e1000e/ |
| H A D | ptp.c | 200 ns = timespec64_to_ns(ts); in e1000e_phc_settime()
|
| /linux-6.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_time.c | 191 host_ns = timespec64_to_ns(ts); in fbnic_ptp_settime64()
|
| /linux-6.15/drivers/net/ethernet/cavium/common/ |
| H A D | cavium_ptp.c | 191 nsec = timespec64_to_ns(ts); in cavium_ptp_settime()
|
| /linux-6.15/drivers/net/ethernet/xscale/ |
| H A D | ptp_ixp46x.c | 179 ns = timespec64_to_ns(ts); in ptp_ixp_settime()
|