/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | qp.c | 51 struct mlx4_qp_table *qp_table = &mlx4_priv(dev)->qp_table; in mlx4_qp_event() local 54 spin_lock(&qp_table->lock); in mlx4_qp_event() 60 spin_unlock(&qp_table->lock); in mlx4_qp_event() 226 struct mlx4_qp_table *qp_table = &priv->qp_table; in __mlx4_qp_reserve_range() local 239 *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, in __mlx4_qp_reserve_range() 278 struct mlx4_qp_table *qp_table = &priv->qp_table; in __mlx4_qp_release_range() local 282 mlx4_zone_free_entries_unique(qp_table->zones, base_qpn, cnt); in __mlx4_qp_release_range() 311 struct mlx4_qp_table *qp_table = &priv->qp_table; in __mlx4_qp_alloc_icm() local 314 err = mlx4_table_get(dev, &qp_table->qp_table, qpn); in __mlx4_qp_alloc_icm() 318 err = mlx4_table_get(dev, &qp_table->auxc_table, qpn); in __mlx4_qp_alloc_icm() [all …]
|
D | profile.c | 189 for (priv->qp_table.rdmarc_shift = 0; in mlx4_make_profile() 190 request->num_qp << priv->qp_table.rdmarc_shift < profile[i].num; in mlx4_make_profile() 191 ++priv->qp_table.rdmarc_shift) in mlx4_make_profile() 193 dev->caps.max_qp_dest_rdma = 1 << priv->qp_table.rdmarc_shift; in mlx4_make_profile() 194 priv->qp_table.rdmarc_base = (u32) profile[i].start; in mlx4_make_profile() 196 init_hca->log_rd_per_qp = priv->qp_table.rdmarc_shift; in mlx4_make_profile()
|
D | main.c | 1591 err = mlx4_init_icm_table(dev, &priv->qp_table.cmpt_table, in mlx4_init_cmpt_table() 1637 mlx4_cleanup_icm_table(dev, &priv->qp_table.cmpt_table); in mlx4_init_cmpt_table() 1721 err = mlx4_init_icm_table(dev, &priv->qp_table.qp_table, in mlx4_init_icm() 1732 err = mlx4_init_icm_table(dev, &priv->qp_table.auxc_table, in mlx4_init_icm() 1743 err = mlx4_init_icm_table(dev, &priv->qp_table.altc_table, in mlx4_init_icm() 1754 err = mlx4_init_icm_table(dev, &priv->qp_table.rdmarc_table, in mlx4_init_icm() 1756 dev_cap->rdmarc_entry_sz << priv->qp_table.rdmarc_shift, in mlx4_init_icm() 1812 mlx4_cleanup_icm_table(dev, &priv->qp_table.rdmarc_table); in mlx4_init_icm() 1815 mlx4_cleanup_icm_table(dev, &priv->qp_table.altc_table); in mlx4_init_icm() 1818 mlx4_cleanup_icm_table(dev, &priv->qp_table.auxc_table); in mlx4_init_icm() [all …]
|
D | mlx4.h | 722 struct mlx4_icm_table qp_table; member 898 struct mlx4_qp_table qp_table; member
|
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 46 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_qp_event() local 50 spin_lock(&qp_table->lock); in hns_roce_qp_event() 56 spin_unlock(&qp_table->lock); in hns_roce_qp_event() 116 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_reserve_range_qp() local 118 return hns_roce_bitmap_alloc_range(&qp_table->bitmap, cnt, align, in hns_roce_reserve_range_qp() 148 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_gsi_qp_alloc() local 156 spin_lock_irq(&qp_table->lock); in hns_roce_gsi_qp_alloc() 159 spin_unlock_irq(&qp_table->lock); in hns_roce_gsi_qp_alloc() 178 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_qp_alloc() local 188 ret = hns_roce_table_get(hr_dev, &qp_table->qp_table, hr_qp->qpn); in hns_roce_qp_alloc() [all …]
|
D | hns_roce_main.c | 652 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->qp_table.qp_table, in hns_roce_init_hem() 660 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->qp_table.irrl_table, in hns_roce_init_hem() 672 &hr_dev->qp_table.trrl_table, in hns_roce_init_hem() 697 &hr_dev->qp_table.trrl_table); in hns_roce_init_hem() 700 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.irrl_table); in hns_roce_init_hem() 703 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.qp_table); in hns_roce_init_hem()
|
D | hns_roce_hem.c | 1047 &hr_dev->qp_table.trrl_table); in hns_roce_cleanup_hem() 1048 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.irrl_table); in hns_roce_cleanup_hem() 1049 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.qp_table); in hns_roce_cleanup_hem()
|
D | hns_roce_device.h | 435 struct hns_roce_hem_table qp_table; member 826 struct hns_roce_qp_table qp_table; member
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 197 return qp->qpn >= dev->qp_table.sqp_start && in is_sqp() 198 qp->qpn <= dev->qp_table.sqp_start + 3; in is_sqp() 203 return qp->qpn >= dev->qp_table.sqp_start && in is_qp0() 204 qp->qpn <= dev->qp_table.sqp_start + 1; in is_qp0() 243 spin_lock(&dev->qp_table.lock); in mthca_qp_event() 244 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event() 247 spin_unlock(&dev->qp_table.lock); in mthca_qp_event() 264 spin_lock(&dev->qp_table.lock); in mthca_qp_event() 267 spin_unlock(&dev->qp_table.lock); in mthca_qp_event() 766 cpu_to_be32(dev->qp_table.rdb_base + in __mthca_modify_qp() [all …]
|
D | mthca_main.c | 443 mdev->qp_table.qp_table = mthca_alloc_icm_table(mdev, init_hca->qpc_base, in mthca_init_icm() 448 if (!mdev->qp_table.qp_table) { in mthca_init_icm() 454 mdev->qp_table.eqp_table = mthca_alloc_icm_table(mdev, init_hca->eqpc_base, in mthca_init_icm() 459 if (!mdev->qp_table.eqp_table) { in mthca_init_icm() 465 mdev->qp_table.rdb_table = mthca_alloc_icm_table(mdev, init_hca->rdb_base, in mthca_init_icm() 468 mdev->qp_table.rdb_shift, 0, in mthca_init_icm() 470 if (!mdev->qp_table.rdb_table) { in mthca_init_icm() 530 mthca_free_icm_table(mdev, mdev->qp_table.rdb_table); in mthca_init_icm() 533 mthca_free_icm_table(mdev, mdev->qp_table.eqp_table); in mthca_init_icm() 536 mthca_free_icm_table(mdev, mdev->qp_table.qp_table); in mthca_init_icm() [all …]
|
D | mthca_profile.c | 206 for (dev->qp_table.rdb_shift = 0; in mthca_make_profile() 207 request->num_qp << dev->qp_table.rdb_shift < profile[i].num; in mthca_make_profile() 208 ++dev->qp_table.rdb_shift) in mthca_make_profile() 210 dev->qp_table.rdb_base = (u32) profile[i].start; in mthca_make_profile()
|
D | mthca_dev.h | 260 struct mthca_icm_table *qp_table; member 345 struct mthca_qp_table qp_table; member
|
D | mthca_cq.c | 525 *cur_qp = mthca_array_get(&dev->qp_table.qp, in mthca_poll_one()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | qp.c | 45 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_get_rsc() 161 struct mlx5_qp_table *table = &dev->priv.qp_table; in create_resource_common() 183 struct mlx5_qp_table *table = &dev->priv.qp_table; in destroy_resource_common() 471 struct mlx5_qp_table *table = &dev->priv.qp_table; in mlx5_init_qp_table()
|
/Linux-v4.19/drivers/infiniband/sw/rdmavt/ |
D | qp.c | 240 rdi->qp_dev->qp_table = in rvt_driver_qp_init() 242 sizeof(*rdi->qp_dev->qp_table), in rvt_driver_qp_init() 244 if (!rdi->qp_dev->qp_table) in rvt_driver_qp_init() 248 RCU_INIT_POINTER(rdi->qp_dev->qp_table[i], NULL); in rvt_driver_qp_init() 261 kfree(rdi->qp_dev->qp_table); in rvt_driver_qp_init() 295 qp = rcu_dereference_protected(rdi->qp_dev->qp_table[n], in rvt_free_all_qps() 297 RCU_INIT_POINTER(rdi->qp_dev->qp_table[n], NULL); in rvt_free_all_qps() 324 kfree(rdi->qp_dev->qp_table); in rvt_qp_exit() 606 qpp = &rdi->qp_dev->qp_table[n]; in rvt_remove_qp() 1140 qp->next = rdi->qp_dev->qp_table[n]; in rvt_insert_qp() [all …]
|
/Linux-v4.19/include/rdma/ |
D | rdma_vt.h | 515 for (qp = rcu_dereference(rdi->qp_dev->qp_table[n]); qp; in rvt_lookup_qpn()
|
D | rdmavt_qp.h | 427 struct rvt_qp __rcu **qp_table; member
|
/Linux-v4.19/drivers/infiniband/hw/i40iw/ |
D | i40iw_hw.c | 94 iwdev->qp_table = (struct i40iw_qp **)(&iwdev->allocated_arps[BITS_TO_LONGS(arp_table_size)]); in i40iw_initialize_hw_resources() 308 iwqp = iwdev->qp_table[info->qp_cq_id]; in i40iw_process_aeq()
|
D | i40iw.h | 248 struct i40iw_qp **qp_table; member
|
D | i40iw_utils.c | 641 iwdev->qp_table[qp_num] = NULL; in i40iw_rem_ref() 676 return &iwdev->qp_table[qpn]->ibqp; in i40iw_get_qp()
|
/Linux-v4.19/include/linux/mlx5/ |
D | qp.h | 549 return radix_tree_lookup(&dev->priv.qp_table.tree, qpn); in __mlx5_qp_lookup()
|
D | driver.h | 666 struct mlx5_qp_table qp_table; member
|
/Linux-v4.19/drivers/infiniband/hw/nes/ |
D | nes.c | 293 nesadapter->qp_table[nesqp->hwqp.qp_id-NES_FIRST_QPN] = NULL; in nes_cqp_rem_ref_callback() 363 return &nesadapter->qp_table[qpn - NES_FIRST_QPN]->ibqp; in nes_get_qp()
|
D | nes_hw.h | 1058 struct nes_qp **qp_table; member
|
D | nes_hw.c | 436 …nesadapter->qp_table = (struct nes_qp **)(&nesadapter->allocated_arps[BITS_TO_LONGS(arp_table_size… in nes_init_adapter() 3338 context = (unsigned long)nesadapter->qp_table[le32_to_cpu( in nes_terminate_connection() 3512 context = (unsigned long)nesadapter->qp_table[le32_to_cpu( in nes_process_iwarp_aeqe()
|