Home
last modified time | relevance | path

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

123456

/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dmain.c82 static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init);
129 struct mlx4_ib_dev *ibdev = to_mdev(device); in mlx4_ib_get_netdev() local
134 if (dev->dev.parent != ibdev->ib_dev.dev.parent || in mlx4_ib_get_netdev()
138 if (mlx4_is_bonded(ibdev->dev)) { in mlx4_ib_get_netdev()
161 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids_v1() argument
166 struct mlx4_dev *dev = ibdev->dev; in mlx4_ib_update_gids_v1()
194 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids_v1_v2() argument
199 struct mlx4_dev *dev = ibdev->dev; in mlx4_ib_update_gids_v1_v2()
239 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids() argument
242 if (ibdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_ROCE_V1_V2) in mlx4_ib_update_gids()
[all …]
Dcm.c145 static union ib_gid gid_from_req_msg(struct ib_device *ibdev, struct ib_mad *mad) in gid_from_req_msg() argument
154 id_map_find_by_sl_id(struct ib_device *ibdev, u32 slave_id, u32 sl_cm_id) in id_map_find_by_sl_id() argument
156 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in id_map_find_by_sl_id()
199 static void sl_id_map_add(struct ib_device *ibdev, struct id_map_entry *new) in sl_id_map_add() argument
201 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in sl_id_map_add()
207 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add()
232 id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id) in id_map_alloc() argument
236 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_alloc()
245 ent->dev = to_mdev(ibdev); in id_map_alloc()
252 sl_id_map_add(ibdev, ent); in id_map_alloc()
[all …]
/linux-6.6.21/drivers/infiniband/sw/rdmavt/
Dvt.c52 rdi = container_of(_ib_alloc_device(size), struct rvt_dev_info, ibdev); in rvt_alloc_device()
58 ib_dealloc_device(&rdi->ibdev); in rvt_alloc_device()
73 ib_dealloc_device(&rdi->ibdev); in rvt_dealloc_device()
77 static int rvt_query_device(struct ib_device *ibdev, in rvt_query_device() argument
81 struct rvt_dev_info *rdi = ib_to_rvt(ibdev); in rvt_query_device()
92 static int rvt_get_numa_node(struct ib_device *ibdev) in rvt_get_numa_node() argument
94 struct rvt_dev_info *rdi = ib_to_rvt(ibdev); in rvt_get_numa_node()
119 static int rvt_query_port(struct ib_device *ibdev, u32 port_num, in rvt_query_port() argument
122 struct rvt_dev_info *rdi = ib_to_rvt(ibdev); in rvt_query_port()
124 u32 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_port()
[all …]
/linux-6.6.21/drivers/infiniband/hw/mlx5/
Dib_rep.c15 struct mlx5_ib_dev *ibdev; in mlx5_ib_set_vport_rep() local
17 ibdev = mlx5_eswitch_uplink_get_proto_dev(dev->priv.eswitch, REP_IB); in mlx5_ib_set_vport_rep()
18 if (!ibdev) in mlx5_ib_set_vport_rep()
21 ibdev->port[vport_index].rep = rep; in mlx5_ib_set_vport_rep()
22 rep->rep_data[REP_IB].priv = ibdev; in mlx5_ib_set_vport_rep()
23 write_lock(&ibdev->port[vport_index].roce.netdev_lock); in mlx5_ib_set_vport_rep()
24 ibdev->port[vport_index].roce.netdev = in mlx5_ib_set_vport_rep()
26 write_unlock(&ibdev->port[vport_index].roce.netdev_lock); in mlx5_ib_set_vport_rep()
56 struct mlx5_ib_dev *ibdev; in mlx5_ib_vport_rep_load() local
93 ibdev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5_ib_vport_rep_load()
[all …]
Dmain.c87 dev = mpi->ibdev; in mlx5_ib_get_ibdev_from_mpi()
114 static int get_port_state(struct ib_device *ibdev, in get_port_state() argument
122 ret = ibdev->ops.query_port(ibdev, port_num, &attr); in get_port_state()
171 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event() local
173 ibdev = roce->dev; in mlx5_netdev_event()
174 mdev = mlx5_ib_get_native_port_mdev(ibdev, port_num, NULL); in mlx5_netdev_event()
181 if (ibdev->is_rep) in mlx5_netdev_event()
208 if (ibdev->is_rep) in mlx5_netdev_event()
209 roce = mlx5_get_rep_roce(ibdev, ndev, upper, &port_num); in mlx5_netdev_event()
213 ((!upper || ibdev->is_rep) && ndev == roce->netdev)) && in mlx5_netdev_event()
[all …]
/linux-6.6.21/drivers/infiniband/core/
Dsysfs.c66 struct ib_device *ibdev; member
78 ssize_t (*show)(struct ib_device *ibdev, struct rdma_hw_stats *stats,
80 ssize_t (*store)(struct ib_device *ibdev, struct rdma_hw_stats *stats,
87 ssize_t (*show)(struct ib_device *ibdev, struct rdma_hw_stats *stats,
89 ssize_t (*store)(struct ib_device *ibdev, struct rdma_hw_stats *stats,
115 return port_attr->show(p->ibdev, p->port_num, port_attr, buf); in port_attr_show()
128 return port_attr->store(p->ibdev, p->port_num, port_attr, buf, count); in port_attr_store()
137 return port->ibdev; in ib_port_sysfs_get_ibdev_kobj()
151 struct ib_device *ibdev = container_of(dev, struct ib_device, dev); in hw_stat_device_show() local
153 return stat_attr->show(ibdev, ibdev->hw_stats_data->stats, in hw_stat_device_show()
[all …]
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_sysfs.c43 struct ib_device *ibdev = ib_port_sysfs_get_ibdev_kobj(kobj, &port_num); in qib_get_pportdata_kobj() local
44 struct qib_devdata *dd = dd_from_ibdev(ibdev); in qib_get_pportdata_kobj()
52 static ssize_t hrtbt_enable_show(struct ib_device *ibdev, u32 port_num, in hrtbt_enable_show() argument
55 struct qib_devdata *dd = dd_from_ibdev(ibdev); in hrtbt_enable_show()
61 static ssize_t hrtbt_enable_store(struct ib_device *ibdev, u32 port_num, in hrtbt_enable_store() argument
65 struct qib_devdata *dd = dd_from_ibdev(ibdev); in hrtbt_enable_store()
88 static ssize_t loopback_store(struct ib_device *ibdev, u32 port_num, in loopback_store() argument
92 struct qib_devdata *dd = dd_from_ibdev(ibdev); in loopback_store()
104 static ssize_t led_override_store(struct ib_device *ibdev, u32 port_num, in led_override_store() argument
108 struct qib_devdata *dd = dd_from_ibdev(ibdev); in led_override_store()
[all …]
Dqib_mad.c208 struct qib_ibdev *ibdev = container_of(rdi, struct qib_ibdev, rdi); in qib_cap_mask_chg() local
209 struct qib_devdata *dd = dd_from_dev(ibdev); in qib_cap_mask_chg()
268 struct ib_device *ibdev) in subn_get_nodedescription() argument
273 memcpy(smp->data, ibdev->node_desc, sizeof(smp->data)); in subn_get_nodedescription()
278 static int subn_get_nodeinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_nodeinfo() argument
282 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_get_nodeinfo()
296 nip->num_ports = ibdev->phys_port_cnt; in subn_get_nodeinfo()
313 static int subn_get_guidinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_guidinfo() argument
316 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_get_guidinfo()
454 static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_portinfo() argument
[all …]
/linux-6.6.21/drivers/infiniband/hw/cxgb4/
Dprovider.c79 struct ib_device *ibdev = ucontext->device; in c4iw_alloc_ucontext() local
81 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext()
86 pr_debug("ibdev %p\n", ibdev); in c4iw_alloc_ucontext()
212 struct ib_device *ibdev = pd->device; in c4iw_allocate_pd() local
216 pr_debug("ibdev %p\n", ibdev); in c4iw_allocate_pd()
217 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd()
241 static int c4iw_query_gid(struct ib_device *ibdev, u32 port, int index, in c4iw_query_gid() argument
247 ibdev, port, index, gid); in c4iw_query_gid()
250 dev = to_c4iw_dev(ibdev); in c4iw_query_gid()
256 static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in c4iw_query_device() argument
[all …]
/linux-6.6.21/drivers/infiniband/hw/mana/
Dcq.c12 struct ib_device *ibdev = ibcq->device; in mana_ib_create_cq() local
17 mdev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_create_cq()
24 ibdev_dbg(ibdev, in mana_ib_create_cq()
30 ibdev_dbg(ibdev, "CQE %d exceeding limit\n", attr->cqe); in mana_ib_create_cq()
35 cq->umem = ib_umem_get(ibdev, ucmd.buf_addr, cq->cqe * COMP_ENTRY_SIZE, in mana_ib_create_cq()
39 ibdev_dbg(ibdev, "Failed to get umem for create cq, err %d\n", in mana_ib_create_cq()
46 ibdev_dbg(ibdev, in mana_ib_create_cq()
52 ibdev_dbg(ibdev, in mana_ib_create_cq()
70 struct ib_device *ibdev = ibcq->device; in mana_ib_destroy_cq() local
73 mdev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_destroy_cq()
Dmain.c77 struct ib_device *ibdev = ibpd->device; in mana_ib_alloc_pd() local
85 dev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_alloc_pd()
118 struct ib_device *ibdev = ibpd->device; in mana_ib_dealloc_pd() local
125 dev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_dealloc_pd()
206 struct ib_device *ibdev = ibcontext->device; in mana_ib_alloc_ucontext() local
213 mdev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_alloc_ucontext()
220 ibdev_dbg(ibdev, "Failed to allocate doorbell page %d\n", ret); in mana_ib_alloc_ucontext()
224 ibdev_dbg(ibdev, "Doorbell page allocated %d\n", doorbell_page); in mana_ib_alloc_ucontext()
235 struct ib_device *ibdev = ibcontext->device; in mana_ib_dealloc_ucontext() local
240 mdev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_dealloc_ucontext()
[all …]
Dmr.c109 struct ib_device *ibdev = ibpd->device; in mana_ib_reg_user_mr() local
115 dev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_reg_user_mr()
117 ibdev_dbg(ibdev, in mana_ib_reg_user_mr()
128 mr->umem = ib_umem_get(ibdev, start, length, access_flags); in mana_ib_reg_user_mr()
131 ibdev_dbg(ibdev, in mana_ib_reg_user_mr()
138 ibdev_dbg(ibdev, "Failed create dma region for user-mr, %d\n", in mana_ib_reg_user_mr()
143 ibdev_dbg(ibdev, in mana_ib_reg_user_mr()
181 struct ib_device *ibdev = ibmr->device; in mana_ib_dereg_mr() local
185 dev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_dereg_mr()
/linux-6.6.21/drivers/infiniband/hw/irdma/
Di40iw_if.c21 struct ib_device *ibdev; in i40iw_l2param_change() local
23 ibdev = ib_device_get_by_netdev(cdev_info->netdev, RDMA_DRIVER_IRDMA); in i40iw_l2param_change()
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
52 ibdev = ib_device_get_by_netdev(cdev_info->netdev, RDMA_DRIVER_IRDMA); in i40iw_close()
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()
[all …]
/linux-6.6.21/drivers/infiniband/hw/ocrdma/
Docrdma_main.c71 static int ocrdma_port_immutable(struct ib_device *ibdev, u32 port_num, in ocrdma_port_immutable() argument
78 dev = get_ocrdma_dev(ibdev); in ocrdma_port_immutable()
83 err = ib_query_port(ibdev, port_num, &attr); in ocrdma_port_immutable()
106 rdma_device_to_drv_device(device, struct ocrdma_dev, ibdev); in hw_rev_show()
116 rdma_device_to_drv_device(device, struct ocrdma_dev, ibdev); in hca_type_show()
192 addrconf_addr_eui48((u8 *)&dev->ibdev.node_guid, in ocrdma_register_device()
195 memcpy(dev->ibdev.node_desc, OCRDMA_NODE_DESC, in ocrdma_register_device()
198 dev->ibdev.node_type = RDMA_NODE_IB_CA; in ocrdma_register_device()
199 dev->ibdev.phys_port_cnt = 1; in ocrdma_register_device()
200 dev->ibdev.num_comp_vectors = dev->eq_cnt; in ocrdma_register_device()
[all …]
/linux-6.6.21/net/smc/
Dsmc_pnet.c105 struct smc_ib_device *ibdev; in smc_pnet_remove_by_pnetid() local
143 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_remove_by_pnetid()
145 if (ibdev->pnetid_by_user[ibport] && in smc_pnet_remove_by_pnetid()
148 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid()
152 ibdev->ibdev->name, in smc_pnet_remove_by_pnetid()
154 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid()
155 memset(ibdev->pnetid[ibport], 0, in smc_pnet_remove_by_pnetid()
157 ibdev->pnetid_by_user[ibport] = false; in smc_pnet_remove_by_pnetid()
310 struct smc_ib_device *ibdev; in smc_pnet_find_ib() local
313 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_find_ib()
[all …]
Dsmc_ib.c160 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); in smc_ib_fill_mac()
278 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_determine_gid()
310 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_check_link_gid()
359 rc = ib_query_port(smcibdev->ibdev, ibport, in smc_ib_remember_port_attr()
457 lnk->roce_pd = ib_alloc_pd(lnk->smcibdev->ibdev, 0); in smc_ib_create_protection_domain()
492 struct ib_device *ibdev, in smc_nl_handle_dev_port() argument
570 if (smcibdev->ibdev->dev.parent) { in smc_nl_handle_smcr_dev()
572 pci_dev = to_pci_dev(smcibdev->ibdev->dev.parent); in smc_nl_handle_smcr_dev()
577 snprintf(smc_ibname, sizeof(smc_ibname), "%s", smcibdev->ibdev->name); in smc_nl_handle_smcr_dev()
581 if (!rdma_is_port_valid(smcibdev->ibdev, i)) in smc_nl_handle_smcr_dev()
[all …]
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dmad.c74 event.device = &dd->verbs_dev.rdi.ibdev; in hfi1_event_pkey_change()
261 attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num); in hfi1_create_qp0_ah()
541 u8 *data, struct ib_device *ibdev, in __subn_get_opa_nodedesc() argument
553 memcpy(nd->data, ibdev->node_desc, sizeof(nd->data)); in __subn_get_opa_nodedesc()
562 struct ib_device *ibdev, u32 port, in __subn_get_opa_nodeinfo() argument
566 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_nodeinfo()
572 if (am || pidx >= dd->num_pports || ibdev->node_guid == 0 || in __subn_get_opa_nodeinfo()
574 get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX) == 0) { in __subn_get_opa_nodeinfo()
579 ni->port_guid = get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX); in __subn_get_opa_nodeinfo()
583 ni->num_ports = ibdev->phys_port_cnt; in __subn_get_opa_nodeinfo()
[all …]
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()
113 static ssize_t cc_prescan_store(struct ib_device *ibdev, u32 port_num, in cc_prescan_store() argument
117 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in cc_prescan_store()
146 static ssize_t sc2vl_attr_show(struct ib_device *ibdev, u32 port_num, in sc2vl_attr_show() argument
151 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in sc2vl_attr_show()
243 static ssize_t sl2sc_attr_show(struct ib_device *ibdev, u32 port_num, in sl2sc_attr_show() argument
248 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in sl2sc_attr_show()
[all …]
/linux-6.6.21/drivers/infiniband/hw/efa/
Defa_verbs.c131 static inline struct efa_dev *to_edev(struct ib_device *ibdev) in to_edev() argument
133 return container_of(ibdev, struct efa_dev, ibdev); in to_edev()
190 ibdev_err(&dev->ibdev, "Failed to map DMA address\n"); in efa_zalloc_mapped()
206 int efa_query_device(struct ib_device *ibdev, in efa_query_device() argument
212 struct efa_dev *dev = to_edev(ibdev); in efa_query_device()
217 ibdev_dbg(ibdev, in efa_query_device()
269 ibdev_dbg(ibdev, in efa_query_device()
278 int efa_query_port(struct ib_device *ibdev, u32 port, in efa_query_port() argument
281 struct efa_dev *dev = to_edev(ibdev); in efa_query_port()
314 ibdev_dbg(&dev->ibdev, in efa_query_qp()
[all …]
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-6.6.21/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.c65 int pvrdma_query_device(struct ib_device *ibdev, in pvrdma_query_device() argument
69 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_device()
128 int pvrdma_query_port(struct ib_device *ibdev, u32 port, in pvrdma_query_port() argument
131 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_port()
186 int pvrdma_query_gid(struct ib_device *ibdev, u32 port, int index, in pvrdma_query_gid() argument
189 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_gid()
208 int pvrdma_query_pkey(struct ib_device *ibdev, u32 port, u16 index, in pvrdma_query_pkey() argument
221 err = pvrdma_cmd_post(to_vdev(ibdev), &req, &rsp, in pvrdma_query_pkey()
224 dev_warn(&to_vdev(ibdev)->pdev->dev, in pvrdma_query_pkey()
234 enum rdma_link_layer pvrdma_port_link_layer(struct ib_device *ibdev, in pvrdma_port_link_layer() argument
[all …]
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/
Dmain.c183 ibdev_info(&rdev->ibdev, in bnxt_re_setup_chip_ctx()
292 ib_unregister_device(&rdev->ibdev); in bnxt_re_shutdown()
325 ibdev_err(&rdev->ibdev, "Failed to re-start IRQs\n"); in bnxt_re_start_irq()
338 ibdev_warn(&rdev->ibdev, "Failed to reinit CREQ\n"); in bnxt_re_start_irq()
346 ibdev_warn(&rdev->ibdev, "Failed to reinit NQ index %d\n", in bnxt_re_start_irq()
674 ibdev_err(&rdev->ibdev, "Failed to free HW ring:%d :%#x", in bnxt_re_net_ring_free()
736 ibdev_err(&rdev->ibdev, "Failed to free HW stats context %#x", in bnxt_re_net_stats_ctx_free()
780 struct ib_device *ibdev = in bnxt_re_from_netdev() local
782 if (!ibdev) in bnxt_re_from_netdev()
785 return container_of(ibdev, struct bnxt_re_dev, ibdev); in bnxt_re_from_netdev()
[all …]
/linux-6.6.21/drivers/infiniband/hw/mthca/
Dmthca_provider.c53 static int mthca_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in mthca_query_device() argument
59 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device()
121 static int mthca_query_port(struct ib_device *ibdev, in mthca_query_port() argument
139 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_port()
151 props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; in mthca_query_port()
153 props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; in mthca_query_port()
170 static int mthca_modify_device(struct ib_device *ibdev, in mthca_modify_device() argument
178 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_device()
180 memcpy(ibdev->node_desc, props->node_desc, in mthca_modify_device()
182 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_device()
[all …]
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()
199 int mthca_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num, in mthca_process_mad() argument
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()
[all …]
/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_cq.c107 struct ib_device *ibdev = &hr_dev->ib_dev; in hns_roce_create_cqc() local
113 ibdev_err(ibdev, "failed to alloc mailbox for CQC.\n"); in hns_roce_create_cqc()
122 ibdev_err(ibdev, in hns_roce_create_cqc()
134 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_cqc() local
142 ibdev_err(ibdev, "failed to find CQ mtr, ret = %d.\n", ret); in alloc_cqc()
149 ibdev_err(ibdev, "failed to get CQ(0x%lx) context, ret = %d.\n", in alloc_cqc()
156 ibdev_err(ibdev, "failed to xa_store CQ, ret = %d.\n", ret); in alloc_cqc()
202 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_cq_buf() local
215 ibdev_err(ibdev, "failed to alloc CQ mtr, ret = %d.\n", ret); in alloc_cq_buf()
282 struct ib_device *ibdev = &hr_dev->ib_dev; in verify_cq_create_attr() local
[all …]

123456