Home
last modified time | relevance | path

Searched refs:systim (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/intel/igc/
Digc_tsn.c87 ktime_t base_time, systim; in igc_tsn_enable_offload() local
216 systim = ktime_set(sec, nsec); in igc_tsn_enable_offload()
218 if (ktime_compare(systim, base_time) > 0) { in igc_tsn_enable_offload()
221 n = div64_s64(ktime_sub_ns(systim, base_time), cycle); in igc_tsn_enable_offload()
Digc_ptp.c422 u64 systim) in igc_ptp_systim_to_hwtstamp() argument
428 hwtstamps->hwtstamp = ktime_set(systim >> 32, in igc_ptp_systim_to_hwtstamp()
429 systim & 0xFFFFFFFF); in igc_ptp_systim_to_hwtstamp()
/linux-5.19.10/drivers/video/fbdev/omap/
Dhwa742.c639 unsigned long systim; in calc_reg_timing() local
649 systim = 1000000000 / (sysclk / 1000); in calc_reg_timing()
651 "extif_clk_div %d\n", systim, hwa742.extif_clk_period, div); in calc_reg_timing()
663 t->we_cycle_time = round_to_extif_ticks(2 * systim + 2000, div); in calc_reg_timing()
666 t->re_cycle_time = round_to_extif_ticks(2 * systim + 2000, div); in calc_reg_timing()
685 unsigned long systim; in calc_lut_timing() local
696 systim = 1000000000 / (sysclk / 1000); in calc_lut_timing()
698 "extif_clk_div %d\n", systim, hwa742.extif_clk_period, div); in calc_lut_timing()
708 t->access_time = round_to_extif_ticks(t->re_on_time + 4 * systim + in calc_lut_timing()
711 t->re_off_time = round_to_extif_ticks(t->re_on_time + 4 * systim + in calc_lut_timing()
[all …]
/linux-5.19.10/drivers/net/ethernet/intel/igb/
Digb_ptp.c163 u64 systim) in igb_ptp_systim_to_hwtstamp() argument
176 ns = timecounter_cyc2time(&adapter->tc, systim); in igb_ptp_systim_to_hwtstamp()
184 hwtstamps->hwtstamp = ktime_set(systim >> 32, in igb_ptp_systim_to_hwtstamp()
185 systim & 0xFFFFFFFF); in igb_ptp_systim_to_hwtstamp()
519 u64 systim, now; in igb_ptp_feature_enable_82580() local
607 systim = (((u64)(systimh & 0xFF)) << 32) | ((u64)systiml); in igb_ptp_feature_enable_82580()
608 now = timecounter_cyc2time(&igb->tc, systim); in igb_ptp_feature_enable_82580()
619 systim = systim + (ns - rem); in igb_ptp_feature_enable_82580()
627 systim += ns; in igb_ptp_feature_enable_82580()
633 systim += ns; in igb_ptp_feature_enable_82580()
[all …]
Digb_main.c6770 u64 systim, now; in igb_perout() local
6776 systim = (((u64)(systimh & 0xFF)) << 32) | ((u64)systiml); in igb_perout()
6777 now = timecounter_cyc2time(&adapter->tc, systim); in igb_perout()
6788 systim = systim + (ns - rem); in igb_perout()
6796 systim += ns; in igb_perout()
6804 systim += ns; in igb_perout()
6813 ts.tv_nsec = (u32)systim; in igb_perout()
6814 ts.tv_sec = ((u32)(systim >> 32)) & 0xFF; in igb_perout()
/linux-5.19.10/drivers/net/ethernet/intel/e1000e/
Dnetdev.c494 u64 systim) in e1000e_systim_to_hwtstamp() argument
500 ns = timecounter_cyc2time(&adapter->tc, systim); in e1000e_systim_to_hwtstamp()
4351 static u64 e1000e_sanitize_systim(struct e1000_hw *hw, u64 systim, in e1000e_sanitize_systim() argument
4367 time_delta = systim_next - systim; in e1000e_sanitize_systim()
4372 systim = systim_next; in e1000e_sanitize_systim()
4378 return systim; in e1000e_sanitize_systim()
4392 u64 systim; in e1000e_read_systim() local
4416 systim = (u64)systimel; in e1000e_read_systim()
4417 systim |= (u64)systimeh << 32; in e1000e_read_systim()
4420 systim = e1000e_sanitize_systim(hw, systim, sts); in e1000e_read_systim()
[all …]