Searched refs:hn_lock (Results 1 – 2 of 2) sorted by relevance
199 struct sx hn_lock; member
165 sx_init(&(sc)->hn_lock, device_get_nameunit((sc)->hn_dev))166 #define HN_LOCK_DESTROY(sc) sx_destroy(&(sc)->hn_lock)167 #define HN_LOCK_ASSERT(sc) sx_assert(&(sc)->hn_lock, SA_XLOCKED)170 while (sx_try_xlock(&(sc)->hn_lock) == 0) { \176 #define HN_UNLOCK(sc) sx_xunlock(&(sc)->hn_lock)