to_mdev 303 drivers/dma/altera-msgdma.c struct msgdma_device *mdev = to_mdev(tx->chan); to_mdev 332 drivers/dma/altera-msgdma.c struct msgdma_device *mdev = to_mdev(dchan); to_mdev 390 drivers/dma/altera-msgdma.c struct msgdma_device *mdev = to_mdev(dchan); to_mdev 461 drivers/dma/altera-msgdma.c struct msgdma_device *mdev = to_mdev(dchan); to_mdev 568 drivers/dma/altera-msgdma.c struct msgdma_device *mdev = to_mdev(chan); to_mdev 637 drivers/dma/altera-msgdma.c struct msgdma_device *mdev = to_mdev(dchan); to_mdev 654 drivers/dma/altera-msgdma.c struct msgdma_device *mdev = to_mdev(dchan); to_mdev 46 drivers/infiniband/hw/mlx4/ah.c struct mlx4_dev *dev = to_mdev(ib_ah->device)->dev; to_mdev 79 drivers/infiniband/hw/mlx4/ah.c struct mlx4_ib_dev *ibdev = to_mdev(ib_ah->device); to_mdev 490 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 146 drivers/infiniband/hw/mlx4/cm.c struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; to_mdev 191 drivers/infiniband/hw/mlx4/cm.c struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; to_mdev 226 drivers/infiniband/hw/mlx4/cm.c struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; to_mdev 235 drivers/infiniband/hw/mlx4/cm.c ent->dev = to_mdev(ibdev); to_mdev 258 drivers/infiniband/hw/mlx4/cm.c struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; to_mdev 274 drivers/infiniband/hw/mlx4/cm.c struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; to_mdev 96 drivers/infiniband/hw/mlx4/cq.c struct mlx4_ib_dev *dev = to_mdev(cq->device); to_mdev 181 drivers/infiniband/hw/mlx4/cq.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 382 drivers/infiniband/hw/mlx4/cq.c struct mlx4_ib_dev *dev = to_mdev(ibcq->device); to_mdev 480 drivers/infiniband/hw/mlx4/cq.c struct mlx4_ib_dev *dev = to_mdev(cq->device); to_mdev 700 drivers/infiniband/hw/mlx4/cq.c struct mlx4_ib_dev *dev = to_mdev(cq->ibcq.device); to_mdev 720 drivers/infiniband/hw/mlx4/cq.c mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev, to_mdev 732 drivers/infiniband/hw/mlx4/cq.c msrq = mlx4_srq_lookup(to_mdev(cq->ibcq.device)->dev, to_mdev 842 drivers/infiniband/hw/mlx4/cq.c if (mlx4_is_mfunc(to_mdev(cq->ibcq.device)->dev)) { to_mdev 887 drivers/infiniband/hw/mlx4/cq.c struct mlx4_ib_dev *mdev = to_mdev(cq->ibcq.device); to_mdev 913 drivers/infiniband/hw/mlx4/cq.c to_mdev(ibcq->device)->uar_map, to_mdev 914 drivers/infiniband/hw/mlx4/cq.c MLX4_GET_DOORBELL_LOCK(&to_mdev(ibcq->device)->uar_lock)); to_mdev 230 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 376 drivers/infiniband/hw/mlx4/mad.c spin_lock_irqsave(&to_mdev(dev)->sm_lock, flags); to_mdev 379 drivers/infiniband/hw/mlx4/mad.c spin_unlock_irqrestore(&to_mdev(dev)->sm_lock, flags); to_mdev 434 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 668 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 834 drivers/infiniband/hw/mlx4/mad.c forward_trap(to_mdev(ibdev), port_num, in_mad); to_mdev 867 drivers/infiniband/hw/mlx4/mad.c err = mlx4_MAD_IFC(to_mdev(ibdev), to_mdev 878 drivers/infiniband/hw/mlx4/mad.c if (!mlx4_is_slave(to_mdev(ibdev)->dev)) to_mdev 942 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 991 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 1303 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ctx->ib_dev); to_mdev 1483 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ctx->ib_dev); to_mdev 1847 drivers/infiniband/hw/mlx4/mad.c ret = find_slave_port_pkey_ix(to_mdev(ctx->ib_dev), ctx->slave, to_mdev 1852 drivers/infiniband/hw/mlx4/mad.c to_mdev(ctx->ib_dev)->pkeys.virt2phys_pkey[ctx->slave][ctx->port - 1][0]; to_mdev 2048 drivers/infiniband/hw/mlx4/mad.c ctx->wq = to_mdev(ibdev)->sriov.demux[port - 1].wq; to_mdev 2249 drivers/infiniband/hw/mlx4/mad.c struct mlx4_ib_dev *dev = to_mdev(ctx->ib_dev); to_mdev 134 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *ibdev = to_mdev(device); to_mdev 258 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *ibdev = to_mdev(attr->device); to_mdev 344 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *ibdev = to_mdev(attr->device); to_mdev 437 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 472 drivers/infiniband/hw/mlx4/main.c err = mlx4_MAD_IFC(to_mdev(ibdev), MLX4_MAD_IFC_IGNORE_KEYS, to_mdev 651 drivers/infiniband/hw/mlx4/main.c struct mlx4_dev *dev = to_mdev(device)->dev; to_mdev 675 drivers/infiniband/hw/mlx4/main.c if (mlx4_is_mfunc(to_mdev(ibdev)->dev) && netw_view) to_mdev 678 drivers/infiniband/hw/mlx4/main.c err = mlx4_MAD_IFC(to_mdev(ibdev), mad_ifc_flags, port, NULL, NULL, to_mdev 694 drivers/infiniband/hw/mlx4/main.c props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; to_mdev 695 drivers/infiniband/hw/mlx4/main.c props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz; to_mdev 696 drivers/infiniband/hw/mlx4/main.c props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port]; to_mdev 727 drivers/infiniband/hw/mlx4/main.c err = mlx4_MAD_IFC(to_mdev(ibdev), mad_ifc_flags, port, to_mdev 757 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibdev); to_mdev 840 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 907 drivers/infiniband/hw/mlx4/main.c if (mlx4_is_slave(to_mdev(ibdev)->dev)) { to_mdev 921 drivers/infiniband/hw/mlx4/main.c if (mlx4_is_mfunc(to_mdev(ibdev)->dev)) to_mdev 924 drivers/infiniband/hw/mlx4/main.c err = mlx4_MAD_IFC(to_mdev(ibdev), mad_ifc_flags, port, NULL, NULL, to_mdev 975 drivers/infiniband/hw/mlx4/main.c if (mlx4_is_mfunc(to_mdev(ibdev)->dev) && netw_view) to_mdev 978 drivers/infiniband/hw/mlx4/main.c err = mlx4_MAD_IFC(to_mdev(ibdev), mad_ifc_flags, port, NULL, NULL, to_mdev 1008 drivers/infiniband/hw/mlx4/main.c if (mlx4_is_slave(to_mdev(ibdev)->dev)) to_mdev 1011 drivers/infiniband/hw/mlx4/main.c spin_lock_irqsave(&to_mdev(ibdev)->sm_lock, flags); to_mdev 1013 drivers/infiniband/hw/mlx4/main.c spin_unlock_irqrestore(&to_mdev(ibdev)->sm_lock, flags); to_mdev 1019 drivers/infiniband/hw/mlx4/main.c mailbox = mlx4_alloc_cmd_mailbox(to_mdev(ibdev)->dev); to_mdev 1024 drivers/infiniband/hw/mlx4/main.c mlx4_cmd(to_mdev(ibdev)->dev, mailbox->dma, 1, 0, to_mdev 1027 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(to_mdev(ibdev)->dev, mailbox); to_mdev 1061 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibdev); to_mdev 1088 drivers/infiniband/hw/mlx4/main.c mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); to_mdev 1096 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 1118 drivers/infiniband/hw/mlx4/main.c err = mlx4_uar_alloc(to_mdev(ibdev)->dev, &context->uar); to_mdev 1134 drivers/infiniband/hw/mlx4/main.c mlx4_uar_free(to_mdev(ibdev)->dev, &context->uar); to_mdev 1145 drivers/infiniband/hw/mlx4/main.c mlx4_uar_free(to_mdev(ibcontext->device)->dev, &context->uar); to_mdev 1154 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *dev = to_mdev(context->device); to_mdev 1200 drivers/infiniband/hw/mlx4/main.c err = mlx4_pd_alloc(to_mdev(ibdev)->dev, &pd->pdn); to_mdev 1205 drivers/infiniband/hw/mlx4/main.c mlx4_pd_free(to_mdev(ibdev)->dev, pd->pdn); to_mdev 1213 drivers/infiniband/hw/mlx4/main.c mlx4_pd_free(to_mdev(pd->device)->dev, to_mpd(pd)->pdn); to_mdev 1223 drivers/infiniband/hw/mlx4/main.c if (!(to_mdev(ibdev)->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC)) to_mdev 1230 drivers/infiniband/hw/mlx4/main.c err = mlx4_xrcd_alloc(to_mdev(ibdev)->dev, &xrcd->xrcdn); to_mdev 1252 drivers/infiniband/hw/mlx4/main.c mlx4_xrcd_free(to_mdev(ibdev)->dev, xrcd->xrcdn); to_mdev 1262 drivers/infiniband/hw/mlx4/main.c mlx4_xrcd_free(to_mdev(xrcd->device)->dev, to_mxrcd(xrcd)->xrcdn); to_mdev 1271 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); to_mdev 1533 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(qp->device); to_mdev 1635 drivers/infiniband/hw/mlx4/main.c struct mlx4_dev *dev = to_mdev(qp->device)->dev; to_mdev 1648 drivers/infiniband/hw/mlx4/main.c err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth.val.dst_mac, to_mdev 1712 drivers/infiniband/hw/mlx4/main.c struct mlx4_dev *dev = (to_mdev(qp->device))->dev; to_mdev 1817 drivers/infiniband/hw/mlx4/main.c (void)__mlx4_ib_destroy_flow(to_mdev(qp->device)->dev, to_mdev 1823 drivers/infiniband/hw/mlx4/main.c (void)__mlx4_ib_destroy_flow(to_mdev(qp->device)->dev, to_mdev 1836 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(flow_id->qp->device); to_mdev 1859 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); to_mdev 1937 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); to_mdev 2120 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 2135 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 2488 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibdev); to_mdev 3243 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *ibdev = to_mdev((struct ib_device *) ibdev_ptr); to_mdev 885 drivers/infiniband/hw/mlx4/mcg.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 934 drivers/infiniband/hw/mlx4/mcg.c struct mlx4_ib_dev *dev = to_mdev(ibdev); to_mdev 67 drivers/infiniband/hw/mlx4/mr.c err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, to_mdev 72 drivers/infiniband/hw/mlx4/mr.c err = mlx4_mr_enable(to_mdev(pd->device)->dev, &mr->mmr); to_mdev 82 drivers/infiniband/hw/mlx4/mr.c (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); to_mdev 408 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_dev *dev = to_mdev(pd->device); to_mdev 448 drivers/infiniband/hw/mlx4/mr.c (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); to_mdev 464 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_dev *dev = to_mdev(mr->device); to_mdev 604 drivers/infiniband/hw/mlx4/mr.c ret = mlx4_mr_free(to_mdev(ibmr->device)->dev, &mr->mmr); to_mdev 617 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_dev *dev = to_mdev(pd->device); to_mdev 651 drivers/infiniband/hw/mlx4/mr.c mlx4_mw_free(to_mdev(ibmw->device)->dev, &mw->mmw); to_mdev 660 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_dev *dev = to_mdev(pd->device); to_mdev 704 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_dev *dev = to_mdev(pd->device); to_mdev 718 drivers/infiniband/hw/mlx4/mr.c err = mlx4_fmr_enable(to_mdev(pd->device)->dev, &fmr->mfmr); to_mdev 727 drivers/infiniband/hw/mlx4/mr.c (void) mlx4_mr_free(to_mdev(pd->device)->dev, &fmr->mfmr.mr); to_mdev 739 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_dev *dev = to_mdev(ifmr->ibfmr.device); to_mdev 752 drivers/infiniband/hw/mlx4/mr.c if (mdev && to_mdev(ibfmr->device)->dev != mdev) to_mdev 754 drivers/infiniband/hw/mlx4/mr.c mdev = to_mdev(ibfmr->device)->dev; to_mdev 783 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_dev *dev = to_mdev(ibfmr->device); to_mdev 764 drivers/infiniband/hw/mlx4/qp.c err = create_qp_rss(to_mdev(pd->device), init_attr, &ucmd, qp); to_mdev 783 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(context->ibucontext.device); to_mdev 833 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(context->ibucontext.device); to_mdev 861 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(pd->device); to_mdev 994 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(pd->device); to_mdev 1583 drivers/infiniband/hw/mlx4/qp.c if (!(to_mdev(pd->device)->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC)) to_mdev 1618 drivers/infiniband/hw/mlx4/qp.c int res = mlx4_qp_reserve_range(to_mdev(pd->device)->dev, to_mdev 1625 drivers/infiniband/hw/mlx4/qp.c sqpn = get_sqp_num(to_mdev(pd->device), init_attr); to_mdev 1650 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(device); to_mdev 1681 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(qp->device); to_mdev 2162 drivers/infiniband/hw/mlx4/qp.c dev = to_mdev(ibwq->device); to_mdev 2172 drivers/infiniband/hw/mlx4/qp.c dev = to_mdev(ibqp->device); to_mdev 2721 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(ibqp->device); to_mdev 2884 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *mdev = to_mdev(sqp->qp.ibqp.device); to_mdev 3036 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *ibdev = to_mdev(ib_dev); to_mdev 3063 drivers/infiniband/hw/mlx4/qp.c if (mlx4_is_mfunc(to_mdev(ib_dev)->dev)) { to_mdev 3067 drivers/infiniband/hw/mlx4/qp.c err = mlx4_get_roce_gid_from_slave(to_mdev(ib_dev)->dev, to_mdev 3115 drivers/infiniband/hw/mlx4/qp.c if (mlx4_is_mfunc(to_mdev(ib_dev)->dev)) { to_mdev 3121 drivers/infiniband/hw/mlx4/qp.c cpu_to_be64(atomic64_read(&(to_mdev(ib_dev)->sriov. to_mdev 3125 drivers/infiniband/hw/mlx4/qp.c to_mdev(ib_dev)->sriov.demux[sqp->qp.port - 1]. to_mdev 3208 drivers/infiniband/hw/mlx4/qp.c sl_to_vl(to_mdev(ib_dev), to_mdev 3551 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); to_mdev 3740 drivers/infiniband/hw/mlx4/qp.c set_tunnel_datagram_seg(to_mdev(ibqp->device), wqe, to_mdev 3837 drivers/infiniband/hw/mlx4/qp.c to_mdev(ibqp->device)->uar_map + MLX4_SEND_DOORBELL); to_mdev 3866 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); to_mdev 4025 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(ibqp->device); to_mdev 4133 drivers/infiniband/hw/mlx4/qp.c struct mlx4_dev *dev = to_mdev(pd->device)->dev; to_mdev 4332 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(ibwq->device); to_mdev 4491 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(qp->device); to_mdev 4520 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(qp->device); to_mdev 76 drivers/infiniband/hw/mlx4/srq.c struct mlx4_ib_dev *dev = to_mdev(ib_srq->device); to_mdev 221 drivers/infiniband/hw/mlx4/srq.c struct mlx4_ib_dev *dev = to_mdev(ibsrq->device); to_mdev 246 drivers/infiniband/hw/mlx4/srq.c struct mlx4_ib_dev *dev = to_mdev(ibsrq->device); to_mdev 264 drivers/infiniband/hw/mlx4/srq.c struct mlx4_ib_dev *dev = to_mdev(srq->device); to_mdev 310 drivers/infiniband/hw/mlx4/srq.c struct mlx4_ib_dev *mdev = to_mdev(ibsrq->device); to_mdev 76 drivers/infiniband/hw/mlx5/ah.c struct mlx5_ib_dev *dev = to_mdev(ibah->device); to_mdev 50 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); to_mdev 169 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); to_mdev 443 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); to_mdev 573 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); to_mdev 600 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); to_mdev 635 drivers/infiniband/hw/mlx5/cq.c struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; to_mdev 916 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1019 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(cq->device); to_mdev 1097 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(cq->device); to_mdev 1176 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); to_mdev 1231 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(ibcq->device); to_mdev 901 drivers/infiniband/hw/mlx5/devx.c dev = to_mdev(c->ibucontext.device); to_mdev 965 drivers/infiniband/hw/mlx5/devx.c dev = to_mdev(c->ibucontext.device); to_mdev 1009 drivers/infiniband/hw/mlx5/devx.c dev = to_mdev(c->ibucontext.device); to_mdev 1042 drivers/infiniband/hw/mlx5/devx.c dev = to_mdev(c->ibucontext.device); to_mdev 1410 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device); to_mdev 1511 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *mdev = to_mdev(c->ibucontext.device); to_mdev 1559 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *mdev = to_mdev(c->ibucontext.device); to_mdev 1636 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device); to_mdev 1697 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *mdev = to_mdev(c->ibucontext.device); to_mdev 1923 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device); to_mdev 2183 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *dev = to_mdev(c->ibucontext.device); to_mdev 2928 drivers/infiniband/hw/mlx5/devx.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 118 drivers/infiniband/hw/mlx5/gsi.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 215 drivers/infiniband/hw/mlx5/gsi.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 275 drivers/infiniband/hw/mlx5/gsi.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 315 drivers/infiniband/hw/mlx5/gsi.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 376 drivers/infiniband/hw/mlx5/gsi.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 417 drivers/infiniband/hw/mlx5/gsi.c struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); to_mdev 468 drivers/infiniband/hw/mlx5/gsi.c struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); to_mdev 54 drivers/infiniband/hw/mlx5/ib_virt.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 96 drivers/infiniband/hw/mlx5/ib_virt.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 130 drivers/infiniband/hw/mlx5/ib_virt.c dev = to_mdev(device); to_mdev 154 drivers/infiniband/hw/mlx5/ib_virt.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 175 drivers/infiniband/hw/mlx5/ib_virt.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 111 drivers/infiniband/hw/mlx5/mad.c err = mlx5_MAD_IFC(to_mdev(ibdev), to_mdev 278 drivers/infiniband/hw/mlx5/mad.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 342 drivers/infiniband/hw/mlx5/mad.c err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, to_mdev 481 drivers/infiniband/hw/mlx5/mad.c err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, to_mdev 510 drivers/infiniband/hw/mlx5/mad.c err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, to_mdev 521 drivers/infiniband/hw/mlx5/mad.c err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, to_mdev 537 drivers/infiniband/hw/mlx5/mad.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 140 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 274 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *ibdev = to_mdev(device); to_mdev 485 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 621 drivers/infiniband/hw/mlx5/main.c return set_roce_addr(to_mdev(attr->device), attr->port_num, to_mdev 628 drivers/infiniband/hw/mlx5/main.c return set_roce_addr(to_mdev(attr->device), attr->port_num, to_mdev 656 drivers/infiniband/hw/mlx5/main.c if (mlx5_use_mad_ifc(to_mdev(ibdev))) to_mdev 714 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 746 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 767 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 833 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1213 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1298 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1390 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1432 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1451 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1493 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1556 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1769 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 1992 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibcontext->device); to_mdev 2195 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(context->device); to_mdev 2216 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibcontext->device); to_mdev 2290 drivers/infiniband/hw/mlx5/main.c struct mlx5_dm *dm_db = &to_mdev(ctx->device)->dm; to_mdev 2336 drivers/infiniband/hw/mlx5/main.c struct mlx5_core_dev *dev = to_mdev(ctx->device)->mdev; to_mdev 2379 drivers/infiniband/hw/mlx5/main.c mlx5_ib_dbg(to_mdev(ibdev), "alloc_dm req: dm_type=%d user_length=0x%llx log_alignment=%d\n", to_mdev 2382 drivers/infiniband/hw/mlx5/main.c err = check_dm_type_support(to_mdev(ibdev), type); to_mdev 2426 drivers/infiniband/hw/mlx5/main.c struct mlx5_core_dev *dev = to_mdev(ibdm->device)->mdev; to_mdev 2427 drivers/infiniband/hw/mlx5/main.c struct mlx5_dm *dm_db = &to_mdev(ibdm->device)->dm; to_mdev 2482 drivers/infiniband/hw/mlx5/main.c err = mlx5_cmd_exec(to_mdev(ibdev)->mdev, in, sizeof(in), to_mdev 2492 drivers/infiniband/hw/mlx5/main.c mlx5_cmd_dealloc_pd(to_mdev(ibdev)->mdev, pd->pdn, uid); to_mdev 2502 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *mdev = to_mdev(pd->device); to_mdev 3368 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 3442 drivers/infiniband/hw/mlx5/main.c to_mdev(ibcounters->device)->mdev, false); to_mdev 3474 drivers/infiniband/hw/mlx5/main.c mlx5_fc_destroy(to_mdev(ibcounters->device)->mdev, to_mdev 3787 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 4190 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *mdev = to_mdev(device); to_mdev 4342 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 4365 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 5089 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 5124 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 5508 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 5582 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 5635 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(counter->device); to_mdev 5648 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(counter->device); to_mdev 5659 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 5692 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(counter->device); to_mdev 5704 drivers/infiniband/hw/mlx5/main.c return mlx5_rdma_rn_get_params(to_mdev(device)->mdev, device, params); to_mdev 6119 drivers/infiniband/hw/mlx5/main.c mlx5_fc_destroy(to_mdev(counters->device)->mdev, to_mdev 1025 drivers/infiniband/hw/mlx5/mlx5_ib.h return to_mdev(context->ibucontext.device); to_mdev 684 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 854 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1056 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1150 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1223 drivers/infiniband/hw/mlx5/mr.c struct mlx5_core_dev *dev = to_mdev(dm->device)->mdev; to_mdev 1254 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1372 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1396 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(ib_mr->device); to_mdev 1633 drivers/infiniband/hw/mlx5/mr.c dereg_mr(to_mdev(mmr->mtt_mr->ibmr.device), mmr->mtt_mr); to_mdev 1634 drivers/infiniband/hw/mlx5/mr.c dereg_mr(to_mdev(mmr->klm_mr->ibmr.device), mmr->klm_mr); to_mdev 1637 drivers/infiniband/hw/mlx5/mr.c dereg_mr(to_mdev(ibmr->device), mmr); to_mdev 1663 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1754 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1803 drivers/infiniband/hw/mlx5/mr.c dereg_mr(to_mdev(mr->mtt_mr->ibmr.device), mr->mtt_mr); to_mdev 1806 drivers/infiniband/hw/mlx5/mr.c dereg_mr(to_mdev(mr->klm_mr->ibmr.device), mr->klm_mr); to_mdev 1825 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1891 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1965 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(mw->device); to_mdev 167 drivers/infiniband/hw/mlx5/odp.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 423 drivers/infiniband/hw/mlx5/odp.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 478 drivers/infiniband/hw/mlx5/odp.c struct mlx5_ib_dev *dev = to_mdev(mr->ibmr.pd->device); to_mdev 1658 drivers/infiniband/hw/mlx5/odp.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1704 drivers/infiniband/hw/mlx5/odp.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 1732 drivers/infiniband/hw/mlx5/odp.c num_pending_prefetch_dec(to_mdev(w->pd->device), w->sg_list, to_mdev 1741 drivers/infiniband/hw/mlx5/odp.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 2641 drivers/infiniband/hw/mlx5/qp.c dev = to_mdev(pd->device); to_mdev 2660 drivers/infiniband/hw/mlx5/qp.c dev = to_mdev(to_mxrcd(init_attr->xrcd)->ibxrcd.device); to_mdev 2753 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); to_mdev 2772 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 2795 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); to_mdev 3388 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 3452 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 3801 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 3892 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 4815 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(pd->ibpd.device); to_mdev 4822 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_warn(to_mdev(qp->ibqp.device), to_mdev 4832 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_warn(to_mdev(qp->ibqp.device), to_mdev 4966 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 5361 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 5760 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); to_mdev 5841 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibdev); to_mdev 5863 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(xrcd->device); to_mdev 5878 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(rwq->ibwq.device); to_mdev 5930 drivers/infiniband/hw/mlx5/qp.c dev = to_mdev(pd->device); to_mdev 6045 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 6141 drivers/infiniband/hw/mlx5/qp.c dev = to_mdev(pd->device); to_mdev 6185 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(wq->device); to_mdev 6197 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(device); to_mdev 6274 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ib_rwq_ind_tbl->device); to_mdev 6285 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(wq->device); to_mdev 6453 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 6482 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 6510 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(qp->device); to_mdev 48 drivers/infiniband/hw/mlx5/srq.c struct mlx5_ib_dev *dev = to_mdev(pd->device); to_mdev 221 drivers/infiniband/hw/mlx5/srq.c struct mlx5_ib_dev *dev = to_mdev(ib_srq->device); to_mdev 339 drivers/infiniband/hw/mlx5/srq.c struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); to_mdev 364 drivers/infiniband/hw/mlx5/srq.c struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); to_mdev 388 drivers/infiniband/hw/mlx5/srq.c struct mlx5_ib_dev *dev = to_mdev(srq->device); to_mdev 426 drivers/infiniband/hw/mlx5/srq.c struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); to_mdev 295 drivers/infiniband/hw/mthca/mthca_av.c struct mthca_dev *dev = to_mdev(ibah->device); to_mdev 335 drivers/infiniband/hw/mthca/mthca_cq.c if (!mthca_is_memfree(to_mdev(cq->ibcq.device)) && to_mdev 657 drivers/infiniband/hw/mthca/mthca_cq.c struct mthca_dev *dev = to_mdev(ibcq->device); to_mdev 730 drivers/infiniband/hw/mthca/mthca_cq.c mthca_write64(dbhi, 0xffffffff, to_mdev(cq->device)->kar + MTHCA_CQ_DOORBELL, to_mdev 731 drivers/infiniband/hw/mthca/mthca_cq.c MTHCA_GET_DOORBELL_LOCK(&to_mdev(cq->device)->doorbell_lock)); to_mdev 762 drivers/infiniband/hw/mthca/mthca_cq.c to_mdev(ibcq->device)->kar + MTHCA_CQ_DOORBELL, to_mdev 763 drivers/infiniband/hw/mthca/mthca_cq.c MTHCA_GET_DOORBELL_LOCK(&to_mdev(ibcq->device)->doorbell_lock)); to_mdev 122 drivers/infiniband/hw/mthca/mthca_mad.c mthca_update_rate(to_mdev(ibdev), port_num); to_mdev 123 drivers/infiniband/hw/mthca/mthca_mad.c update_sm_ah(to_mdev(ibdev), port_num, to_mdev 157 drivers/infiniband/hw/mthca/mthca_mad.c mutex_lock(&to_mdev(dev)->cap_mask_mutex); to_mdev 160 drivers/infiniband/hw/mthca/mthca_mad.c mutex_unlock(&to_mdev(dev)->cap_mask_mutex); to_mdev 222 drivers/infiniband/hw/mthca/mthca_mad.c forward_trap(to_mdev(ibdev), port_num, in_mad); to_mdev 262 drivers/infiniband/hw/mthca/mthca_mad.c err = mthca_MAD_IFC(to_mdev(ibdev), to_mdev 269 drivers/infiniband/hw/mthca/mthca_mad.c mthca_err(to_mdev(ibdev), "MAD_IFC returned %d\n", err); to_mdev 122 drivers/infiniband/hw/mthca/mthca_mcg.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 216 drivers/infiniband/hw/mthca/mthca_mcg.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 721 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_dev *dev = to_mdev(ibfmr->device); to_mdev 762 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_dev *dev = to_mdev(ibfmr->device); to_mdev 67 drivers/infiniband/hw/mthca/mthca_provider.c struct mthca_dev *mdev = to_mdev(ibdev); to_mdev 157 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, to_mdev 169 drivers/infiniband/hw/mthca/mthca_provider.c props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; to_mdev 171 drivers/infiniband/hw/mthca/mthca_provider.c props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; to_mdev 196 drivers/infiniband/hw/mthca/mthca_provider.c if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) to_mdev 200 drivers/infiniband/hw/mthca/mthca_provider.c mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); to_mdev 214 drivers/infiniband/hw/mthca/mthca_provider.c if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) to_mdev 227 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_SET_IB(to_mdev(ibdev), &set_ib, port); to_mdev 231 drivers/infiniband/hw/mthca/mthca_provider.c mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); to_mdev 251 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, to_mdev 280 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, to_mdev 291 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, to_mdev 312 drivers/infiniband/hw/mthca/mthca_provider.c if (!(to_mdev(ibdev)->active)) to_mdev 315 drivers/infiniband/hw/mthca/mthca_provider.c uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; to_mdev 316 drivers/infiniband/hw/mthca/mthca_provider.c if (mthca_is_memfree(to_mdev(ibdev))) to_mdev 317 drivers/infiniband/hw/mthca/mthca_provider.c uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; to_mdev 321 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_uar_alloc(to_mdev(ibdev), &context->uar); to_mdev 325 drivers/infiniband/hw/mthca/mthca_provider.c context->db_tab = mthca_init_user_db_tab(to_mdev(ibdev)); to_mdev 328 drivers/infiniband/hw/mthca/mthca_provider.c mthca_uar_free(to_mdev(ibdev), &context->uar); to_mdev 333 drivers/infiniband/hw/mthca/mthca_provider.c mthca_cleanup_user_db_tab(to_mdev(ibdev), &context->uar, context->db_tab); to_mdev 334 drivers/infiniband/hw/mthca/mthca_provider.c mthca_uar_free(to_mdev(ibdev), &context->uar); to_mdev 345 drivers/infiniband/hw/mthca/mthca_provider.c mthca_cleanup_user_db_tab(to_mdev(context->device), &to_mucontext(context)->uar, to_mdev 347 drivers/infiniband/hw/mthca/mthca_provider.c mthca_uar_free(to_mdev(context->device), &to_mucontext(context)->uar); to_mdev 372 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd); to_mdev 378 drivers/infiniband/hw/mthca/mthca_provider.c mthca_pd_free(to_mdev(ibdev), pd); to_mdev 388 drivers/infiniband/hw/mthca/mthca_provider.c mthca_pd_free(to_mdev(pd->device), to_mpd(pd)); to_mdev 397 drivers/infiniband/hw/mthca/mthca_provider.c return mthca_create_ah(to_mdev(ibah->device), to_mpd(ibah->pd), ah_attr, to_mdev 403 drivers/infiniband/hw/mthca/mthca_provider.c mthca_destroy_ah(to_mdev(ah->device), to_mah(ah)); to_mdev 423 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_map_user_db(to_mdev(ibsrq->device), &context->uar, to_mdev 434 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_alloc_srq(to_mdev(ibsrq->device), to_mpd(ibsrq->pd), to_mdev 438 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(ibsrq->device), &context->uar, to_mdev 445 drivers/infiniband/hw/mthca/mthca_provider.c mthca_free_srq(to_mdev(ibsrq->device), srq); to_mdev 461 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(srq->device), &context->uar, to_mdev 465 drivers/infiniband/hw/mthca/mthca_provider.c mthca_free_srq(to_mdev(srq->device), to_msrq(srq)); to_mdev 496 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_map_user_db(to_mdev(pd->device), &context->uar, to_mdev 504 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_map_user_db(to_mdev(pd->device), &context->uar, to_mdev 508 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(pd->device), to_mdev 521 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_alloc_qp(to_mdev(pd->device), to_mpd(pd), to_mdev 528 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(pd->device), to_mdev 532 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(pd->device), to_mdev 554 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_alloc_sqp(to_mdev(pd->device), to_mpd(pd), to_mdev 590 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(qp->device), to_mdev 594 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(qp->device), to_mdev 599 drivers/infiniband/hw/mthca/mthca_provider.c mthca_free_qp(to_mdev(qp->device), to_mqp(qp)); to_mdev 620 drivers/infiniband/hw/mthca/mthca_provider.c if (entries < 1 || entries > to_mdev(ibdev)->limits.max_cqes) to_mdev 627 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_map_user_db(to_mdev(ibdev), &context->uar, to_mdev 633 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_map_user_db(to_mdev(ibdev), &context->uar, to_mdev 651 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_init_cq(to_mdev(ibdev), nent, context, to_mdev 652 drivers/infiniband/hw/mthca/mthca_provider.c udata ? ucmd.pdn : to_mdev(ibdev)->driver_pd.pd_num, to_mdev 658 drivers/infiniband/hw/mthca/mthca_provider.c mthca_free_cq(to_mdev(ibdev), cq); to_mdev 669 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(ibdev), &context->uar, to_mdev 674 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(ibdev), &context->uar, to_mdev 727 drivers/infiniband/hw/mthca/mthca_provider.c struct mthca_dev *dev = to_mdev(ibcq->device); to_mdev 810 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(cq->device), to_mdev 814 drivers/infiniband/hw/mthca/mthca_provider.c mthca_unmap_user_db(to_mdev(cq->device), to_mdev 819 drivers/infiniband/hw/mthca/mthca_provider.c mthca_free_cq(to_mdev(cq->device), to_mcq(cq)); to_mdev 840 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_mr_alloc_notrans(to_mdev(pd->device), to_mdev 857 drivers/infiniband/hw/mthca/mthca_provider.c struct mthca_dev *dev = to_mdev(pd->device); to_mdev 955 drivers/infiniband/hw/mthca/mthca_provider.c mthca_free_mr(to_mdev(mr->device), mmr); to_mdev 973 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_fmr_alloc(to_mdev(pd->device), to_mpd(pd)->pd_num, to_mdev 989 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_free_fmr(to_mdev(fmr->device), mfmr); to_mdev 1004 drivers/infiniband/hw/mthca/mthca_provider.c if (mdev && to_mdev(fmr->device) != mdev) to_mdev 1006 drivers/infiniband/hw/mthca/mthca_provider.c mdev = to_mdev(fmr->device); to_mdev 433 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 562 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 861 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 1626 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 1824 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 1929 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 2163 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); to_mdev 375 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_dev *dev = to_mdev(ibsrq->device); to_mdev 398 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_dev *dev = to_mdev(ibsrq->device); to_mdev 486 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_dev *dev = to_mdev(ibsrq->device); to_mdev 580 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_dev *dev = to_mdev(ibsrq->device); to_mdev 230 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(iface); to_mdev 339 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); to_mdev 488 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); to_mdev 565 drivers/staging/most/usb/usb.c mdev = to_mdev(iface); to_mdev 633 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); to_mdev 641 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(mbo->ifp); to_mdev 667 drivers/staging/most/usb/usb.c struct most_dev *mdev = to_mdev(iface); to_mdev 749 drivers/staging/most/usb/usb.c mdev = to_mdev(iface);