/freebsd/sys/dev/mlx5/mlx5_fpga/ |
H A D | mlx5fpga_conn.c | 49 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 D | ib_verbs.h | 2119 struct device *dma_device; member 3500 return dma_mapping_error(dev->dma_device, dma_addr); in ib_dma_mapping_error() 3516 return dma_map_single(dev->dma_device, cpu_addr, size, direction); in ib_dma_map_single() 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() 3570 return dma_map_page(dev->dma_device, page, offset, size, direction); in ib_dma_map_page() 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() [all …]
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | mem.c | 189 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() 637 mhp->mpl = dma_alloc_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr() 674 dma_free_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
|
H A D | cq.c | 87 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 D | qp.c | 111 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp() 114 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp() 181 wq->sq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, wq->sq.memsize, in create_qp() 191 wq->rq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, in create_qp() 318 dma_free_coherent(rhp->ibdev.dma_device, in create_qp() 322 dma_free_coherent(rhp->ibdev.dma_device, in create_qp()
|
H A D | provider.c | 452 ibdev->dma_device = &dev->pdev.dev; in c4iw_register_device()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_mr.c | 298 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 D | mlx4_ib.h | 62 dev_warn((ibdev)->dma_device, MLX4_IB_DRV_NAME ": " format, ## arg)
|
H A D | mlx4_ib_main.c | 2472 ibdev->ib_dev.dma_device = &dev->persist->pdev->dev; in mlx4_ib_add()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mr.c | 551 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 D | mlx5_ib_main.c | 3392 dev->ib_dev.dma_device = &mdev->pdev->dev; in mlx5_ib_add()
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_main.c | 1005 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 D | ib_user_mad.c | 1197 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 D | ib_ucm.c | 1291 ucm_dev->dev.parent = device->dma_device; in ib_ucm_add_one()
|
H A D | ib_sysfs.c | 1324 device->dev.parent = device->dma_device; in ib_device_register_sysfs()
|
/freebsd/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_main.c | 202 mdev->dma_device = &dev->persist->pdev->dev; in mlx4_en_add()
|
H A D | en.h | 461 struct device *dma_device; member
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_alloc.c | 678 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 D | fbsd_kcompat.h | 59 ibdev.dma_device = (dev)
|
/freebsd/sys/contrib/rdma/krping/ |
H A D | krping.c | 595 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 D | qlnxr_os.c | 258 ibdev->dma_device = &dev->pdev.dev; in qlnxr_register_device()
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_provider.c | 1177 dev->ib_dev.dma_device = &dev->pdev->dev; in mthca_register_device()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | main.c | 135 ibdev->dma_device = &rdev->en_dev->pdev->dev; in bnxt_re_set_dma_device()
|