Lines Matching refs:mc
497 iprb_mcast_t *mc; in iprb_destroy() local
518 while ((mc = list_head(&ip->mcast)) != NULL) { in iprb_destroy()
519 list_remove(&ip->mcast, mc); in iprb_destroy()
520 kmem_free(mc, sizeof (*mc)); in iprb_destroy()
815 iprb_mcast_t *mc; in iprb_set_multicast() local
837 for (mc = list_head(l), i = 0; mc; mc = list_next(l, mc), i++) { in iprb_set_multicast()
838 PUTCBEA(cb, CB_MCS_ADR_OFFSET + (i * 6), mc->addr); in iprb_set_multicast()
1250 iprb_mcast_t *mc; in iprb_m_multicst() local
1253 mc = kmem_alloc(sizeof (*mc), KM_NOSLEEP); in iprb_m_multicst()
1254 if (mc == NULL) { in iprb_m_multicst()
1257 bcopy(macaddr, mc->addr, 6); in iprb_m_multicst()
1259 list_insert_head(l, mc); in iprb_m_multicst()
1266 for (mc = list_head(l); mc != NULL; mc = list_next(l, mc)) { in iprb_m_multicst()
1267 if (bcmp(macaddr, mc->addr, 6) == 0) { in iprb_m_multicst()
1268 list_remove(&ip->mcast, mc); in iprb_m_multicst()
1276 if (mc) in iprb_m_multicst()
1277 kmem_free(mc, sizeof (*mc)); in iprb_m_multicst()