/Linux-v5.10/drivers/infiniband/hw/mlx4/ |
D | main.c | 82 static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init); 134 struct mlx4_ib_dev *ibdev = to_mdev(device); in mlx4_ib_get_netdev() local 138 dev = mlx4_get_protocol_dev(ibdev->dev, MLX4_PROT_ETH, port_num); in mlx4_ib_get_netdev() 141 if (mlx4_is_bonded(ibdev->dev)) { in mlx4_ib_get_netdev() 162 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids_v1() argument 167 struct mlx4_dev *dev = ibdev->dev; in mlx4_ib_update_gids_v1() 195 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids_v1_v2() argument 200 struct mlx4_dev *dev = ibdev->dev; in mlx4_ib_update_gids_v1_v2() 240 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids() argument 243 if (ibdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_ROCE_V1_V2) in mlx4_ib_update_gids() [all …]
|
D | cm.c | 144 static union ib_gid gid_from_req_msg(struct ib_device *ibdev, struct ib_mad *mad) in gid_from_req_msg() argument 153 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 155 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in id_map_find_by_sl_id() 198 static void sl_id_map_add(struct ib_device *ibdev, struct id_map_entry *new) in sl_id_map_add() argument 200 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in sl_id_map_add() 206 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add() 231 id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id) in id_map_alloc() argument 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() [all …]
|
/Linux-v5.10/drivers/infiniband/hw/mlx5/ |
D | ib_rep.c | 13 struct mlx5_ib_dev *ibdev; in mlx5_ib_set_vport_rep() local 16 ibdev = mlx5_ib_get_uplink_ibdev(dev->priv.eswitch); in mlx5_ib_set_vport_rep() 19 ibdev->port[vport_index].rep = rep; in mlx5_ib_set_vport_rep() 20 rep->rep_data[REP_IB].priv = ibdev; in mlx5_ib_set_vport_rep() 21 write_lock(&ibdev->port[vport_index].roce.netdev_lock); in mlx5_ib_set_vport_rep() 22 ibdev->port[vport_index].roce.netdev = in mlx5_ib_set_vport_rep() 24 write_unlock(&ibdev->port[vport_index].roce.netdev_lock); in mlx5_ib_set_vport_rep() 34 struct mlx5_ib_dev *ibdev; in mlx5_ib_vport_rep_load() local 42 ibdev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5_ib_vport_rep_load() 43 if (!ibdev) in mlx5_ib_vport_rep_load() [all …]
|
D | main.c | 89 dev = mpi->ibdev; in mlx5_ib_get_ibdev_from_mpi() 116 static int get_port_state(struct ib_device *ibdev, in get_port_state() argument 124 ret = ibdev->ops.query_port(ibdev, port_num, &attr); in get_port_state() 165 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event() local 167 ibdev = roce->dev; in mlx5_netdev_event() 168 mdev = mlx5_ib_get_native_port_mdev(ibdev, port_num, NULL); in mlx5_netdev_event() 175 if (ibdev->is_rep) in mlx5_netdev_event() 202 if (ibdev->is_rep) in mlx5_netdev_event() 203 roce = mlx5_get_rep_roce(ibdev, ndev, &port_num); in mlx5_netdev_event() 207 && ibdev->ib_active) { in mlx5_netdev_event() [all …]
|
D | mad.c | 219 int mlx5_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in mlx5_ib_process_mad() argument 224 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_process_mad() 265 err = mlx5_MAD_IFC(to_mdev(ibdev), mad_flags & IB_MAD_IGNORE_MKEY, in mlx5_ib_process_mad() 311 int mlx5_query_mad_ifc_smp_attr_node_info(struct ib_device *ibdev, in mlx5_query_mad_ifc_smp_attr_node_info() argument 324 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, in mlx5_query_mad_ifc_smp_attr_node_info() 331 int mlx5_query_mad_ifc_system_image_guid(struct ib_device *ibdev, in mlx5_query_mad_ifc_system_image_guid() argument 341 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad); in mlx5_query_mad_ifc_system_image_guid() 353 int mlx5_query_mad_ifc_max_pkeys(struct ib_device *ibdev, in mlx5_query_mad_ifc_max_pkeys() argument 363 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad); in mlx5_query_mad_ifc_max_pkeys() 375 int mlx5_query_mad_ifc_vendor_id(struct ib_device *ibdev, in mlx5_query_mad_ifc_vendor_id() argument [all …]
|
/Linux-v5.10/drivers/infiniband/sw/rdmavt/ |
D | vt.c | 94 rdi = container_of(_ib_alloc_device(size), struct rvt_dev_info, ibdev); in rvt_alloc_device() 100 ib_dealloc_device(&rdi->ibdev); in rvt_alloc_device() 115 ib_dealloc_device(&rdi->ibdev); in rvt_dealloc_device() 119 static int rvt_query_device(struct ib_device *ibdev, in rvt_query_device() argument 123 struct rvt_dev_info *rdi = ib_to_rvt(ibdev); in rvt_query_device() 154 static int rvt_query_port(struct ib_device *ibdev, u8 port_num, in rvt_query_port() argument 157 struct rvt_dev_info *rdi = ib_to_rvt(ibdev); in rvt_query_port() 159 int port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_port() 189 static int rvt_modify_port(struct ib_device *ibdev, u8 port_num, in rvt_modify_port() argument 192 struct rvt_dev_info *rdi = ib_to_rvt(ibdev); in rvt_modify_port() [all …]
|
D | ah.c | 62 int rvt_check_ah(struct ib_device *ibdev, in rvt_check_ah() argument 68 struct rvt_dev_info *rdi = ib_to_rvt(ibdev); in rvt_check_ah() 72 err = ib_query_port(ibdev, port_num, &port_attr); in rvt_check_ah() 76 port_num > ibdev->phys_port_cnt) in rvt_check_ah() 85 return rdi->driver_f.check_ah(ibdev, ah_attr); in rvt_check_ah()
|
/Linux-v5.10/drivers/infiniband/hw/cxgb4/ |
D | provider.c | 78 struct ib_device *ibdev = ucontext->device; in c4iw_alloc_ucontext() local 80 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext() 85 pr_debug("ibdev %p\n", ibdev); in c4iw_alloc_ucontext() 211 struct ib_device *ibdev = pd->device; in c4iw_allocate_pd() local 215 pr_debug("ibdev %p\n", ibdev); in c4iw_allocate_pd() 216 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd() 240 static int c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, in c4iw_query_gid() argument 246 ibdev, port, index, gid); in c4iw_query_gid() 249 dev = to_c4iw_dev(ibdev); in c4iw_query_gid() 255 static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in c4iw_query_device() argument [all …]
|
/Linux-v5.10/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_main.c | 85 static int ocrdma_port_immutable(struct ib_device *ibdev, u8 port_num, in ocrdma_port_immutable() argument 92 dev = get_ocrdma_dev(ibdev); in ocrdma_port_immutable() 97 err = ib_query_port(ibdev, port_num, &attr); in ocrdma_port_immutable() 120 rdma_device_to_drv_device(device, struct ocrdma_dev, ibdev); in hw_rev_show() 130 rdma_device_to_drv_device(device, struct ocrdma_dev, ibdev); in hca_type_show() 203 ocrdma_get_guid(dev, (u8 *)&dev->ibdev.node_guid); in ocrdma_register_device() 205 memcpy(dev->ibdev.node_desc, OCRDMA_NODE_DESC, in ocrdma_register_device() 207 dev->ibdev.uverbs_cmd_mask = in ocrdma_register_device() 228 dev->ibdev.uverbs_cmd_mask |= in ocrdma_register_device() 234 dev->ibdev.node_type = RDMA_NODE_IB_CA; in ocrdma_register_device() [all …]
|
/Linux-v5.10/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 208 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-v5.10/drivers/infiniband/hw/efa/ |
D | efa_verbs.c | 113 static inline struct efa_dev *to_edev(struct ib_device *ibdev) in to_edev() argument 115 return container_of(ibdev, struct efa_dev, ibdev); in to_edev() 172 ibdev_err(&dev->ibdev, "Failed to map DMA address\n"); in efa_zalloc_mapped() 188 int efa_query_device(struct ib_device *ibdev, in efa_query_device() argument 194 struct efa_dev *dev = to_edev(ibdev); in efa_query_device() 199 ibdev_dbg(ibdev, in efa_query_device() 241 ibdev_dbg(ibdev, in efa_query_device() 250 int efa_query_port(struct ib_device *ibdev, u8 port, in efa_query_port() argument 253 struct efa_dev *dev = to_edev(ibdev); in efa_query_port() 286 ibdev_dbg(&dev->ibdev, in efa_query_qp() [all …]
|
D | efa.h | 49 struct ib_device ibdev; member 120 int efa_query_device(struct ib_device *ibdev, 123 int efa_query_port(struct ib_device *ibdev, u8 port, 128 int efa_query_gid(struct ib_device *ibdev, u8 port, int index, 130 int efa_query_pkey(struct ib_device *ibdev, u8 port, u16 index, 145 int efa_get_port_immutable(struct ib_device *ibdev, u8 port_num, 158 enum rdma_link_layer efa_port_link_layer(struct ib_device *ibdev, 160 struct rdma_hw_stats *efa_alloc_hw_stats(struct ib_device *ibdev, u8 port_num); 161 int efa_get_hw_stats(struct ib_device *ibdev, struct rdma_hw_stats *stats,
|
/Linux-v5.10/drivers/infiniband/hw/bnxt_re/ |
D | main.c | 254 ib_unregister_device_queued(&rdev->ibdev); in bnxt_re_shutdown() 286 ibdev_err(&rdev->ibdev, "Failed to re-start IRQs\n"); in bnxt_re_start_irq() 303 ibdev_warn(&rdev->ibdev, "Failed to reinit NQ index %d\n", in bnxt_re_start_irq() 390 ibdev_warn(&rdev->ibdev, in bnxt_re_request_msix() 439 ibdev_err(&rdev->ibdev, "Failed to free HW ring:%d :%#x", in bnxt_re_net_ring_free() 500 ibdev_err(&rdev->ibdev, "Failed to free HW stats context %#x", in bnxt_re_net_stats_ctx_free() 556 struct ib_device *ibdev = in bnxt_re_from_netdev() local 558 if (!ibdev) in bnxt_re_from_netdev() 561 return container_of(ibdev, struct bnxt_re_dev, ibdev); in bnxt_re_from_netdev() 609 rdma_device_to_drv_device(device, struct bnxt_re_dev, ibdev); in hw_rev_show() [all …]
|
D | ib_verbs.c | 122 int bnxt_re_query_device(struct ib_device *ibdev, in bnxt_re_query_device() argument 126 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_device() 192 int bnxt_re_query_port(struct ib_device *ibdev, u8 port_num, in bnxt_re_query_port() argument 195 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_port() 232 int bnxt_re_get_port_immutable(struct ib_device *ibdev, u8 port_num, in bnxt_re_get_port_immutable() argument 237 if (bnxt_re_query_port(ibdev, port_num, &port_attr)) in bnxt_re_get_port_immutable() 248 void bnxt_re_query_fw_str(struct ib_device *ibdev, char *str) in bnxt_re_query_fw_str() argument 250 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_fw_str() 257 int bnxt_re_query_pkey(struct ib_device *ibdev, u8 port_num, in bnxt_re_query_pkey() argument 260 struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev); in bnxt_re_query_pkey() [all …]
|
/Linux-v5.10/drivers/infiniband/hw/hfi1/ |
D | mad.c | 116 event.device = &dd->verbs_dev.rdi.ibdev; in hfi1_event_pkey_change() 303 attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num); in hfi1_create_qp0_ah() 583 u8 *data, struct ib_device *ibdev, in __subn_get_opa_nodedesc() argument 595 memcpy(nd->data, ibdev->node_desc, sizeof(nd->data)); in __subn_get_opa_nodedesc() 604 struct ib_device *ibdev, u8 port, in __subn_get_opa_nodeinfo() argument 608 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_nodeinfo() 614 if (am || pidx >= dd->num_pports || ibdev->node_guid == 0 || in __subn_get_opa_nodeinfo() 616 get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX) == 0) { in __subn_get_opa_nodeinfo() 621 ni->port_guid = get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX); in __subn_get_opa_nodeinfo() 625 ni->num_ports = ibdev->phys_port_cnt; in __subn_get_opa_nodeinfo() [all …]
|
/Linux-v5.10/net/smc/ |
D | smc_pnet.c | 104 struct smc_ib_device *ibdev; in smc_pnet_remove_by_pnetid() local 141 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_remove_by_pnetid() 143 if (ibdev->pnetid_by_user[ibport] && in smc_pnet_remove_by_pnetid() 146 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid() 150 ibdev->ibdev->name, in smc_pnet_remove_by_pnetid() 152 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid() 153 memset(ibdev->pnetid[ibport], 0, in smc_pnet_remove_by_pnetid() 155 ibdev->pnetid_by_user[ibport] = false; in smc_pnet_remove_by_pnetid() 307 struct smc_ib_device *ibdev; in smc_pnet_find_ib() local 310 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_find_ib() [all …]
|
D | smc_ib.c | 149 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); in smc_ib_fill_mac() 194 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_determine_gid() 225 rc = ib_query_port(smcibdev->ibdev, ibport, in smc_ib_remember_port_attr() 322 lnk->roce_pd = ib_alloc_pd(lnk->smcibdev->ibdev, 0); in smc_ib_create_protection_domain() 444 ib_dma_sync_single_for_cpu(lnk->smcibdev->ibdev, in smc_ib_sync_sg_for_cpu() 464 ib_dma_sync_single_for_device(lnk->smcibdev->ibdev, in smc_ib_sync_sg_for_device() 478 mapped_nents = ib_dma_map_sg(lnk->smcibdev->ibdev, in smc_ib_buf_map_sg() 495 ib_dma_unmap_sg(lnk->smcibdev->ibdev, in smc_ib_buf_unmap_sg() 518 smcibdev->roce_cq_send = ib_create_cq(smcibdev->ibdev, in smc_ib_setup_per_ibdev() 526 smcibdev->roce_cq_recv = ib_create_cq(smcibdev->ibdev, in smc_ib_setup_per_ibdev() [all …]
|
/Linux-v5.10/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_verbs.c | 65 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, u8 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, u8 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, u8 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-v5.10/drivers/infiniband/hw/hns/ |
D | hns_roce_srq.c | 84 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_srqc() local 96 ibdev_err(ibdev, "Failed to find mtr for SRQ WQE\n"); in alloc_srqc() 104 ibdev_err(ibdev, "Failed to find mtr for SRQ idx\n"); in alloc_srqc() 110 ibdev_err(ibdev, "Failed to alloc SRQ number, err %d\n", ret); in alloc_srqc() 116 ibdev_err(ibdev, "Failed to get SRQC table, err %d\n", ret); in alloc_srqc() 122 ibdev_err(ibdev, "Failed to store SRQC, err %d\n", ret); in alloc_srqc() 129 ibdev_err(ibdev, "Failed to alloc mailbox for SRQC\n"); in alloc_srqc() 140 ibdev_err(ibdev, "Failed to config SRQC, err %d\n", ret); in alloc_srqc() 182 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_srq_buf() local 201 ibdev_err(ibdev, "Failed to alloc SRQ buf mtr, err %d\n", err); in alloc_srq_buf() [all …]
|
D | hns_roce_cq.c | 46 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_cqc() local 54 ibdev_err(ibdev, "Failed to find CQ mtr\n"); in alloc_cqc() 61 ibdev_err(ibdev, "Failed to alloc CQ bitmap, err %d\n", ret); in alloc_cqc() 68 ibdev_err(ibdev, "Failed to get CQ(0x%lx) context, err %d\n", in alloc_cqc() 75 ibdev_err(ibdev, "Failed to xa_store CQ\n"); in alloc_cqc() 93 ibdev_err(ibdev, in alloc_cqc() 148 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_cq_buf() local 162 ibdev_err(ibdev, "Failed to alloc CQ mtr, err %d\n", err); in alloc_cq_buf() 248 struct ib_device *ibdev = &hr_dev->ib_dev; in hns_roce_create_cq() local 255 ibdev_err(ibdev, "Failed to check CQ count %d max=%d\n", in hns_roce_create_cq() [all …]
|
D | hns_roce_mr.c | 72 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_mr_key() local 79 ibdev_err(ibdev, in alloc_mr_key() 94 ibdev_err(ibdev, "failed to alloc mtpt, ret = %d.\n", err); in alloc_mr_key() 116 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_mr_pbl() local 136 ibdev_err(ibdev, "failed to alloc pbl mtr, ret = %d.\n", err); in alloc_mr_pbl() 151 struct ib_device *ibdev = &hr_dev->ib_dev; in hns_roce_mr_free() local 159 ibdev_warn(ibdev, "failed to destroy mpt, ret = %d.\n", in hns_roce_mr_free() 309 struct ib_device *ibdev = &hr_dev->ib_dev; in rereg_mr_trans() local 316 ibdev_err(ibdev, "failed to create mr PBL, ret = %d.\n", ret); in rereg_mr_trans() 324 ibdev_err(ibdev, "failed to write mtpt, ret = %d.\n", ret); in rereg_mr_trans() [all …]
|
D | hns_roce_qp.c | 467 struct ib_device *ibdev = &hr_dev->ib_dev; in set_user_sq_size() local 477 ibdev_err(ibdev, "failed to check user SQ size, ret = %d.\n", in set_user_sq_size() 547 struct ib_device *ibdev = &hr_dev->ib_dev; in set_kernel_sq_size() local 553 ibdev_err(ibdev, in set_kernel_sq_size() 561 ibdev_err(ibdev, "failed to check WQE num, WQE num = %d.\n", in set_kernel_sq_size() 646 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_qp_buf() local 653 ibdev_err(ibdev, in alloc_qp_buf() 664 ibdev_err(ibdev, "failed to split WQE buf, ret = %d.\n", ret); in alloc_qp_buf() 671 ibdev_err(ibdev, "failed to create WQE mtr, ret = %d.\n", ret); in alloc_qp_buf() 725 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_qp_db() local [all …]
|
/Linux-v5.10/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 61 static int mthca_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in mthca_query_device() argument 67 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device() 129 static int mthca_query_port(struct ib_device *ibdev, in mthca_query_port() argument 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() 178 static int mthca_modify_device(struct ib_device *ibdev, in mthca_modify_device() argument 186 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_device() 188 memcpy(ibdev->node_desc, props->node_desc, in mthca_modify_device() 190 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_device() [all …]
|
D | mthca_mad.c | 107 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, u8 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-v5.10/drivers/infiniband/hw/qedr/ |
D | main.c | 61 ibev.device = &dev->ibdev; in qedr_ib_dispatch_event() 74 static void qedr_get_dev_fw_str(struct ib_device *ibdev, char *str) in qedr_get_dev_fw_str() argument 76 struct qedr_dev *qedr = get_qedr_dev(ibdev); in qedr_get_dev_fw_str() 84 static int qedr_roce_port_immutable(struct ib_device *ibdev, u8 port_num, in qedr_roce_port_immutable() argument 90 err = qedr_query_port(ibdev, port_num, &attr); in qedr_roce_port_immutable() 103 static int qedr_iw_port_immutable(struct ib_device *ibdev, u8 port_num, in qedr_iw_port_immutable() argument 109 err = qedr_query_port(ibdev, port_num, &attr); in qedr_iw_port_immutable() 125 rdma_device_to_drv_device(device, struct qedr_dev, ibdev); in hw_rev_show() 135 rdma_device_to_drv_device(device, struct qedr_dev, ibdev); in hca_type_show() 139 rdma_protocol_iwarp(&dev->ibdev, 1) ? in hca_type_show() [all …]
|