Lines Matching refs:sv
56 static inline void _sv_wait(sv_t *sv, spinlock_t *lock, int state, in _sv_wait() argument
61 add_wait_queue_exclusive(&sv->waiters, &wait); in _sv_wait()
67 remove_wait_queue(&sv->waiters, &wait); in _sv_wait()
70 #define init_sv(sv,type,name,flag) \ argument
71 init_waitqueue_head(&(sv)->waiters)
72 #define sv_init(sv,flag,name) \ argument
73 init_waitqueue_head(&(sv)->waiters)
74 #define sv_destroy(sv) \ argument
76 #define sv_wait(sv, pri, lock, s) \ argument
77 _sv_wait(sv, lock, TASK_UNINTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT)
78 #define sv_wait_sig(sv, pri, lock, s) \ argument
79 _sv_wait(sv, lock, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT)
80 #define sv_timedwait(sv, pri, lock, s, svf, ts, rts) \ argument
81 _sv_wait(sv, lock, TASK_UNINTERRUPTIBLE, timespec_to_jiffies(ts))
82 #define sv_timedwait_sig(sv, pri, lock, s, svf, ts, rts) \ argument
83 _sv_wait(sv, lock, TASK_INTERRUPTIBLE, timespec_to_jiffies(ts))
84 #define sv_signal(sv) \ argument
85 wake_up(&(sv)->waiters)
86 #define sv_broadcast(sv) \ argument
87 wake_up_all(&(sv)->waiters)