Searched refs:urb_len (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.6/drivers/net/can/usb/etas_es58x/ |
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 85 ssize_t len = urb_len - ES58X_CRC_CALC_OFFSET - sizeof(crc); 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 …]
|
/Linux-v6.6/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_core.c | 6262 int i, pkt_cnt, pkt_len, urb_len, pkt_offset; in rtl8xxxu_parse_rxdesc16() local 6264 urb_len = skb->len; in rtl8xxxu_parse_rxdesc16() 6267 if (urb_len < sizeof(struct rtl8xxxu_rxdesc16)) { in rtl8xxxu_parse_rxdesc16() 6299 urb_len >= (pkt_offset + sizeof(struct rtl8xxxu_rxdesc16))) in rtl8xxxu_parse_rxdesc16() 6352 urb_len -= pkt_offset; in rtl8xxxu_parse_rxdesc16() 6355 urb_len >= sizeof(struct rtl8xxxu_rxdesc16)); in rtl8xxxu_parse_rxdesc16() 6370 int i, pkt_len, urb_len, pkt_offset; in rtl8xxxu_parse_rxdesc24() local 6372 urb_len = skb->len; in rtl8xxxu_parse_rxdesc24() 6374 if (urb_len < sizeof(struct rtl8xxxu_rxdesc24)) { in rtl8xxxu_parse_rxdesc24() 6398 if (urb_len >= (pkt_offset + sizeof(struct rtl8xxxu_rxdesc24))) in rtl8xxxu_parse_rxdesc24() [all …]
|
/Linux-v6.6/drivers/usb/host/ |
D | r8a66597-hcd.c | 1308 int rcv_len, bufsize, urb_len, size; in packet_read() local 1334 urb_len = urb->iso_frame_desc[td->iso_cnt].length; in packet_read() 1337 urb_len = urb->transfer_buffer_length - urb->actual_length; in packet_read() 1339 bufsize = min(urb_len, (int) td->maxpacket); in packet_read()
|
D | oxu210hp-hcd.c | 461 unsigned int urb_len; member 3092 oxu->urb_len = 0; in oxu_reset()
|
/Linux-v6.6/drivers/net/usb/ |
D | lan78xx.c | 3819 u32 urb_len = 0; in lan78xx_tx_buf_fill() local 3840 align_bytes = (TX_ALIGNMENT - (urb_len % TX_ALIGNMENT)) % in lan78xx_tx_buf_fill() 3869 urb_len = (u32)(tx_data - (u8 *)tx_buf->data); in lan78xx_tx_buf_fill() 3871 remain = dev->tx_urb_size - urb_len; in lan78xx_tx_buf_fill() 3874 skb_put(tx_buf, urb_len); in lan78xx_tx_buf_fill()
|