Searched refs:trailer_len (Results 1 – 15 of 15) sorted by relevance
/drivers/usb/serial/ |
D | safe_serial.c | 228 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()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_rxtx.c | 51 unsigned int trailer_len; in mlx5e_ipsec_remove_trailer() local 59 trailer_len = alen + plen + 2; in mlx5e_ipsec_remove_trailer() 61 ret = pskb_trim(skb, skb->len - trailer_len); in mlx5e_ipsec_remove_trailer() 65 ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len); in mlx5e_ipsec_remove_trailer() 69 trailer_len); in mlx5e_ipsec_remove_trailer()
|
/drivers/net/wireless/ath/ath11k/ |
D | htc.c | 290 u32 trailer_len = 0; in ath11k_htc_rx_completion_handler() local 328 trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info); in ath11k_htc_rx_completion_handler() 331 if ((trailer_len < min_len) || in ath11k_htc_rx_completion_handler() 332 (trailer_len > payload_len)) { in ath11k_htc_rx_completion_handler() 334 trailer_len); in ath11k_htc_rx_completion_handler() 341 trailer -= trailer_len; in ath11k_htc_rx_completion_handler() 343 trailer_len, eid); in ath11k_htc_rx_completion_handler() 347 skb_trim(skb, skb->len - trailer_len); in ath11k_htc_rx_completion_handler() 350 if (trailer_len >= payload_len) in ath11k_htc_rx_completion_handler()
|
/drivers/net/wireless/ath/ath10k/ |
D | htc.c | 443 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) <= 0) in ath10k_htc_rx_completion_handler()
|
D | bmi.c | 459 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()
|
D | usb.c | 31 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()
|
D | htc.h | 79 u8 trailer_len; /* for rx */ member
|
D | sdio.c | 79 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()
|
/drivers/net/wireguard/ |
D | send.c | 164 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()
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.h | 46 u16 trailer_len; member
|
D | ipsec.c | 531 itd->trailer_len = authlen + 2 + padlen; in ixgbevf_ipsec_tx()
|
D | ixgbevf_main.c | 3848 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tso() 3904 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tx_csum()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.h | 62 u16 trailer_len; member
|
D | ixgbe_ipsec.c | 1138 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
|
D | ixgbe_main.c | 8147 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tso() 8205 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tx_csum()
|