/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 66 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device() 151 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_port() 163 props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; in mthca_query_port() 165 props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; in mthca_query_port() 190 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_device() 193 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_device() 207 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_port() 220 err = mthca_SET_IB(to_mdev(ibdev), &set_ib, port); in mthca_modify_port() 224 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_port() 244 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_pkey() [all …]
|
D | mthca_mad.c | 120 mthca_update_rate(to_mdev(ibdev), port_num); in smp_snoop() 121 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop() 155 mutex_lock(&to_mdev(dev)->cap_mask_mutex); in node_desc_override() 157 mutex_unlock(&to_mdev(dev)->cap_mask_mutex); in node_desc_override() 211 forward_trap(to_mdev(ibdev), port_num, in_mad); in mthca_process_mad() 251 err = mthca_MAD_IFC(to_mdev(ibdev), in mthca_process_mad() 258 mthca_err(to_mdev(ibdev), "MAD_IFC returned %d\n", err); in mthca_process_mad()
|
D | mthca_cq.c | 340 if (!mthca_is_memfree(to_mdev(cq->ibcq.device)) && in mthca_cq_resize_copy_cqes() 665 struct mthca_dev *dev = to_mdev(ibcq->device); in mthca_poll_cq() 738 mthca_write64(dbhi, 0xffffffff, to_mdev(cq->device)->kar + MTHCA_CQ_DOORBELL, in mthca_tavor_arm_cq() 739 MTHCA_GET_DOORBELL_LOCK(&to_mdev(cq->device)->doorbell_lock)); in mthca_tavor_arm_cq() 770 to_mdev(ibcq->device)->kar + MTHCA_CQ_DOORBELL, in mthca_arbel_arm_cq() 771 MTHCA_GET_DOORBELL_LOCK(&to_mdev(ibcq->device)->doorbell_lock)); in mthca_arbel_arm_cq()
|
D | mthca_srq.c | 367 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_modify_srq() 390 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_query_srq() 478 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_tavor_post_srq_recv() 578 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_arbel_post_srq_recv()
|
D | mthca_mcg.c | 122 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_attach() 216 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_detach()
|
D | mthca_qp.c | 426 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_query_qp() 545 struct mthca_dev *dev = to_mdev(ibqp->device); in __mthca_modify_qp() 843 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_modify_qp() 1602 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_tavor_post_send() 1805 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_tavor_post_receive() 1916 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_arbel_post_send() 2156 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_arbel_post_receive()
|
D | mthca_av.c | 295 struct mthca_dev *dev = to_mdev(ibah->device); in mthca_ah_query()
|
D | mthca_mr.c | 721 struct mthca_dev *dev = to_mdev(ibfmr->device); in mthca_tavor_map_phys_fmr() 762 struct mthca_dev *dev = to_mdev(ibfmr->device); in mthca_arbel_map_phys_fmr()
|
D | mthca_dev.h | 586 static inline struct mthca_dev *to_mdev(struct ib_device *ibdev) in to_mdev() function
|
/drivers/infiniband/hw/mlx4/ |
D | mr.c | 56 err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, in mlx4_ib_get_dma_mr() 61 err = mlx4_mr_enable(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr() 71 mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr() 128 struct mlx4_ib_dev *dev = to_mdev(pd->device); in mlx4_ib_reg_user_mr() 166 mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_reg_user_mr() 181 mlx4_mr_free(to_mdev(ibmr->device)->dev, &mr->mmr); in mlx4_ib_dereg_mr() 192 struct mlx4_ib_dev *dev = to_mdev(pd->device); in mlx4_ib_alloc_fast_reg_mr() 225 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_alloc_fast_reg_page_list() 258 struct mlx4_ib_dev *dev = to_mdev(page_list->device); in mlx4_ib_free_fast_reg_page_list() 271 struct mlx4_ib_dev *dev = to_mdev(pd->device); in mlx4_ib_fmr_alloc() [all …]
|
D | main.c | 88 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_query_device() 101 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device() 178 struct mlx4_dev *dev = to_mdev(device)->dev; in mlx4_ib_port_link_layer() 201 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in ib_link_query_port() 214 props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; in ib_link_query_port() 215 props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz; in ib_link_query_port() 216 props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port]; in ib_link_query_port() 247 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, in ib_link_query_port() 276 struct mlx4_ib_dev *mdev = to_mdev(ibdev); in eth_link_query_port() 353 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid() [all …]
|
D | mad.c | 166 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop() 200 spin_lock(&to_mdev(dev)->sm_lock); in node_desc_override() 202 spin_unlock(&to_mdev(dev)->sm_lock); in node_desc_override() 248 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad() 281 err = mlx4_MAD_IFC(to_mdev(ibdev), in ib_process_mad() 318 struct mlx4_ib_dev *dev = to_mdev(ibdev); in iboe_process_mad()
|
D | cq.c | 93 struct mlx4_ib_dev *dev = to_mdev(cq->device); in mlx4_ib_modify_cq() 170 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_create_cq() 347 struct mlx4_ib_dev *dev = to_mdev(ibcq->device); in mlx4_ib_resize_cq() 443 struct mlx4_ib_dev *dev = to_mdev(cq->device); in mlx4_ib_destroy_cq() 586 struct mlx4_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx4_ib_poll_one() 606 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev, in mlx4_ib_poll_one() 766 to_mdev(ibcq->device)->uar_map, in mlx4_ib_arm_cq() 767 MLX4_GET_DOORBELL_LOCK(&to_mdev(ibcq->device)->uar_lock)); in mlx4_ib_arm_cq()
|
D | srq.c | 75 struct mlx4_ib_dev *dev = to_mdev(pd->device); in mlx4_ib_create_srq() 230 struct mlx4_ib_dev *dev = to_mdev(ibsrq->device); in mlx4_ib_modify_srq() 255 struct mlx4_ib_dev *dev = to_mdev(ibsrq->device); in mlx4_ib_query_srq() 273 struct mlx4_ib_dev *dev = to_mdev(srq->device); in mlx4_ib_destroy_srq()
|
D | ah.c | 64 struct mlx4_dev *dev = to_mdev(pd->device)->dev; in create_ib_ah() 93 struct mlx4_ib_dev *ibdev = to_mdev(pd->device); in create_iboe_ah()
|
D | qp.c | 787 if (!(to_mdev(pd->device)->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC)) in mlx4_ib_create_qp() 799 err = create_qp_common(to_mdev(pd->device), pd, init_attr, udata, 0, qp); in mlx4_ib_create_qp() 823 err = create_qp_common(to_mdev(pd->device), pd, init_attr, udata, in mlx4_ib_create_qp() 824 to_mdev(pd->device)->dev->caps.sqp_start + in mlx4_ib_create_qp() 848 struct mlx4_ib_dev *dev = to_mdev(qp->device); in mlx4_ib_destroy_qp() 1010 struct mlx4_ib_dev *dev = to_mdev(ibqp->device); in __mlx4_ib_modify_qp() 1304 struct mlx4_ib_dev *dev = to_mdev(ibqp->device); in mlx4_ib_modify_qp() 1430 smac = to_mdev(sqp->qp.ibqp.device)->iboe.netdevs[sqp->qp.port - 1]->dev_addr; in build_mlx_header() 1924 to_mdev(ibqp->device)->uar_map + MLX4_SEND_DOORBELL); in mlx4_ib_post_send() 2083 struct mlx4_ib_dev *dev = to_mdev(ibqp->device); in mlx4_ib_query_qp()
|
D | mlx4_ib.h | 207 static inline struct mlx4_ib_dev *to_mdev(struct ib_device *ibdev) in to_mdev() function
|
/drivers/media/video/s5p-tv/ |
D | mixer_drv.c | 336 struct mxr_device *mdev = to_mdev(dev); in mxr_runtime_resume() 355 struct mxr_device *mdev = to_mdev(dev); in mxr_runtime_suspend() 437 struct mxr_device *mdev = to_mdev(dev); in mxr_remove()
|
D | mixer.h | 269 static inline struct mxr_device *to_mdev(struct device *dev) in to_mdev() function
|