Home
last modified time | relevance | path

Searched refs:qp_table (Results 1 – 25 of 27) sorted by relevance

12

/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dml/dsc/
Dqp_tables.h28 const qp_table qp_table_422_10bpc_min = {
61 const qp_table qp_table_444_8bpc_max = {
102 const qp_table qp_table_420_12bpc_max = {
135 const qp_table qp_table_444_10bpc_min = {
188 const qp_table qp_table_420_8bpc_max = {
209 const qp_table qp_table_444_8bpc_min = {
250 const qp_table qp_table_444_12bpc_min = {
315 const qp_table qp_table_420_12bpc_min = {
348 const qp_table qp_table_422_12bpc_min = {
389 const qp_table qp_table_422_12bpc_max = {
[all …]
Drc_calc_fpu.h79 typedef struct qp_entry qp_table[]; typedef
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx4/
Dqp.c51 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 …]
Dprofile.c189 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()
Dmain.c1590 err = mlx4_init_icm_table(dev, &priv->qp_table.cmpt_table, in mlx4_init_cmpt_table()
1636 mlx4_cleanup_icm_table(dev, &priv->qp_table.cmpt_table); in mlx4_init_cmpt_table()
1720 err = mlx4_init_icm_table(dev, &priv->qp_table.qp_table, in mlx4_init_icm()
1731 err = mlx4_init_icm_table(dev, &priv->qp_table.auxc_table, in mlx4_init_icm()
1742 err = mlx4_init_icm_table(dev, &priv->qp_table.altc_table, in mlx4_init_icm()
1753 err = mlx4_init_icm_table(dev, &priv->qp_table.rdmarc_table, in mlx4_init_icm()
1755 dev_cap->rdmarc_entry_sz << priv->qp_table.rdmarc_shift, in mlx4_init_icm()
1811 mlx4_cleanup_icm_table(dev, &priv->qp_table.rdmarc_table); in mlx4_init_icm()
1814 mlx4_cleanup_icm_table(dev, &priv->qp_table.altc_table); in mlx4_init_icm()
1817 mlx4_cleanup_icm_table(dev, &priv->qp_table.auxc_table); in mlx4_init_icm()
[all …]
Dmlx4.h723 struct mlx4_icm_table qp_table; member
899 struct mlx4_qp_table qp_table; member
/linux-5.19.10/drivers/infiniband/hw/hns/
Dhns_roce_qp.c214 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in alloc_qpn() local
223 mutex_lock(&qp_table->bank_mutex); in alloc_qpn()
224 bankid = get_least_load_bankid_for_qp(qp_table->bank); in alloc_qpn()
226 ret = alloc_qpn_with_bankid(&qp_table->bank[bankid], bankid, in alloc_qpn()
231 mutex_unlock(&qp_table->bank_mutex); in alloc_qpn()
235 qp_table->bank[bankid].inuse++; in alloc_qpn()
236 mutex_unlock(&qp_table->bank_mutex); in alloc_qpn()
292 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in alloc_qpc() local
300 ret = hns_roce_table_get(hr_dev, &qp_table->qp_table, hr_qp->qpn); in alloc_qpc()
307 ret = hns_roce_table_get(hr_dev, &qp_table->irrl_table, hr_qp->qpn); in alloc_qpc()
[all …]
Dhns_roce_main.c659 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->qp_table.qp_table, in hns_roce_init_hem()
667 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->qp_table.irrl_table, in hns_roce_init_hem()
679 &hr_dev->qp_table.trrl_table, in hns_roce_init_hem()
713 &hr_dev->qp_table.sccc_table, in hns_roce_init_hem()
774 &hr_dev->qp_table.sccc_table); in hns_roce_init_hem()
785 &hr_dev->qp_table.trrl_table); in hns_roce_init_hem()
788 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.irrl_table); in hns_roce_init_hem()
791 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.qp_table); in hns_roce_init_hem()
Dhns_roce_hem.c957 &hr_dev->qp_table.sccc_table); in hns_roce_cleanup_hem()
960 &hr_dev->qp_table.trrl_table); in hns_roce_cleanup_hem()
965 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.irrl_table); in hns_roce_cleanup_hem()
966 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.qp_table); in hns_roce_cleanup_hem()
Dhns_roce_device.h474 struct hns_roce_hem_table qp_table; member
945 struct hns_roce_qp_table qp_table; member
Dhns_roce_hw_v2.c4524 mtts = hns_roce_table_find(hr_dev, &hr_dev->qp_table.irrl_table, in modify_qp_init_to_rtr()
4532 mtts = hns_roce_table_find(hr_dev, &hr_dev->qp_table.trrl_table, in modify_qp_init_to_rtr()
4678 u32 *spare_idx = hr_dev->qp_table.idx_table.spare_idx; in get_dip_ctx_idx()
4679 u32 *head = &hr_dev->qp_table.idx_table.head; in get_dip_ctx_idx()
4680 u32 *tail = &hr_dev->qp_table.idx_table.tail; in get_dip_ctx_idx()
5479 mutex_lock(&hr_dev->qp_table.scc_mutex); in hns_roce_v2_qp_flow_control_init()
5521 mutex_unlock(&hr_dev->qp_table.scc_mutex); in hns_roce_v2_qp_flow_control_init()
/linux-5.19.10/drivers/infiniband/hw/mthca/
Dmthca_qp.c198 return qp->qpn >= dev->qp_table.sqp_start && in is_sqp()
199 qp->qpn <= dev->qp_table.sqp_start + 3; in is_sqp()
204 return qp->qpn >= dev->qp_table.sqp_start && in is_qp0()
205 qp->qpn <= dev->qp_table.sqp_start + 1; in is_qp0()
244 spin_lock(&dev->qp_table.lock); in mthca_qp_event()
245 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event()
248 spin_unlock(&dev->qp_table.lock); in mthca_qp_event()
265 spin_lock(&dev->qp_table.lock); in mthca_qp_event()
268 spin_unlock(&dev->qp_table.lock); in mthca_qp_event()
770 cpu_to_be32(dev->qp_table.rdb_base + in __mthca_modify_qp()
[all …]
Dmthca_main.c443 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 …]
Dmthca_profile.c204 for (dev->qp_table.rdb_shift = 0; in mthca_make_profile()
205 request->num_qp << dev->qp_table.rdb_shift < profile[i].num; in mthca_make_profile()
206 ++dev->qp_table.rdb_shift) in mthca_make_profile()
208 dev->qp_table.rdb_base = (u32) profile[i].start; in mthca_make_profile()
Dmthca_dev.h259 struct mthca_icm_table *qp_table; member
344 struct mthca_qp_table qp_table; member
Dmthca_cq.c520 *cur_qp = mthca_array_get(&dev->qp_table.qp, in mthca_poll_one()
Dmthca_provider.c99 props->max_qp_rd_atom = 1 << mdev->qp_table.rdb_shift; in mthca_query_device()
/linux-5.19.10/drivers/infiniband/hw/mlx5/
Dqpc.c156 struct mlx5_qp_table *table = &dev->qp_table; in create_resource_common()
178 struct mlx5_qp_table *table = &dev->qp_table; in destroy_resource_common()
486 struct mlx5_qp_table *table = &dev->qp_table; in mlx5_init_qp_table()
500 struct mlx5_qp_table *table = &dev->qp_table; in mlx5_cleanup_qp_table()
640 struct mlx5_qp_table *table = &dev->qp_table; in mlx5_core_res_hold()
Dmlx5_ib.h1109 struct mlx5_qp_table qp_table; member
Dcq.c492 mqp = radix_tree_lookup(&dev->qp_table.tree, qpn); in mlx5_poll_one()
/linux-5.19.10/drivers/infiniband/sw/rdmavt/
Dqp.c385 rdi->qp_dev->qp_table = in rvt_driver_qp_init()
387 sizeof(*rdi->qp_dev->qp_table), in rvt_driver_qp_init()
389 if (!rdi->qp_dev->qp_table) in rvt_driver_qp_init()
393 RCU_INIT_POINTER(rdi->qp_dev->qp_table[i], NULL); in rvt_driver_qp_init()
406 kfree(rdi->qp_dev->qp_table); in rvt_driver_qp_init()
470 kfree(rdi->qp_dev->qp_table); in rvt_qp_exit()
751 qpp = &rdi->qp_dev->qp_table[n]; in rvt_remove_qp()
1387 qp->next = rdi->qp_dev->qp_table[n]; in rvt_insert_qp()
1388 rcu_assign_pointer(rdi->qp_dev->qp_table[n], qp); in rvt_insert_qp()
2719 rdi->qp_dev->qp_table[ in rvt_qp_iter_next()
/linux-5.19.10/include/rdma/
Drdmavt_qp.h498 struct rvt_qp __rcu **qp_table; member
709 for (qp = rcu_dereference(rdi->qp_dev->qp_table[n]); qp; in rvt_lookup_qpn()
/linux-5.19.10/drivers/infiniband/hw/irdma/
Dmain.h309 struct irdma_qp **qp_table; member
Dhw.c237 iwqp = rf->qp_table[info->qp_cq_id]; in irdma_process_aeq()
1927 rf->qp_table = (struct irdma_qp **) in irdma_set_hw_rsrc()
Dutils.c757 iwdev->rf->qp_table[qp_num] = NULL; in irdma_qp_rem_ref()
779 return &iwdev->rf->qp_table[qpn]->ibqp; in irdma_get_qp()

12