Home
last modified time | relevance | path

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

/linux/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()
/linux/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()
/linux/drivers/net/wireless/ath/ath12k/
H A Dhtc.c260 u32 trailer_len = 0; in ath12k_htc_rx_completion_handler() local
298 trailer_len = le32_get_bits(hdr->ctrl_info, in ath12k_htc_rx_completion_handler()
302 if ((trailer_len < min_len) || in ath12k_htc_rx_completion_handler()
303 (trailer_len > payload_len)) { in ath12k_htc_rx_completion_handler()
305 trailer_len); in ath12k_htc_rx_completion_handler()
312 trailer -= trailer_len; in ath12k_htc_rx_completion_handler()
314 trailer_len, eid); in ath12k_htc_rx_completion_handler()
318 skb_trim(skb, skb->len - trailer_len); in ath12k_htc_rx_completion_handler()
321 if (trailer_len >= payload_len) in ath12k_htc_rx_completion_handler()
/linux/drivers/net/wireless/ath/ath11k/
H A Dhtc.c293 u32 message_id, trailer_len = 0; in ath11k_htc_rx_completion_handler() local
334 trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info); in ath11k_htc_rx_completion_handler()
337 if ((trailer_len < min_len) || in ath11k_htc_rx_completion_handler()
338 (trailer_len > payload_len)) { in ath11k_htc_rx_completion_handler()
340 trailer_len); in ath11k_htc_rx_completion_handler()
347 trailer -= trailer_len; in ath11k_htc_rx_completion_handler()
349 trailer_len, eid); in ath11k_htc_rx_completion_handler()
353 skb_trim(skb, skb->len - trailer_len); in ath11k_htc_rx_completion_handler()
356 if (trailer_len >= payload_len) in ath11k_htc_rx_completion_handler()
/linux/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()
/linux/drivers/net/wireless/ath/ath10k/
H A Dhtc.c444 u32 trailer_len = 0; in ath10k_htc_rx_completion_handler() local
491 trailer_len = hdr->trailer_len; in ath10k_htc_rx_completion_handler()
494 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler()
495 (trailer_len > payload_len)) { in ath10k_htc_rx_completion_handler()
497 trailer_len); in ath10k_htc_rx_completion_handler()
504 trailer -= trailer_len; in ath10k_htc_rx_completion_handler()
506 trailer_len, hdr->eid, in ath10k_htc_rx_completion_handler()
511 skb_trim(skb, skb->len - trailer_len); in ath10k_htc_rx_completion_handler()
514 if (((int)payload_len - (int)trailer_len) <= 0) in ath10k_htc_rx_completion_handler()
H A Dbmi.c460 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download() local
472 if (trailer_len > 0) in ath10k_bmi_fast_download()
473 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download()
483 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.h79 u8 trailer_len; /* for rx */ member
H A Dsdio.c80 if (len == htc_hdr->trailer_len) in is_trailer_only_msg()
394 trailer = skb->data + skb->len - htc_hdr->trailer_len; in ath10k_sdio_mbox_rx_process_packet()
400 htc_hdr->trailer_len, in ath10k_sdio_mbox_rx_process_packet()
410 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_sdio_mbox_rx_process_packet()
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.h46 u16 trailer_len; member
H A Dipsec.c537 itd->trailer_len = authlen + 2 + padlen; in ixgbevf_ipsec_tx()
H A Dixgbevf_main.c3854 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tso()
3910 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tx_csum()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.h62 u16 trailer_len; member
H A Dixgbe_ipsec.c1144 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
H A Dixgbe_main.c8166 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tso()
8224 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tx_csum()
/linux/net/core/
H A Ddst.c64 dst->trailer_len = 0; in dst_init()
/linux/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c316 sizeof(struct tcphdr) + dst->trailer_len, in nf_send_reset6()
/linux/include/net/
H A Ddst.h62 unsigned short trailer_len; /* space to reserve at tail */ member
H A Dxfrm.h212 int trailer_len; member
/linux/net/xfrm/
H A Dxfrm_policy.c2669 int trailer_len = 0; in xfrm_bundle_create() local
2753 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create()
2774 xdst_prev->u.dst.trailer_len = trailer_len; in xfrm_bundle_create()
2776 trailer_len -= xdst_prev->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create()
/linux/net/ipv6/
H A Dip6_output.c1605 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data()
1611 alloc_extra += rt->dst.trailer_len; in __ip6_append_data()
1637 datalen += rt->dst.trailer_len; in __ip6_append_data()
H A Desp6.c1239 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp6_init_state()
/linux/net/ipv4/
H A Desp4.c1192 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp_init_state()
H A Dip_output.c1106 alloc_extra += rt->dst.trailer_len; in __ip_append_data()