Home
last modified time | relevance | path

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

12

/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
/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
/drivers/infiniband/hw/hns/
Dhns_roce_qp.c230 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in alloc_qpn() local
238 mutex_lock(&qp_table->bank_mutex); in alloc_qpn()
239 bankid = get_least_load_bankid_for_qp(init_attr, qp_table->bank); in alloc_qpn()
241 ret = alloc_qpn_with_bankid(&qp_table->bank[bankid], bankid, in alloc_qpn()
246 mutex_unlock(&qp_table->bank_mutex); in alloc_qpn()
250 qp_table->bank[bankid].inuse++; in alloc_qpn()
251 mutex_unlock(&qp_table->bank_mutex); in alloc_qpn()
305 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in alloc_qpc() local
313 ret = hns_roce_table_get(hr_dev, &qp_table->qp_table, hr_qp->qpn); in alloc_qpc()
320 ret = hns_roce_table_get(hr_dev, &qp_table->irrl_table, hr_qp->qpn); in alloc_qpc()
[all …]
Dhns_roce_main.c686 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->qp_table.qp_table, in hns_roce_init_hem()
694 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->qp_table.irrl_table, in hns_roce_init_hem()
706 &hr_dev->qp_table.trrl_table, in hns_roce_init_hem()
740 &hr_dev->qp_table.sccc_table, in hns_roce_init_hem()
801 &hr_dev->qp_table.sccc_table); in hns_roce_init_hem()
812 &hr_dev->qp_table.trrl_table); in hns_roce_init_hem()
815 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.irrl_table); in hns_roce_init_hem()
818 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.qp_table); in hns_roce_init_hem()
Dhns_roce_hem.c952 &hr_dev->qp_table.sccc_table); in hns_roce_cleanup_hem()
955 &hr_dev->qp_table.trrl_table); in hns_roce_cleanup_hem()
960 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.irrl_table); in hns_roce_cleanup_hem()
961 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->qp_table.qp_table); in hns_roce_cleanup_hem()
Dhns_roce_device.h476 struct hns_roce_hem_table qp_table; member
945 struct hns_roce_qp_table qp_table; member
Dhns_roce_hw_v2.c4670 mtts = hns_roce_table_find(hr_dev, &hr_dev->qp_table.irrl_table, in modify_qp_init_to_rtr()
4678 mtts = hns_roce_table_find(hr_dev, &hr_dev->qp_table.trrl_table, in modify_qp_init_to_rtr()
4822 u32 *spare_idx = hr_dev->qp_table.idx_table.spare_idx; in get_dip_ctx_idx()
4823 u32 *head = &hr_dev->qp_table.idx_table.head; in get_dip_ctx_idx()
4824 u32 *tail = &hr_dev->qp_table.idx_table.tail; in get_dip_ctx_idx()
5644 mutex_lock(&hr_dev->qp_table.scc_mutex); in hns_roce_v2_qp_flow_control_init()
5686 mutex_unlock(&hr_dev->qp_table.scc_mutex); in hns_roce_v2_qp_flow_control_init()
/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()
/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()
485 struct mlx5_qp_table *table = &dev->qp_table; in mlx5_init_qp_table()
499 struct mlx5_qp_table *table = &dev->qp_table; in mlx5_cleanup_qp_table()
638 struct mlx5_qp_table *table = &dev->qp_table; in mlx5_core_res_hold()
Dmlx5_ib.h1111 struct mlx5_qp_table qp_table; member
Dcq.c492 mqp = radix_tree_lookup(&dev->qp_table.tree, qpn); in mlx5_poll_one()
/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()
468 kfree(rdi->qp_dev->qp_table); in rvt_qp_exit()
749 qpp = &rdi->qp_dev->qp_table[n]; in rvt_remove_qp()
1385 qp->next = rdi->qp_dev->qp_table[n]; in rvt_insert_qp()
1386 rcu_assign_pointer(rdi->qp_dev->qp_table[n], qp); in rvt_insert_qp()
2717 rdi->qp_dev->qp_table[ in rvt_qp_iter_next()
/drivers/infiniband/hw/irdma/
Dmain.h309 struct irdma_qp **qp_table; member
Dutils.c758 iwdev->rf->qp_table[qp_num] = NULL; in irdma_qp_rem_ref()
780 return &iwdev->rf->qp_table[qpn]->ibqp; in irdma_get_qp()
Dhw.c248 iwqp = rf->qp_table[info->qp_cq_id]; in irdma_process_aeq()
1956 rf->qp_table = (struct irdma_qp **) in irdma_set_hw_rsrc()
Dcm.c3403 if (!iwdev->rf->qp_table[iwqp->ibqp.qp_num]) { in irdma_cm_disconn()

12