Lines Matching refs:x
253 #define _PROP_NOTHREAD_ONCE_DECL(x) static bool x = false; argument
254 #define _PROP_NOTHREAD_ONCE_RUN(x,f) \ argument
256 if ((x) == false) { \
258 x = true; \
275 #define _PROP_ASSERT(x) KASSERT(x) argument
300 #define _PROP_MUTEX_DECL_STATIC(x) static kmutex_t x; argument
301 #define _PROP_MUTEX_INIT(x) mutex_init(&(x),MUTEX_DEFAULT,IPL_NONE) argument
302 #define _PROP_MUTEX_LOCK(x) mutex_enter(&(x)) argument
303 #define _PROP_MUTEX_UNLOCK(x) mutex_exit(&(x)) argument
305 #define _PROP_RWLOCK_DECL(x) krwlock_t x ; argument
306 #define _PROP_RWLOCK_INIT(x) rw_init(&(x)) argument
307 #define _PROP_RWLOCK_RDLOCK(x) rw_enter(&(x), RW_READER) argument
308 #define _PROP_RWLOCK_WRLOCK(x) rw_enter(&(x), RW_WRITER) argument
309 #define _PROP_RWLOCK_UNLOCK(x) rw_exit(&(x)) argument
310 #define _PROP_RWLOCK_DESTROY(x) rw_destroy(&(x)) argument
312 #define _PROP_ONCE_DECL(x) static ONCE_DECL(x); argument
313 #define _PROP_ONCE_RUN(x,f) RUN_ONCE(&(x), f) argument
317 #define _PROP_ATOMIC_LOAD(x) atomic_load_relaxed(x) argument
318 #define _PROP_ATOMIC_INC32(x) atomic_inc_32(x) argument
319 #define _PROP_ATOMIC_DEC32(x) atomic_dec_32(x) argument
320 #define _PROP_ATOMIC_INC32_NV(x, v) v = atomic_inc_32_nv(x) argument
321 #define _PROP_ATOMIC_DEC32_NV(x, v) v = atomic_dec_32_nv(x) argument
334 #define _PROP_ASSERT(x) /* nothing */ argument
348 #define _PROP_MUTEX_DECL_STATIC(x) /* nothing */ argument
349 #define _PROP_MUTEX_INIT(x) /* nothing */ argument
350 #define _PROP_MUTEX_LOCK(x) /* nothing */ argument
351 #define _PROP_MUTEX_UNLOCK(x) /* nothing */ argument
353 #define _PROP_RWLOCK_DECL(x) /* nothing */ argument
354 #define _PROP_RWLOCK_INIT(x) /* nothing */ argument
355 #define _PROP_RWLOCK_RDLOCK(x) /* nothing */ argument
356 #define _PROP_RWLOCK_WRLOCK(x) /* nothing */ argument
357 #define _PROP_RWLOCK_UNLOCK(x) /* nothing */ argument
358 #define _PROP_RWLOCK_DESTROY(x) /* nothing */ argument
360 #define _PROP_ONCE_DECL(x) _PROP_NOTHREAD_ONCE_DECL(x) argument
361 #define _PROP_ONCE_RUN(x,f) _PROP_NOTHREAD_ONCE_RUN(x,f) argument
363 #define _PROP_ATOMIC_LOAD(x) *(x) argument
364 #define _PROP_ATOMIC_INC32(x) ++*(x) argument
365 #define _PROP_ATOMIC_DEC32(x) --*(x) argument
366 #define _PROP_ATOMIC_INC32_NV(x, v) v = ++*(x) argument
367 #define _PROP_ATOMIC_DEC32_NV(x, v) v = --*(x) argument
381 #define _PROP_ASSERT(x) /*LINTED*/assert(x) argument
402 #define _PROP_MUTEX_DECL_STATIC(x) static mutex_t x; argument
403 #define _PROP_MUTEX_INIT(x) mutex_init(&(x), NULL) argument
404 #define _PROP_MUTEX_LOCK(x) mutex_lock(&(x)) argument
405 #define _PROP_MUTEX_UNLOCK(x) mutex_unlock(&(x)) argument
407 #define _PROP_RWLOCK_DECL(x) rwlock_t x ; argument
408 #define _PROP_RWLOCK_INIT(x) rwlock_init(&(x), NULL) argument
409 #define _PROP_RWLOCK_RDLOCK(x) rwlock_rdlock(&(x)) argument
410 #define _PROP_RWLOCK_WRLOCK(x) rwlock_wrlock(&(x)) argument
411 #define _PROP_RWLOCK_UNLOCK(x) rwlock_unlock(&(x)) argument
412 #define _PROP_RWLOCK_DESTROY(x) rwlock_destroy(&(x)) argument
414 #define _PROP_ONCE_DECL(x) \ argument
415 static pthread_once_t x = PTHREAD_ONCE_INIT;
416 #define _PROP_ONCE_RUN(x,f) thr_once(&(x), (void(*)(void))f); argument
418 #define _PROP_ATOMIC_LOAD(x) *(x) argument
419 #define _PROP_ATOMIC_INC32(x) atomic_inc_32(x) argument
420 #define _PROP_ATOMIC_DEC32(x) atomic_dec_32(x) argument
421 #define _PROP_ATOMIC_INC32_NV(x, v) v = atomic_inc_32_nv(x) argument
422 #define _PROP_ATOMIC_DEC32_NV(x, v) v = atomic_dec_32_nv(x) argument
430 #define _PROP_MUTEX_DECL_STATIC(x) /* nothing */ argument
431 #define _PROP_MUTEX_INIT(x) /* nothing */ argument
432 #define _PROP_MUTEX_LOCK(x) /* nothing */ argument
433 #define _PROP_MUTEX_UNLOCK(x) /* nothing */ argument
435 #define _PROP_RWLOCK_DECL(x) /* nothing */ argument
436 #define _PROP_RWLOCK_INIT(x) /* nothing */ argument
437 #define _PROP_RWLOCK_RDLOCK(x) /* nothing */ argument
438 #define _PROP_RWLOCK_WRLOCK(x) /* nothing */ argument
439 #define _PROP_RWLOCK_UNLOCK(x) /* nothing */ argument
440 #define _PROP_RWLOCK_DESTROY(x) /* nothing */ argument
442 #define _PROP_ONCE_DECL(x) _PROP_NOTHREAD_ONCE_DECL(x) argument
443 #define _PROP_ONCE_RUN(x,f) _PROP_NOTHREAD_ONCE_RUN(x,f) argument
445 #define _PROP_ATOMIC_LOAD(x) *(x) argument
446 #define _PROP_ATOMIC_INC32(x) ++*(x) argument
447 #define _PROP_ATOMIC_DEC32(x) --*(x) argument
448 #define _PROP_ATOMIC_INC32_NV(x, v) v = ++*(x) argument
449 #define _PROP_ATOMIC_DEC32_NV(x, v) v = --*(x) argument
456 #define _PROP_MUTEX_DECL_STATIC(x) static pthread_mutex_t x; argument
457 #define _PROP_MUTEX_INIT(x) pthread_mutex_init(&(x), NULL) argument
458 #define _PROP_MUTEX_LOCK(x) pthread_mutex_lock(&(x)) argument
459 #define _PROP_MUTEX_UNLOCK(x) pthread_mutex_unlock(&(x)) argument
461 #define _PROP_RWLOCK_DECL(x) pthread_rwlock_t x ; argument
462 #define _PROP_RWLOCK_INIT(x) pthread_rwlock_init(&(x), NULL) argument
463 #define _PROP_RWLOCK_RDLOCK(x) pthread_rwlock_rdlock(&(x)) argument
464 #define _PROP_RWLOCK_WRLOCK(x) pthread_rwlock_wrlock(&(x)) argument
465 #define _PROP_RWLOCK_UNLOCK(x) pthread_rwlock_unlock(&(x)) argument
466 #define _PROP_RWLOCK_DESTROY(x) pthread_rwlock_destroy(&(x)) argument
468 #define _PROP_ONCE_DECL(x) \ argument
469 static pthread_once_t x = PTHREAD_ONCE_INIT;
470 #define _PROP_ONCE_RUN(x,f) pthread_once(&(x),(void(*)(void))f) argument
474 #define _PROP_ATOMIC_LOAD(x) *(x) argument
476 #define _PROP_ATOMIC_INC32(x) \ argument
479 (*(x))++; \
483 #define _PROP_ATOMIC_DEC32(x) \ argument
486 (*(x))--; \
490 #define _PROP_ATOMIC_INC32_NV(x, v) \ argument
493 v = ++(*(x)); \
497 #define _PROP_ATOMIC_DEC32_NV(x, v) \ argument
500 v = --(*(x)); \
522 #define _PROP_UNCONST(x) __UNCONST(x) argument
526 #define _PROP_UNCONST(x) ((void *)(unsigned long)(const void *)(x)) argument