/drivers/net/ethernet/mellanox/mlx4/ |
D | srq.c | 45 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in mlx4_srq_event() local 49 srq = radix_tree_lookup(&srq_table->tree, srqn & (dev->caps.num_srqs - 1)); in mlx4_srq_event() 95 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in __mlx4_srq_alloc_icm() local 99 *srqn = mlx4_bitmap_alloc(&srq_table->bitmap); in __mlx4_srq_alloc_icm() 103 err = mlx4_table_get(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm() 107 err = mlx4_table_get(dev, &srq_table->cmpt_table, *srqn); in __mlx4_srq_alloc_icm() 113 mlx4_table_put(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm() 116 mlx4_bitmap_free(&srq_table->bitmap, *srqn, MLX4_NO_RR); in __mlx4_srq_alloc_icm() 140 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in __mlx4_srq_free_icm() local 142 mlx4_table_put(dev, &srq_table->cmpt_table, srqn); in __mlx4_srq_free_icm() [all …]
|
D | main.c | 1600 err = mlx4_init_icm_table(dev, &priv->srq_table.cmpt_table, in mlx4_init_cmpt_table() 1633 mlx4_cleanup_icm_table(dev, &priv->srq_table.cmpt_table); in mlx4_init_cmpt_table() 1774 err = mlx4_init_icm_table(dev, &priv->srq_table.table, in mlx4_init_icm() 1805 mlx4_cleanup_icm_table(dev, &priv->srq_table.table); in mlx4_init_icm() 1834 mlx4_cleanup_icm_table(dev, &priv->srq_table.cmpt_table); in mlx4_init_icm() 1851 mlx4_cleanup_icm_table(dev, &priv->srq_table.table); in mlx4_free_icms() 1862 mlx4_cleanup_icm_table(dev, &priv->srq_table.cmpt_table); in mlx4_free_icms()
|
D | mlx4.h | 897 struct mlx4_srq_table srq_table; member
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_srq.c | 14 struct hns_roce_srq_table *srq_table = &hr_dev->srq_table; in hns_roce_srq_event() local 17 xa_lock(&srq_table->xa); in hns_roce_srq_event() 18 srq = xa_load(&srq_table->xa, srqn & (hr_dev->caps.num_srqs - 1)); in hns_roce_srq_event() 21 xa_unlock(&srq_table->xa); in hns_roce_srq_event() 83 struct hns_roce_srq_table *srq_table = &hr_dev->srq_table; in alloc_srqc() local 110 ret = hns_roce_bitmap_alloc(&srq_table->bitmap, &srq->srqn); in alloc_srqc() 117 ret = hns_roce_table_get(hr_dev, &srq_table->table, srq->srqn); in alloc_srqc() 123 ret = xa_err(xa_store(&srq_table->xa, srq->srqn, srq, GFP_KERNEL)); in alloc_srqc() 152 xa_erase(&srq_table->xa, srq->srqn); in alloc_srqc() 155 hns_roce_table_put(hr_dev, &srq_table->table, srq->srqn); in alloc_srqc() [all …]
|
D | hns_roce_main.c | 637 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->srq_table.table, in hns_roce_init_hem() 697 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->srq_table.table); in hns_roce_init_hem()
|
D | hns_roce_device.h | 995 struct hns_roce_srq_table srq_table; member
|
D | hns_roce_hem.c | 943 &hr_dev->srq_table.table); in hns_roce_cleanup_hem()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_srq.c | 237 srq->srqn = mthca_alloc(&dev->srq_table.alloc); in mthca_alloc_srq() 242 err = mthca_table_get(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq() 283 spin_lock_irq(&dev->srq_table.lock); in mthca_alloc_srq() 284 if (mthca_array_set(&dev->srq_table.srq, in mthca_alloc_srq() 287 spin_unlock_irq(&dev->srq_table.lock); in mthca_alloc_srq() 290 spin_unlock_irq(&dev->srq_table.lock); in mthca_alloc_srq() 319 mthca_table_put(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq() 322 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_alloc_srq() 331 spin_lock_irq(&dev->srq_table.lock); in get_srq_refcount() 333 spin_unlock_irq(&dev->srq_table.lock); in get_srq_refcount() [all …]
|
D | mthca_main.c | 488 mdev->srq_table.table = in mthca_init_icm() 494 if (!mdev->srq_table.table) { in mthca_init_icm() 524 mthca_free_icm_table(mdev, mdev->srq_table.table); in mthca_init_icm() 561 mthca_free_icm_table(mdev, mdev->srq_table.table); in mthca_free_icms()
|
D | mthca_dev.h | 343 struct mthca_srq_table srq_table; member
|
/drivers/infiniband/hw/cxgb4/ |
D | resource.c | 72 err = c4iw_id_table_alloc(&rdev->resource.srq_table, 0, in c4iw_init_resource() 75 err = c4iw_id_table_alloc(&rdev->resource.srq_table, 0, in c4iw_init_resource() 431 idx = c4iw_id_alloc(&rdev->resource.srq_table); in c4iw_alloc_srq_idx() 447 c4iw_id_free(&rdev->resource.srq_table, idx); in c4iw_free_srq_idx()
|
D | iw_cxgb4.h | 100 struct c4iw_id_table srq_table; member
|
/drivers/infiniband/hw/mlx5/ |
D | srq_cmd.c | 83 struct mlx5_srq_table *table = &dev->srq_table; in mlx5_cmd_get_srq() 560 struct mlx5_srq_table *table = &dev->srq_table; in mlx5_cmd_create_srq() 595 struct mlx5_srq_table *table = &dev->srq_table; in mlx5_cmd_destroy_srq() 686 struct mlx5_srq_table *table = &dev->srq_table; in mlx5_init_srq_table() 699 struct mlx5_srq_table *table = &dev->srq_table; in mlx5_cleanup_srq_table()
|
D | mlx5_ib.h | 1021 struct mlx5_srq_table srq_table; member
|