Home
last modified time | relevance | path

Searched refs:srq_table (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Dsrq.c45 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in mlx4_srq_event() local
48 spin_lock(&srq_table->lock); in mlx4_srq_event()
50 srq = radix_tree_lookup(&srq_table->tree, srqn & (dev->caps.num_srqs - 1)); in mlx4_srq_event()
54 spin_unlock(&srq_table->lock); in mlx4_srq_event()
98 struct mlx4_srq_table *srq_table = &mlx4_priv(dev)->srq_table; in __mlx4_srq_alloc_icm() local
102 *srqn = mlx4_bitmap_alloc(&srq_table->bitmap); in __mlx4_srq_alloc_icm()
106 err = mlx4_table_get(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm()
110 err = mlx4_table_get(dev, &srq_table->cmpt_table, *srqn); in __mlx4_srq_alloc_icm()
116 mlx4_table_put(dev, &srq_table->table, *srqn); in __mlx4_srq_alloc_icm()
119 mlx4_bitmap_free(&srq_table->bitmap, *srqn); in __mlx4_srq_alloc_icm()
[all …]
Dmain.c791 err = mlx4_init_icm_table(dev, &priv->srq_table.cmpt_table, in mlx4_init_cmpt_table()
826 mlx4_cleanup_icm_table(dev, &priv->srq_table.cmpt_table); in mlx4_init_cmpt_table()
969 err = mlx4_init_icm_table(dev, &priv->srq_table.table, in mlx4_init_icm()
998 mlx4_cleanup_icm_table(dev, &priv->srq_table.table); in mlx4_init_icm()
1027 mlx4_cleanup_icm_table(dev, &priv->srq_table.cmpt_table); in mlx4_init_icm()
1044 mlx4_cleanup_icm_table(dev, &priv->srq_table.table); in mlx4_free_icms()
1055 mlx4_cleanup_icm_table(dev, &priv->srq_table.cmpt_table); in mlx4_free_icms()
Dmlx4.h741 struct mlx4_srq_table srq_table; member
/linux-3.4.99/drivers/infiniband/hw/mthca/
Dmthca_srq.c229 srq->srqn = mthca_alloc(&dev->srq_table.alloc); in mthca_alloc_srq()
234 err = mthca_table_get(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
275 spin_lock_irq(&dev->srq_table.lock); in mthca_alloc_srq()
276 if (mthca_array_set(&dev->srq_table.srq, in mthca_alloc_srq()
279 spin_unlock_irq(&dev->srq_table.lock); in mthca_alloc_srq()
282 spin_unlock_irq(&dev->srq_table.lock); in mthca_alloc_srq()
311 mthca_table_put(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
314 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_alloc_srq()
323 spin_lock_irq(&dev->srq_table.lock); in get_srq_refcount()
325 spin_unlock_irq(&dev->srq_table.lock); in get_srq_refcount()
[all …]
Dmthca_main.c489 mdev->srq_table.table = in mthca_init_icm()
495 if (!mdev->srq_table.table) { in mthca_init_icm()
525 mthca_free_icm_table(mdev, mdev->srq_table.table); in mthca_init_icm()
562 mthca_free_icm_table(mdev, mdev->srq_table.table); in mthca_free_icms()
Dmthca_dev.h344 struct mthca_srq_table srq_table; member