/linux/drivers/infiniband/hw/mlx4/ |
H A D | main.c | 82 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 …]
|
H A D | cm.c | 145 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/drivers/infiniband/sw/rdmavt/ |
H A D | vt.c | 52 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/drivers/infiniband/core/ |
H A D | sysfs.c | 66 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/drivers/infiniband/hw/mlx5/ |
H A D | ib_rep.c | 15 struct mlx5_ib_dev *ibdev; in mlx5_ib_set_vport_rep() local 18 ibdev = mlx5_eswitch_uplink_get_proto_dev(dev->priv.eswitch, REP_IB); in mlx5_ib_set_vport_rep() 19 if (!ibdev) in mlx5_ib_set_vport_rep() 22 ibdev->port[vport_index].rep = rep; in mlx5_ib_set_vport_rep() 23 rep->rep_data[REP_IB].priv = ibdev; in mlx5_ib_set_vport_rep() 26 return ib_device_set_netdev(&ibdev->ib_dev, ndev, vport_index + 1); in mlx5_ib_set_vport_rep() 54 struct mlx5_ib_dev *ibdev; in mlx5_ib_vport_rep_load() local 91 ibdev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5_ib_vport_rep_load() 92 if (!ibdev) in mlx5_ib_vport_rep_load() 95 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load() [all …]
|
H A D | main.c | 88 dev = mpi->ibdev; in mlx5_ib_get_ibdev_from_mpi() 115 static int get_port_state(struct ib_device *ibdev, in get_port_state() argument 123 ret = ibdev->ops.query_port(ibdev, port_num, &attr); in get_port_state() 186 static struct net_device *mlx5_ib_get_rep_uplink_netdev(struct mlx5_ib_dev *ibdev) in mlx5_ib_get_rep_uplink_netdev() argument 191 for (i = 0; i < ibdev->num_ports; i++) { in mlx5_ib_get_rep_uplink_netdev() 192 port = &ibdev->port[i]; in mlx5_ib_get_rep_uplink_netdev() 194 return ib_device_get_netdev(&ibdev->ib_dev, i + 1); in mlx5_ib_get_rep_uplink_netdev() 209 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event() local 211 ibdev = roce->dev; in mlx5_netdev_event() 212 mdev = mlx5_ib_get_native_port_mdev(ibdev, port_num, NULL); in mlx5_netdev_event() [all …]
|
H A D | data_direct.c | 18 struct mlx5_ib_dev *ibdev; member 81 int mlx5_data_direct_ib_reg(struct mlx5_ib_dev *ibdev, char *vuid) in mlx5_data_direct_ib_reg() argument 90 reg->ibdev = ibdev; in mlx5_data_direct_ib_reg() 96 mlx5_ib_data_direct_bind(ibdev, dev); in mlx5_data_direct_ib_reg() 109 void mlx5_data_direct_ib_unreg(struct mlx5_ib_dev *ibdev) in mlx5_data_direct_ib_unreg() argument 115 if (reg->ibdev == ibdev) { in mlx5_data_direct_ib_unreg() 134 mlx5_ib_data_direct_bind(reg->ibdev, dev); in mlx5_data_direct_dev_reg() 153 mlx5_ib_data_direct_unbind(reg->ibdev); in mlx5_data_direct_dev_unreg()
|
/linux/drivers/infiniband/hw/cxgb4/ |
H A D | provider.c | 79 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() 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, u32 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/drivers/infiniband/hw/qib/ |
H A 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/drivers/infiniband/hw/irdma/ |
H A D | i40iw_if.c | 21 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 …]
|
H A D | main.c | 94 ibdev_dbg(&iwdev->ibdev, "CLNT: new MTU = %d\n", iwdev->netdev->mtu); in irdma_iidc_event_handler() 113 ibdev_dbg(&iwdev->ibdev, "CLNT: TC Change\n"); in irdma_iidc_event_handler() 120 ibdev_warn(&iwdev->ibdev, "ICE OICR event notification: oicr = 0x%08x\n", in irdma_iidc_event_handler() 128 ibdev_err(&iwdev->ibdev, "critical PE Error, GLPE_CRITERR=0x%08x\n", in irdma_iidc_event_handler() 132 ibdev_warn(&iwdev->ibdev, "Q1 Resource Check\n"); in irdma_iidc_event_handler() 136 ibdev_err(&iwdev->ibdev, "HMC Error\n"); in irdma_iidc_event_handler() 140 ibdev_err(&iwdev->ibdev, "PE Push Error\n"); in irdma_iidc_event_handler() 156 ibdev_warn(&rf->iwdev->ibdev, "Requesting a reset\n"); in irdma_request_reset() 178 ibdev_dbg(&iwdev->ibdev, "WS: LAN alloc_res for rdma qset failed.\n"); in irdma_lan_register_qset() 206 ibdev_dbg(&iwdev->ibdev, "WS: LAN free_res for rdma qset failed.\n"); in irdma_lan_unregister_qset() [all …]
|
/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_main.c | 71 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/net/smc/ |
H A D | smc_pnet.c | 105 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 …]
|
H A D | smc_ib.c | 160 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); in smc_ib_fill_mac() 283 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_determine_gid() 315 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_check_link_gid() 364 rc = ib_query_port(smcibdev->ibdev, ibport, in smc_ib_remember_port_attr() 462 lnk->roce_pd = ib_alloc_pd(lnk->smcibdev->ibdev, 0); in smc_ib_create_protection_domain() 497 struct ib_device *ibdev, in smc_nl_handle_dev_port() argument 575 if (smcibdev->ibdev->dev.parent) { in smc_nl_handle_smcr_dev() 577 pci_dev = to_pci_dev(smcibdev->ibdev->dev.parent); in smc_nl_handle_smcr_dev() 582 snprintf(smc_ibname, sizeof(smc_ibname), "%s", smcibdev->ibdev->name); in smc_nl_handle_smcr_dev() 586 if (!rdma_is_port_valid(smcibdev->ibdev, i)) in smc_nl_handle_smcr_dev() [all …]
|
/linux/drivers/infiniband/hw/efa/ |
H A D | efa_verbs.c | 130 static inline struct efa_dev *to_edev(struct ib_device *ibdev) in to_edev() argument 132 return container_of(ibdev, struct efa_dev, ibdev); in to_edev() 189 ibdev_err(&dev->ibdev, "Failed to map DMA address\n"); in efa_zalloc_mapped() 205 int efa_query_device(struct ib_device *ibdev, in efa_query_device() argument 211 struct efa_dev *dev = to_edev(ibdev); in efa_query_device() 216 ibdev_dbg(ibdev, in efa_query_device() 271 ibdev_dbg(ibdev, in efa_query_device() 280 int efa_query_port(struct ib_device *ibdev, u32 port, in efa_query_port() argument 283 struct efa_dev *dev = to_edev(ibdev); in efa_query_port() 316 ibdev_dbg(&dev->ibdev, in efa_query_qp() [all …]
|
H A D | efa.h | 48 struct ib_device ibdev; member 145 int efa_query_device(struct ib_device *ibdev, 148 int efa_query_port(struct ib_device *ibdev, u32 port, 153 int efa_query_gid(struct ib_device *ibdev, u32 port, int index, 155 int efa_query_pkey(struct ib_device *ibdev, u32 port, u16 index, 173 int efa_get_port_immutable(struct ib_device *ibdev, u32 port_num, 186 enum rdma_link_layer efa_port_link_layer(struct ib_device *ibdev, 188 struct rdma_hw_stats *efa_alloc_hw_port_stats(struct ib_device *ibdev, u32 port_num); 189 struct rdma_hw_stats *efa_alloc_hw_device_stats(struct ib_device *ibdev); 190 int efa_get_hw_stats(struct ib_device *ibdev, struct rdma_hw_stats *stats,
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | mad.c | 74 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 …]
|
H A D | sysfs.c | 16 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/drivers/infiniband/hw/vmw_pvrdma/ |
H A 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, 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/drivers/infiniband/hw/mana/ |
H A D | cq.c | 15 struct ib_device *ibdev = ibcq->device; in mana_ib_create_cq() local 22 mdev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_create_cq() 24 cq->comp_vector = attr->comp_vector % ibdev->num_comp_vectors; in mana_ib_create_cq() 32 ibdev_dbg(ibdev, in mana_ib_create_cq() 40 ibdev_dbg(ibdev, "CQE %d exceeding limit\n", attr->cqe); in mana_ib_create_cq() 47 ibdev_dbg(ibdev, "Failed to create queue for create cq, %d\n", err); in mana_ib_create_cq() 58 ibdev_dbg(ibdev, "Failed to create RNIC cq, %d\n", err); in mana_ib_create_cq() 64 ibdev_dbg(ibdev, "Failed to install cq callback, %d\n", err); in mana_ib_create_cq() 91 struct ib_device *ibdev = ibcq->device; in mana_ib_destroy_cq() local 94 mdev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_destroy_cq()
|
H A D | mr.c | 103 struct ib_device *ibdev = ibpd->device; in mana_ib_reg_user_mr() local 109 dev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_reg_user_mr() 111 ibdev_dbg(ibdev, in mana_ib_reg_user_mr() 123 mr->umem = ib_umem_get(ibdev, start, length, access_flags); in mana_ib_reg_user_mr() 126 ibdev_dbg(ibdev, in mana_ib_reg_user_mr() 133 ibdev_dbg(ibdev, "Failed create dma region for user-mr, %d\n", in mana_ib_reg_user_mr() 138 ibdev_dbg(ibdev, in mana_ib_reg_user_mr() 175 struct ib_device *ibdev = ibmr->device; in mana_ib_dereg_mr() local 179 dev = container_of(ibdev, struct mana_ib_dev, ib_dev); in mana_ib_dereg_mr()
|
/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_provider.c | 53 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 …]
|
H A 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, 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/drivers/infiniband/hw/bnxt_re/ |
H A D | main.c | 198 ibdev_info(&rdev->ibdev, in bnxt_re_setup_chip_ctx() 307 ib_unregister_device(&rdev->ibdev); in bnxt_re_shutdown() 354 ibdev_err(&rdev->ibdev, "Failed to re-start IRQs\n"); in bnxt_re_start_irq() 367 ibdev_warn(&rdev->ibdev, "Failed to reinit CREQ\n"); in bnxt_re_start_irq() 375 ibdev_warn(&rdev->ibdev, "Failed to reinit NQ index %d\n", in bnxt_re_start_irq() 741 ibdev_err(&rdev->ibdev, "Failed to free HW ring:%d :%#x", in bnxt_re_net_ring_free() 803 ibdev_err(&rdev->ibdev, "Failed to free HW stats context %#x", in bnxt_re_net_stats_ctx_free() 847 struct ib_device *ibdev = in bnxt_re_from_netdev() local 849 if (!ibdev) in bnxt_re_from_netdev() 852 return container_of(ibdev, struct bnxt_re_dev, ibdev); in bnxt_re_from_netdev() [all …]
|
/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_cq.c | 107 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 140 ibdev_err(ibdev, "failed to find CQ mtr, ret = %d.\n", ret); in alloc_cqc() 147 ibdev_err(ibdev, "failed to get CQ(0x%lx) context, ret = %d.\n", in alloc_cqc() 154 ibdev_err(ibdev, "failed to xa_store CQ, ret = %d.\n", ret); in alloc_cqc() 201 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_cq_buf() local 214 ibdev_err(ibdev, "failed to alloc CQ mtr, ret = %d.\n", ret); in alloc_cq_buf() 281 struct ib_device *ibdev = &hr_dev->ib_dev; in verify_cq_create_attr() local [all …]
|