Home
last modified time | relevance | path

Searched refs:ibdev (Results 1 – 25 of 141) sorted by relevance

123456

/linux/drivers/infiniband/hw/mlx4/
A Dmain.c2345 iboe = &ibdev->iboe; in mlx4_ib_scan_netdevs()
2649 if (!ibdev) { in mlx4_ib_add()
2655 iboe = &ibdev->iboe; in mlx4_ib_add()
2665 if (!ibdev->uar_map) in mlx4_ib_add()
2669 ibdev->dev = dev; in mlx4_ib_add()
2845 init_pkeys(ibdev); in mlx4_ib_add()
2856 return ibdev; in mlx4_ib_add()
2885 mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[i]); in mlx4_ib_add()
2995 mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[p]); in mlx4_ib_remove()
3039 dm[i]->dev = ibdev; in do_slave_init()
[all …]
A Dcm.c206 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); 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()
251 sl_id_map_add(ibdev, ent); 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()
317 id = id_map_alloc(ibdev, slave_id, sl_cm_id); in mlx4_ib_multiplex_cm_handler()
341 schedule_delayed(ibdev, id); in mlx4_ib_multiplex_cm_handler()
441 gid = gid_from_req_msg(ibdev, mad); in mlx4_ib_demux_cm_handler()
459 id = id_map_get(ibdev, (int *)&pv_cm_id, -1, -1); in mlx4_ib_demux_cm_handler()
[all …]
/linux/drivers/infiniband/sw/rdmavt/
A Dvt.c58 ib_dealloc_device(&rdi->ibdev); in rvt_alloc_device()
73 ib_dealloc_device(&rdi->ibdev); in rvt_dealloc_device()
231 rdi = ib_to_rvt(ibdev); in rvt_query_gid()
403 if (!rdi->ibdev.ops.query_port) in check_support()
416 if (!rdi->ibdev.ops.query_gid) in check_support()
422 if (!rdi->ibdev.ops.create_qp) in check_support()
433 if (!rdi->ibdev.ops.modify_qp) in check_support()
447 if (!rdi->ibdev.ops.destroy_qp) in check_support()
457 if (!rdi->ibdev.ops.post_send) in check_support()
545 rdi->ibdev.uverbs_cmd_mask |= in rvt_register_device()
[all …]
/linux/drivers/infiniband/hw/mlx5/
A Dib_rep.c15 struct mlx5_ib_dev *ibdev; in mlx5_ib_set_vport_rep() local
18 if (!ibdev) in mlx5_ib_set_vport_rep()
21 ibdev->port[vport_index].rep = rep; in mlx5_ib_set_vport_rep()
39 struct mlx5_ib_dev *ibdev; in mlx5_ib_vport_rep_load() local
66 if (!ibdev) in mlx5_ib_vport_rep_load()
69 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load()
71 if (!ibdev->port) { in mlx5_ib_vport_rep_load()
76 ibdev->is_rep = true; in mlx5_ib_vport_rep_load()
81 ibdev->mdev = dev; in mlx5_ib_vport_rep_load()
82 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load()
[all …]
A Dmain.c86 dev = mpi->ibdev; in mlx5_ib_get_ibdev_from_mpi()
121 ret = ibdev->ops.query_port(ibdev, port_num, &attr); in get_port_state()
172 ibdev = roce->dev; in mlx5_netdev_event()
180 if (ibdev->is_rep) in mlx5_netdev_event()
207 if (ibdev->is_rep) in mlx5_netdev_event()
289 return ibdev->mdev; in mlx5_ib_get_native_port_mdev()
2680 if (!ibdev) in mlx5_ib_handle_event()
3153 if (!mpi->ibdev) { in mlx5_ib_unbind_slave_port()
3158 mpi->ibdev = NULL; in mlx5_ib_unbind_slave_port()
3214 mpi->ibdev = ibdev; in mlx5_ib_bind_slave_port()
[all …]
/linux/drivers/infiniband/core/
A Dsysfs.c66 struct ib_device *ibdev; member
137 return port->ibdev; in ib_port_sysfs_get_ibdev_kobj()
153 return stat_attr->show(ibdev, ibdev->hw_stats_data->stats, in hw_stat_device_show()
165 return stat_attr->store(ibdev, ibdev->hw_stats_data->stats, in hw_stat_device_store()
895 stats = ibdev->ops.alloc_hw_device_stats(ibdev); in alloc_hw_stats_device()
947 ret = ibdev->ops.get_hw_stats(ibdev, data->stats, 0, in ib_setup_device_attrs()
995 struct ib_device *ibdev = port->ibdev; in alloc_hw_stats_port() local
1001 stats = ibdev->ops.alloc_hw_port_stats(port->ibdev, port->port_num); in alloc_hw_stats_port()
1043 ret = port->ibdev->ops.get_hw_stats(port->ibdev, data->stats, in setup_hw_port_stats()
1088 if (!ibdev->port_data || !rdma_is_port_valid(ibdev, port_num) || in ib_get_hw_stats_port()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
A Dprovider.c85 pr_debug("ibdev %p\n", ibdev); in c4iw_alloc_ucontext()
215 pr_debug("ibdev %p\n", ibdev); in c4iw_allocate_pd()
216 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd()
246 ibdev, port, index, gid); in c4iw_query_gid()
249 dev = to_c4iw_dev(ibdev); in c4iw_query_gid()
261 pr_debug("ibdev %p\n", ibdev); in c4iw_query_device()
266 dev = to_c4iw_dev(ibdev); in c4iw_query_device()
302 pr_debug("ibdev %p\n", ibdev); in c4iw_query_port()
440 ibdev); in get_dev_fw_str()
528 memset(&dev->ibdev.node_guid, 0, sizeof(dev->ibdev.node_guid)); in c4iw_register_device()
[all …]
/linux/drivers/infiniband/hw/qib/
A Dqib_sysfs.c44 struct qib_devdata *dd = dd_from_ibdev(ibdev); in qib_get_pportdata_kobj()
55 struct qib_devdata *dd = dd_from_ibdev(ibdev); in hrtbt_enable_show()
65 struct qib_devdata *dd = dd_from_ibdev(ibdev); in hrtbt_enable_store()
92 struct qib_devdata *dd = dd_from_ibdev(ibdev); in loopback_store()
108 struct qib_devdata *dd = dd_from_ibdev(ibdev); in led_override_store()
127 struct qib_devdata *dd = dd_from_ibdev(ibdev); in status_show()
158 struct qib_devdata *dd = dd_from_ibdev(ibdev); in status_str_show()
313 struct qib_devdata *dd = dd_from_ibdev(ibdev); in sl2vl_attr_show()
381 struct qib_devdata *dd = dd_from_ibdev(ibdev); in diagc_attr_show()
393 struct qib_devdata *dd = dd_from_ibdev(ibdev); in diagc_attr_store()
[all …]
A Dqib_mad.c268 struct ib_device *ibdev) in subn_get_nodedescription() argument
296 nip->num_ports = ibdev->phys_port_cnt; in subn_get_nodeinfo()
475 ibp = to_iport(ibdev, port_num); in subn_get_portinfo()
484 dd = dd_from_ibdev(ibdev); in subn_get_portinfo()
676 if (port_num > ibdev->phys_port_cnt) in subn_set_portinfo()
683 dd = dd_from_ibdev(ibdev); in subn_set_portinfo()
687 event.device = ibdev; in subn_set_portinfo()
1152 struct ib_device *ibdev) in pma_get_classportinfo() argument
1431 struct ib_device *ibdev, u8 port) in pma_get_portcounters() argument
1706 struct ib_device *ibdev, u8 port) in pma_set_portcounters() argument
[all …]
/linux/drivers/infiniband/hw/bnxt_re/
A Dmain.c135 ibdev_info(&rdev->ibdev, in bnxt_re_setup_chip_ctx()
430 ibdev_warn(&rdev->ibdev, in bnxt_re_request_msix()
604 struct ib_device *ibdev = in bnxt_re_from_netdev() local
606 if (!ibdev) in bnxt_re_from_netdev()
609 return container_of(ibdev, struct bnxt_re_dev, ibdev); in bnxt_re_from_netdev()
723 struct ib_device *ibdev = &rdev->ibdev; in bnxt_re_register_ib() local
1080 ib_event.device = ibdev; in bnxt_re_dispatch_event()
1405 ibdev_err(&rdev->ibdev, in bnxt_re_dev_init()
1422 ibdev_err(&rdev->ibdev, in bnxt_re_dev_init()
1438 ibdev_err(&rdev->ibdev, in bnxt_re_dev_init()
[all …]
A Dib_verbs.c127 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_device()
200 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_port()
255 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_fw_str()
265 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_pkey()
277 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_gid()
318 ibdev_dbg(&rdev->ibdev, in bnxt_re_del_gid()
522 ibdev_err(&rdev->ibdev, in bnxt_re_create_fence_mr()
557 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_alloc_pd()
1010 ibdev_err(&rdev->ibdev, in bnxt_re_create_shadow_qp_ah()
3849 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_alloc_ucontext()
[all …]
/linux/drivers/infiniband/hw/ocrdma/
A Docrdma_main.c92 dev = get_ocrdma_dev(ibdev); in ocrdma_port_immutable()
97 err = ib_query_port(ibdev, port_num, &attr); in ocrdma_port_immutable()
211 dev->ibdev.node_type = RDMA_NODE_IB_CA; in ocrdma_register_device()
212 dev->ibdev.phys_port_cnt = 1; in ocrdma_register_device()
213 dev->ibdev.num_comp_vectors = dev->eq_cnt; in ocrdma_register_device()
281 dev = ib_alloc_device(ocrdma_dev, ibdev); in ocrdma_add()
330 ib_dealloc_device(&dev->ibdev); in ocrdma_add()
339 ib_dealloc_device(&dev->ibdev); in ocrdma_remove_free()
348 ib_unregister_device(&dev->ibdev); in ocrdma_remove()
362 port_event.device = &dev->ibdev; in ocrdma_dispatch_port_active()
[all …]
/linux/drivers/infiniband/hw/efa/
A Defa_verbs.c128 return container_of(ibdev, struct efa_dev, ibdev); in to_edev()
212 ibdev_dbg(ibdev, in efa_query_device()
257 ibdev_dbg(ibdev, in efa_query_device()
1075 ibdev_dbg(ibdev, in efa_create_cq()
1083 ibdev_dbg(ibdev, in efa_create_cq()
1092 ibdev_dbg(ibdev, in efa_create_cq()
1106 ibdev_dbg(ibdev, in efa_create_cq()
1113 ibdev_dbg(ibdev, in efa_create_cq()
1120 ibdev_dbg(ibdev, in efa_create_cq()
1177 ibdev_dbg(ibdev, in efa_create_cq()
[all …]
A Defa.h48 struct ib_device ibdev; member
134 int efa_query_device(struct ib_device *ibdev,
137 int efa_query_port(struct ib_device *ibdev, u32 port,
142 int efa_query_gid(struct ib_device *ibdev, u32 port, int index,
144 int efa_query_pkey(struct ib_device *ibdev, u32 port, u16 index,
162 int efa_get_port_immutable(struct ib_device *ibdev, u32 port_num,
175 enum rdma_link_layer efa_port_link_layer(struct ib_device *ibdev,
177 struct rdma_hw_stats *efa_alloc_hw_port_stats(struct ib_device *ibdev, u32 port_num);
178 struct rdma_hw_stats *efa_alloc_hw_device_stats(struct ib_device *ibdev);
179 int efa_get_hw_stats(struct ib_device *ibdev, struct rdma_hw_stats *stats,
/linux/drivers/infiniband/hw/irdma/
A Di40iw_if.c21 struct ib_device *ibdev; in i40iw_l2param_change() local
24 if (!ibdev) in i40iw_l2param_change()
27 iwdev = to_iwdev(ibdev); in i40iw_l2param_change()
34 ib_device_put(ibdev); in i40iw_l2param_change()
50 struct ib_device *ibdev; in i40iw_close() local
53 if (WARN_ON(!ibdev)) in i40iw_close()
56 iwdev = to_iwdev(ibdev); in i40iw_close()
62 ib_unregister_device_and_put(ibdev); in i40iw_close()
115 iwdev = ib_alloc_device(irdma_device, ibdev); in i40iw_open()
121 ib_dealloc_device(&iwdev->ibdev); in i40iw_open()
[all …]
A Dmain.c90 ibdev_dbg(&iwdev->ibdev, "CLNT: new MTU = %d\n", iwdev->netdev->mtu); in irdma_iidc_event_handler()
109 ibdev_dbg(&iwdev->ibdev, "CLNT: TC Change\n"); in irdma_iidc_event_handler()
123 ibdev_err(&iwdev->ibdev, "critical PE Error, GLPE_CRITERR=0x%08x\n", in irdma_iidc_event_handler()
127 ibdev_warn(&iwdev->ibdev, "Q1 Resource Check\n"); in irdma_iidc_event_handler()
131 ibdev_err(&iwdev->ibdev, "HMC Error\n"); in irdma_iidc_event_handler()
135 ibdev_err(&iwdev->ibdev, "PE Push Error\n"); in irdma_iidc_event_handler()
151 ibdev_warn(&rf->iwdev->ibdev, "Requesting a reset\n"); in irdma_request_reset()
201 ibdev_dbg(&iwdev->ibdev, "WS: LAN free_res for rdma qset failed.\n"); in irdma_lan_unregister_qset()
265 iwdev = ib_alloc_device(irdma_device, ibdev); in irdma_probe()
270 ib_dealloc_device(&iwdev->ibdev); in irdma_probe()
[all …]
/linux/net/smc/
A Dsmc_pnet.c150 ibdev->ibdev->name, in smc_pnet_remove_by_pnetid()
311 if (!strncmp(ibdev->ibdev->name, ib_name, in smc_pnet_find_ib()
312 sizeof(ibdev->ibdev->name)) || in smc_pnet_find_ib()
313 !strncmp(dev_name(ibdev->ibdev->dev.parent), ib_name, in smc_pnet_find_ib()
318 ibdev = NULL; in smc_pnet_find_ib()
321 return ibdev; in smc_pnet_find_ib()
962 ini->ib_dev = ibdev; in smc_pnet_determine_gid()
989 if (!rdma_is_port_valid(ibdev->ibdev, i)) in _smc_pnet_find_roce_by_pnetid()
1025 if (!rdma_is_port_valid(ibdev->ibdev, i)) in smc_pnet_find_rdma_dev()
1027 if (!ibdev->ibdev->ops.get_netdev) in smc_pnet_find_rdma_dev()
[all …]
A Dsmc_ib.c489 struct ib_device *ibdev, in smc_nl_handle_dev_port() argument
567 if (smcibdev->ibdev->dev.parent) { in smc_nl_handle_smcr_dev()
793 ib_dma_unmap_sg(lnk->smcibdev->ibdev, in smc_ib_buf_unmap_sg()
860 struct ib_device *ibdev = smcibdev->ibdev; in smc_copy_netdev_ifindex() local
863 if (!ibdev->ops.get_netdev) in smc_copy_netdev_ifindex()
865 ndev = ibdev->ops.get_netdev(ibdev, port + 1); in smc_copy_netdev_ifindex()
884 libdev = smcibdev->ibdev; in smc_ib_ndev_change()
914 smcibdev->ibdev = ibdev; in smc_ib_add_dev()
930 smcibdev->ibdev->name, port_cnt); in smc_ib_add_dev()
942 smcibdev->ibdev->name, i + 1, in smc_ib_add_dev()
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Dmad.c610 ibdev->node_guid == 0 || in subn_get_nodeinfo()
777 dd = dd_from_ibdev(ibdev); in __subn_get_opa_portinfo()
1356 dd = dd_from_ibdev(ibdev); in __subn_set_opa_portinfo()
1360 event.device = ibdev; in __subn_set_opa_portinfo()
2018 ibp = to_iport(ibdev, port); in __subn_get_opa_psi()
2062 ibp = to_iport(ibdev, port); in __subn_set_opa_psi()
2682 struct ib_device *ibdev, in pma_get_opa_portstatus() argument
3154 struct ib_device *ibdev, in pma_get_opa_porterrors() argument
3329 struct ib_device *ibdev, in pma_get_opa_errorinfo() argument
3428 struct ib_device *ibdev, in pma_set_opa_portstatus() argument
[all …]
A Dsysfs.c16 struct ib_device *ibdev = ib_port_sysfs_get_ibdev_kobj(kobj, &port_num); in hfi1_get_pportdata_kobj() local
17 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in hfi1_get_pportdata_kobj()
104 static ssize_t cc_prescan_show(struct ib_device *ibdev, u32 port_num, in cc_prescan_show() argument
107 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in cc_prescan_show()
117 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in cc_prescan_store()
151 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in sc2vl_attr_show()
248 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in sl2sc_attr_show()
347 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in vl2mtu_attr_show()
410 rdma_device_to_drv_device(device, struct hfi1_ibdev, rdi.ibdev); in hw_rev_show()
420 rdma_device_to_drv_device(device, struct hfi1_ibdev, rdi.ibdev); in board_id_show()
[all …]
/linux/drivers/infiniband/hw/vmw_pvrdma/
A Dpvrdma_verbs.c69 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_device()
131 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_port()
189 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_gid()
224 dev_warn(&to_vdev(ibdev)->pdev->dev, in pvrdma_query_pkey()
247 dev_warn(&to_vdev(ibdev)->pdev->dev, in pvrdma_modify_device()
259 mutex_lock(&to_vdev(ibdev)->port_mutex); in pvrdma_modify_device()
260 to_vdev(ibdev)->sys_image_guid = in pvrdma_modify_device()
291 ret = ib_query_port(ibdev, port, &attr); in pvrdma_modify_port()
315 struct ib_device *ibdev = uctx->device; in pvrdma_alloc_ucontext() local
429 struct ib_device *ibdev = ibpd->device; in pvrdma_alloc_pd() local
[all …]
/linux/drivers/infiniband/hw/mthca/
A 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()
207 err = ib_query_port(ibdev, port, &attr); in mthca_modify_port()
241 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_pkey()
297 struct ib_device *ibdev = uctx->device; in mthca_alloc_ucontext() local
302 if (!(to_mdev(ibdev)->active)) in mthca_alloc_ucontext()
306 if (mthca_is_memfree(to_mdev(ibdev))) in mthca_alloc_ucontext()
358 struct ib_device *ibdev = ibpd->device; in mthca_alloc_pd() local
368 mthca_pd_free(to_mdev(ibdev), pd); in mthca_alloc_pd()
587 struct ib_device *ibdev = ibcq->device; in mthca_create_cq() local
[all …]
A Dmthca_mad.c107 static void smp_snoop(struct ib_device *ibdev, in smp_snoop() argument
122 mthca_update_rate(to_mdev(ibdev), port_num); in smp_snoop()
123 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop()
127 event.device = ibdev; in smp_snoop()
142 event.device = ibdev; in smp_snoop()
211 forward_trap(to_mdev(ibdev), port_num, in); in mthca_process_mad()
248 !ib_query_port(ibdev, port_num, &pattr)) 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()
262 smp_snoop(ibdev, port_num, in, prev_lid); in mthca_process_mad()
[all …]
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_cq.c107 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_cqc() local
116 ibdev_err(ibdev, "failed to find CQ mtr, ret = %d.\n", ret); in alloc_cqc()
130 ibdev_err(ibdev, "failed to xa_store CQ, ret = %d.\n", ret); in alloc_cqc()
148 ibdev_err(ibdev, in alloc_cqc()
201 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_cq_buf() local
281 struct ib_device *ibdev = &hr_dev->ib_dev; in verify_cq_create_attr() local
284 ibdev_err(ibdev, "failed to check CQ count %u, max = %u.\n", in verify_cq_create_attr()
301 struct ib_device *ibdev = hr_cq->ib_cq.device; in get_cq_ucmd() local
361 struct ib_device *ibdev = &hr_dev->ib_dev; in hns_roce_create_cq() local
398 ibdev_err(ibdev, "failed to alloc CQN, ret = %d.\n", ret); in hns_roce_create_cq()
[all …]
/linux/drivers/infiniband/hw/qedr/
A Dmain.c61 ibev.device = &dev->ibdev; in qedr_ib_dispatch_event()
76 struct qedr_dev *qedr = get_qedr_dev(ibdev); in qedr_get_dev_fw_str()
168 dev->ibdev.node_type = RDMA_NODE_RNIC; in qedr_iw_register_device()
172 memcpy(dev->ibdev.iw_ifname, in qedr_iw_register_device()
187 dev->ibdev.node_type = RDMA_NODE_IB_CA; in qedr_roce_register_device()
256 dev->ibdev.phys_port_cnt = 1; in qedr_register_device()
258 dev->ibdev.dev.parent = &dev->pdev->dev; in qedr_register_device()
848 dev = ib_alloc_device(qedr_dev, ibdev); in qedr_add()
928 ib_dealloc_device(&dev->ibdev); in qedr_add()
939 ib_unregister_device(&dev->ibdev); in qedr_remove()
[all …]

Completed in 119 milliseconds

123456