Home
last modified time | relevance | path

Searched refs:overflow_cycles (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c1040 u64 overflow_cycles; in mlx5_init_overflow_period() local
1051 overflow_cycles = div64_u64(~0ULL >> 1, timer->cycles.mult); in mlx5_init_overflow_period()
1052 overflow_cycles = min(overflow_cycles, div_u64(timer->cycles.mask, 3)); in mlx5_init_overflow_period()
1054 ns = cyclecounter_cyc2ns(&timer->cycles, overflow_cycles, in mlx5_init_overflow_period()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c276 u64 overflow_cycles, nsec, frac = 0; in mlxsw_sp1_ptp_clock_init() local
302 overflow_cycles = div64_u64(~0ULL >> 1, clock->cycles.mult); in mlxsw_sp1_ptp_clock_init()
303 overflow_cycles = min(overflow_cycles, div_u64(clock->cycles.mask, 3)); in mlxsw_sp1_ptp_clock_init()
305 nsec = cyclecounter_cyc2ns(&clock->cycles, overflow_cycles, 0, &frac); in mlxsw_sp1_ptp_clock_init()