Home
last modified time | relevance | path

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

/linux/drivers/usb/serial/
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/wireless/ath/ath11k/
A Dhtc.c256 u32 trailer_len = 0; in ath11k_htc_rx_completion_handler() local
294 trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info); in ath11k_htc_rx_completion_handler()
297 if ((trailer_len < min_len) || in ath11k_htc_rx_completion_handler()
298 (trailer_len > payload_len)) { in ath11k_htc_rx_completion_handler()
300 trailer_len); in ath11k_htc_rx_completion_handler()
307 trailer -= trailer_len; in ath11k_htc_rx_completion_handler()
309 trailer_len, eid); in ath11k_htc_rx_completion_handler()
313 skb_trim(skb, skb->len - trailer_len); in ath11k_htc_rx_completion_handler()
316 if (trailer_len >= payload_len) in ath11k_htc_rx_completion_handler()
/linux/drivers/net/wireless/ath/ath10k/
A Dhtc.c434 u32 trailer_len = 0; in ath10k_htc_rx_completion_handler() local
481 trailer_len = hdr->trailer_len; in ath10k_htc_rx_completion_handler()
484 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler()
485 (trailer_len > payload_len)) { in ath10k_htc_rx_completion_handler()
487 trailer_len); in ath10k_htc_rx_completion_handler()
494 trailer -= trailer_len; in ath10k_htc_rx_completion_handler()
496 trailer_len, hdr->eid, in ath10k_htc_rx_completion_handler()
501 skb_trim(skb, skb->len - trailer_len); in ath10k_htc_rx_completion_handler()
504 if (((int)payload_len - (int)trailer_len) <= 0) in ath10k_htc_rx_completion_handler()
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()
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()
A Dhtc.h79 u8 trailer_len; /* for rx */ member
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()
/linux/drivers/net/wireguard/
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/ethernet/mellanox/mlx5/core/en_accel/
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 pskb_trim(skb, skb->len - trailer_len); in mlx5e_ipsec_remove_trailer()
126 ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len); in mlx5e_ipsec_remove_trailer()
130 trailer_len); in mlx5e_ipsec_remove_trailer()
/linux/drivers/net/ethernet/intel/ixgbevf/
A Dipsec.h46 u16 trailer_len; member
A Dipsec.c531 itd->trailer_len = authlen + 2 + padlen; in ixgbevf_ipsec_tx()
A Dixgbevf_main.c3830 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tso()
3886 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tx_csum()
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_ipsec.h62 u16 trailer_len; member
A Dixgbe_ipsec.c1138 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
A Dixgbe_main.c8046 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tso()
8104 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tx_csum()
/linux/net/core/
A Ddst.c64 dst->trailer_len = 0; in dst_init()
/linux/net/ipv6/netfilter/
A Dnf_reject_ipv6.c329 + sizeof(struct tcphdr) + dst->trailer_len, in nf_send_reset6()
/linux/include/net/
A Ddst.h61 unsigned short trailer_len; /* space to reserve at tail */ member
A Dxfrm.h189 int trailer_len; member
/linux/net/xfrm/
A Dxfrm_policy.c2548 int trailer_len = 0; in xfrm_bundle_create() local
2628 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create()
2649 xdst_prev->u.dst.trailer_len = trailer_len; in xfrm_bundle_create()
2651 trailer_len -= xdst_prev->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create()
/linux/net/ipv6/
A Dip6_output.c1587 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data()
1593 alloc_extra += rt->dst.trailer_len; in __ip6_append_data()
1619 datalen += rt->dst.trailer_len; in __ip6_append_data()
A Desp6.c1240 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp6_init_state()
/linux/net/ipv4/
A Desp4.c1187 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp_init_state()
A Dip_output.c1069 alloc_extra += rt->dst.trailer_len; in __ip_append_data()

Completed in 107 milliseconds