Lines Matching defs:dlp
41 dls_open(dls_link_t *dlp, dls_dl_handle_t ddh, dld_str_t *dsp)
48 * Check whether this client belongs to the zone of this dlp. Note that
49 * a global zone client is allowed to open a local zone dlp.
51 if (zid != GLOBAL_ZONEID && dlp->dl_zid != zid)
61 if (!mac_capab_get(dlp->dl_mh, MAC_CAPAB_LEGACY, NULL) &&
62 ((err = mac_start(dlp->dl_mh)) != 0)) {
66 local = (zid == dlp->dl_zid);
67 dlp->dl_zone_ref += (local ? 1 : 0);
73 dsp->ds_dlp = dlp;
74 dsp->ds_mh = dlp->dl_mh;
75 dsp->ds_mch = dlp->dl_mch;
76 dsp->ds_mip = dlp->dl_mip;
87 dls_link_t *dlp = dsp->ds_dlp;
95 dlp->dl_zone_ref--;
147 dls_link_rele(dlp);
637 dls_mac_active_set(dls_link_t *dlp)
644 if (dlp->dl_nactive == 0) {
651 if ((err = mac_unicast_add(dlp->dl_mch, NULL,
653 MAC_UNICAST_DISABLE_TX_VID_CHECK, &dlp->dl_mah, 0,
661 mac_rx_set(dlp->dl_mch, i_dls_link_rx, dlp);
663 dlp->dl_nactive++;
668 dls_mac_active_clear(dls_link_t *dlp)
670 if (--dlp->dl_nactive == 0) {
671 ASSERT(dlp->dl_mah != NULL);
672 (void) mac_unicast_remove(dlp->dl_mch, dlp->dl_mah);
673 dlp->dl_mah = NULL;
674 mac_rx_clear(dlp->dl_mch);