Home
last modified time | relevance | path

Searched refs:rx_can_msg (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/can/usb/etas_es58x/
H A Des581_4.c103 num_element = es58x_msg_num_element(dev, es581_4_urb_cmd->rx_can_msg, in es581_4_rx_can_msg()
108 channel_no = es581_4_urb_cmd->rx_can_msg[0].channel_no; in es581_4_rx_can_msg()
124 const struct es581_4_rx_can_msg *rx_can_msg = in es581_4_rx_can_msg() local
125 &es581_4_urb_cmd->rx_can_msg[pkts]; in es581_4_rx_can_msg()
126 u64 tstamp = get_unaligned_le64(&rx_can_msg->timestamp); in es581_4_rx_can_msg()
127 canid_t can_id = get_unaligned_le32(&rx_can_msg->can_id); in es581_4_rx_can_msg()
129 if (channel_no != rx_can_msg->channel_no) in es581_4_rx_can_msg()
132 ret = es58x_rx_can_msg(netdev, tstamp, rx_can_msg->data, in es581_4_rx_can_msg()
133 can_id, rx_can_msg->flags, in es581_4_rx_can_msg()
134 rx_can_msg->dlc); in es581_4_rx_can_msg()
[all …]
H A Des58x_fd.c113 const struct es58x_fd_rx_can_msg *rx_can_msg = in es58x_fd_rx_can_msg() local
115 bool is_can_fd = !!(rx_can_msg->flags & ES58X_FLAG_FD_DATA); in es58x_fd_rx_can_msg()
121 u16 rx_can_msg_len = es58x_fd_sizeof_rx_tx_msg(*rx_can_msg); in es58x_fd_rx_can_msg()
130 if (rx_can_msg->len > CANFD_MAX_DLEN) { in es58x_fd_rx_can_msg()
133 __func__, rx_can_msg->len, CANFD_MAX_DLEN); in es58x_fd_rx_can_msg()
138 u64 tstamp = get_unaligned_le64(&rx_can_msg->timestamp); in es58x_fd_rx_can_msg()
139 canid_t can_id = get_unaligned_le32(&rx_can_msg->can_id); in es58x_fd_rx_can_msg()
143 dlc = can_fd_len2dlc(rx_can_msg->len); in es58x_fd_rx_can_msg()
145 dlc = rx_can_msg->dlc; in es58x_fd_rx_can_msg()
147 ret = es58x_rx_can_msg(netdev, tstamp, rx_can_msg->data, in es58x_fd_rx_can_msg()
[all …]
H A Des581_4.h187 struct es581_4_rx_can_msg rx_can_msg[ES581_4_RX_BULK_MAX]; member
205 ES58X_SIZEOF_URB_CMD(struct es581_4_urb_cmd, rx_can_msg)