| /Linux-v5.4/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()
|
| /Linux-v5.4/drivers/net/wireless/ath/ath10k/ |
| D | htc.c | 393 u32 trailer_len = 0; in ath10k_htc_rx_completion_handler() local 436 trailer_len = hdr->trailer_len; in ath10k_htc_rx_completion_handler() 439 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler() 440 (trailer_len > payload_len)) { in ath10k_htc_rx_completion_handler() 442 trailer_len); in ath10k_htc_rx_completion_handler() 449 trailer -= trailer_len; in ath10k_htc_rx_completion_handler() 451 trailer_len, hdr->eid, in ath10k_htc_rx_completion_handler() 456 skb_trim(skb, skb->len - trailer_len); in ath10k_htc_rx_completion_handler() 459 if (((int)payload_len - (int)trailer_len) <= 0) in ath10k_htc_rx_completion_handler()
|
| D | bmi.c | 418 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download() local 430 if (trailer_len > 0) in ath10k_bmi_fast_download() 431 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download() 437 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() 309 if (payload_len < htc_hdr->trailer_len) { in ath10k_usb_rx_complete() 316 htc_hdr->trailer_len; in ath10k_usb_rx_complete() 320 htc_hdr->trailer_len, in ath10k_usb_rx_complete() 333 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_usb_rx_complete()
|
| D | htc.h | 60 u8 trailer_len; /* for rx */ member
|
| D | sdio.c | 74 if (len == htc_hdr->trailer_len) in is_trailer_only_msg() 388 trailer = skb->data + skb->len - htc_hdr->trailer_len; in ath10k_sdio_mbox_rx_process_packet() 394 htc_hdr->trailer_len, in ath10k_sdio_mbox_rx_process_packet() 404 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_sdio_mbox_rx_process_packet()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| D | ipsec_rxtx.c | 114 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-v5.4/drivers/net/ethernet/intel/ixgbevf/ |
| D | ipsec.h | 46 u16 trailer_len; member
|
| D | ipsec.c | 520 itd->trailer_len = authlen + 2 + padlen; in ixgbevf_ipsec_tx()
|
| D | ixgbevf_main.c | 3828 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tso() 3896 type_tucmd |= itd->flags | itd->trailer_len; in ixgbevf_tx_csum()
|
| /Linux-v5.4/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_ipsec.h | 62 u16 trailer_len; member
|
| D | ixgbe_ipsec.c | 1133 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
|
| D | ixgbe_main.c | 8017 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tso() 8087 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tx_csum()
|
| /Linux-v5.4/net/ipv6/netfilter/ |
| D | nf_reject_ipv6.c | 171 + sizeof(struct tcphdr) + dst->trailer_len, in nf_send_reset6()
|
| /Linux-v5.4/net/core/ |
| D | dst.c | 65 dst->trailer_len = 0; in dst_init()
|
| /Linux-v5.4/include/net/ |
| D | dst.h | 61 unsigned short trailer_len; /* space to reserve at tail */ member
|
| D | xfrm.h | 180 int trailer_len; member
|
| /Linux-v5.4/net/xfrm/ |
| D | xfrm_policy.c | 2550 int trailer_len = 0; in xfrm_bundle_create() local 2631 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create() 2652 xdst_prev->u.dst.trailer_len = trailer_len; in xfrm_bundle_create() 2654 trailer_len -= xdst_prev->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create()
|
| /Linux-v5.4/net/ipv6/ |
| D | ip6_output.c | 1471 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data() 1492 datalen += rt->dst.trailer_len; in __ip6_append_data() 1495 alloclen += rt->dst.trailer_len; in __ip6_append_data()
|
| D | esp6.c | 887 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp6_init_state()
|
| /Linux-v5.4/net/ipv4/ |
| D | esp4.c | 995 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp_init_state()
|
| D | ip_output.c | 1088 alloclen += rt->dst.trailer_len; in __ip_append_data()
|