Lines Matching refs:hlen
410 int hlen; in gve_skb_fifo_bytes_required() local
412 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + tcp_hdrlen(skb) : in gve_skb_fifo_bytes_required()
416 hlen); in gve_skb_fifo_bytes_required()
418 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required()
504 u16 hlen, u64 addr, u16 pkt_len) in gve_tx_fill_pkt_desc() argument
522 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
568 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb_copy() local
586 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy()
593 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb_copy()
594 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb_copy()
597 payload_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, skb->len - hlen, in gve_tx_add_skb_copy()
602 1 + mtd_desc_nr + payload_nfrags, hlen, in gve_tx_add_skb_copy()
607 hlen); in gve_tx_add_skb_copy()
611 copy_offset = hlen; in gve_tx_add_skb_copy()
644 int hlen, num_descriptors, l4_hdr_offset; in gve_tx_add_skb_no_copy() local
663 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : skb_headlen(skb); in gve_tx_add_skb_no_copy()
677 if (hlen < len) in gve_tx_add_skb_no_copy()
684 num_descriptors, hlen, addr, skb->len); in gve_tx_add_skb_no_copy()
692 if (hlen < len) { in gve_tx_add_skb_no_copy()
696 len -= hlen; in gve_tx_add_skb_no_copy()
697 addr += hlen; in gve_tx_add_skb_no_copy()