Searched refs:xdptxd (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | xdp.c | 66 struct mlx5e_xmit_data *xdptxd; in mlx5e_xmit_xdp_buff() local 75 xdptxd = &xdptxdf.xd; in mlx5e_xmit_xdp_buff() 76 xdptxd->data = xdpf->data; in mlx5e_xmit_xdp_buff() 77 xdptxd->len = xdpf->len; in mlx5e_xmit_xdp_buff() 78 xdptxd->has_frags = xdp_frame_has_frags(xdpf); in mlx5e_xmit_xdp_buff() 93 if (unlikely(xdptxd->has_frags)) in mlx5e_xmit_xdp_buff() 96 dma_addr = dma_map_single(sq->pdev, xdptxd->data, xdptxd->len, in mlx5e_xmit_xdp_buff() 103 xdptxd->dma_addr = dma_addr; in mlx5e_xmit_xdp_buff() 106 mlx5e_xmit_xdp_frame, sq, xdptxd, 0, NULL))) in mlx5e_xmit_xdp_buff() 126 dma_sync_single_for_device(sq->pdev, dma_addr, xdptxd->len, DMA_BIDIRECTIONAL); in mlx5e_xmit_xdp_buff() [all …]
|
D | xdp.h | 120 struct mlx5e_xmit_data *xdptxd, 124 struct mlx5e_xmit_data *xdptxd, 201 struct mlx5e_xmit_data *xdptxd, in mlx5e_xdp_mpwqe_add_dseg() argument 207 u32 dma_len = xdptxd->len; in mlx5e_xdp_mpwqe_add_dseg() 219 memcpy(inline_dseg->data, xdptxd->data, dma_len); in mlx5e_xdp_mpwqe_add_dseg() 226 dseg->addr = cpu_to_be64(xdptxd->dma_addr); in mlx5e_xdp_mpwqe_add_dseg()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | tx.c | 79 struct mlx5e_xmit_data xdptxd = {}; in mlx5e_xsk_tx() local 97 xdptxd.dma_addr = xsk_buff_raw_get_dma(pool, desc.addr); in mlx5e_xsk_tx() 98 xdptxd.data = xsk_buff_raw_get_data(pool, desc.addr); in mlx5e_xsk_tx() 99 xdptxd.len = desc.len; in mlx5e_xsk_tx() 102 xsk_buff_raw_dma_sync_for_device(pool, xdptxd.dma_addr, xdptxd.len); in mlx5e_xsk_tx() 105 mlx5e_xmit_xdp_frame, sq, &xdptxd, in mlx5e_xsk_tx()
|