Searched refs:maccl_rwlock (Results 1 - 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_phys.c141 (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
[all...]
H A Dvsw_hio.c116 * - The 'port->maccl_rwlock' is used to synchronize only the
121 * acquired first and then the ports mac client lock(maccl_rwlock)
205 WRITE_ENTER(&portp->maccl_rwlock);
207 RW_EXIT(&portp->maccl_rwlock);
311 WRITE_ENTER(&portp->maccl_rwlock);
313 RW_EXIT(&portp->maccl_rwlock);
H A Dvsw.c620 rw_init(&vswp->maccl_rwlock, NULL, RW_DRIVER, NULL);
906 rw_destroy(&vswp->maccl_rwlock);
H A Dvsw_ldc.c352 rw_init(&port->maccl_rwlock, NULL, RW_DRIVER, NULL);
411 rw_destroy(&port->maccl_rwlock);
536 rw_destroy(&port->maccl_rwlock);
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvsw.h155 krwlock_t maccl_rwlock; /* protect fields below */ member in struct:vsw
H A Dvsw_ldc.h414 krwlock_t maccl_rwlock; /* protect fields below */ member in struct:vsw_port

Completed in 78 milliseconds