Home
last modified time | relevance | path

Searched refs:dma_map (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/net/xdp/
Dxsk_buff_pool.c287 struct xsk_dma_map *dma_map; in xp_find_dma_map() local
289 list_for_each_entry(dma_map, &pool->umem->xsk_dma_list, list) { in xp_find_dma_map()
290 if (dma_map->netdev == pool->netdev) in xp_find_dma_map()
291 return dma_map; in xp_find_dma_map()
300 struct xsk_dma_map *dma_map; in xp_create_dma_map() local
302 dma_map = kzalloc(sizeof(*dma_map), GFP_KERNEL); in xp_create_dma_map()
303 if (!dma_map) in xp_create_dma_map()
306 dma_map->dma_pages = kvcalloc(nr_pages, sizeof(*dma_map->dma_pages), GFP_KERNEL); in xp_create_dma_map()
307 if (!dma_map->dma_pages) { in xp_create_dma_map()
308 kfree(dma_map); in xp_create_dma_map()
[all …]
/linux-6.1.9/drivers/misc/genwqe/
Dcard_dev.c121 struct dma_mapping *dma_map) in __genwqe_add_mapping() argument
126 list_add(&dma_map->card_list, &cfile->map_list); in __genwqe_add_mapping()
131 struct dma_mapping *dma_map) in __genwqe_del_mapping() argument
136 list_del(&dma_map->card_list); in __genwqe_del_mapping()
193 struct dma_mapping *dma_map; in genwqe_remove_mappings() local
198 dma_map = list_entry(node, struct dma_mapping, card_list); in genwqe_remove_mappings()
200 list_del_init(&dma_map->card_list); in genwqe_remove_mappings()
211 __func__, i++, dma_map->u_vaddr, in genwqe_remove_mappings()
212 (unsigned long)dma_map->k_vaddr, in genwqe_remove_mappings()
213 (unsigned long)dma_map->dma_addr); in genwqe_remove_mappings()
[all …]
/linux-6.1.9/drivers/scsi/ibmvscsi_tgt/
Dlibsrp.c163 int dma_map, int ext_desc) in srp_direct_data() argument
169 if (dma_map) { in srp_direct_data()
186 if (dma_map) in srp_direct_data()
195 int dma_map, int ext_desc) in srp_indirect_data() argument
204 if (dma_map || ext_desc) { in srp_indirect_data()
217 if (ext_desc && dma_map) { in srp_indirect_data()
242 if (dma_map) { in srp_indirect_data()
258 if (dma_map) in srp_indirect_data()
262 if (token && dma_map) { in srp_indirect_data()
296 srp_rdma_t rdma_io, int dma_map, int ext_desc) in srp_transfer_data() argument
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_dmabuf.c269 void *obj_map, *dma_map; in igt_dmabuf_import() local
300 dma_map = err ? NULL : map.vaddr; in igt_dmabuf_import()
301 if (!dma_map) { in igt_dmabuf_import()
316 memset(dma_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import()
327 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import()
/linux-6.1.9/Documentation/driver-api/
Dvfio.rst173 struct vfio_iommu_type1_dma_map dma_map = { .argsz = sizeof(dma_map) };
204 dma_map.vaddr = mmap(0, 1024 * 1024, PROT_READ | PROT_WRITE,
206 dma_map.size = 1024 * 1024;
207 dma_map.iova = 0; /* 1MB starting at 0x0 from device view */
208 dma_map.flags = VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE;
210 ioctl(container, VFIO_IOMMU_MAP_DMA, &dma_map);
364 dma_map.vaddr = mmap(0, 1024 * 1024, PROT_READ | PROT_WRITE,
367 dma_map.size = 1024 * 1024;
368 dma_map.iova = 0; /* 1MB starting at 0x0 from device view */
369 dma_map.flags = VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE;
[all …]
/linux-6.1.9/drivers/usb/host/
Dr8a66597.h80 unsigned char dma_map; member
121 unsigned char dma_map; member
Dr8a66597-hcd.c768 if ((r8a66597->dma_map & (1 << i)) != 0) in enable_r8a66597_pipe_dma()
778 r8a66597->dma_map |= 1 << i; in enable_r8a66597_pipe_dma()
779 dev->dma_map |= 1 << i; in enable_r8a66597_pipe_dma()
883 r8a66597->dma_map &= ~(dev->dma_map); in disable_r8a66597_pipe_all()
884 dev->dma_map = 0; in disable_r8a66597_pipe_all()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_chain.c120 entry->dma_map); in qed_chain_free_pbl()
305 addr_tbl[i].dma_map = phys; in qed_chain_alloc_pbl()
/linux-6.1.9/drivers/vhost/
Dvdpa.c695 if (ops->dma_map) { in vhost_vdpa_general_unmap()
788 if (ops->dma_map) { in vhost_vdpa_map()
789 r = ops->dma_map(vdpa, asid, iova, size, pa, perm, opaque); in vhost_vdpa_map()
1115 if (ops->set_map || ops->dma_map) in vhost_vdpa_alloc_domain()
1356 if (!ops->set_map && !ops->dma_map && in vhost_vdpa_probe()
/linux-6.1.9/include/linux/
Dvdpa.h338 int (*dma_map)(struct vdpa_device *vdev, unsigned int asid, member
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dqplib_res.h203 dma_addr_t dma_map; member
Dqplib_res.c827 stats->dma, stats->dma_map); in bnxt_qplib_free_stats_ctx()
841 &stats->dma_map, GFP_KERNEL); in bnxt_qplib_alloc_stats_ctx()
Dmain.c554 dma_addr_t dma_map, in bnxt_re_net_stats_ctx_alloc() argument
573 req.stats_dma_addr = cpu_to_le64(dma_map); in bnxt_re_net_stats_ctx_alloc()
1481 rdev->qplib_ctx.stats.dma_map, in bnxt_re_dev_init()
/linux-6.1.9/include/linux/qed/
Dqed_chain.h72 dma_addr_t dma_map; member
/linux-6.1.9/drivers/vdpa/
Dvdpa.c164 if (!!config->dma_map != !!config->dma_unmap) in __vdpa_alloc_device()
168 if (use_va && !(config->dma_map || config->set_map)) in __vdpa_alloc_device()
/linux-6.1.9/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c727 .dma_map = vdpasim_dma_map,
/linux-6.1.9/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1542 void *data, u16 headroom, int index, bool dma_map) in mtk_xdp_frame_map() argument
1548 if (dma_map) { /* ndo_xdp_xmit */ in mtk_xdp_frame_map()
1566 tx_buf->type = dma_map ? MTK_TYPE_XDP_NDO : MTK_TYPE_XDP_TX; in mtk_xdp_frame_map()
1577 struct net_device *dev, bool dma_map) in mtk_xdp_submit_frame() argument
1614 data, xdpf->headroom, index, dma_map); in mtk_xdp_submit_frame()
/linux-6.1.9/drivers/net/ethernet/marvell/
Dmvneta.c2085 struct xdp_frame *xdpf, int *nxmit_byte, bool dma_map) in mvneta_xdp_submit_frame() argument
2111 if (dma_map) { in mvneta_xdp_submit_frame()
/linux-6.1.9/drivers/atm/
Dfore200e.c1721 …oc3_regs_dma_addr = fore200e->bus->dma_map(fore200e, regs, sizeof(struct oc3_regs), DMA_FROM_DEVIC…
/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c3645 struct xdp_frame *xdpf, bool dma_map) in mvpp2_xdp_submit_frame() argument
3674 if (dma_map) { in mvpp2_xdp_submit_frame()
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c4693 struct xdp_frame *xdpf, bool dma_map) in stmmac_xdp_xmit_xdpf() argument
4711 if (dma_map) { in stmmac_xdp_xmit_xdpf()