Lines Matching refs:portp
83 extern void vsw_hio_port_reset(vsw_port_t *portp, boolean_t immediate);
84 extern void vsw_port_mac_reconfig(vsw_port_t *portp, boolean_t update_vlans,
94 void vsw_hio_stop_port(vsw_port_t *portp);
102 static vsw_share_t *vsw_hio_find_vshare_port(vsw_t *vswp, vsw_port_t *portp);
194 vsw_port_t *portp = ldcp->ldc_port; in vsw_hio_alloc_share() local
205 WRITE_ENTER(&portp->maccl_rwlock); in vsw_hio_alloc_share()
206 rv = mac_share_bind(portp->p_mch, ldc_id, &vsharep->vs_cookie); in vsw_hio_alloc_share()
207 RW_EXIT(&portp->maccl_rwlock); in vsw_hio_alloc_share()
215 portp->p_macaddr.ether_addr_octet); in vsw_hio_alloc_share()
278 vsw_hio_find_vshare_port(vsw_t *vswp, vsw_port_t *portp) in vsw_hio_find_vshare_port() argument
284 D1(vswp, "%s:enter, portp=0x%p", __func__, portp); in vsw_hio_find_vshare_port()
290 if (vsharep->vs_portp == portp) { in vsw_hio_find_vshare_port()
307 vsw_port_t *portp = vsharep->vs_portp; in vsw_hio_free_share() local
311 WRITE_ENTER(&portp->maccl_rwlock); in vsw_hio_free_share()
312 mac_share_unbind(portp->p_mch); in vsw_hio_free_share()
313 RW_EXIT(&portp->maccl_rwlock); in vsw_hio_free_share()
470 vsw_port_t *portp; in vsw_hio_start_ports() local
478 for (portp = plist->head; portp != NULL; portp = portp->p_next) { in vsw_hio_start_ports()
479 if ((portp->p_hio_enabled == B_FALSE) || in vsw_hio_start_ports()
480 (portp->p_hio_capable == B_FALSE)) { in vsw_hio_start_ports()
486 vsharep = vsw_hio_find_vshare_port(vswp, portp); in vsw_hio_start_ports()
494 vsw_hio_port_reset(portp, B_FALSE); in vsw_hio_start_ports()
586 vsw_port_t *portp; in vsw_hio_send_delshare_msg() local
596 portp = vsharep->vs_portp; in vsw_hio_send_delshare_msg()
597 if (portp == NULL) { in vsw_hio_send_delshare_msg()
602 ldcp = portp->ldcp; in vsw_hio_send_delshare_msg()
766 vsw_hio_port_update(vsw_port_t *portp, boolean_t hio_enabled) in vsw_hio_port_update() argument
769 if (portp->p_hio_enabled == hio_enabled) { in vsw_hio_port_update()
775 vsw_hio_stop_port(portp); in vsw_hio_port_update()
776 portp->p_hio_enabled = B_FALSE; in vsw_hio_port_update()
778 vsw_port_mac_reconfig(portp, B_FALSE, 0, NULL, 0); in vsw_hio_port_update()
780 portp->p_hio_enabled = B_TRUE; in vsw_hio_port_update()
781 vsw_port_mac_reconfig(portp, B_FALSE, 0, NULL, 0); in vsw_hio_port_update()
784 vsw_hio_port_reset(portp, B_FALSE); in vsw_hio_port_update()
794 vsw_hio_stop_port(vsw_port_t *portp) in vsw_hio_stop_port() argument
796 vsw_t *vswp = portp->p_vswp; in vsw_hio_stop_port()
808 vsharep = vsw_hio_find_vshare_port(vswp, portp); in vsw_hio_stop_port()
839 if ((vsharep->vs_portp != portp) || in vsw_hio_stop_port()
854 if ((vsharep->vs_portp != portp) || in vsw_hio_stop_port()