Home
last modified time | relevance | path

Searched refs:to_mdev (Results 1 – 25 of 40) sorted by relevance

12

/drivers/infiniband/hw/mthca/
Dmthca_provider.c67 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device()
147 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_port()
159 props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; in mthca_query_port()
161 props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; in mthca_query_port()
186 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_device()
190 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_device()
204 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_port()
217 err = mthca_SET_IB(to_mdev(ibdev), &set_ib, port); in mthca_modify_port()
221 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_port()
241 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_pkey()
[all …]
Dmthca_mad.c122 mthca_update_rate(to_mdev(ibdev), port_num); in smp_snoop()
123 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop()
157 mutex_lock(&to_mdev(dev)->cap_mask_mutex); in node_desc_override()
160 mutex_unlock(&to_mdev(dev)->cap_mask_mutex); in node_desc_override()
211 forward_trap(to_mdev(ibdev), port_num, in); in mthca_process_mad()
251 err = mthca_MAD_IFC(to_mdev(ibdev), mad_flags & IB_MAD_IGNORE_MKEY, in mthca_process_mad()
257 mthca_err(to_mdev(ibdev), "MAD_IFC returned %d\n", err); in mthca_process_mad()
Dmthca_cq.c335 if (!mthca_is_memfree(to_mdev(cq->ibcq.device)) && in mthca_cq_resize_copy_cqes()
657 struct mthca_dev *dev = to_mdev(ibcq->device); in mthca_poll_cq()
730 mthca_write64(dbhi, 0xffffffff, to_mdev(cq->device)->kar + MTHCA_CQ_DOORBELL, in mthca_tavor_arm_cq()
731 MTHCA_GET_DOORBELL_LOCK(&to_mdev(cq->device)->doorbell_lock)); in mthca_tavor_arm_cq()
762 to_mdev(ibcq->device)->kar + MTHCA_CQ_DOORBELL, in mthca_arbel_arm_cq()
763 MTHCA_GET_DOORBELL_LOCK(&to_mdev(ibcq->device)->doorbell_lock)); in mthca_arbel_arm_cq()
Dmthca_srq.c375 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_modify_srq()
398 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_query_srq()
486 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_tavor_post_srq_recv()
580 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_arbel_post_srq_recv()
/drivers/infiniband/hw/mlx5/
Dib_virt.c54 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_get_vf_config()
96 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_set_vf_link_state()
130 dev = to_mdev(device); in mlx5_ib_get_vf_stats()
155 struct mlx5_ib_dev *dev = to_mdev(device); in set_vf_node_guid()
179 struct mlx5_ib_dev *dev = to_mdev(device); in set_vf_port_guid()
215 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_get_vf_guid()
Dcounters.c126 mlx5_fc_destroy(to_mdev(counters->device)->mdev, in mlx5_ib_destroy_counters()
167 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_device_stats()
180 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_port_stats()
248 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_get_hw_stats()
301 struct mlx5_ib_dev *dev = to_mdev(counter->device); in mlx5_ib_counter_alloc_stats()
314 struct mlx5_ib_dev *dev = to_mdev(counter->device); in mlx5_ib_counter_update_stats()
324 struct mlx5_ib_dev *dev = to_mdev(counter->device); in mlx5_ib_counter_dealloc()
339 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_counter_bind_qp()
545 struct mlx5_ib_dev *dev = to_mdev(ibdev); in read_flow_counters()
618 to_mdev(ibcounters->device)->mdev, false); in mlx5_ib_flow_counters_set_data()
[all …]
Dgsi.c91 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_create_gsi()
170 struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); in mlx5_ib_destroy_gsi()
222 struct mlx5_ib_dev *dev = to_mdev(qp->device); in modify_to_rts()
262 struct mlx5_ib_dev *dev = to_mdev(device); in setup_qp()
323 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_gsi_modify_qp()
363 struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); in mlx5_ib_add_outstanding_wr()
413 struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); in get_tx_qp()
Dmad.c230 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_process_mad()
271 err = mlx5_MAD_IFC(to_mdev(ibdev), mad_flags & IB_MAD_IGNORE_MKEY, in mlx5_ib_process_mad()
330 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, in mlx5_query_mad_ifc_smp_attr_node_info()
469 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_pkey()
498 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
509 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
525 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_mad_ifc_port()
Dsrq.c48 struct mlx5_ib_dev *dev = to_mdev(pd->device); in create_srq_user()
196 struct mlx5_ib_dev *dev = to_mdev(ib_srq->device); in mlx5_ib_create_srq()
325 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_modify_srq()
350 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_query_srq()
374 struct mlx5_ib_dev *dev = to_mdev(srq->device); in mlx5_ib_destroy_srq()
409 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_post_srq_recv()
Ddm.c167 struct mlx5_ib_dev *dev = to_mdev(dm->base.ibdm.device); in mlx5_ib_dm_memic_free()
209 struct mlx5_ib_dev *dev = to_mdev(uobj->context->device); in UVERBS_HANDLER()
278 struct mlx5_dm *dm_db = &to_mdev(ctx->device)->dm; in handle_alloc_dm_memic()
349 struct mlx5_core_dev *dev = to_mdev(ctx->device)->mdev; in handle_alloc_dm_sw_icm()
416 mlx5_ib_dbg(to_mdev(ibdev), "alloc_dm req: dm_type=%d user_length=0x%llx log_alignment=%d\n", in mlx5_ib_alloc_dm()
454 struct mlx5_core_dev *dev = to_mdev(dm->base.ibdm.device)->mdev; in mlx5_dm_icm_dealloc()
Dmain.c107 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_port_link_layer()
250 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev()
474 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_query_port_roce()
611 return set_roce_addr(to_mdev(attr->device), attr->port_num, in mlx5_ib_add_gid()
618 return set_roce_addr(to_mdev(attr->device), attr->port_num, in mlx5_ib_del_gid()
646 if (mlx5_use_mad_ifc(to_mdev(ibdev))) in mlx5_get_vport_access_method()
689 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_system_image_guid()
721 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_max_pkeys()
742 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_vendor_id()
808 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_query_device()
[all …]
Dmr.c70 struct mlx5_ib_dev *dev = to_mdev(pd->device); in set_mkc_access_pd_addr_fields()
799 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_get_dma_mr()
943 struct mlx5_ib_dev *dev = to_mdev(pd->device); in alloc_cacheable_mr()
1282 struct mlx5_ib_dev *dev = to_mdev(pd->device); in reg_create()
1365 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_get_dm_mr()
1429 struct mlx5_core_dev *dev = to_mdev(dm->device)->mdev; in mlx5_ib_reg_dm_mr()
1459 struct mlx5_ib_dev *dev = to_mdev(pd->device); in create_real_mr()
1503 struct mlx5_ib_dev *dev = to_mdev(pd->device); in create_user_odp_mr()
1561 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_reg_user_mr()
1603 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_reg_user_mr_dmabuf()
[all …]
Dqos.c17 struct mlx5_ib_dev *dev = to_mdev(device); in pp_is_supported()
47 dev = to_mdev(c->ibucontext.device); in UVERBS_HANDLER()
Dcq.c51 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_cq_event()
170 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); in handle_responder()
445 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one()
574 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in poll_soft_wc()
601 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_poll_cq()
636 struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; in mlx5_ib_arm_cq()
940 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_create_cq()
1041 struct mlx5_ib_dev *dev = to_mdev(cq->device); in mlx5_ib_destroy_cq()
1124 struct mlx5_ib_dev *dev = to_mdev(cq->device); in mlx5_ib_modify_cq()
1199 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in copy_resize_cqes()
[all …]
Drestrack.c153 struct mlx5_ib_dev *dev = to_mdev(ibcq->device); in fill_res_cq_entry_raw()
161 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in fill_res_qp_entry_raw()
/drivers/infiniband/hw/mlx4/
Dmain.c135 struct mlx4_ib_dev *ibdev = to_mdev(device); in mlx4_ib_get_netdev()
259 struct mlx4_ib_dev *ibdev = to_mdev(attr->device); in mlx4_ib_add_gid()
352 struct mlx4_ib_dev *ibdev = to_mdev(attr->device); in mlx4_ib_del_gid()
442 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_query_device()
477 err = mlx4_MAD_IFC(to_mdev(ibdev), MLX4_MAD_IFC_IGNORE_KEYS, in mlx4_ib_query_device()
652 struct mlx4_dev *dev = to_mdev(device)->dev; in mlx4_ib_port_link_layer()
676 if (mlx4_is_mfunc(to_mdev(ibdev)->dev) && netw_view) in ib_link_query_port()
679 err = mlx4_MAD_IFC(to_mdev(ibdev), mad_ifc_flags, port, NULL, NULL, in ib_link_query_port()
695 props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; in ib_link_query_port()
696 props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz; in ib_link_query_port()
[all …]
Dmr.c67 err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, in mlx4_ib_get_dma_mr()
72 err = mlx4_mr_enable(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr()
82 (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr()
410 struct mlx4_ib_dev *dev = to_mdev(pd->device); in mlx4_ib_reg_user_mr()
447 (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_reg_user_mr()
463 struct mlx4_ib_dev *dev = to_mdev(mr->device); in mlx4_ib_rereg_user_mr()
603 ret = mlx4_mr_free(to_mdev(ibmr->device)->dev, &mr->mmr); in mlx4_ib_dereg_mr()
615 struct mlx4_ib_dev *dev = to_mdev(ibmw->device); in mlx4_ib_alloc_mw()
640 mlx4_mw_free(to_mdev(ibmw->device)->dev, &mw->mmw); in mlx4_ib_dealloc_mw()
647 struct mlx4_ib_dev *dev = to_mdev(pd->device); in mlx4_ib_alloc_mr()
Dsrq.c76 struct mlx4_ib_dev *dev = to_mdev(ib_srq->device); in mlx4_ib_create_srq()
227 struct mlx4_ib_dev *dev = to_mdev(ibsrq->device); in mlx4_ib_modify_srq()
252 struct mlx4_ib_dev *dev = to_mdev(ibsrq->device); in mlx4_ib_query_srq()
270 struct mlx4_ib_dev *dev = to_mdev(srq->device); in mlx4_ib_destroy_srq()
317 struct mlx4_ib_dev *mdev = to_mdev(ibsrq->device); in mlx4_ib_post_srq_recv()
Dcm.c155 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in id_map_find_by_sl_id()
200 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in sl_id_map_add()
235 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_alloc()
244 ent->dev = to_mdev(ibdev); in id_map_alloc()
267 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_get()
283 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in schedule_delayed()
428 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in mlx4_ib_demux_cm_handler()
Dcq.c96 struct mlx4_ib_dev *dev = to_mdev(cq->device); in mlx4_ib_modify_cq()
180 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_create_cq()
381 struct mlx4_ib_dev *dev = to_mdev(ibcq->device); in mlx4_ib_resize_cq()
479 struct mlx4_ib_dev *dev = to_mdev(cq->device); in mlx4_ib_destroy_cq()
695 struct mlx4_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx4_ib_poll_one()
715 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev, in mlx4_ib_poll_one()
727 msrq = mlx4_srq_lookup(to_mdev(cq->ibcq.device)->dev, in mlx4_ib_poll_one()
837 if (mlx4_is_mfunc(to_mdev(cq->ibcq.device)->dev)) { in mlx4_ib_poll_one()
883 struct mlx4_ib_dev *mdev = to_mdev(cq->ibcq.device); in mlx4_ib_poll_cq()
909 to_mdev(ibcq->device)->uar_map, in mlx4_ib_arm_cq()
[all …]
Dmad.c230 struct mlx4_ib_dev *dev = to_mdev(ibdev); in smp_snoop()
376 spin_lock_irqsave(&to_mdev(dev)->sm_lock, flags); in node_desc_override()
379 spin_unlock_irqrestore(&to_mdev(dev)->sm_lock, flags); in node_desc_override()
435 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_find_real_gid()
686 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_demux_mad()
833 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad()
866 err = mlx4_MAD_IFC(to_mdev(ibdev), in ib_process_mad()
877 if (!mlx4_is_slave(to_mdev(ibdev)->dev)) in ib_process_mad()
942 struct mlx4_ib_dev *dev = to_mdev(ibdev); in iboe_process_mad()
989 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_process_mad()
[all …]
Dqp.c735 err = create_qp_rss(to_mdev(pd->device), init_attr, &ucmd, qp); in _mlx4_ib_create_qp_rss()
751 struct mlx4_ib_dev *dev = to_mdev(context->ibucontext.device); in mlx4_ib_alloc_wqn()
801 struct mlx4_ib_dev *dev = to_mdev(context->ibucontext.device); in mlx4_ib_release_wqn()
829 struct mlx4_ib_dev *dev = to_mdev(pd->device); in create_rq()
960 struct mlx4_ib_dev *dev = to_mdev(pd->device); in create_qp_common()
1531 if (!(to_mdev(pd->device)->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC)) in _mlx4_ib_create_qp()
1554 int res = mlx4_qp_reserve_range(to_mdev(pd->device)->dev, in _mlx4_ib_create_qp()
1561 sqpn = get_sqp_num(to_mdev(pd->device), init_attr); in _mlx4_ib_create_qp()
1591 struct mlx4_ib_dev *dev = to_mdev(device); in mlx4_ib_create_qp()
1627 struct mlx4_ib_dev *dev = to_mdev(qp->device); in _mlx4_ib_destroy_qp()
[all …]
Dah.c46 struct mlx4_dev *dev = to_mdev(ib_ah->device)->dev; in create_ib_ah()
79 struct mlx4_ib_dev *ibdev = to_mdev(ib_ah->device); in create_iboe_ah()
/drivers/dma/
Daltera-msgdma.c201 #define to_mdev(chan) container_of(chan, struct msgdma_device, dmachan) macro
306 struct msgdma_device *mdev = to_mdev(tx->chan); in msgdma_tx_submit()
335 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_prep_memcpy()
393 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_prep_slave_sg()
464 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_dma_config()
571 struct msgdma_device *mdev = to_mdev(chan); in msgdma_issue_pending()
640 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_free_chan_resources()
657 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_alloc_chan_resources()
/drivers/most/
Dmost_usb.c124 #define to_mdev(d) container_of(d, struct most_dev, iface) macro
238 struct most_dev *mdev = to_mdev(iface); in hdm_poison_channel()
343 struct most_dev *mdev = to_mdev(mbo->ifp); in hdm_write_completion()
395 struct most_dev *mdev = to_mdev(mbo->ifp); in hdm_read_completion()
460 struct most_dev *mdev = to_mdev(iface); in hdm_enqueue()
537 struct most_dev *mdev = to_mdev(mbo->ifp); in hdm_dma_alloc()
545 struct most_dev *mdev = to_mdev(mbo->ifp); in hdm_dma_free()
571 struct most_dev *mdev = to_mdev(iface); in hdm_configure_channel()
651 struct most_dev *mdev = to_mdev(iface); in hdm_request_netinfo()

12