Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dcq.c104 cq = radix_tree_lookup(&mlx4_priv(dev)->cq_table.tree, in mlx4_cq_completion()
118 struct mlx4_cq_table *cq_table = &mlx4_priv(dev)->cq_table; in mlx4_cq_event() local
121 spin_lock(&cq_table->lock); in mlx4_cq_event()
123 cq = radix_tree_lookup(&cq_table->tree, cqn & (dev->caps.num_cqs - 1)); in mlx4_cq_event()
127 spin_unlock(&cq_table->lock); in mlx4_cq_event()
214 struct mlx4_cq_table *cq_table = &priv->cq_table; in __mlx4_cq_alloc_icm() local
217 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); in __mlx4_cq_alloc_icm()
221 err = mlx4_table_get(dev, &cq_table->table, *cqn, GFP_KERNEL); in __mlx4_cq_alloc_icm()
225 err = mlx4_table_get(dev, &cq_table->cmpt_table, *cqn, GFP_KERNEL); in __mlx4_cq_alloc_icm()
231 mlx4_table_put(dev, &cq_table->table, *cqn); in __mlx4_cq_alloc_icm()
[all …]
Dmain.c1342 err = mlx4_init_icm_table(dev, &priv->cq_table.cmpt_table, in mlx4_init_cmpt_table()
1363 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_init_cmpt_table()
1497 err = mlx4_init_icm_table(dev, &priv->cq_table.table, in mlx4_init_icm()
1541 mlx4_cleanup_icm_table(dev, &priv->cq_table.table); in mlx4_init_icm()
1566 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_init_icm()
1585 mlx4_cleanup_icm_table(dev, &priv->cq_table.table); in mlx4_free_icms()
1594 mlx4_cleanup_icm_table(dev, &priv->cq_table.cmpt_table); in mlx4_free_icms()
Dmlx4.h861 struct mlx4_cq_table cq_table; member
/linux-4.1.27/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()
787 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
792 err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
856 spin_lock_irq(&dev->cq_table.lock); in mthca_init_cq()
857 if (mthca_array_set(&dev->cq_table.cq, in mthca_init_cq()
[all …]
Dmthca_main.c477 mdev->cq_table.table = mthca_alloc_icm_table(mdev, init_hca->cqc_base, in mthca_init_icm()
482 if (!mdev->cq_table.table) { in mthca_init_icm()
528 mthca_free_icm_table(mdev, mdev->cq_table.table); in mthca_init_icm()
563 mthca_free_icm_table(mdev, mdev->cq_table.table); in mthca_free_icms()
Dmthca_dev.h343 struct mthca_cq_table cq_table; member
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dcq.c45 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_cq_completion()
68 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_cq_event()
95 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_core_create_cq()
140 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_core_destroy_cq()
224 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_init_cq_table()
/linux-4.1.27/include/linux/mlx5/
Ddriver.h496 struct mlx5_cq_table cq_table; member