Home
last modified time | relevance | path

Searched refs:urb_cmd (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c76 * @urb_cmd: The URB command for which we want to calculate the CRC.
77 * @urb_len: Length of @urb_cmd. Must be at least bigger than 4
82 static u16 es58x_calculate_crc(const union es58x_urb_cmd *urb_cmd, u16 urb_len) in es58x_calculate_crc() argument
87 crc = crc16(0, &urb_cmd->raw_cmd[ES58X_CRC_CALC_OFFSET], len); in es58x_calculate_crc()
93 * @urb_cmd: The URB command for which we want to get the CRC.
94 * @urb_len: Length of @urb_cmd. Must be at least bigger than 4
99 static u16 es58x_get_crc(const union es58x_urb_cmd *urb_cmd, u16 urb_len) in es58x_get_crc() argument
104 crc_addr = (__le16 *)&urb_cmd->raw_cmd[urb_len - sizeof(crc)]; in es58x_get_crc()
111 * @urb_cmd: The URB command for which we want to get the CRC.
112 * @urb_len: Length of @urb_cmd
115 es58x_set_crc(union es58x_urb_cmd * urb_cmd,u16 urb_len) es58x_set_crc() argument
135 es58x_check_crc(struct es58x_device * es58x_dev,const union es58x_urb_cmd * urb_cmd,u16 urb_len) es58x_check_crc() argument
1092 es58x_handle_urb_cmd(struct es58x_device * es58x_dev,const union es58x_urb_cmd * urb_cmd) es58x_handle_urb_cmd() argument
1165 es58x_check_rx_urb(struct es58x_device * es58x_dev,const union es58x_urb_cmd * urb_cmd,u32 urb_actual_len) es58x_check_rx_urb() argument
1257 union es58x_urb_cmd *urb_cmd; es58x_split_urb_try_recovery() local
1358 union es58x_urb_cmd *urb_cmd; es58x_split_urb() local
1665 union es58x_urb_cmd *urb_cmd; es58x_send_msg() local
[all...]
H A Des581_4.c34 static u16 es581_4_get_msg_len(const union es58x_urb_cmd *urb_cmd) in es581_4_get_msg_len() argument
36 return get_unaligned_le16(&urb_cmd->es581_4_urb_cmd.msg_len); in es581_4_get_msg_len()
262 const union es58x_urb_cmd *urb_cmd) in es581_4_handle_urb_cmd() argument
266 u16 msg_len = es581_4_get_msg_len(urb_cmd); in es581_4_handle_urb_cmd()
269 es581_4_urb_cmd = &urb_cmd->es581_4_urb_cmd; in es581_4_handle_urb_cmd()
333 static void es581_4_fill_urb_header(union es58x_urb_cmd *urb_cmd, u8 cmd_type, in es581_4_fill_urb_header() argument
336 struct es581_4_urb_cmd *es581_4_urb_cmd = &urb_cmd->es581_4_urb_cmd; in es581_4_fill_urb_header()
348 union es58x_urb_cmd *urb_cmd = priv->tx_urb->transfer_buffer; in es581_4_tx_can_msg() local
349 struct es581_4_urb_cmd *es581_4_urb_cmd = &urb_cmd->es581_4_urb_cmd; in es581_4_tx_can_msg()
360 es581_4_fill_urb_header(urb_cmd, ES581_4_CAN_COMMAND_TYP in es581_4_tx_can_msg()
[all...]
H A Des58x_fd.c56 static u16 es58x_fd_get_msg_len(const union es58x_urb_cmd *urb_cmd) in es58x_fd_get_msg_len() argument
58 return get_unaligned_le16(&urb_cmd->es58x_fd_urb_cmd.msg_len); in es58x_fd_get_msg_len()
288 const union es58x_urb_cmd *urb_cmd) in es58x_fd_handle_urb_cmd() argument
293 es58x_fd_urb_cmd = &urb_cmd->es58x_fd_urb_cmd; in es58x_fd_handle_urb_cmd()
319 static void es58x_fd_fill_urb_header(union es58x_urb_cmd *urb_cmd, u8 cmd_type, in es58x_fd_fill_urb_header() argument
322 struct es58x_fd_urb_cmd *es58x_fd_urb_cmd = &urb_cmd->es58x_fd_urb_cmd; in es58x_fd_fill_urb_header()
335 union es58x_urb_cmd *urb_cmd = priv->tx_urb->transfer_buffer; in es58x_fd_tx_can_msg() local
336 struct es58x_fd_urb_cmd *es58x_fd_urb_cmd = &urb_cmd->es58x_fd_urb_cmd; in es58x_fd_tx_can_msg()
345 es58x_fd_fill_urb_header(urb_cmd, in es58x_fd_tx_can_msg()
351 msg_len = es58x_fd_get_msg_len(urb_cmd); in es58x_fd_tx_can_msg()
[all...]
H A Des58x_core.h335 * @get_msg_len: Get field msg_len of the urb_cmd. The offset of
336 * msg_len inside urb_cmd depends of the device model.
339 * @fill_urb_header: Fill the header of urb_cmd.
350 u16 (*get_msg_len)(const union es58x_urb_cmd *urb_cmd);
352 const union es58x_urb_cmd *urb_cmd);
353 void (*fill_urb_header)(union es58x_urb_cmd *urb_cmd, u8 cmd_type,