Home
last modified time | relevance | path

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

/drivers/infiniband/hw/mthca/
Dmthca_mcg.c136 mutex_lock(&dev->mcg_table.mutex); in mthca_multicast_attach()
148 index = mthca_alloc(&dev->mcg_table.alloc); in mthca_multicast_attach()
206 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_attach()
208 mutex_unlock(&dev->mcg_table.mutex); in mthca_multicast_attach()
229 mutex_lock(&dev->mcg_table.mutex); in mthca_multicast_detach()
286 mthca_free(&dev->mcg_table.alloc, amgm_index_to_free); in mthca_multicast_detach()
305 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_detach()
309 mutex_unlock(&dev->mcg_table.mutex); in mthca_multicast_detach()
320 err = mthca_alloc_init(&dev->mcg_table.alloc, in mthca_init_mcg_table()
327 mutex_init(&dev->mcg_table.mutex); in mthca_init_mcg_table()
[all …]
Dmthca_main.c507 mdev->mcg_table.table = mthca_alloc_icm_table(mdev, init_hca->mc_base, in mthca_init_icm()
514 if (!mdev->mcg_table.table) { in mthca_init_icm()
559 mthca_free_icm_table(mdev, mdev->mcg_table.table); in mthca_free_icms()
Dmthca_dev.h346 struct mthca_mcg_table mcg_table; member
/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c439 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()
[all …]
Dmlx4.h899 struct mlx4_mcg_table mcg_table; member
Dmain.c1791 err = mlx4_init_icm_table(dev, &priv->mcg_table.table, in mlx4_init_icm()
1850 mlx4_cleanup_icm_table(dev, &priv->mcg_table.table); in mlx4_free_icms()
/drivers/infiniband/hw/mlx4/
Dmcg.c165 struct rb_node *node = ctx->mcg_table.rb_node; in mcast_find()
186 struct rb_node **link = &ctx->mcg_table.rb_node; in mcast_insert()
205 rb_insert_color(&group->node, &ctx->mcg_table); in mcast_insert()
461 rb_erase(&group->node, &ctx->mcg_table); in release_group()
1053 ctx->mcg_table = RB_ROOT; in mlx4_ib_mcg_port_init()
1069 rb_erase(&group->node, &group->demux->mcg_table); in force_clean_group()
1088 for (p = rb_first(&ctx->mcg_table); p; p = rb_next(p)) in _mlx4_ib_mcg_port_cleanup()
1102 while ((p = rb_first(&ctx->mcg_table)) != NULL) { in _mlx4_ib_mcg_port_cleanup()
1231 for (p = rb_first(&ctx->mcg_table); p; p = rb_next(p)) { in clean_vf_mcast()
Dmlx4_ib.h501 struct rb_root mcg_table; member