Searched refs:es58x_dev (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.6/drivers/net/can/usb/etas_es58x/ |
D | es58x_core.c | 134 static int es58x_check_crc(struct es58x_device *es58x_dev, in es58x_check_crc() argument 141 dev_err_ratelimited(es58x_dev->dev, in es58x_check_crc() 178 struct es58x_device *es58x_dev = es58x_priv(netdev)->es58x_dev; in es58x_set_skb_timestamp() local 186 es58x_dev->realtime_diff_ns); in es58x_set_skb_timestamp() 199 void es58x_rx_timestamp(struct es58x_device *es58x_dev, u64 timestamp) in es58x_rx_timestamp() argument 204 dev_dbg(es58x_dev->dev, "%s: request round-trip time: %llu ns\n", in es58x_rx_timestamp() 205 __func__, ktime_real_ns - es58x_dev->ktime_req_ns); in es58x_rx_timestamp() 207 es58x_dev->realtime_diff_ns = in es58x_rx_timestamp() 208 (es58x_dev->ktime_req_ns + ktime_real_ns) / 2 - device_timestamp; in es58x_rx_timestamp() 209 es58x_dev->ktime_req_ns = 0; in es58x_rx_timestamp() [all …]
|
D | es58x_devlink.c | 42 static int es58x_parse_sw_version(struct es58x_device *es58x_dev, in es58x_parse_sw_version() argument 49 version = &es58x_dev->firmware_version; in es58x_parse_sw_version() 51 version = &es58x_dev->bootloader_version; in es58x_parse_sw_version() 93 static int es58x_parse_hw_rev(struct es58x_device *es58x_dev, in es58x_parse_hw_rev() argument 112 es58x_dev->hardware_revision.letter = letter; in es58x_parse_hw_rev() 113 es58x_dev->hardware_revision.major = major; in es58x_parse_hw_rev() 114 es58x_dev->hardware_revision.minor = minor; in es58x_parse_hw_rev() 132 void es58x_parse_product_info(struct es58x_device *es58x_dev) in es58x_parse_product_info() argument 136 prod_info = usb_cache_string(es58x_dev->udev, ES58X_PROD_INFO_IDX); in es58x_parse_product_info() 138 dev_warn(es58x_dev->dev, in es58x_parse_product_info() [all …]
|
D | es581_4.c | 39 static int es581_4_echo_msg(struct es58x_device *es58x_dev, in es581_4_echo_msg() argument 45 u64 *tstamps = es58x_dev->timestamps; in es581_4_echo_msg() 54 num_element = es58x_msg_num_element(es58x_dev->dev, in es581_4_echo_msg() 59 ret = es58x_get_netdev(es58x_dev, bulk_echo_msg->channel_no, in es581_4_echo_msg() 95 static int es581_4_rx_can_msg(struct es58x_device *es58x_dev, in es581_4_rx_can_msg() argument 99 const struct device *dev = es58x_dev->dev; in es581_4_rx_can_msg() 109 ret = es58x_get_netdev(es58x_dev, channel_no, in es581_4_rx_can_msg() 142 static int es581_4_rx_err_msg(struct es58x_device *es58x_dev, in es581_4_rx_err_msg() argument 149 ret = es58x_get_netdev(es58x_dev, rx_err_msg->channel_no, in es581_4_rx_err_msg() 158 static int es581_4_rx_event_msg(struct es58x_device *es58x_dev, in es581_4_rx_event_msg() argument [all …]
|
D | es58x_fd.c | 66 struct es58x_device *es58x_dev = priv->es58x_dev; in es58x_fd_echo_msg() local 67 u64 *tstamps = es58x_dev->timestamps; in es58x_fd_echo_msg() 75 num_element = es58x_msg_num_element(es58x_dev->dev, in es58x_fd_echo_msg() 101 struct es58x_device *es58x_dev = es58x_priv(netdev)->es58x_dev; in es58x_fd_rx_can_msg() local 106 ret = es58x_check_msg_max_len(es58x_dev->dev, in es58x_fd_rx_can_msg() 171 struct es58x_device *es58x_dev = es58x_priv(netdev)->es58x_dev; in es58x_fd_rx_event_msg() local 177 ret = es58x_check_msg_len(es58x_dev->dev, *rx_event_msg, msg_len); in es58x_fd_rx_event_msg() 190 struct es58x_device *es58x_dev = es58x_priv(netdev)->es58x_dev; in es58x_fd_rx_cmd_ret_u32() local 194 ret = es58x_check_msg_len(es58x_dev->dev, in es58x_fd_rx_cmd_ret_u32() 206 struct es58x_device *es58x_dev = es58x_priv(netdev)->es58x_dev; in es58x_fd_tx_ack_msg() local [all …]
|
D | es58x_core.h | 261 struct es58x_device *es58x_dev; member 351 int (*handle_urb_cmd)(struct es58x_device *es58x_dev, 358 int (*reset_device)(struct es58x_device *es58x_dev); 359 int (*get_timestamp)(struct es58x_device *es58x_dev); 640 static inline size_t es58x_get_urb_cmd_len(struct es58x_device *es58x_dev, in es58x_get_urb_cmd_len() argument 643 return es58x_dev->param->urb_cmd_header_len + msg_len + sizeof(u16); in es58x_get_urb_cmd_len() 660 static inline int es58x_get_netdev(struct es58x_device *es58x_dev, in es58x_get_netdev() argument 667 if (channel_idx < 0 || channel_idx >= es58x_dev->num_can_ch) in es58x_get_netdev() 670 *netdev = es58x_dev->netdev[channel_idx]; in es58x_get_netdev() 729 void es58x_rx_timestamp(struct es58x_device *es58x_dev, u64 timestamp); [all …]
|