Home
last modified time | relevance | path

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

/freebsd-13.1/sys/ofed/include/rdma/
H A Dib_verbs.h1868 struct device *dma_device; member
3022 return dma_mapping_error(dev->dma_device, dma_addr); in ib_dma_mapping_error()
3055 dma_unmap_single(dev->dma_device, addr, size, direction); in ib_dma_unmap_single()
3063 return dma_map_single_attrs(dev->dma_device, cpu_addr, size, in ib_dma_map_single_attrs()
3072 return dma_unmap_single_attrs(dev->dma_device, addr, size, in ib_dma_unmap_single_attrs()
3109 dma_unmap_page(dev->dma_device, addr, size, direction); in ib_dma_unmap_page()
3125 return dma_map_sg(dev->dma_device, sg, nents, direction); in ib_dma_map_sg()
3142 dma_unmap_sg(dev->dma_device, sg, nents, direction); in ib_dma_unmap_sg()
3167 dma_unmap_sg_attrs(dev->dma_device, sg, nents, direction, in ib_dma_unmap_sg_attrs()
3213 dma_sync_single_for_cpu(dev->dma_device, addr, size, dir); in ib_dma_sync_single_for_cpu()
[all …]
/freebsd-13.1/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_conn.c51 struct device *dma_device; in mlx5_fpga_conn_map_buf() local
57 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_map_buf()
58 buf->sg[0].dma_addr = dma_map_single(dma_device, buf->sg[0].data, in mlx5_fpga_conn_map_buf()
60 err = dma_mapping_error(dma_device, buf->sg[0].dma_addr); in mlx5_fpga_conn_map_buf()
70 buf->sg[1].dma_addr = dma_map_single(dma_device, buf->sg[1].data, in mlx5_fpga_conn_map_buf()
72 err = dma_mapping_error(dma_device, buf->sg[1].dma_addr); in mlx5_fpga_conn_map_buf()
75 dma_unmap_single(dma_device, buf->sg[0].dma_addr, in mlx5_fpga_conn_map_buf()
87 struct device *dma_device; in mlx5_fpga_conn_unmap_buf() local
89 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_unmap_buf()
91 dma_unmap_single(dma_device, buf->sg[1].dma_addr, in mlx5_fpga_conn_unmap_buf()
[all …]
/freebsd-13.1/sys/dev/cxgbe/iw_cxgbe/
H A Dmem.c191 daddr = dma_map_single(rhp->ibdev.dma_device, data, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma()
192 if (dma_mapping_error(rhp->ibdev.dma_device, daddr)) in _c4iw_write_mem_dma()
216 dma_unmap_single(rhp->ibdev.dma_device, save, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma()
636 mhp->mpl = dma_alloc_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
673 dma_free_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
H A Dcq.c89 dma_free_coherent(rhp->ibdev.dma_device, in destroy_cq()
124 cq->queue = dma_alloc_coherent(rhp->ibdev.dma_device, cq->memsize, in create_cq()
194 dma_free_coherent(rhp->ibdev.dma_device, cq->memsize, cq->queue, in create_cq()
H A Dqp.c113 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp()
116 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp()
180 wq->sq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, wq->sq.memsize, in create_qp()
190 wq->rq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, in create_qp()
317 dma_free_coherent(rhp->ibdev.dma_device, in create_qp()
321 dma_free_coherent(rhp->ibdev.dma_device, in create_qp()
H A Dprovider.c470 ibdev->dma_device = &dev->pdev.dev; in c4iw_register_device()
/freebsd-13.1/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c298 mr->page_map = dma_map_single(device->dma_device, mr->pages, in mlx4_alloc_priv_pages()
301 if (dma_mapping_error(device->dma_device, mr->page_map)) { in mlx4_alloc_priv_pages()
319 dma_unmap_single(device->dma_device, mr->page_map, in mlx4_free_priv_pages()
H A Dmlx4_ib.h62 dev_warn((ibdev)->dma_device, MLX4_IB_DRV_NAME ": " format, ## arg)
H A Dmlx4_ib_main.c2561 ibdev->ib_dev.dma_device = &dev->persist->pdev->dev; in mlx4_ib_add()
/freebsd-13.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mr.c553 struct device *ddev = dev->ib_dev.dma_device; in dma_map_mr_pas()
672 struct device *ddev = dev->ib_dev.dma_device; in reg_umr()
750 struct device *ddev = dev->ib_dev.dma_device; in mlx5_ib_update_mtt()
1064 struct device *ddev = dev->ib_dev.dma_device; in rereg_umr()
1238 mr->desc_map = dma_map_single(device->dma_device, mr->descs, in mlx5_alloc_priv_descs()
1240 if (dma_mapping_error(device->dma_device, mr->desc_map)) { in mlx5_alloc_priv_descs()
1259 dma_unmap_single(device->dma_device, mr->desc_map, in mlx5_free_priv_descs()
H A Dmlx5_ib_main.c3359 dev->ib_dev.dma_device = &mdev->pdev->dev; in mlx5_ib_add()
/freebsd-13.1/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_main.c1152 if (!dev || !dev->ib_dev->dma_device) in show_dev_device()
1156 ((struct pci_dev *)dev->ib_dev->dma_device)->device); in show_dev_device()
1165 if (!dev || !dev->ib_dev->dma_device) in show_dev_vendor()
1169 ((struct pci_dev *)dev->ib_dev->dma_device)->vendor); in show_dev_vendor()
1244 uverbs_dev->dev = device_create(uverbs_class, device->dma_device, in ib_uverbs_add_one()
H A Dib_user_mad.c1199 port->dev = device_create(umad_class, device->dma_device, in ib_umad_init_port()
1218 port->sm_dev = device_create(umad_class, device->dma_device, in ib_umad_init_port()
H A Dib_ucm.c1293 ucm_dev->dev.parent = device->dma_device; in ib_ucm_add_one()
H A Dib_sysfs.c1326 device->dev.parent = device->dma_device; in ib_device_register_sysfs()
/freebsd-13.1/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_main.c202 mdev->dma_device = &dev->persist->pdev->dev; in mlx4_en_add()
H A Den.h461 struct device *dma_device; member
/freebsd-13.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_alloc.c678 static struct mlx4_db_pgdir *mlx4_alloc_db_pgdir(struct device *dma_device, in mlx4_alloc_db_pgdir() argument
690 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir()
/freebsd-13.1/sys/contrib/rdma/krping/
H A Dkrping.c597 dma_unmap_single(cb->pd->device->dma_device, in krping_free_buffers()
600 dma_unmap_single(cb->pd->device->dma_device, in krping_free_buffers()
/freebsd-13.1/sys/dev/qlnx/qlnxr/
H A Dqlnxr_os.c260 ibdev->dma_device = &dev->pdev.dev; in qlnxr_register_device()
/freebsd-13.1/sys/dev/mthca/
H A Dmthca_provider.c1224 dev->ib_dev.dma_device = &dev->pdev->dev; in mthca_register_device()