Lines Matching refs:mch
85 static void vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch,
87 static void vsw_mac_remove_vlans(mac_client_handle_t mch, vsw_vlanid_t *vids,
337 mac_client_handle_t mch; in vsw_mac_multicast_add() local
341 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_add()
343 if (mch != NULL) { in vsw_mac_multicast_add()
344 ret = mac_multicast_add(mch, mcst_p->mca.ether_addr_octet); in vsw_mac_multicast_add()
367 mac_client_handle_t mch; in vsw_mac_multicast_remove() local
370 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_remove()
372 if (mch != NULL && mcst_p->mac_added) { in vsw_mac_multicast_remove()
373 mac_multicast_remove(mch, mcst_p->mca.ether_addr_octet); in vsw_mac_multicast_remove()
387 mac_client_handle_t mch; in vsw_mac_multicast_add_all() local
394 mch = vswp->mch; in vsw_mac_multicast_add_all()
399 mch = portp->p_mch; in vsw_mac_multicast_add_all()
404 if (mch == NULL) in vsw_mac_multicast_add_all()
411 rv = mac_multicast_add(mch, (uchar_t *)&mcap->mca); in vsw_mac_multicast_add_all()
429 mac_client_handle_t mch; in vsw_mac_multicast_remove_all() local
436 mch = vswp->mch; in vsw_mac_multicast_remove_all()
441 mch = portp->p_mch; in vsw_mac_multicast_remove_all()
446 if (mch == NULL) in vsw_mac_multicast_remove_all()
453 (void) mac_multicast_remove(mch, (uchar_t *)&mcap->mca); in vsw_mac_multicast_remove_all()
535 mchp = (type == VSW_LOCALDEV) ? &vswp->mch : &port->p_mch; in vsw_maccl_open()
588 mchp = (type == VSW_LOCALDEV) ? &vswp->mch : &port->p_mch; in vsw_maccl_close()
763 if (vswp->mch == NULL) in vsw_set_if_hw_addr()
789 rv = mac_unicast_add(vswp->mch, macaddr, mac_flags, in vsw_set_if_hw_addr()
806 vsw_mac_add_vlans(vswp, vswp->mch, macaddr, mac_flags, in vsw_set_if_hw_addr()
811 mac_rx_set(vswp->mch, vsw_if_rx_cb, (void *)vswp); in vsw_set_if_hw_addr()
828 mac_client_handle_t mch = NULL; in vsw_unset_hw_addr() local
847 mch = vswp->mch; in vsw_unset_hw_addr()
849 mch = port->p_mch; in vsw_unset_hw_addr()
853 if (mch == NULL) { in vsw_unset_hw_addr()
857 mac_rx_clear(mch); in vsw_unset_hw_addr()
860 vsw_mac_remove_vlans(mch, vids, nvids); in vsw_unset_hw_addr()
863 (void) mac_unicast_remove(vswp->mch, vswp->muh); in vsw_unset_hw_addr()
951 mac_client_handle_t mch; in vsw_tx_msg() local
956 mch = (caller == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_tx_msg()
959 if (mch == NULL || muh == NULL) { in vsw_tx_msg()
965 (void) mac_tx(mch, mp, 0, MAC_DROP_ON_NO_DESC, NULL); in vsw_tx_msg()
1130 vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch, uint8_t *macaddr, in vsw_mac_add_vlans() argument
1148 rv = mac_unicast_add(mch, macaddr, flags, in vsw_mac_add_vlans()
1167 vsw_mac_remove_vlans(mac_client_handle_t mch, vsw_vlanid_t *vids, int nvids) in vsw_mac_remove_vlans() argument
1177 (void) mac_unicast_remove(mch, vidp->vl_muh); in vsw_mac_remove_vlans()
1390 mac_client_handle_t mch; in vsw_maccl_set_bandwidth() local
1396 mch = port->p_mch; in vsw_maccl_set_bandwidth()
1400 mch = vswp->mch; in vsw_maccl_set_bandwidth()
1404 if (mch == NULL) { in vsw_maccl_set_bandwidth()
1417 rv = mac_client_set_resources(mch, mrp); in vsw_maccl_set_bandwidth()