Lines Matching refs:mcg_table
439 mutex_lock(&priv->mcg_table.mutex); in add_promisc_qp()
534 mutex_unlock(&priv->mcg_table.mutex); in add_promisc_qp()
544 mutex_unlock(&priv->mcg_table.mutex); in add_promisc_qp()
568 mutex_lock(&priv->mcg_table.mutex); in remove_promisc_qp()
675 mutex_unlock(&priv->mcg_table.mutex); in remove_promisc_qp()
1124 mutex_lock(&priv->mcg_table.mutex); in mlx4_qp_attach_common()
1138 index = mlx4_bitmap_alloc(&priv->mcg_table.bitmap); in mlx4_qp_attach_common()
1205 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_attach_common()
1208 mutex_unlock(&priv->mcg_table.mutex); in mlx4_qp_attach_common()
1232 mutex_lock(&priv->mcg_table.mutex); in mlx4_qp_detach_common()
1301 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_detach_common()
1321 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_detach_common()
1326 mutex_unlock(&priv->mcg_table.mutex); in mlx4_qp_detach_common()
1634 err = mlx4_bitmap_init(&priv->mcg_table.bitmap, dev->caps.num_amgms, in mlx4_init_mcg_table()
1639 mutex_init(&priv->mcg_table.mutex); in mlx4_init_mcg_table()
1648 mlx4_bitmap_cleanup(&mlx4_priv(dev)->mcg_table.bitmap); in mlx4_cleanup_mcg_table()