Searched refs:mcg_table (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/dev/mthca/ |
H A D | mthca_mcg.c | 136 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 …]
|
H A D | mthca_main.c | 508 mdev->mcg_table.table = mthca_alloc_icm_table(mdev, init_hca->mc_base, in mthca_init_icm() 515 if (!mdev->mcg_table.table) { in mthca_init_icm() 560 mthca_free_icm_table(mdev, mdev->mcg_table.table); in mthca_free_icms()
|
H A D | mthca_dev.h | 349 struct mthca_mcg_table mcg_table; member
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_mcg.c | 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() [all …]
|
H A D | mlx4.h | 883 struct mlx4_mcg_table mcg_table; member
|
H A D | mlx4_main.c | 1712 err = mlx4_init_icm_table(dev, &priv->mcg_table.table, in mlx4_init_icm() 1771 mlx4_cleanup_icm_table(dev, &priv->mcg_table.table); in mlx4_free_icms()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_mcg.c | 165 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() 1057 ctx->mcg_table = RB_ROOT; in mlx4_ib_mcg_port_init() 1073 rb_erase(&group->node, &group->demux->mcg_table); in force_clean_group() 1092 for (p = rb_first(&ctx->mcg_table); p; p = rb_next(p)) in _mlx4_ib_mcg_port_cleanup() 1106 while ((p = rb_first(&ctx->mcg_table)) != NULL) { in _mlx4_ib_mcg_port_cleanup() 1237 for (p = rb_first(&ctx->mcg_table); p; p = rb_next(p)) { in clean_vf_mcast()
|
H A D | mlx4_ib.h | 456 struct rb_root mcg_table; member
|