Lines Matching refs:txd
44 struct nfp_nfdk_tx_desc txd; in nfp_nfdk_tx_tso() local
63 txd.l3_offset = l3_offset; in nfp_nfdk_tx_tso()
64 txd.l4_offset = l4_offset; in nfp_nfdk_tx_tso()
65 txd.lso_meta_res = 0; in nfp_nfdk_tx_tso()
66 txd.mss = cpu_to_le16(mss); in nfp_nfdk_tx_tso()
67 txd.lso_hdrlen = hdrlen; in nfp_nfdk_tx_tso()
68 txd.lso_totsegs = segs; in nfp_nfdk_tx_tso()
77 return txd.raw; in nfp_nfdk_tx_tso()
124 struct nfp_nfdk_tx_desc *txd; in nfp_nfdk_tx_maybe_close_block() local
166 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx_maybe_close_block()
168 memset(txd, 0, array_size(nop_slots, sizeof(struct nfp_nfdk_tx_desc))); in nfp_nfdk_tx_maybe_close_block()
261 struct nfp_nfdk_tx_desc *txd; in nfp_nfdk_tx() local
302 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx()
337 txd->dma_len_type = cpu_to_le16(dlen_type); in nfp_nfdk_tx()
338 nfp_desc_set_dma_addr_48b(txd, dma_addr); in nfp_nfdk_tx()
349 txd++; in nfp_nfdk_tx()
362 txd->dma_len_type = cpu_to_le16(dlen_type); in nfp_nfdk_tx()
363 nfp_desc_set_dma_addr_48b(txd, dma_addr); in nfp_nfdk_tx()
367 txd++; in nfp_nfdk_tx()
385 (txd - 1)->dma_len_type = cpu_to_le16(dlen_type | NFDK_DESC_TX_EOP); in nfp_nfdk_tx()
395 txd->raw = cpu_to_le64(metadata); in nfp_nfdk_tx()
396 txd++; in nfp_nfdk_tx()
399 (txd + 1)->raw = nfp_nfdk_tx_tso(r_vec, txbuf, skb); in nfp_nfdk_tx()
404 txd->raw = cpu_to_le64(metadata); in nfp_nfdk_tx()
405 txd += 2; in nfp_nfdk_tx()
409 cnt = txd - tx_ring->ktxds - wr_idx; in nfp_nfdk_tx()
907 struct nfp_nfdk_tx_desc *txd; in nfp_nfdk_tx_xdp_buf() local
942 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx_xdp_buf()
943 memset(txd, 0, in nfp_nfdk_tx_xdp_buf()
963 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_tx_xdp_buf()
979 txd->dma_len_type = cpu_to_le16(dlen_type); in nfp_nfdk_tx_xdp_buf()
980 nfp_desc_set_dma_addr_48b(txd, dma_addr); in nfp_nfdk_tx_xdp_buf()
985 txd++; in nfp_nfdk_tx_xdp_buf()
990 txd->dma_len_type = cpu_to_le16(dlen_type); in nfp_nfdk_tx_xdp_buf()
991 nfp_desc_set_dma_addr_48b(txd, dma_addr); in nfp_nfdk_tx_xdp_buf()
996 txd++; in nfp_nfdk_tx_xdp_buf()
999 (txd - 1)->dma_len_type = cpu_to_le16(dlen_type | NFDK_DESC_TX_EOP); in nfp_nfdk_tx_xdp_buf()
1002 txd->raw = 0; in nfp_nfdk_tx_xdp_buf()
1003 txd++; in nfp_nfdk_tx_xdp_buf()
1005 cnt = txd - tx_ring->ktxds - wr_idx; in nfp_nfdk_tx_xdp_buf()
1323 struct nfp_nfdk_tx_desc *txd; in nfp_nfdk_ctrl_tx_one() local
1368 txd = &tx_ring->ktxds[wr_idx]; in nfp_nfdk_ctrl_tx_one()
1393 txd->dma_len_type = cpu_to_le16(dlen_type); in nfp_nfdk_ctrl_tx_one()
1394 nfp_desc_set_dma_addr_48b(txd, dma_addr); in nfp_nfdk_ctrl_tx_one()
1399 txd++; in nfp_nfdk_ctrl_tx_one()
1404 txd->dma_len_type = cpu_to_le16(dlen_type); in nfp_nfdk_ctrl_tx_one()
1405 nfp_desc_set_dma_addr_48b(txd, dma_addr); in nfp_nfdk_ctrl_tx_one()
1410 txd++; in nfp_nfdk_ctrl_tx_one()
1413 (txd - 1)->dma_len_type = cpu_to_le16(dlen_type | NFDK_DESC_TX_EOP); in nfp_nfdk_ctrl_tx_one()
1416 txd->raw = cpu_to_le64(metadata); in nfp_nfdk_ctrl_tx_one()
1417 txd++; in nfp_nfdk_ctrl_tx_one()
1419 cnt = txd - tx_ring->ktxds - wr_idx; in nfp_nfdk_ctrl_tx_one()