Home
last modified time | relevance | path

Searched refs:usb_msg (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/can/usb/
Dmcba_usb.c256 struct mcba_usb_msg *usb_msg, in mcba_usb_xmit() argument
275 memcpy(buf, usb_msg, MCBA_USB_TX_BUFF_SIZE); in mcba_usb_xmit()
320 struct mcba_usb_msg_can usb_msg = { in mcba_usb_start_xmit() local
340 put_unaligned_be16(sid, &usb_msg.sid); in mcba_usb_start_xmit()
343 put_unaligned_be16(cf->can_id & 0xffff, &usb_msg.eid); in mcba_usb_start_xmit()
349 &usb_msg.sid); in mcba_usb_start_xmit()
350 usb_msg.eid = 0; in mcba_usb_start_xmit()
353 usb_msg.dlc = cf->can_dlc; in mcba_usb_start_xmit()
355 memcpy(usb_msg.data, cf->data, usb_msg.dlc); in mcba_usb_start_xmit()
358 usb_msg.dlc |= MCBA_DLC_RTR_MASK; in mcba_usb_start_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c689 struct pcan_usb_pro_msg usb_msg; in pcan_usb_pro_decode_buf() local
694 rec_ptr = pcan_msg_init(&usb_msg, urb->transfer_buffer, in pcan_usb_pro_decode_buf()
703 rec_cnt = le16_to_cpu(*usb_msg.u.rec_cnt_rd); in pcan_usb_pro_decode_buf()
766 struct pcan_usb_pro_msg usb_msg; in pcan_usb_pro_encode_msg() local
768 pcan_msg_init_empty(&usb_msg, obuf, *size); in pcan_usb_pro_encode_msg()
785 pcan_msg_add_rec(&usb_msg, data_type, 0, flags, len, cf->can_id, in pcan_usb_pro_encode_msg()
788 *size = usb_msg.rec_buffer_len; in pcan_usb_pro_encode_msg()