Lines Matching refs:hlen
285 int hlen; in gve_skb_fifo_bytes_required() local
287 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + in gve_skb_fifo_bytes_required()
291 hlen); in gve_skb_fifo_bytes_required()
293 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required()
376 u16 hlen, u64 addr) in gve_tx_fill_pkt_desc() argument
394 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
426 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb_copy() local
445 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy()
452 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb_copy()
453 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb_copy()
456 payload_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, skb->len - hlen, in gve_tx_add_skb_copy()
460 1 + payload_nfrags, hlen, in gve_tx_add_skb_copy()
465 hlen); in gve_tx_add_skb_copy()
469 copy_offset = hlen; in gve_tx_add_skb_copy()
495 int hlen, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb_no_copy() local
513 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : skb_headlen(skb); in gve_tx_add_skb_no_copy()
527 if (hlen < len) { in gve_tx_add_skb_no_copy()
533 1 + payload_nfrags, hlen, addr); in gve_tx_add_skb_no_copy()
535 len -= hlen; in gve_tx_add_skb_no_copy()
536 addr += hlen; in gve_tx_add_skb_no_copy()
542 1 + payload_nfrags, hlen, addr); in gve_tx_add_skb_no_copy()