Lines Matching refs:pkt_desc
367 static void gve_tx_fill_pkt_desc(union gve_tx_desc *pkt_desc, in gve_tx_fill_pkt_desc() argument
374 pkt_desc->pkt.type_flags = GVE_TXD_TSO | GVE_TXF_L4CSUM; in gve_tx_fill_pkt_desc()
375 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc()
376 pkt_desc->pkt.l4_hdr_offset = l4_hdr_offset >> 1; in gve_tx_fill_pkt_desc()
378 pkt_desc->pkt.type_flags = GVE_TXD_STD | GVE_TXF_L4CSUM; in gve_tx_fill_pkt_desc()
379 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc()
380 pkt_desc->pkt.l4_hdr_offset = l4_hdr_offset >> 1; in gve_tx_fill_pkt_desc()
382 pkt_desc->pkt.type_flags = GVE_TXD_STD; in gve_tx_fill_pkt_desc()
383 pkt_desc->pkt.l4_csum_offset = 0; in gve_tx_fill_pkt_desc()
384 pkt_desc->pkt.l4_hdr_offset = 0; in gve_tx_fill_pkt_desc()
386 pkt_desc->pkt.desc_cnt = desc_cnt; in gve_tx_fill_pkt_desc()
387 pkt_desc->pkt.len = cpu_to_be16(skb->len); in gve_tx_fill_pkt_desc()
388 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
389 pkt_desc->pkt.seg_addr = cpu_to_be64(addr); in gve_tx_fill_pkt_desc()
421 union gve_tx_desc *pkt_desc, *seg_desc; in gve_tx_add_skb_copy() local
431 pkt_desc = &tx->desc[idx]; in gve_tx_add_skb_copy()
451 gve_tx_fill_pkt_desc(pkt_desc, skb, is_gso, l4_hdr_offset, in gve_tx_add_skb_copy()
488 union gve_tx_desc *pkt_desc, *seg_desc; in gve_tx_add_skb_no_copy() local
497 pkt_desc = &tx->desc[idx]; in gve_tx_add_skb_no_copy()
524 gve_tx_fill_pkt_desc(pkt_desc, skb, is_gso, l4_hdr_offset, in gve_tx_add_skb_no_copy()
533 gve_tx_fill_pkt_desc(pkt_desc, skb, is_gso, l4_hdr_offset, in gve_tx_add_skb_no_copy()