Home
last modified time | relevance | path

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

/Linux-v6.1/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.c421 u64 systim) in igc_ptp_systim_to_hwtstamp() argument
427 hwtstamps->hwtstamp = ktime_set(systim >> 32, in igc_ptp_systim_to_hwtstamp()
428 systim & 0xFFFFFFFF); in igc_ptp_systim_to_hwtstamp()
/Linux-v6.1/drivers/video/fbdev/omap/
Dhwa742.c638 unsigned long systim; in calc_reg_timing() local
648 systim = 1000000000 / (sysclk / 1000); in calc_reg_timing()
650 "extif_clk_div %d\n", systim, hwa742.extif_clk_period, div); in calc_reg_timing()
662 t->we_cycle_time = round_to_extif_ticks(2 * systim + 2000, div); in calc_reg_timing()
665 t->re_cycle_time = round_to_extif_ticks(2 * systim + 2000, div); in calc_reg_timing()
684 unsigned long systim; in calc_lut_timing() local
695 systim = 1000000000 / (sysclk / 1000); in calc_lut_timing()
697 "extif_clk_div %d\n", systim, hwa742.extif_clk_period, div); in calc_lut_timing()
707 t->access_time = round_to_extif_ticks(t->re_on_time + 4 * systim + in calc_lut_timing()
710 t->re_off_time = round_to_extif_ticks(t->re_on_time + 4 * systim + in calc_lut_timing()
[all …]
/Linux-v6.1/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()
518 u64 systim, now; in igb_ptp_feature_enable_82580() local
606 systim = (((u64)(systimh & 0xFF)) << 32) | ((u64)systiml); in igb_ptp_feature_enable_82580()
607 now = timecounter_cyc2time(&igb->tc, systim); in igb_ptp_feature_enable_82580()
618 systim = systim + (ns - rem); in igb_ptp_feature_enable_82580()
626 systim += ns; in igb_ptp_feature_enable_82580()
632 systim += ns; in igb_ptp_feature_enable_82580()
[all …]
Digb_main.c6803 u64 systim, now; in igb_perout() local
6809 systim = (((u64)(systimh & 0xFF)) << 32) | ((u64)systiml); in igb_perout()
6810 now = timecounter_cyc2time(&adapter->tc, systim); in igb_perout()
6821 systim = systim + (ns - rem); in igb_perout()
6829 systim += ns; in igb_perout()
6837 systim += ns; in igb_perout()
6846 ts.tv_nsec = (u32)systim; in igb_perout()
6847 ts.tv_sec = ((u32)(systim >> 32)) & 0xFF; in igb_perout()
/Linux-v6.1/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 …]