Lines Matching refs:pkt_desc
373 static void gve_tx_fill_pkt_desc(union gve_tx_desc *pkt_desc, in gve_tx_fill_pkt_desc() argument
380 pkt_desc->pkt.type_flags = GVE_TXD_TSO | GVE_TXF_L4CSUM; in gve_tx_fill_pkt_desc()
381 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc()
382 pkt_desc->pkt.l4_hdr_offset = l4_hdr_offset >> 1; in gve_tx_fill_pkt_desc()
384 pkt_desc->pkt.type_flags = GVE_TXD_STD | GVE_TXF_L4CSUM; in gve_tx_fill_pkt_desc()
385 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc()
386 pkt_desc->pkt.l4_hdr_offset = l4_hdr_offset >> 1; in gve_tx_fill_pkt_desc()
388 pkt_desc->pkt.type_flags = GVE_TXD_STD; in gve_tx_fill_pkt_desc()
389 pkt_desc->pkt.l4_csum_offset = 0; in gve_tx_fill_pkt_desc()
390 pkt_desc->pkt.l4_hdr_offset = 0; in gve_tx_fill_pkt_desc()
392 pkt_desc->pkt.desc_cnt = desc_cnt; in gve_tx_fill_pkt_desc()
393 pkt_desc->pkt.len = cpu_to_be16(skb->len); in gve_tx_fill_pkt_desc()
394 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
395 pkt_desc->pkt.seg_addr = cpu_to_be64(addr); in gve_tx_fill_pkt_desc()
427 union gve_tx_desc *pkt_desc, *seg_desc; in gve_tx_add_skb_copy() local
437 pkt_desc = &tx->desc[idx]; in gve_tx_add_skb_copy()
459 gve_tx_fill_pkt_desc(pkt_desc, skb, is_gso, l4_hdr_offset, in gve_tx_add_skb_copy()
496 union gve_tx_desc *pkt_desc, *seg_desc; in gve_tx_add_skb_no_copy() local
505 pkt_desc = &tx->desc[idx]; in gve_tx_add_skb_no_copy()
532 gve_tx_fill_pkt_desc(pkt_desc, skb, is_gso, l4_hdr_offset, in gve_tx_add_skb_no_copy()
541 gve_tx_fill_pkt_desc(pkt_desc, skb, is_gso, l4_hdr_offset, in gve_tx_add_skb_no_copy()