Lines Matching refs:mutex_lockw

84 	if (set_lock_byte(&stall_mutex.mutex_lockw))
419 if (set_lock_byte(&mp->mutex_lockw) == 0) {
428 set_lock_byte(&mp->mutex_lockw) == 0) {
438 set_lock_byte(&mp->mutex_lockw) == 0) {
1252 volatile uint8_t *lockp = (volatile uint8_t *)&mp->mutex_lockw;
1413 lockp = (volatile uint8_t *)&mp->mutex_lockw;
1475 if (set_lock_byte(&mp->mutex_lockw) == 0) {
1512 set_lock_byte(&mp->mutex_lockw) == 0) {
1551 if (set_lock_byte(&mp->mutex_lockw) == 0) {
1778 * We failed set_lock_byte(&mp->mutex_lockw) before coming here.
1814 if (set_lock_byte(&mp->mutex_lockw) == 0) {
1843 if (set_lock_byte(&mp->mutex_lockw) == 0) {
2109 mp->mutex_lockw = LOCKSET;
2114 mp->mutex_lockw = LOCKSET;
2193 if (set_lock_byte(&mp->mutex_lockw) == 0) {
2251 if (mp->mutex_lockw == 0) {
2253 mp->mutex_lockw = LOCKSET;
2291 if (set_lock_byte(&mp->mutex_lockw) == 0) {
2395 if (mp->mutex_lockw == 0) {
2397 mp->mutex_lockw = LOCKSET;
2419 if (set_lock_byte(&mp->mutex_lockw) == 0) {
2479 mp->mutex_lockw = LOCKCLEAR;
2644 ASSERT(mp->mutex_lockw == 0);
2645 mp->mutex_lockw = LOCKSET;
2654 if (set_lock_byte(&mp->mutex_lockw) == 0) {
2828 * mutex_lockw
2831 * This relies on the fact that everywhere mutex_lockw is cleared,
2832 * mutex_owner and mutex_ownerpid are cleared before mutex_lockw
2833 * is cleared, and that everywhere mutex_lockw is set, mutex_owner
2834 * and mutex_ownerpid are set after mutex_lockw is set, and that
2835 * mutex_lockw is set or cleared with a memory barrier.
2934 if (set_lock_byte(&mp->mutex_lockw) != 0)
2951 volatile uint8_t *lockp = (volatile uint8_t *)&mp->mutex_lockw;
3367 mp->mutex_lockw = LOCKCLEAR;