Lines Matching refs:dlp
41 dls_open(dls_link_t *dlp, dls_dl_handle_t ddh, dld_str_t *dsp) in dls_open() argument
51 if (zid != GLOBAL_ZONEID && dlp->dl_zid != zid) in dls_open()
61 if (!mac_capab_get(dlp->dl_mh, MAC_CAPAB_LEGACY, NULL) && in dls_open()
62 ((err = mac_start(dlp->dl_mh)) != 0)) { in dls_open()
66 local = (zid == dlp->dl_zid); in dls_open()
67 dlp->dl_zone_ref += (local ? 1 : 0); in dls_open()
73 dsp->ds_dlp = dlp; in dls_open()
74 dsp->ds_mh = dlp->dl_mh; in dls_open()
75 dsp->ds_mch = dlp->dl_mch; in dls_open()
76 dsp->ds_mip = dlp->dl_mip; in dls_open()
87 dls_link_t *dlp = dsp->ds_dlp; in dls_close() local
95 dlp->dl_zone_ref--; in dls_close()
147 dls_link_rele(dlp); in dls_close()
637 dls_mac_active_set(dls_link_t *dlp) in dls_mac_active_set() argument
644 if (dlp->dl_nactive == 0) { in dls_mac_active_set()
651 if ((err = mac_unicast_add(dlp->dl_mch, NULL, in dls_mac_active_set()
653 MAC_UNICAST_DISABLE_TX_VID_CHECK, &dlp->dl_mah, 0, in dls_mac_active_set()
661 mac_rx_set(dlp->dl_mch, i_dls_link_rx, dlp); in dls_mac_active_set()
663 dlp->dl_nactive++; in dls_mac_active_set()
668 dls_mac_active_clear(dls_link_t *dlp) in dls_mac_active_clear() argument
670 if (--dlp->dl_nactive == 0) { in dls_mac_active_clear()
671 ASSERT(dlp->dl_mah != NULL); in dls_mac_active_clear()
672 (void) mac_unicast_remove(dlp->dl_mch, dlp->dl_mah); in dls_mac_active_clear()
673 dlp->dl_mah = NULL; in dls_mac_active_clear()
674 mac_rx_clear(dlp->dl_mch); in dls_mac_active_clear()