Home
last modified time | relevance | path

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

/linux/drivers/net/can/usb/peak_usb/
A Dpcan_usb_core.c74 if (time_ref) { in peak_usb_init_time_ref()
76 time_ref->adapter = adapter; in peak_usb_init_time_ref()
85 time_ref->ts_dev_2 = ts_now; 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()
115 time_ref->tv_host_0); in peak_usb_set_ts_now()
117 time_ref->tv_host_0 = time_ref->tv_host; in peak_usb_set_ts_now()
118 time_ref->ts_total = 0; in peak_usb_set_ts_now()
123 time_ref->tick_count++; in peak_usb_set_ts_now()
126 time_ref->ts_dev_1 = time_ref->ts_dev_2; in peak_usb_set_ts_now()
[all …]
A Dpcan_usb_core.h139 void peak_usb_init_time_ref(struct peak_time_ref *time_ref,
141 void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now);
142 void peak_usb_set_ts_now(struct peak_time_ref *time_ref, u32 ts_now);
143 void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *tv);
145 struct peak_time_ref *time_ref, u32 ts_low);
A Dpcan_usb.c132 struct peak_time_ref time_ref; member
411 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
413 peak_usb_set_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
460 if (!mc->pdev->time_ref.tick_count) in pcan_usb_decode_error()
519 peak_usb_get_ts_time(&mc->pdev->time_ref, mc->ts16, in pcan_usb_decode_error()
685 peak_usb_get_ts_time(&mc->pdev->time_ref, mc->ts16, &hwts->hwtstamp); in pcan_usb_decode_data()
839 peak_usb_init_time_ref(&pdev->time_ref, &pcan_usb); in pcan_usb_start()
A Dpcan_usb_pro.c47 struct peak_time_ref time_ref; member
545 peak_usb_get_ts_time(&usb_if->time_ref, le32_to_cpu(rx->ts32), in pcan_usb_pro_handle_canmsg()
662 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()
A Dpcan_usb_fd.c53 struct peak_time_ref time_ref; member
653 peak_usb_set_ts_now(&usb_if->time_ref, le32_to_cpu(ts->ts_low)); in pcan_usb_fd_decode_ts()
813 peak_usb_init_time_ref(&pdev->usb_if->time_ref, in pcan_usb_fd_start()

Completed in 13 milliseconds