Home
last modified time | relevance | path

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

/Linux-v4.19/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.c1610 err = mlx4_init_icm_table(dev, &priv->cq_table.cmpt_table, in mlx4_init_cmpt_table()
1631 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_init_cmpt_table()
1765 err = mlx4_init_icm_table(dev, &priv->cq_table.table, in mlx4_init_icm()
1809 mlx4_cleanup_icm_table(dev, &priv->cq_table.table); in mlx4_init_icm()
1834 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_init_icm()
1853 mlx4_cleanup_icm_table(dev, &priv->cq_table.table); in mlx4_free_icms()
1862 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_free_icms()
Dmlx4.h895 struct mlx4_cq_table cq_table; member
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_cq.c90 struct hns_roce_cq_table *cq_table; in hns_roce_cq_alloc() local
96 cq_table = &hr_dev->cq_table; in hns_roce_cq_alloc()
117 ret = hns_roce_bitmap_alloc(&cq_table->bitmap, &hr_cq->cqn); in hns_roce_cq_alloc()
124 ret = hns_roce_table_get(hr_dev, &cq_table->table, hr_cq->cqn); in hns_roce_cq_alloc()
131 spin_lock_irq(&cq_table->lock); in hns_roce_cq_alloc()
133 ret = radix_tree_insert(&cq_table->tree, hr_cq->cqn, hr_cq); in hns_roce_cq_alloc()
134 spin_unlock_irq(&cq_table->lock); in hns_roce_cq_alloc()
168 spin_lock_irq(&cq_table->lock); in hns_roce_cq_alloc()
169 radix_tree_delete(&cq_table->tree, hr_cq->cqn); in hns_roce_cq_alloc()
170 spin_unlock_irq(&cq_table->lock); in hns_roce_cq_alloc()
[all …]
Dhns_roce_device.h825 struct hns_roce_cq_table cq_table; member
Dhns_roce_main.c684 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->cq_table.table, in hns_roce_init_hem()
Dhns_roce_hem.c1044 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->cq_table.table); in hns_roce_cleanup_hem()
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_cq.c226 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_completion()
244 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
246 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_event()
250 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
263 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
266 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
784 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
789 err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
853 spin_lock_irq(&dev->cq_table.lock); in mthca_init_cq()
854 if (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.h343 struct mthca_cq_table cq_table; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Deq.c424 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_cq_get()
650 struct mlx5_cq_table *cq_table = &eq->cq_table; in mlx5_create_map_eq() local
661 memset(cq_table, 0, sizeof(*cq_table)); in mlx5_create_map_eq()
662 spin_lock_init(&cq_table->lock); in mlx5_create_map_eq()
663 INIT_RADIX_TREE(&cq_table->tree, GFP_ATOMIC); in mlx5_create_map_eq()
787 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_add_cq()
799 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_del_cq()
/Linux-v4.19/include/linux/mlx5/
Ddriver.h396 struct mlx5_cq_table cq_table; member