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;
205 WRITE_ENTER(&portp->maccl_rwlock);
206 rv = mac_share_bind(portp->p_mch, ldc_id, &vsharep->vs_cookie);
207 RW_EXIT(&portp->maccl_rwlock);
215 portp->p_macaddr.ether_addr_octet);
274 * vsw_hio_find_vshare_port -- Given portp, find the corresponding
278 vsw_hio_find_vshare_port(vsw_t *vswp, vsw_port_t *portp)
284 D1(vswp, "%s:enter, portp=0x%p", __func__, portp);
290 if (vsharep->vs_portp == portp) {
307 vsw_port_t *portp = vsharep->vs_portp;
311 WRITE_ENTER(&portp->maccl_rwlock);
312 mac_share_unbind(portp->p_mch);
313 RW_EXIT(&portp->maccl_rwlock);
470 vsw_port_t *portp;
478 for (portp = plist->head; portp != NULL; portp = portp->p_next) {
479 if ((portp->p_hio_enabled == B_FALSE) ||
480 (portp->p_hio_capable == B_FALSE)) {
486 vsharep = vsw_hio_find_vshare_port(vswp, portp);
494 vsw_hio_port_reset(portp, B_FALSE);
586 vsw_port_t *portp;
596 portp = vsharep->vs_portp;
597 if (portp == NULL) {
602 ldcp = portp->ldcp;
766 vsw_hio_port_update(vsw_port_t *portp, boolean_t hio_enabled)
769 if (portp->p_hio_enabled == hio_enabled) {
775 vsw_hio_stop_port(portp);
776 portp->p_hio_enabled = B_FALSE;
778 vsw_port_mac_reconfig(portp, B_FALSE, 0, NULL, 0);
780 portp->p_hio_enabled = B_TRUE;
781 vsw_port_mac_reconfig(portp, B_FALSE, 0, NULL, 0);
784 vsw_hio_port_reset(portp, B_FALSE);
794 vsw_hio_stop_port(vsw_port_t *portp)
796 vsw_t *vswp = portp->p_vswp;
808 vsharep = vsw_hio_find_vshare_port(vswp, portp);
839 if ((vsharep->vs_portp != portp) ||
854 if ((vsharep->vs_portp != portp) ||