Lines Matching refs:maccl_rwlock
141 (type == VSW_LOCALDEV) ? rw_enter(&vswp->maccl_rwlock, RW_WRITER) :\
142 rw_enter(&port->maccl_rwlock, RW_WRITER)
145 (type == VSW_LOCALDEV) ? rw_enter(&vswp->maccl_rwlock, RW_READER) :\
146 rw_enter(&port->maccl_rwlock, RW_READER)
149 (type == VSW_LOCALDEV) ? rw_exit(&vswp->maccl_rwlock) : \
150 rw_exit(&port->maccl_rwlock)
160 * - A per port/interface RW lock(maccl_rwlock) is used protect
163 * When both mac_lock and maccl_rwlock need to be held, the
164 * mac_lock need be acquired first and then maccl_rwlock. That is,
165 * mac_lock---->maccl_rwlock
168 * within the context of maccl_rwlock. The hierarchy for this
170 * maccl_rwlock---->mca_lock
393 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock));
398 ASSERT(RW_WRITE_HELD(&portp->maccl_rwlock));
435 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock));
440 ASSERT(RW_WRITE_HELD(&portp->maccl_rwlock));
694 ASSERT(RW_WRITE_HELD(&port->maccl_rwlock));
762 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock));
836 ASSERT(RW_WRITE_HELD(&port->maccl_rwlock));
840 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock));
999 WRITE_ENTER(&portp->maccl_rwlock);
1034 RW_EXIT(&portp->maccl_rwlock);
1059 WRITE_ENTER(&vswp->maccl_rwlock);
1094 RW_EXIT(&vswp->maccl_rwlock);
1395 ASSERT(RW_WRITE_HELD(&port->maccl_rwlock));
1399 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock));