Lines Matching refs:gm

2179 	mlxcx_group_mac_t *gm, *ngm;  in mlxcx_remove_all_umcast_entries()  local
2186 gm = avl_first(&group->mlg_rx_macs); in mlxcx_remove_all_umcast_entries()
2187 for (; gm != NULL; gm = ngm) { in mlxcx_remove_all_umcast_entries()
2188 ngm = AVL_NEXT(&group->mlg_rx_macs, gm); in mlxcx_remove_all_umcast_entries()
2190 ASSERT3P(gm->mlgm_group, ==, group); in mlxcx_remove_all_umcast_entries()
2191 fe = gm->mlgm_fe; in mlxcx_remove_all_umcast_entries()
2194 avl_remove(&group->mlg_rx_macs, gm); in mlxcx_remove_all_umcast_entries()
2195 list_remove(&fe->mlfe_ring_groups, gm); in mlxcx_remove_all_umcast_entries()
2196 kmem_free(gm, sizeof (mlxcx_group_mac_t)); in mlxcx_remove_all_umcast_entries()
2199 for (gm = list_head(&fe->mlfe_ring_groups); gm != NULL; in mlxcx_remove_all_umcast_entries()
2200 gm = list_next(&fe->mlfe_ring_groups, gm)) { in mlxcx_remove_all_umcast_entries()
2202 gm->mlgm_group->mlg_rx_vlan_ft; in mlxcx_remove_all_umcast_entries()
2231 mlxcx_group_mac_t *gm, probe; in mlxcx_remove_umcast_entry() local
2241 gm = avl_find(&group->mlg_rx_macs, &probe, NULL); in mlxcx_remove_umcast_entry()
2242 if (gm == NULL) { in mlxcx_remove_umcast_entry()
2246 ASSERT3P(gm->mlgm_group, ==, group); in mlxcx_remove_umcast_entry()
2247 ASSERT0(bcmp(macaddr, gm->mlgm_mac, sizeof (gm->mlgm_mac))); in mlxcx_remove_umcast_entry()
2249 fe = gm->mlgm_fe; in mlxcx_remove_umcast_entry()
2253 list_remove(&fe->mlfe_ring_groups, gm); in mlxcx_remove_umcast_entry()
2254 avl_remove(&group->mlg_rx_macs, gm); in mlxcx_remove_umcast_entry()
2255 kmem_free(gm, sizeof (mlxcx_group_mac_t)); in mlxcx_remove_umcast_entry()
2258 for (gm = list_head(&fe->mlfe_ring_groups); gm != NULL; in mlxcx_remove_umcast_entry()
2259 gm = list_next(&fe->mlfe_ring_groups, gm)) { in mlxcx_remove_umcast_entry()
2261 gm->mlgm_group->mlg_rx_vlan_ft; in mlxcx_remove_umcast_entry()
2296 mlxcx_group_mac_t *gm; in mlxcx_add_umcast_entry() local
2343 gm = kmem_zalloc(sizeof (mlxcx_group_mac_t), KM_SLEEP); in mlxcx_add_umcast_entry()
2344 gm->mlgm_group = group; in mlxcx_add_umcast_entry()
2345 gm->mlgm_fe = fe; in mlxcx_add_umcast_entry()
2346 bcopy(macaddr, gm->mlgm_mac, sizeof (gm->mlgm_mac)); in mlxcx_add_umcast_entry()
2347 avl_add(&group->mlg_rx_macs, gm); in mlxcx_add_umcast_entry()
2348 list_insert_tail(&fe->mlfe_ring_groups, gm); in mlxcx_add_umcast_entry()