/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | cq.c | 109 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 …]
|
D | main.c | 1610 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()
|
D | mlx4.h | 895 struct mlx4_cq_table cq_table; member
|
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_cq.c | 90 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 …]
|
D | hns_roce_device.h | 825 struct hns_roce_cq_table cq_table; member
|
D | hns_roce_main.c | 684 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->cq_table.table, in hns_roce_init_hem()
|
D | hns_roce_hem.c | 1044 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->cq_table.table); in hns_roce_cleanup_hem()
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_cq.c | 226 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 …]
|
D | mthca_main.c | 476 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()
|
D | mthca_dev.h | 343 struct mthca_cq_table cq_table; member
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eq.c | 424 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/ |
D | driver.h | 396 struct mlx5_cq_table cq_table; member
|