Lines Matching refs:mc
499 iprb_mcast_t *mc; in iprb_destroy() local
520 while ((mc = list_head(&ip->mcast)) != NULL) { in iprb_destroy()
521 list_remove(&ip->mcast, mc); in iprb_destroy()
522 kmem_free(mc, sizeof (*mc)); in iprb_destroy()
816 iprb_mcast_t *mc; in iprb_set_multicast() local
838 for (mc = list_head(l), i = 0; mc; mc = list_next(l, mc), i++) { in iprb_set_multicast()
839 PUTCBEA(cb, CB_MCS_ADR_OFFSET + (i * 6), mc->addr); in iprb_set_multicast()
1252 iprb_mcast_t *mc; in iprb_m_multicst() local
1255 mc = kmem_alloc(sizeof (*mc), KM_NOSLEEP); in iprb_m_multicst()
1256 if (mc == NULL) { in iprb_m_multicst()
1259 bcopy(macaddr, mc->addr, 6); in iprb_m_multicst()
1261 list_insert_head(l, mc); in iprb_m_multicst()
1268 for (mc = list_head(l); mc != NULL; mc = list_next(l, mc)) { in iprb_m_multicst()
1269 if (bcmp(macaddr, mc->addr, 6) == 0) { in iprb_m_multicst()
1270 list_remove(&ip->mcast, mc); in iprb_m_multicst()
1278 if (mc) in iprb_m_multicst()
1279 kmem_free(mc, sizeof (*mc)); in iprb_m_multicst()