Searched refs:urb_cmd (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/net/can/usb/etas_es58x/ |
H A D | es58x_core.c | 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() 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() 115 static void es58x_set_crc(union es58x_urb_cmd *urb_cmd, u16 urb_len) in es58x_set_crc() argument 120 crc = es58x_calculate_crc(urb_cmd, urb_len); in es58x_set_crc() 121 crc_addr = (__le16 *)&urb_cmd->raw_cmd[urb_len - sizeof(crc)]; in es58x_set_crc() 135 const union es58x_urb_cmd *urb_cmd, u16 urb_len) in es58x_check_crc() argument 137 u16 calculated_crc = es58x_calculate_crc(urb_cmd, urb_len); in es58x_check_crc() 138 u16 expected_crc = es58x_get_crc(urb_cmd, urb_len); in es58x_check_crc() [all …]
|
H A D | es581_4.c | 34 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_TYPE, in es581_4_tx_can_msg() [all …]
|
H A D | es58x_fd.c | 56 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()
|
H A D | es58x_core.h | 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,
|