Lines Matching refs:word
21 #define __WAIT_BIT_KEY_INITIALIZER(word, bit) \ argument
22 { .flags = word, .bit_nr = bit, }
26 void __wake_up_bit(struct wait_queue_head *wq_head, void *word, int bit);
29 void wake_up_bit(void *word, int bit);
30 int out_of_line_wait_on_bit(void *word, int, wait_bit_action_f *action, unsigned int mode);
31 int out_of_line_wait_on_bit_timeout(void *word, int, wait_bit_action_f *action, unsigned int mode, …
32 int out_of_line_wait_on_bit_lock(void *word, int, wait_bit_action_f *action, unsigned int mode);
33 struct wait_queue_head *bit_waitqueue(void *word, int bit);
38 #define DEFINE_WAIT_BIT(name, word, bit) \ argument
40 .key = __WAIT_BIT_KEY_INITIALIZER(word, bit), \
71 wait_on_bit(unsigned long *word, int bit, unsigned mode) in wait_on_bit() argument
74 if (!test_bit_acquire(bit, word)) in wait_on_bit()
76 return out_of_line_wait_on_bit(word, bit, in wait_on_bit()
96 wait_on_bit_io(unsigned long *word, int bit, unsigned mode) in wait_on_bit_io() argument
99 if (!test_bit_acquire(bit, word)) in wait_on_bit_io()
101 return out_of_line_wait_on_bit(word, bit, in wait_on_bit_io()
122 wait_on_bit_timeout(unsigned long *word, int bit, unsigned mode, in wait_on_bit_timeout() argument
126 if (!test_bit_acquire(bit, word)) in wait_on_bit_timeout()
128 return out_of_line_wait_on_bit_timeout(word, bit, in wait_on_bit_timeout()
150 wait_on_bit_action(unsigned long *word, int bit, wait_bit_action_f *action, in wait_on_bit_action() argument
154 if (!test_bit_acquire(bit, word)) in wait_on_bit_action()
156 return out_of_line_wait_on_bit(word, bit, action, mode); in wait_on_bit_action()
179 wait_on_bit_lock(unsigned long *word, int bit, unsigned mode) in wait_on_bit_lock() argument
182 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock()
184 return out_of_line_wait_on_bit_lock(word, bit, bit_wait, mode); in wait_on_bit_lock()
203 wait_on_bit_lock_io(unsigned long *word, int bit, unsigned mode) in wait_on_bit_lock_io() argument
206 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock_io()
208 return out_of_line_wait_on_bit_lock(word, bit, bit_wait_io, mode); in wait_on_bit_lock_io()
229 wait_on_bit_lock_action(unsigned long *word, int bit, wait_bit_action_f *action, in wait_on_bit_lock_action() argument
233 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock_action()
235 return out_of_line_wait_on_bit_lock(word, bit, action, mode); in wait_on_bit_lock_action()
330 static inline void clear_and_wake_up_bit(int bit, void *word) in clear_and_wake_up_bit() argument
332 clear_bit_unlock(bit, word); in clear_and_wake_up_bit()
335 wake_up_bit(word, bit); in clear_and_wake_up_bit()