| /freebsd-13.1/sys/ofed/include/rdma/ |
| H A D | ib_verbs.h | 1868 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 D | mlx5fpga_conn.c | 51 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 D | mem.c | 191 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 D | cq.c | 89 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 | 113 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 D | provider.c | 470 ibdev->dma_device = &dev->pdev.dev; in c4iw_register_device()
|
| /freebsd-13.1/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 | 2561 ibdev->ib_dev.dma_device = &dev->persist->pdev->dev; in mlx4_ib_add()
|
| /freebsd-13.1/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_mr.c | 553 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 D | mlx5_ib_main.c | 3359 dev->ib_dev.dma_device = &mdev->pdev->dev; in mlx5_ib_add()
|
| /freebsd-13.1/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_uverbs_main.c | 1152 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 D | ib_user_mad.c | 1199 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 D | ib_ucm.c | 1293 ucm_dev->dev.parent = device->dma_device; in ib_ucm_add_one()
|
| H A D | ib_sysfs.c | 1326 device->dev.parent = device->dma_device; in ib_device_register_sysfs()
|
| /freebsd-13.1/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-13.1/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-13.1/sys/contrib/rdma/krping/ |
| H A D | krping.c | 597 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 D | qlnxr_os.c | 260 ibdev->dma_device = &dev->pdev.dev; in qlnxr_register_device()
|
| /freebsd-13.1/sys/dev/mthca/ |
| H A D | mthca_provider.c | 1224 dev->ib_dev.dma_device = &dev->pdev->dev; in mthca_register_device()
|