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.h2139 struct device *dma_device; member
3562 return dma_mapping_error(dev->dma_device, dma_addr); in ib_dma_mapping_error()
3576 return dma_map_single(dev->dma_device, cpu_addr, size, direction); in ib_dma_map_single()
3590 dma_unmap_single(dev->dma_device, addr, size, direction); in ib_dma_unmap_single()
3607 return dma_map_page(dev->dma_device, page, offset, size, direction); in ib_dma_map_page()
3621 dma_unmap_page(dev->dma_device, addr, size, direction); in ib_dma_unmap_page()
3635 return dma_map_sg(dev->dma_device, sg, nents, direction); in ib_dma_map_sg()
3649 dma_unmap_sg(dev->dma_device, sg, nents, direction); in ib_dma_unmap_sg()
3657 return dma_map_sg_attrs(dev->dma_device, sg, nents, direction, in ib_dma_map_sg_attrs()
3666 dma_unmap_sg_attrs(dev->dma_device, sg, nents, direction, dma_attrs); in ib_dma_unmap_sg_attrs()
[all …]
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dmem.c134 daddr = dma_map_single(rhp->ibdev.dma_device, data, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma()
135 if (dma_mapping_error(rhp->ibdev.dma_device, daddr)) in _c4iw_write_mem_dma()
160 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()
674 dma_free_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
H A Dcq.c84 dma_free_coherent(rhp->ibdev.dma_device, in destroy_cq()
119 cq->queue = dma_alloc_coherent(rhp->ibdev.dma_device, cq->memsize, in create_cq()
184 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()
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()
316 dma_free_coherent(rhp->ibdev.dma_device, in create_qp()
320 dma_free_coherent(rhp->ibdev.dma_device, in create_qp()
H A Dprovider.c464 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.c2444 ibdev->ib_dev.dma_device = &dev->persist->pdev->dev; in mlx4_ib_add()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mr.c552 struct device *ddev = dev->ib_dev.dma_device; in dma_map_mr_pas()
671 struct device *ddev = dev->ib_dev.dma_device; in reg_umr()
749 struct device *ddev = dev->ib_dev.dma_device; in mlx5_ib_update_mtt()
1063 struct device *ddev = dev->ib_dev.dma_device; in rereg_umr()
1237 mr->desc_map = dma_map_single(device->dma_device, mr->descs, in mlx5_alloc_priv_descs()
1239 if (dma_mapping_error(device->dma_device, mr->desc_map)) { in mlx5_alloc_priv_descs()
1258 dma_unmap_single(device->dma_device, mr->desc_map, in mlx5_free_priv_descs()
H A Dmlx5_ib_main.c3862 dev->ib_dev.dma_device = &mdev->pdev->dev; in mlx5_ib_add()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_main.c1007 if (!dev->ib_dev->dma_device) in show_dev_device()
1011 ((struct pci_dev *)dev->ib_dev->dma_device)->device); in show_dev_device()
1021 if (!dev->ib_dev->dma_device) in show_dev_vendor()
1025 ((struct pci_dev *)dev->ib_dev->dma_device)->vendor); in show_dev_vendor()
H A Dib_user_mad.c1203 port->dev = device_create(umad_class, device->dma_device, in ib_umad_init_port()
1222 port->sm_dev = device_create(umad_class, device->dma_device, in ib_umad_init_port()
H A Dib_sysfs.c1340 device->dev.parent = device->dma_device; in ib_device_register_sysfs()
H A Dib_ucm.c1291 ucm_dev->dev.parent = device->dma_device; in ib_ucm_add_one()
/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.h60 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.c257 ibdev->dma_device = &dev->pdev.dev; in qlnxr_register_device()
/freebsd/sys/dev/mthca/
H A Dmthca_provider.c1176 dev->ib_dev.dma_device = &dev->pdev->dev; in mthca_register_device()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dmain.c138 ibdev->dma_device = &rdev->en_dev->pdev->dev; in bnxt_re_set_dma_device()