Lines Matching refs:hlen
406 int hlen; in gve_skb_fifo_bytes_required() local
408 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + tcp_hdrlen(skb) : in gve_skb_fifo_bytes_required()
412 hlen); in gve_skb_fifo_bytes_required()
414 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required()
500 u16 hlen, u64 addr, u16 pkt_len) in gve_tx_fill_pkt_desc() argument
518 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
564 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb_copy() local
582 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy()
589 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb_copy()
590 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb_copy()
593 payload_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, skb->len - hlen, in gve_tx_add_skb_copy()
598 1 + mtd_desc_nr + payload_nfrags, hlen, in gve_tx_add_skb_copy()
603 hlen); in gve_tx_add_skb_copy()
607 copy_offset = hlen; in gve_tx_add_skb_copy()
640 int hlen, num_descriptors, l4_hdr_offset; in gve_tx_add_skb_no_copy() local
659 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : skb_headlen(skb); in gve_tx_add_skb_no_copy()
673 if (hlen < len) in gve_tx_add_skb_no_copy()
680 num_descriptors, hlen, addr, skb->len); in gve_tx_add_skb_no_copy()
688 if (hlen < len) { in gve_tx_add_skb_no_copy()
692 len -= hlen; in gve_tx_add_skb_no_copy()
693 addr += hlen; in gve_tx_add_skb_no_copy()