| /linux/drivers/usb/serial/ |
| H A D | safe_serial.c | 226 int trailer_len; in safe_prepare_write_buffer() 230 trailer_len = safe ? 2 : 0; in safe_prepare_write_buffer() 232 count = kfifo_out_locked(&port->write_fifo, buf, size - trailer_len, in safe_prepare_write_buffer() 240 memset(buf + count, '0', pkt_len - count - trailer_len); in safe_prepare_write_buffer() 242 pkt_len = count + trailer_len; in safe_prepare_write_buffer() 228 int trailer_len; safe_prepare_write_buffer() local
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_rxtx.c | 52 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/ath11k/ |
| H A D | htc.c | 293 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 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() 192 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 D | htc.c | 446 u32 trailer_len = 0; in ath10k_htc_rx_completion_handler() 493 trailer_len = hdr->trailer_len; in ath10k_htc_rx_completion_handler() 496 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler() 497 (trailer_len > payload_len)) { in ath10k_htc_rx_completion_handler() 499 trailer_len); in ath10k_htc_rx_completion_handler() 506 trailer -= trailer_len; in ath10k_htc_rx_completion_handler() 508 trailer_len, hdr->eid, in ath10k_htc_rx_completion_handler() 513 skb_trim(skb, skb->len - trailer_len); in ath10k_htc_rx_completion_handler() 516 if (((int)payload_len - (int)trailer_len) < in ath10k_htc_rx_completion_handler() 447 u32 trailer_len = 0; ath10k_htc_rx_completion_handler() local [all...] |
| H A D | bmi.c | 461 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download() 473 if (trailer_len > 0) in ath10k_bmi_fast_download() 474 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download() 484 if (trailer_len > 0) in ath10k_bmi_fast_download() 462 u32 trailer_len = length - head_len; ath10k_bmi_fast_download() local
|
| H A D | htc.h | 79 u8 trailer_len; /* for rx */ member
|
| H A D | sdio.c | 80 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 D | ipsec.h | 46 u16 trailer_len; member
|
| H A D | ipsec.c | 527 itd->trailer_len = authlen + 2 + padlen; in ixgbevf_ipsec_tx()
|
| H A D | ixgbevf_main.c | 3909 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tx_csum() 3965 type_tucmd |= itd->flags | itd->trailer_len;
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ipsec.h | 62 u16 trailer_len; member
|
| H A D | ixgbe_ipsec.c | 1128 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
|
| H A D | ixgbe_main.c | 8822 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tx_csum() 8880 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tx_cmd_type()
|
| /linux/net/core/ |
| H A D | dst.c | 64 dst->trailer_len = 0; in dst_init()
|
| /linux/net/rxrpc/ |
| H A D | peer_object.c | 206 peer->hdrsize += dst->header_len + dst->trailer_len; in rxrpc_assess_MTU_size()
|
| /linux/net/xfrm/ |
| H A D | xfrm_policy.c | 2678 int trailer_len = 0; in xfrm_bundle_create() 2766 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create() 2787 xdst_prev->u.dst.trailer_len = trailer_len; in xfrm_bundle_create() 2789 trailer_len -= xdst_prev->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create() 2684 int trailer_len = 0; xfrm_bundle_create() local
|
| /linux/net/ipv6/ |
| H A D | ip6_output.c | 1648 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data() 1654 alloc_extra += rt->dst.trailer_len; in __ip6_append_data() 1680 datalen += rt->dst.trailer_len; in __ip6_append_data()
|
| H A D | esp6.c | 1210 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead);
|
| /linux/net/ipv4/ |
| H A D | esp4.c | 1163 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead);
|
| H A D | ip_output.c | 1109 alloc_extra += rt->dst.trailer_len; in __ip_append_data()
|
| /linux/include/net/ |
| H A D | xfrm.h | 229 int trailer_len; member
|