Lines Matching refs:vs
465 #define VSCLSIZE(vs) (1UL << (vs)->vs_clshift)
538 #define CLMAP_SHIFT(clm,vs) \
539 (clm)->cl_bmap.clb_map >>= (VSCLSIZE(vs) - (clm)->cl_numpages)
540 #define CLMAP_SHIFTALLOC(clm,vs) \
541 (clm)->cl_alloc.clb_map >>= (VSCLSIZE(vs) - (clm)->cl_numpages)
545 struct vstruct *vs;
554 #define VS_LOCK_INIT(vs) hw_lock_init(&(vs)->vs_lock)
555 #define VS_TRY_LOCK(vs) (VS_LOCK(vs),TRUE)
556 #define VS_LOCK(vs) hw_lock_lock(&(vs)->vs_lock)
557 #define VS_UNLOCK(vs) hw_lock_unlock(&(vs)->vs_lock)
559 #define VS_MAP_LOCK_INIT(vs) mutex_init(&(vs)->vs_map_lock, 0)
560 #define VS_MAP_LOCK(vs) mutex_lock(&(vs)->vs_map_lock)
561 #define VS_MAP_TRY_LOCK(vs) mutex_try(&(vs)->vs_map_lock)
562 #define VS_MAP_UNLOCK(vs) mutex_unlock(&(vs)->vs_map_lock)
565 #define VS_LOCK_INIT(vs) mutex_init(&(vs)->vs_lock, 0)
566 #define VS_TRY_LOCK(vs) mutex_try(&(vs)->vs_lock)
567 #define VS_LOCK(vs) mutex_lock(&(vs)->vs_lock)
568 #define VS_UNLOCK(vs) mutex_unlock(&(vs)->vs_lock)
570 #define VS_MAP_LOCK_INIT(vs) mutex_init(&(vs)->vs_map_lock)
571 #define VS_MAP_LOCK(vs) mutex_lock(&(vs)->vs_map_lock)
572 #define VS_MAP_TRY_LOCK(vs) mutex_try(&(vs)->vs_map_lock)
573 #define VS_MAP_UNLOCK(vs) mutex_unlock(&(vs)->vs_map_lock)
650 #define vs_lock(vs)
651 #define vs_unlock(vs)
652 #define vs_start_read(vs)
653 #define vs_wait_for_readers(vs)
654 #define vs_finish_read(vs)
655 #define vs_start_write(vs)
656 #define vs_wait_for_writers(vs)
657 #define vs_wait_for_sync_writers(vs)
658 #define vs_finish_write(vs)
709 __private_extern__ void vstruct_list_insert(vstruct_t vs);
710 __private_extern__ void vstruct_list_delete(vstruct_t vs);