Lines Matching refs:maddr

279 		mac_mcast_addrs_t	*maddr;  in mac_bcast_add()  local
286 for (maddr = *prev_mi_addr; maddr != NULL; in mac_bcast_add()
287 prev_mi_addr = &maddr->mma_next, maddr = maddr->mma_next) { in mac_bcast_add()
288 if (bcmp(maddr->mma_addr, addr, addr_len) == 0) in mac_bcast_add()
291 if (maddr == NULL) { in mac_bcast_add()
299 maddr = kmem_zalloc(sizeof (mac_mcast_addrs_t), in mac_bcast_add()
301 bcopy(addr, maddr->mma_addr, addr_len); in mac_bcast_add()
302 *prev_mi_addr = maddr; in mac_bcast_add()
306 maddr->mma_ref++; in mac_bcast_add()
313 for (maddr = *prev_mci_addr; maddr != NULL; in mac_bcast_add()
314 prev_mci_addr = &maddr->mma_next, maddr = maddr->mma_next) { in mac_bcast_add()
315 if (bcmp(maddr->mma_addr, addr, addr_len) == 0) in mac_bcast_add()
318 if (maddr == NULL) { in mac_bcast_add()
319 maddr = kmem_zalloc(sizeof (mac_mcast_addrs_t), in mac_bcast_add()
321 bcopy(addr, maddr->mma_addr, addr_len); in mac_bcast_add()
322 *prev_mci_addr = maddr; in mac_bcast_add()
326 maddr->mma_ref++; in mac_bcast_add()
505 mac_mcast_addrs_t *maddr = NULL; in mac_bcast_delete() local
568 for (maddr = mcip->mci_mcast_addrs; maddr != NULL; in mac_bcast_delete()
569 mprev = &maddr->mma_next, maddr = maddr->mma_next) { in mac_bcast_delete()
570 if (bcmp(grp->mbg_addr, maddr->mma_addr, in mac_bcast_delete()
574 ASSERT(maddr != NULL); in mac_bcast_delete()
575 if (--maddr->mma_ref == 0) { in mac_bcast_delete()
576 *mprev = maddr->mma_next; in mac_bcast_delete()
577 maddr->mma_next = NULL; in mac_bcast_delete()
578 kmem_free(maddr, sizeof (mac_mcast_addrs_t)); in mac_bcast_delete()
582 for (maddr = mip->mi_mcast_addrs; maddr != NULL; in mac_bcast_delete()
583 mprev = &maddr->mma_next, maddr = maddr->mma_next) { in mac_bcast_delete()
584 if (bcmp(grp->mbg_addr, maddr->mma_addr, in mac_bcast_delete()
588 ASSERT(maddr != NULL); in mac_bcast_delete()
589 if (--maddr->mma_ref == 0) { in mac_bcast_delete()
591 *mprev = maddr->mma_next; in mac_bcast_delete()
592 maddr->mma_next = NULL; in mac_bcast_delete()
593 kmem_free(maddr, sizeof (mac_mcast_addrs_t)); in mac_bcast_delete()