Home
last modified time | relevance | path

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

/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_conn.c49 struct device *dma_device; in mlx5_fpga_conn_map_buf() local
55 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_map_buf()
56 buf->sg[0].dma_addr = dma_map_single(dma_device, buf->sg[0].data, in mlx5_fpga_conn_map_buf()
58 err = dma_mapping_error(dma_device, buf->sg[0].dma_addr); in mlx5_fpga_conn_map_buf()
68 buf->sg[1].dma_addr = dma_map_single(dma_device, buf->sg[1].data, in mlx5_fpga_conn_map_buf()
70 err = dma_mapping_error(dma_device, buf->sg[1].dma_addr); in mlx5_fpga_conn_map_buf()
73 dma_unmap_single(dma_device, buf->sg[0].dma_addr, in mlx5_fpga_conn_map_buf()
85 struct device *dma_device; in mlx5_fpga_conn_unmap_buf() local
87 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_unmap_buf()
89 dma_unmap_single(dma_device, buf->sg[1].dma_addr, in mlx5_fpga_conn_unmap_buf()
[all …]
/freebsd/sys/ofed/include/rdma/
H A Dib_verbs.h2119 struct device *dma_device; member
3500 return dma_mapping_error(dev->dma_device, dma_addr); in ib_dma_mapping_error()
3533 dma_unmap_single(dev->dma_device, addr, size, direction); in ib_dma_unmap_single()
3541 return dma_map_single_attrs(dev->dma_device, cpu_addr, size, in ib_dma_map_single_attrs()
3550 return dma_unmap_single_attrs(dev->dma_device, addr, size, in ib_dma_unmap_single_attrs()
3587 dma_unmap_page(dev->dma_device, addr, size, direction); in ib_dma_unmap_page()
3603 return dma_map_sg(dev->dma_device, sg, nents, direction); in ib_dma_map_sg()
3620 dma_unmap_sg(dev->dma_device, sg, nents, direction); in ib_dma_unmap_sg()
3645 dma_unmap_sg_attrs(dev->dma_device, sg, nents, direction, in ib_dma_unmap_sg_attrs()
3691 dma_sync_single_for_cpu(dev->dma_device, addr, size, dir); in ib_dma_sync_single_for_cpu()
[all …]
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dmem.c189 daddr = dma_map_single(rhp->ibdev.dma_device, data, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma()
190 if (dma_mapping_error(rhp->ibdev.dma_device, daddr)) in _c4iw_write_mem_dma()
214 dma_unmap_single(rhp->ibdev.dma_device, save, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma()
634 mhp->mpl = dma_alloc_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
671 dma_free_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
H A Dcq.c87 dma_free_coherent(rhp->ibdev.dma_device, in destroy_cq()
122 cq->queue = dma_alloc_coherent(rhp->ibdev.dma_device, cq->memsize, in create_cq()
192 dma_free_coherent(rhp->ibdev.dma_device, cq->memsize, cq->queue, in create_cq()
H A Dqp.c111 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp()
114 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp()
178 wq->sq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, wq->sq.memsize, in create_qp()
188 wq->rq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, in create_qp()
315 dma_free_coherent(rhp->ibdev.dma_device, in create_qp()
319 dma_free_coherent(rhp->ibdev.dma_device, in create_qp()
H A Dprovider.c450 ibdev->dma_device = &dev->pdev.dev; in c4iw_register_device()
/freebsd/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.c2472 ibdev->ib_dev.dma_device = &dev->persist->pdev->dev; in mlx4_ib_add()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mr.c551 struct device *ddev = dev->ib_dev.dma_device; in dma_map_mr_pas()
670 struct device *ddev = dev->ib_dev.dma_device; in reg_umr()
748 struct device *ddev = dev->ib_dev.dma_device; in mlx5_ib_update_mtt()
1062 struct device *ddev = dev->ib_dev.dma_device; in rereg_umr()
1236 mr->desc_map = dma_map_single(device->dma_device, mr->descs, in mlx5_alloc_priv_descs()
1238 if (dma_mapping_error(device->dma_device, mr->desc_map)) { in mlx5_alloc_priv_descs()
1257 dma_unmap_single(device->dma_device, mr->desc_map, in mlx5_free_priv_descs()
H A Dmlx5_ib_main.c3393 dev->ib_dev.dma_device = &mdev->pdev->dev; in mlx5_ib_add()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_main.c1005 if (!dev->ib_dev->dma_device) in show_dev_device()
1009 ((struct pci_dev *)dev->ib_dev->dma_device)->device); in show_dev_device()
1019 if (!dev->ib_dev->dma_device) in show_dev_vendor()
1023 ((struct pci_dev *)dev->ib_dev->dma_device)->vendor); in show_dev_vendor()
H A Dib_user_mad.c1197 port->dev = device_create(umad_class, device->dma_device, in ib_umad_init_port()
1216 port->sm_dev = device_create(umad_class, device->dma_device, in ib_umad_init_port()
H A Dib_ucm.c1291 ucm_dev->dev.parent = device->dma_device; in ib_ucm_add_one()
H A Dib_sysfs.c1324 device->dev.parent = device->dma_device; in ib_device_register_sysfs()
/freebsd/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/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/sys/dev/irdma/
H A Dfbsd_kcompat.h59 ibdev.dma_device = (dev)
/freebsd/sys/contrib/rdma/krping/
H A Dkrping.c595 dma_unmap_single(cb->pd->device->dma_device, in krping_free_buffers()
598 dma_unmap_single(cb->pd->device->dma_device, in krping_free_buffers()
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_os.c258 ibdev->dma_device = &dev->pdev.dev; in qlnxr_register_device()
/freebsd/sys/dev/mthca/
H A Dmthca_provider.c1177 dev->ib_dev.dma_device = &dev->pdev->dev; in mthca_register_device()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dmain.c135 ibdev->dma_device = &rdev->en_dev->pdev->dev; in bnxt_re_set_dma_device()