/openbmc/linux/kernel/time/ |
H A D | timecounter.c | 79 u64 timecounter_cyc2time(const struct timecounter *tc, in timecounter_cyc2time() function 99 EXPORT_SYMBOL_GPL(timecounter_cyc2time);
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_vclock.c | 103 ns = timecounter_cyc2time(&vclock->tc, timespec64_to_ns(&pts)); in ptp_vclock_gettimex() 139 ns = timecounter_cyc2time(&vclock->tc, ktime_to_ns(xtstamp->device)); in ptp_vclock_getcrosststamp() 285 vclock_ns = timecounter_cyc2time(&vclock->tc, ns); in ptp_convert_timestamp()
|
/openbmc/linux/drivers/net/ethernet/cavium/common/ |
H A D | cavium_ptp.h | 38 ret = timecounter_cyc2time(&ptp->time_counter, tstamp); in cavium_ptp_tstamp2time()
|
/openbmc/linux/include/linux/ |
H A D | timecounter.h | 127 extern u64 timecounter_cyc2time(const struct timecounter *tc,
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | ptp.c | 121 *device = ns_to_ktime(timecounter_cyc2time(&adapter->tc, dev_cycles)); in e1000e_phc_get_syncdevicetime() 174 ns = timecounter_cyc2time(&adapter->tc, cycles); in e1000e_phc_gettimex()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | clock.h | 74 nsec = timecounter_cyc2time(&timer->tc, timestamp); in mlx5_timecounter_cyc2time()
|
H A D | clock.c | 333 ns = timecounter_cyc2time(&timer->tc, cycles); in mlx5_ptp_gettimex() 516 nsec_now = timecounter_cyc2time(&timer->tc, cycles_now); in find_target_cycles()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ptp.c | 154 ns = timecounter_cyc2time(&ptp->tc, cycles); in bnxt_ptp_gettimex() 251 ns = timecounter_cyc2time(&ptp->tc, pps_ts); in bnxt_ptp_pps_event() 393 nsec_now = timecounter_cyc2time(&ptp->tc, cycles_now); in bnxt_get_target_cycles() 690 ns = timecounter_cyc2time(&ptp->tc, ts); in bnxt_stamp_tx_skb()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_ptp.c | 170 ns = timecounter_cyc2time(&ptp->tc, timestamp); in qede_ptp_task() 544 ns = timecounter_cyc2time(&ptp->tc, timestamp); in qede_ptp_rx_ts()
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | hwtstamp.c | 297 ns = timecounter_cyc2time(&chip->tstamp_tc, ns); in mv88e6xxx_get_rxts() 417 ns = timecounter_cyc2time(&chip->tstamp_tc, time_raw); in mv88e6xxx_txtstamp_work()
|
H A D | ptp.c | 247 ev.timestamp = timecounter_cyc2time(&chip->tstamp_tc, raw_ts); in mv88e6352_tai_event_work()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_clock.c | 68 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_get_hwtstamp()
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_phc.c | 425 ns = timecounter_cyc2time(&phc->tc, tick); in ionic_phc_gettimex64() 476 ns = timecounter_cyc2time(&lif->phc->tc, tick); in ionic_lif_phc_ktime()
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 177 ns = timecounter_cyc2time(&adapter->tc, systim); in igb_ptp_systim_to_hwtstamp() 277 ns = timecounter_cyc2time(&igb->tc, ((u64)hi << 32) | lo); in igb_ptp_gettimex_82576() 305 ns = timecounter_cyc2time(&igb->tc, ((u64)hi << 32) | lo); in igb_ptp_gettimex_82580() 588 now = timecounter_cyc2time(&igb->tc, systim); in igb_ptp_feature_enable_82580()
|
H A D | igb_main.c | 6906 now = timecounter_cyc2time(&adapter->tc, systim); in igb_perout() 6980 ns = timecounter_cyc2time(&adapter->tc, ns); in igb_extts()
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-rx.c | 184 timestamp = timecounter_cyc2time(&priv->tc, hw_rx_obj->ts); in mcp251xfd_handle_rxif_one()
|
H A D | mcp251xfd.h | 837 ns = timecounter_cyc2time(&priv->tc, ts_raw); in mcp251xfd_skb_set_timestamp_raw()
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec_ptp.c | 165 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps() 241 curr_time = timecounter_cyc2time(&fep->tc, ptp_hc); in fec_ptp_pps_perout()
|
H A D | fec_main.c | 1402 ns = timecounter_cyc2time(&fep->tc, ts); in fec_enet_hwtstamp()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ptp.c | 433 ns = timecounter_cyc2time(&adapter->hw_tc, timestamp); in ixgbe_ptp_convert_to_hwtstamp() 582 ns = timecounter_cyc2time(&adapter->hw_tc, stamp); in ixgbe_ptp_gettimex()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ptp.c | 439 ptp_ptr->ptp_tstamp2nsec = timecounter_cyc2time; in otx2_ptp_init()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_ptp.c | 228 nsec = timecounter_cyc2time(&clock->tc, cycles); in mlxsw_sp1_ptp_gettimex() 624 nsec = timecounter_cyc2time(&clock->tc, timestamp); in mlxsw_sp1_packet_timestamp()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | cpts.c | 128 event->timestamp = timecounter_cyc2time(&cpts->tc, event->low); in cpts_fifo_read()
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-drv.c | 1495 nsec = timecounter_cyc2time(&pdata->tstamp_tc, in xgbe_tx_tstamp() 2651 nsec = timecounter_cyc2time(&pdata->tstamp_tc, in xgbe_rx_poll()
|
/openbmc/linux/drivers/net/can/usb/ |
H A D | gs_usb.c | 462 ns = timecounter_cyc2time(&parent->tc, timestamp); in gs_usb_skb_set_timestamp()
|