Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c66 void peak_usb_init_time_ref(struct peak_time_ref *time_ref, in peak_usb_init_time_ref() argument
69 if (time_ref) { in peak_usb_init_time_ref()
70 memset(time_ref, 0, sizeof(struct peak_time_ref)); in peak_usb_init_time_ref()
71 time_ref->adapter = adapter; in peak_usb_init_time_ref()
78 void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now) in peak_usb_update_ts_now() argument
80 time_ref->ts_dev_2 = ts_now; in peak_usb_update_ts_now()
83 if (ktime_to_ns(time_ref->tv_host) > 0) { in peak_usb_update_ts_now()
84 u32 delta_ts = time_ref->ts_dev_2 - time_ref->ts_dev_1; in peak_usb_update_ts_now()
86 if (time_ref->ts_dev_2 < time_ref->ts_dev_1) in peak_usb_update_ts_now()
87 delta_ts &= (1 << time_ref->adapter->ts_used_bits) - 1; in peak_usb_update_ts_now()
[all …]
Dpcan_usb_core.h142 void peak_usb_init_time_ref(struct peak_time_ref *time_ref,
144 void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now);
145 void peak_usb_set_ts_now(struct peak_time_ref *time_ref, u32 ts_now);
146 void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *tv);
148 struct peak_time_ref *time_ref, u32 ts_low);
Dpcan_usb.c126 struct peak_time_ref time_ref; member
404 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
406 peak_usb_set_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
456 if (!mc->pdev->time_ref.tick_count) in pcan_usb_decode_error()
595 peak_usb_get_ts_time(&mc->pdev->time_ref, mc->ts16, in pcan_usb_decode_error()
762 peak_usb_get_ts_time(&mc->pdev->time_ref, mc->ts16, &hwts->hwtstamp); in pcan_usb_decode_data()
894 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
546 peak_usb_get_ts_time(&usb_if->time_ref, le32_to_cpu(rx->ts32), in pcan_usb_pro_handle_canmsg()
663 peak_usb_get_ts_time(&usb_if->time_ref, le32_to_cpu(er->ts32), &hwts->hwtstamp); in pcan_usb_pro_handle_error()
678 peak_usb_set_ts_now(&usb_if->time_ref, in pcan_usb_pro_handle_ts()
812 peak_usb_init_time_ref(&pdev->usb_if->time_ref, &pcan_usb_pro); in pcan_usb_pro_start()
Dpcan_usb_fd.c55 struct peak_time_ref time_ref; member
518 peak_usb_netif_rx(skb, &usb_if->time_ref, le32_to_cpu(rm->ts_low)); in pcan_usb_fd_decode_canmsg()
583 peak_usb_netif_rx(skb, &usb_if->time_ref, le32_to_cpu(sm->ts_low)); in pcan_usb_fd_decode_status()
633 peak_usb_netif_rx(skb, &usb_if->time_ref, le32_to_cpu(ov->ts_low)); in pcan_usb_fd_decode_overrun()
651 peak_usb_set_ts_now(&usb_if->time_ref, le32_to_cpu(ts->ts_low)); in pcan_usb_fd_decode_ts()
806 peak_usb_init_time_ref(&pdev->usb_if->time_ref, in pcan_usb_fd_start()