Lines Matching defs:bmp

245 mac_to_inst(const bridge_mac_t *bmp)
250 if ((bip = bmp->bm_inst) != NULL)
263 bridge_mac_t *bmp;
281 bmp = bip->bi_mac;
291 bmp->bm_linkstate = failed ? LINK_STATE_DOWN :
293 mac_link_redo(bmp->bm_mh, bmp->bm_linkstate);
304 if (bmp->bm_linkstate != blp->bl_linkstate)
307 mac_link_redo(blp->bl_mh, bmp->bm_linkstate);
363 bridge_mac_t *bmp = arg;
365 bmp->bm_flags |= BMF_STARTED;
372 bridge_mac_t *bmp = arg;
374 bmp->bm_flags &= ~BMF_STARTED;
446 bridge_mac_t *bmp = arg;
456 if (pr_valsize < sizeof (bmp->bm_maxsdu)) {
461 if (maxsdu == bmp->bm_maxsdu) {
463 } else if ((bip = mac_to_inst(bmp)) == NULL) {
474 else if (blp->bl_maxsdu == bmp->bm_maxsdu)
478 bmp->bm_maxsdu = maxsdu;
479 (void) mac_maxsdu_update(bmp->bm_mh, maxsdu);
497 bridge_mac_t *bmp = arg;
503 ASSERT(pr_valsize >= sizeof (bmp->bm_linkstate));
504 bcopy(&bmp->bm_linkstate, pr_val, sizeof (&bmp->bm_linkstate));
518 bridge_mac_t *bmp = arg;
524 mac_prop_info_set_range_uint32(prh, bmp->bm_maxsdu,
525 bmp->bm_maxsdu);
581 bridge_mac_t *bmp, *bnew;
592 for (bmp = list_head(&bmac_list); bmp != NULL;
593 bmp = list_next(&bmac_list, bmp)) {
594 if (strcmp(bip->bi_name, bmp->bm_name) == 0) {
595 ASSERT(bmp->bm_inst == NULL);
596 bmp->bm_inst = bip;
600 *bmacp = bmp;
652 bmac_disconnect(bridge_mac_t *bmp)
656 bmp->bm_linkstate = LINK_STATE_DOWN;
657 mac_link_redo(bmp->bm_mh, LINK_STATE_DOWN);
660 bip = bmp->bm_inst;
662 bmp->bm_inst = NULL;
740 bridge_mac_t *bmp = NULL;
775 err = bmac_alloc(bip, &bmp);
776 if ((bip->bi_mac = bmp) == NULL)
783 if (!(bmp->bm_flags & BMF_DLS)) {
784 err = dls_devnet_create(bmp->bm_mh, linkid, crgetzoneid(cred));
787 bmp->bm_flags |= BMF_DLS;
790 bip->bi_dev = makedevice(bridge_major, mac_minor(bmp->bm_mh));
1405 bridge_mac_t *bmp, *bmnext;
1469 while ((bmp = bmnext) != NULL) {
1470 bmnext = list_next(&bmac_list, bmp);
1473 if (bmp->bm_inst != NULL)
1476 if (bmp->bm_flags & BMF_DLS) {
1477 err = dls_devnet_destroy(bmp->bm_mh, &tmpid, B_FALSE);
1480 bmp->bm_flags &= ~BMF_DLS;
1483 if (!(bmp->bm_flags & BMF_DLS)) {
1484 err = mac_unregister(bmp->bm_mh);
1487 list_remove(&bmac_list, bmp);
1488 kmem_free(bmp, sizeof (*bmp));
2184 bridge_mac_t *bmp = bip->bi_mac;
2192 notify = (maxsdu != bmp->bm_maxsdu);
2193 bmp->bm_maxsdu = maxsdu;
2196 if (maxsdu != bmp->bm_maxsdu)
2199 (void) mac_maxsdu_update(bmp->bm_mh, maxsdu);
2218 bridge_mac_t *bmp = bip->bi_mac;
2361 (bmp->bm_flags & BMF_STARTED) &&
2363 mac_rx(bmp->bm_mh, NULL, mp);
2415 if ((bmp->bm_flags & BMF_STARTED) &&
2417 mac_rx(bmp->bm_mh, NULL, mpcopy);
2447 bridge_mac_t *bmp = bip->bi_mac;
2475 (bmp->bm_flags & BMF_STARTED) &&
2477 mac_rx(bmp->bm_mh, NULL, mp);
2503 if (trillmode && (bmp->bm_flags & BMF_STARTED) &&
2505 mac_rx(bmp->bm_mh, NULL, mpcopy);
2715 bridge_mac_t *bmp;
2758 bmp = bip->bi_mac;
2759 if ((bmp->bm_linkstate = newls) != LINK_STATE_DOWN)
2760 bmp->bm_linkstate = LINK_STATE_UP;
2761 mac_link_redo(bmp->bm_mh, bmp->bm_linkstate);
2773 bridge_mac_t *bmp;
2839 bmp = bip->bi_mac;
2841 bmp->bm_maxsdu = maxsdu;
2842 (void) mac_maxsdu_update(bmp->bm_mh, maxsdu);
2922 if (maxsdu != bmp->bm_maxsdu)
2961 bridge_mac_t *bmp;
3009 bmp = bip->bi_mac;
3010 bmp->bm_linkstate = LINK_STATE_DOWN;
3011 mac_link_redo(bmp->bm_mh, LINK_STATE_DOWN);
3030 bmp = bip->bi_mac;
3032 blsave->bl_maxsdu != bmp->bm_maxsdu) {
3033 bmp->bm_maxsdu = blsave->bl_maxsdu;
3034 (void) mac_maxsdu_update(bmp->bm_mh, blsave->bl_maxsdu);