Searched refs:usb_msg (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/net/can/usb/ |
D | mcba_usb.c | 250 struct mcba_usb_msg *usb_msg, in mcba_usb_xmit() argument 269 memcpy(buf, usb_msg, MCBA_USB_TX_BUFF_SIZE); in mcba_usb_xmit() 314 struct mcba_usb_msg_can usb_msg = { in mcba_usb_start_xmit() local 334 put_unaligned_be16(sid, &usb_msg.sid); in mcba_usb_start_xmit() 337 put_unaligned_be16(cf->can_id & 0xffff, &usb_msg.eid); in mcba_usb_start_xmit() 343 &usb_msg.sid); in mcba_usb_start_xmit() 344 usb_msg.eid = 0; in mcba_usb_start_xmit() 347 usb_msg.dlc = cf->len; in mcba_usb_start_xmit() 349 memcpy(usb_msg.data, cf->data, usb_msg.dlc); in mcba_usb_start_xmit() 352 usb_msg.dlc |= MCBA_DLC_RTR_MASK; in mcba_usb_start_xmit() [all …]
|
/Linux-v6.6/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_pro.c | 702 struct pcan_usb_pro_msg usb_msg; in pcan_usb_pro_decode_buf() local 707 rec_ptr = pcan_msg_init(&usb_msg, urb->transfer_buffer, in pcan_usb_pro_decode_buf() 716 rec_cnt = le16_to_cpu(*usb_msg.u.rec_cnt_rd); in pcan_usb_pro_decode_buf() 779 struct pcan_usb_pro_msg usb_msg; in pcan_usb_pro_encode_msg() local 781 pcan_msg_init_empty(&usb_msg, obuf, *size); in pcan_usb_pro_encode_msg() 802 pcan_msg_add_rec(&usb_msg, data_type, 0, flags, len, cf->can_id, in pcan_usb_pro_encode_msg() 805 *size = usb_msg.rec_buffer_len; in pcan_usb_pro_encode_msg()
|