Home
last modified time | relevance | path

Searched refs:time_ref (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c71 void peak_usb_init_time_ref(struct peak_time_ref *time_ref, in peak_usb_init_time_ref() argument
74 if (time_ref) { in peak_usb_init_time_ref()
75 memset(time_ref, 0, sizeof(struct peak_time_ref)); in peak_usb_init_time_ref()
76 time_ref->adapter = adapter; in peak_usb_init_time_ref()
83 void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now) in peak_usb_update_ts_now() argument
85 time_ref->ts_dev_2 = ts_now; in peak_usb_update_ts_now()
88 if (ktime_to_ns(time_ref->tv_host) > 0) { in peak_usb_update_ts_now()
89 u32 delta_ts = time_ref->ts_dev_2 - time_ref->ts_dev_1; in peak_usb_update_ts_now()
91 if (time_ref->ts_dev_2 < time_ref->ts_dev_1) in peak_usb_update_ts_now()
92 delta_ts &= (1 << time_ref->adapter->ts_used_bits) - 1; in peak_usb_update_ts_now()
[all …]
Dpcan_usb_core.h138 void peak_usb_init_time_ref(struct peak_time_ref *time_ref,
140 void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now);
141 void peak_usb_set_ts_now(struct peak_time_ref *time_ref, u32 ts_now);
142 void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *tv);
144 struct peak_time_ref *time_ref, u32 ts_low);
Dpcan_usb.c133 struct peak_time_ref time_ref; member
412 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
414 peak_usb_set_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
461 if (!mc->pdev->time_ref.tick_count) in pcan_usb_decode_error()
521 peak_usb_get_ts_time(&mc->pdev->time_ref, mc->ts16, in pcan_usb_decode_error()
689 peak_usb_get_ts_time(&mc->pdev->time_ref, mc->ts16, &hwts->hwtstamp); in pcan_usb_decode_data()
840 peak_usb_init_time_ref(&pdev->time_ref, &pcan_usb); in pcan_usb_start()
Dpcan_usb_pro.c47 struct peak_time_ref time_ref; member
549 peak_usb_get_ts_time(&usb_if->time_ref, le32_to_cpu(rx->ts32), in pcan_usb_pro_handle_canmsg()
664 peak_usb_get_ts_time(&usb_if->time_ref, le32_to_cpu(er->ts32), &hwts->hwtstamp); in pcan_usb_pro_handle_error()
677 peak_usb_set_ts_now(&usb_if->time_ref, in pcan_usb_pro_handle_ts()
815 peak_usb_init_time_ref(&pdev->usb_if->time_ref, &pcan_usb_pro); in pcan_usb_pro_start()
Dpcan_usb_fd.c64 struct peak_time_ref time_ref; member
667 peak_usb_set_ts_now(&usb_if->time_ref, le32_to_cpu(ts->ts_low)); in pcan_usb_fd_decode_ts()
827 peak_usb_init_time_ref(&pdev->usb_if->time_ref, in pcan_usb_fd_start()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_ptp_hw.h153 return hw->func_caps.ts_func_info.time_ref; in ice_e822_time_ref()
165 ice_set_e822_time_ref(struct ice_hw *hw, enum ice_time_ref_freq time_ref) in ice_set_e822_time_ref() argument
167 hw->func_caps.ts_func_info.time_ref = time_ref; in ice_set_e822_time_ref()
170 static inline u64 ice_e822_pll_freq(enum ice_time_ref_freq time_ref) in ice_e822_pll_freq() argument
172 return e822_time_ref[time_ref].pll_freq; in ice_e822_pll_freq()
175 static inline u64 ice_e822_nominal_incval(enum ice_time_ref_freq time_ref) in ice_e822_nominal_incval() argument
177 return e822_time_ref[time_ref].nominal_incval; in ice_e822_nominal_incval()
180 static inline u64 ice_e822_pps_delay(enum ice_time_ref_freq time_ref) in ice_e822_pps_delay() argument
182 return e822_time_ref[time_ref].pps_delay; in ice_e822_pps_delay()
Dice_type.h331 enum ice_time_ref_freq time_ref; member
Dice_common.c2340 info->time_ref = (enum ice_time_ref_freq)info->clk_freq; in ice_parse_1588_func_caps()
2348 info->time_ref = ICE_TIME_REF_FREQ_25_000; in ice_parse_1588_func_caps()
Dice_ptp_hw.c933 err = ice_cfg_cgu_pll_e822(hw, ts_info->time_ref, in ice_init_cgu_e822()