Home
last modified time | relevance | path

Searched refs:cq_table (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dcq.c109 cq = radix_tree_lookup(&mlx4_priv(dev)->cq_table.tree, in mlx4_cq_completion()
128 struct mlx4_cq_table *cq_table = &mlx4_priv(dev)->cq_table; in mlx4_cq_event() local
132 cq = radix_tree_lookup(&cq_table->tree, cqn & (dev->caps.num_cqs - 1)); in mlx4_cq_event()
220 struct mlx4_cq_table *cq_table = &priv->cq_table; in __mlx4_cq_alloc_icm() local
223 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); in __mlx4_cq_alloc_icm()
227 err = mlx4_table_get(dev, &cq_table->table, *cqn); in __mlx4_cq_alloc_icm()
231 err = mlx4_table_get(dev, &cq_table->cmpt_table, *cqn); in __mlx4_cq_alloc_icm()
237 mlx4_table_put(dev, &cq_table->table, *cqn); in __mlx4_cq_alloc_icm()
240 mlx4_bitmap_free(&cq_table->bitmap, *cqn, MLX4_NO_RR); in __mlx4_cq_alloc_icm()
267 struct mlx4_cq_table *cq_table = &priv->cq_table; in __mlx4_cq_free_icm() local
[all …]
Dmain.c1609 err = mlx4_init_icm_table(dev, &priv->cq_table.cmpt_table, in mlx4_init_cmpt_table()
1630 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_init_cmpt_table()
1764 err = mlx4_init_icm_table(dev, &priv->cq_table.table, in mlx4_init_icm()
1808 mlx4_cleanup_icm_table(dev, &priv->cq_table.table); in mlx4_init_icm()
1833 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_init_icm()
1852 mlx4_cleanup_icm_table(dev, &priv->cq_table.table); in mlx4_free_icms()
1861 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_free_icms()
Dmlx4.h895 struct mlx4_cq_table cq_table; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_cq.c45 struct hns_roce_cq_table *cq_table; in alloc_cqc() local
58 cq_table = &hr_dev->cq_table; in alloc_cqc()
59 ret = hns_roce_bitmap_alloc(&cq_table->bitmap, &hr_cq->cqn); in alloc_cqc()
66 ret = hns_roce_table_get(hr_dev, &cq_table->table, hr_cq->cqn); in alloc_cqc()
73 ret = xa_err(xa_store(&cq_table->array, hr_cq->cqn, hr_cq, GFP_KERNEL)); in alloc_cqc()
108 xa_erase(&cq_table->array, hr_cq->cqn); in alloc_cqc()
111 hns_roce_table_put(hr_dev, &cq_table->table, hr_cq->cqn); in alloc_cqc()
114 hns_roce_bitmap_free(&cq_table->bitmap, hr_cq->cqn, BITMAP_NO_RR); in alloc_cqc()
120 struct hns_roce_cq_table *cq_table = &hr_dev->cq_table; in free_cqc() local
131 xa_erase(&cq_table->array, hr_cq->cqn); in free_cqc()
[all …]
Dhns_roce_main.c630 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->cq_table.table, in hns_roce_init_hem()
702 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->cq_table.table); in hns_roce_init_hem()
Dhns_roce_device.h996 struct hns_roce_cq_table cq_table; member
Dhns_roce_hem.c1023 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->cq_table.table); in hns_roce_cleanup_hem()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_cq.c221 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_completion()
239 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
241 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_event()
245 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
258 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
261 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
779 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
784 err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
850 spin_lock_irq(&dev->cq_table.lock); in mthca_init_cq()
851 err = mthca_array_set(&dev->cq_table.cq, in mthca_init_cq()
[all …]
Dmthca_main.c476 mdev->cq_table.table = mthca_alloc_icm_table(mdev, init_hca->cqc_base, in mthca_init_icm()
481 if (!mdev->cq_table.table) { in mthca_init_icm()
527 mthca_free_icm_table(mdev, mdev->cq_table.table); in mthca_init_icm()
562 mthca_free_icm_table(mdev, mdev->cq_table.table); in mthca_free_icms()
Dmthca_dev.h342 struct mthca_cq_table cq_table; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deq.c114 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_cq_get()
282 struct mlx5_cq_table *cq_table = &eq->cq_table; in create_map_eq() local
294 memset(cq_table, 0, sizeof(*cq_table)); in create_map_eq()
295 spin_lock_init(&cq_table->lock); in create_map_eq()
296 INIT_RADIX_TREE(&cq_table->tree, GFP_ATOMIC); in create_map_eq()
421 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_add_cq()
433 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_del_cq()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Deq.h26 struct mlx5_cq_table cq_table; member