Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/infiniband/hw/mthca/
Dmthca_mcg.c144 mutex_lock(&dev->mcg_table.mutex); in mthca_multicast_attach()
156 index = mthca_alloc(&dev->mcg_table.alloc); in mthca_multicast_attach()
226 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_attach()
228 mutex_unlock(&dev->mcg_table.mutex); in mthca_multicast_attach()
250 mutex_lock(&dev->mcg_table.mutex); in mthca_multicast_detach()
317 mthca_free(&dev->mcg_table.alloc, amgm_index_to_free); in mthca_multicast_detach()
342 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_detach()
346 mutex_unlock(&dev->mcg_table.mutex); in mthca_multicast_detach()
357 err = mthca_alloc_init(&dev->mcg_table.alloc, in mthca_init_mcg_table()
364 mutex_init(&dev->mcg_table.mutex); in mthca_init_mcg_table()
[all …]
Dmthca_main.c558 mdev->mcg_table.table = mthca_alloc_icm_table(mdev, init_hca->mc_base, in mthca_init_icm()
565 if (!mdev->mcg_table.table) { in mthca_init_icm()
611 mthca_free_icm_table(mdev, mdev->mcg_table.table); in mthca_free_icms()
Dmthca_dev.h347 struct mthca_mcg_table mcg_table; member
/linux-2.6.39/drivers/net/mlx4/
Dmcg.c354 mutex_lock(&priv->mcg_table.mutex); in add_promisc_qp()
427 mutex_unlock(&priv->mcg_table.mutex); in add_promisc_qp()
437 mutex_unlock(&priv->mcg_table.mutex); in add_promisc_qp()
460 mutex_lock(&priv->mcg_table.mutex); in remove_promisc_qp()
533 mutex_unlock(&priv->mcg_table.mutex); in remove_promisc_qp()
628 mutex_lock(&priv->mcg_table.mutex); in mlx4_qp_attach_common()
642 index = mlx4_bitmap_alloc(&priv->mcg_table.bitmap); in mlx4_qp_attach_common()
707 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_attach_common()
710 mutex_unlock(&priv->mcg_table.mutex); in mlx4_qp_attach_common()
735 mutex_lock(&priv->mcg_table.mutex); in mlx4_qp_detach_common()
[all …]
Dmlx4.h344 struct mlx4_mcg_table mcg_table; member
Dmain.c648 err = mlx4_init_icm_table(dev, &priv->mcg_table.table, in mlx4_init_icm()
706 mlx4_cleanup_icm_table(dev, &priv->mcg_table.table); in mlx4_free_icms()