Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/usb/serial/
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-v4.19/drivers/net/wireless/ath/ath10k/
Dhtc.c397 u32 trailer_len = 0; in ath10k_htc_rx_completion_handler() local
440 trailer_len = hdr->trailer_len; in ath10k_htc_rx_completion_handler()
443 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler()
444 (trailer_len > payload_len)) { in ath10k_htc_rx_completion_handler()
446 trailer_len); in ath10k_htc_rx_completion_handler()
453 trailer -= trailer_len; in ath10k_htc_rx_completion_handler()
455 trailer_len, hdr->eid, in ath10k_htc_rx_completion_handler()
460 skb_trim(skb, skb->len - trailer_len); in ath10k_htc_rx_completion_handler()
463 if (((int)payload_len - (int)trailer_len) <= 0) in ath10k_htc_rx_completion_handler()
Dbmi.c429 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download() local
441 if (trailer_len > 0) in ath10k_bmi_fast_download()
442 memcpy(trailer, buffer + head_len, trailer_len); in ath10k_bmi_fast_download()
448 if (trailer_len > 0) in ath10k_bmi_fast_download()
Dusb.c42 return __le16_to_cpu(htc_hdr->len) == htc_hdr->trailer_len; in is_trailer_only_msg()
320 if (payload_len < htc_hdr->trailer_len) { in ath10k_usb_rx_complete()
327 htc_hdr->trailer_len; in ath10k_usb_rx_complete()
331 htc_hdr->trailer_len, in ath10k_usb_rx_complete()
344 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_usb_rx_complete()
Dhtc.h72 u8 trailer_len; /* for rx */ member
Dsdio.c85 if (len == htc_hdr->trailer_len) in is_trailer_only_msg()
404 payload_len - htc_hdr->trailer_len; in ath10k_sdio_mbox_rx_process_packet()
410 htc_hdr->trailer_len, in ath10k_sdio_mbox_rx_process_packet()
420 skb_trim(skb, skb->len - htc_hdr->trailer_len); in ath10k_sdio_mbox_rx_process_packet()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
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-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.h58 u16 trailer_len; member
Dixgbe_ipsec.c889 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
Dixgbe_main.c7905 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tso()
7975 type_tucmd |= itd->flags | itd->trailer_len; in ixgbe_tx_csum()
/Linux-v4.19/net/ipv6/netfilter/
Dnf_reject_ipv6.c173 + sizeof(struct tcphdr) + dst->trailer_len, in nf_send_reset6()
/Linux-v4.19/net/core/
Ddst.c81 dst->trailer_len = 0; in dst_init()
/Linux-v4.19/net/xfrm/
Dxfrm_policy.c1586 int trailer_len = 0; in xfrm_bundle_create() local
1657 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create()
1678 xdst_prev->u.dst.trailer_len = trailer_len; in xfrm_bundle_create()
1680 trailer_len -= xdst_prev->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create()
/Linux-v4.19/include/net/
Ddst.h72 unsigned short trailer_len; /* space to reserve at tail */ member
Dxfrm.h169 int trailer_len; member
/Linux-v4.19/net/ipv6/
Dip6_output.c1379 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data()
1399 datalen += rt->dst.trailer_len; in __ip6_append_data()
1402 alloclen += rt->dst.trailer_len; in __ip6_append_data()
Desp6.c914 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp6_init_state()
/Linux-v4.19/net/ipv4/
Desp4.c1006 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); in esp_init_state()
Dip_output.c978 alloclen += rt->dst.trailer_len; in __ip_append_data()