Home
last modified time | relevance | path

Searched refs:trailer_len (Results 1 - 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
H A Dhtc.c242 u32 trailer_len = 0; in ath11k_htc_rx_completion_handler() local
280 trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info); in ath11k_htc_rx_completion_handler()
283 if ((trailer_len < min_len) || in ath11k_htc_rx_completion_handler()
284 (trailer_len > payload_len)) { in ath11k_htc_rx_completion_handler()
286 trailer_len); in ath11k_htc_rx_completion_handler()
293 trailer -= trailer_len; in ath11k_htc_rx_completion_handler()
295 trailer_len, eid); in ath11k_htc_rx_completion_handler()
299 skb_trim(skb, skb->len - trailer_len); in ath11k_htc_rx_completion_handler()
302 if (trailer_len >= payload_len) in ath11k_htc_rx_completion_handler()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath12k/
H A Dhtc.c255 u32 trailer_len = 0; in ath12k_htc_rx_completion_handler() local
293 trailer_len = le32_get_bits(hdr->ctrl_info, in ath12k_htc_rx_completion_handler()
297 if ((trailer_len < min_len) || in ath12k_htc_rx_completion_handler()
298 (trailer_len > payload_len)) { in ath12k_htc_rx_completion_handler()
300 trailer_len); in ath12k_htc_rx_completion_handler()
307 trailer -= trailer_len; in ath12k_htc_rx_completion_handler()
309 trailer_len, eid); in ath12k_htc_rx_completion_handler()
313 skb_trim(skb, skb->len - trailer_len); in ath12k_htc_rx_completion_handler()
316 if (trailer_len >= payload_len) in ath12k_htc_rx_completion_handler()
/kernel/linux/linux-5.10/drivers/usb/serial/
H A Dsafe_serial.c228 int trailer_len; in safe_prepare_write_buffer() local
232 trailer_len = safe ? 2 : 0; in safe_prepare_write_buffer()
234 count = kfifo_out_locked(&port->write_fifo, buf, size - trailer_len, in safe_prepare_write_buffer()
242 memset(buf + count, '0', pkt_len - count - trailer_len); in safe_prepare_write_buffer()
244 pkt_len = count + trailer_len; in safe_prepare_write_buffer()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c52 unsigned int trailer_len; in mlx5e_ipsec_remove_trailer() local
60 trailer_len = alen + plen + 2; in mlx5e_ipsec_remove_trailer()
62 ret = pskb_trim(skb, skb->len - trailer_len); in mlx5e_ipsec_remove_trailer()
66 ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len); in mlx5e_ipsec_remove_trailer()
70 trailer_len); in mlx5e_ipsec_remove_trailer()
/kernel/linux/linux-6.6/drivers/usb/serial/
H A Dsafe_serial.c228 int trailer_len; in safe_prepare_write_buffer() local
232 trailer_len = safe ? 2 : 0; in safe_prepare_write_buffer()
234 count = kfifo_out_locked(&port->write_fifo, buf, size - trailer_len, in safe_prepare_write_buffer()
242 memset(buf + count, '0', pkt_len - count - trailer_len); in safe_prepare_write_buffer()
244 pkt_len = count + trailer_len; in safe_prepare_write_buffer()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/
H A Dhtc.c292 u32 message_id, trailer_len = 0; in ath11k_htc_rx_completion_handler() local
333 trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info); in ath11k_htc_rx_completion_handler()
336 if ((trailer_len < min_len) || in ath11k_htc_rx_completion_handler()
337 (trailer_len > payload_len)) { in ath11k_htc_rx_completion_handler()
339 trailer_len); in ath11k_htc_rx_completion_handler()
346 trailer -= trailer_len; in ath11k_htc_rx_completion_handler()
348 trailer_len, eid); in ath11k_htc_rx_completion_handler()
352 skb_trim(skb, skb->len - trailer_len); in ath11k_htc_rx_completion_handler()
355 if (trailer_len >= payload_len) in ath11k_htc_rx_completion_handler()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c114 unsigned int trailer_len; in mlx5e_ipsec_remove_trailer() local
122 trailer_len = alen + plen + 2; in mlx5e_ipsec_remove_trailer()
124 ret = pskb_trim(skb, skb->len - trailer_len); in mlx5e_ipsec_remove_trailer()
128 ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len); in mlx5e_ipsec_remove_trailer()
132 trailer_len); in mlx5e_ipsec_remove_trailer()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
H A Dhtc.c434 u32 trailer_len = 0; in ath10k_htc_rx_completion_handler() local
477 trailer_len = hdr->trailer_len; in ath10k_htc_rx_completion_handler()
480 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler()
481 (trailer_len > payload_len)) { in ath10k_htc_rx_completion_handler()
483 trailer_len); in ath10k_htc_rx_completion_handler()
490 trailer -= trailer_len; in ath10k_htc_rx_completion_handler()
492 trailer_len, hdr->eid, in ath10k_htc_rx_completion_handler()
497 skb_trim(skb, skb->len - trailer_len); in ath10k_htc_rx_completion_handler()
500 if (((int)payload_len - (int)trailer_len) < in ath10k_htc_rx_completion_handler()
[all...]
H A Dbmi.c459 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download() local
471 if (trailer_len > 0) in ath10k_bmi_fast_download()
472 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download()
482 if (trailer_len > 0) in ath10k_bmi_fast_download()
H A Dusb.c31 return __le16_to_cpu(htc_hdr->len) == htc_hdr->trailer_len; in is_trailer_only_msg()
317 if (payload_len < htc_hdr->trailer_len) { in ath10k_usb_rx_complete()
324 htc_hdr->trailer_len; in ath10k_usb_rx_complete()
328 htc_hdr->trailer_len, in ath10k_usb_rx_complete()
341 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_usb_rx_complete()
H A Dhtc.h30 * To get payload-only length one needs to payload - trailer_len.
79 u8 trailer_len; /* for rx */ member
H A Dsdio.c79 if (len == htc_hdr->trailer_len) in is_trailer_only_msg()
393 trailer = skb->data + skb->len - htc_hdr->trailer_len; in ath10k_sdio_mbox_rx_process_packet()
399 htc_hdr->trailer_len, in ath10k_sdio_mbox_rx_process_packet()
409 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_sdio_mbox_rx_process_packet()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath10k/
H A Dhtc.c443 u32 trailer_len = 0; in ath10k_htc_rx_completion_handler() local
490 trailer_len = hdr->trailer_len; in ath10k_htc_rx_completion_handler()
493 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler()
494 (trailer_len > payload_len)) { in ath10k_htc_rx_completion_handler()
496 trailer_len); in ath10k_htc_rx_completion_handler()
503 trailer -= trailer_len; in ath10k_htc_rx_completion_handler()
505 trailer_len, hdr->eid, in ath10k_htc_rx_completion_handler()
510 skb_trim(skb, skb->len - trailer_len); in ath10k_htc_rx_completion_handler()
513 if (((int)payload_len - (int)trailer_len) < in ath10k_htc_rx_completion_handler()
[all...]
H A Dbmi.c459 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download() local
471 if (trailer_len > 0) in ath10k_bmi_fast_download()
472 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download()
482 if (trailer_len > 0) in ath10k_bmi_fast_download()
H A Dusb.c31 return __le16_to_cpu(htc_hdr->len) == htc_hdr->trailer_len; in is_trailer_only_msg()
317 if (payload_len < htc_hdr->trailer_len) { in ath10k_usb_rx_complete()
324 htc_hdr->trailer_len; in ath10k_usb_rx_complete()
328 htc_hdr->trailer_len, in ath10k_usb_rx_complete()
341 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_usb_rx_complete()
H A Dhtc.h30 * To get payload-only length one needs to payload - trailer_len.
79 u8 trailer_len; /* for rx */ member
/kernel/linux/linux-5.10/drivers/net/wireguard/
H A Dsend.c164 unsigned int padding_len, plaintext_len, trailer_len; in encrypt_packet() local
177 trailer_len = padding_len + noise_encrypted_len(0); in encrypt_packet()
181 num_frags = skb_cow_data(skb, trailer_len, &trailer); in encrypt_packet()
209 pskb_put(skb, trailer, trailer_len); in encrypt_packet()
/kernel/linux/linux-6.6/drivers/net/wireguard/
H A Dsend.c164 unsigned int padding_len, plaintext_len, trailer_len; in encrypt_packet() local
177 trailer_len = padding_len + noise_encrypted_len(0); in encrypt_packet()
181 num_frags = skb_cow_data(skb, trailer_len, &trailer); in encrypt_packet()
209 pskb_put(skb, trailer, trailer_len); in encrypt_packet()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.h46 u16 trailer_len; member
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.h46 u16 trailer_len; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.h62 u16 trailer_len; member
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.h62 u16 trailer_len; member
/kernel/linux/linux-5.10/net/core/
H A Ddst.c65 dst->trailer_len = 0; in dst_init()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c195 + sizeof(struct tcphdr) + dst->trailer_len, in nf_send_reset6()
/kernel/linux/linux-6.6/net/core/
H A Ddst.c64 dst->trailer_len = 0; in dst_init()

Completed in 21 milliseconds

12