/drivers/infiniband/hw/mlx4/ |
D | mr.c | 205 struct mlx4_ib_mw *mw; in mlx4_ib_alloc_mw() local 208 mw = kmalloc(sizeof(*mw), GFP_KERNEL); in mlx4_ib_alloc_mw() 209 if (!mw) in mlx4_ib_alloc_mw() 213 to_mlx4_type(type), &mw->mmw); in mlx4_ib_alloc_mw() 217 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 221 mw->ibmw.rkey = mw->mmw.key; in mlx4_ib_alloc_mw() 223 return &mw->ibmw; in mlx4_ib_alloc_mw() 226 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 229 kfree(mw); in mlx4_ib_alloc_mw() 234 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw, in mlx4_ib_bind_mw() argument [all …]
|
D | mlx4_ib.h | 595 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw, 597 int mlx4_ib_dealloc_mw(struct ib_mw *mw);
|
D | qp.c | 2002 if (wr->wr.bind_mw.mw->type == IB_MW_TYPE_2) in set_bind_seg()
|
/drivers/ntb/ |
D | ntb_hw.c | 82 #define MW_TO_BAR(mw) (mw * 2 + 2) argument 346 void __iomem *ntb_get_mw_vbase(struct ntb_device *ndev, unsigned int mw) in ntb_get_mw_vbase() argument 348 if (mw >= NTB_NUM_MW) in ntb_get_mw_vbase() 351 return ndev->mw[mw].vbase; in ntb_get_mw_vbase() 363 resource_size_t ntb_get_mw_size(struct ntb_device *ndev, unsigned int mw) in ntb_get_mw_size() argument 365 if (mw >= NTB_NUM_MW) in ntb_get_mw_size() 368 return ndev->mw[mw].bar_sz; in ntb_get_mw_size() 381 void ntb_set_mw_addr(struct ntb_device *ndev, unsigned int mw, u64 addr) in ntb_set_mw_addr() argument 383 if (mw >= NTB_NUM_MW) in ntb_set_mw_addr() 387 MW_TO_BAR(mw)); in ntb_set_mw_addr() [all …]
|
D | ntb_transport.c | 153 struct ntb_transport_mw mw[NTB_NUM_MW]; member 481 WARN_ON(nt->mw[mw_num].virt_addr == NULL); in ntb_transport_setup_qp_mw() 488 rx_size = (unsigned int) nt->mw[mw_num].size / num_qps_mw; in ntb_transport_setup_qp_mw() 489 qp->remote_rx_info = nt->mw[mw_num].virt_addr + in ntb_transport_setup_qp_mw() 515 struct ntb_transport_mw *mw = &nt->mw[num_mw]; in ntb_free_mw() local 518 if (!mw->virt_addr) in ntb_free_mw() 521 dma_free_coherent(&pdev->dev, mw->size, mw->virt_addr, mw->dma_addr); in ntb_free_mw() 522 mw->virt_addr = NULL; in ntb_free_mw() 527 struct ntb_transport_mw *mw = &nt->mw[num_mw]; in ntb_set_mw() local 531 if (mw->size == ALIGN(size, 4096)) in ntb_set_mw() [all …]
|
D | ntb_hw.h | 99 struct ntb_mw mw[NTB_NUM_MW]; member 161 void ntb_set_mw_addr(struct ntb_device *ndev, unsigned int mw, u64 addr); 175 void __iomem *ntb_get_mw_vbase(struct ntb_device *ndev, unsigned int mw); 176 resource_size_t ntb_get_mw_size(struct ntb_device *ndev, unsigned int mw);
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 658 struct mlx4_mw *mw) in mlx4_mw_alloc() argument 672 mw->key = hw_index_to_key(index); in mlx4_mw_alloc() 673 mw->pd = pd; in mlx4_mw_alloc() 674 mw->type = type; in mlx4_mw_alloc() 675 mw->enabled = MLX4_MPT_DISABLED; in mlx4_mw_alloc() 681 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) in mlx4_mw_enable() argument 687 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key)); in mlx4_mw_enable() 703 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); in mlx4_mw_enable() 704 mpt_entry->pd_flags = cpu_to_be32(mw->pd); in mlx4_mw_enable() 705 if (mw->type == MLX4_MW_TYPE_2) { in mlx4_mw_enable() [all …]
|
/drivers/infiniband/core/ |
D | verbs.c | 1105 struct ib_mw *mw; in ib_alloc_mw() local 1110 mw = pd->device->alloc_mw(pd, type); in ib_alloc_mw() 1111 if (!IS_ERR(mw)) { in ib_alloc_mw() 1112 mw->device = pd->device; in ib_alloc_mw() 1113 mw->pd = pd; in ib_alloc_mw() 1114 mw->uobject = NULL; in ib_alloc_mw() 1115 mw->type = type; in ib_alloc_mw() 1119 return mw; in ib_alloc_mw() 1123 int ib_dealloc_mw(struct ib_mw *mw) in ib_dealloc_mw() argument 1128 pd = mw->pd; in ib_dealloc_mw() [all …]
|
D | uverbs_cmd.c | 1060 struct ib_mw *mw; in ib_uverbs_alloc_mw() local 1082 mw = pd->device->alloc_mw(pd, cmd.mw_type); in ib_uverbs_alloc_mw() 1083 if (IS_ERR(mw)) { in ib_uverbs_alloc_mw() 1084 ret = PTR_ERR(mw); in ib_uverbs_alloc_mw() 1088 mw->device = pd->device; in ib_uverbs_alloc_mw() 1089 mw->pd = pd; in ib_uverbs_alloc_mw() 1090 mw->uobject = uobj; in ib_uverbs_alloc_mw() 1093 uobj->object = mw; in ib_uverbs_alloc_mw() 1099 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw() 1124 ib_dealloc_mw(mw); in ib_uverbs_alloc_mw() [all …]
|
D | uverbs_main.c | 208 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext() local 211 ib_dealloc_mw(mw); in ib_uverbs_cleanup_ucontext()
|
D | cma.c | 3063 struct iboe_mcast_work *mw = container_of(work, struct iboe_mcast_work, work); in iboe_mcast_work_handler() local 3064 struct cma_multicast *mc = mw->mc; in iboe_mcast_work_handler() 3070 kfree(mw); in iboe_mcast_work_handler()
|
/drivers/infiniband/hw/ehca/ |
D | hcp_if.h | 246 const struct ehca_mw *mw, 252 const struct ehca_mw *mw, 257 const struct ehca_mw *mw);
|
D | ehca_iverbs.h | 100 int ehca_bind_mw(struct ib_qp *qp, struct ib_mw *mw, 103 int ehca_dealloc_mw(struct ib_mw *mw);
|
D | hcp_if.c | 879 const struct ehca_mw *mw, in hipz_h_alloc_resource_mw() argument 898 const struct ehca_mw *mw, in hipz_h_query_mw() argument 906 mw->ipz_mw_handle.handle, /* r5 */ in hipz_h_query_mw() 914 const struct ehca_mw *mw) in hipz_h_free_resource_mw() argument 918 mw->ipz_mw_handle.handle, /* r5 */ in hipz_h_free_resource_mw()
|
D | ehca_mrmw.c | 735 struct ib_mw *mw, in ehca_bind_mw() argument 746 int ehca_dealloc_mw(struct ib_mw *mw) in ehca_dealloc_mw() argument 750 container_of(mw->device, struct ehca_shca, ib_device); in ehca_dealloc_mw() 751 struct ehca_mw *e_mw = container_of(mw, struct ehca_mw, ib_mw); in ehca_dealloc_mw() 755 ehca_err(mw->device, "hipz_free_mw failed, h_ret=%lli shca=%p " in ehca_dealloc_mw() 757 h_ret, shca, mw, mw->rkey, shca->ipz_hca_handle.handle, in ehca_dealloc_mw()
|
/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 817 int c4iw_dealloc_mw(struct ib_mw *mw) in c4iw_dealloc_mw() argument 823 mhp = to_c4iw_mw(mw); in c4iw_dealloc_mw() 825 mmid = (mw->rkey) >> 8; in c4iw_dealloc_mw() 829 PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); in c4iw_dealloc_mw()
|
D | iw_cxgb4.h | 865 int c4iw_bind_mw(struct ib_qp *qp, struct ib_mw *mw, 879 int c4iw_dealloc_mw(struct ib_mw *mw);
|
D | qp.c | 820 int c4iw_bind_mw(struct ib_qp *qp, struct ib_mw *mw, struct ib_mw_bind *mw_bind) in c4iw_bind_mw() argument
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_qp.c | 529 struct ib_mw *mw, in iwch_bind_mw() argument 547 mhp = to_iwch_mw(mw); in iwch_bind_mw() 563 mw, mw_bind); in iwch_bind_mw() 580 wqe->bind.mw_stag = cpu_to_be32(mw->rkey); in iwch_bind_mw()
|
D | iwch_provider.h | 332 struct ib_mw *mw,
|
D | iwch_provider.c | 778 static int iwch_dealloc_mw(struct ib_mw *mw) in iwch_dealloc_mw() argument 784 mhp = to_iwch_mw(mw); in iwch_dealloc_mw() 786 mmid = (mw->rkey) >> 8; in iwch_dealloc_mw() 789 PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); in iwch_dealloc_mw()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | wl_cfg80211.c | 307 static u8 brcmf_mw_to_qdbm(u16 mw) in brcmf_mw_to_qdbm() argument 311 uint mw_uint = mw; in brcmf_mw_to_qdbm()
|