Lines Matching refs:bit

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, unsigned long *word, int bit);
29 void wake_up_bit(unsigned long *word, int bit);
33 struct wait_queue_head *bit_waitqueue(unsigned long *word, int bit);
38 #define DEFINE_WAIT_BIT(name, word, bit) \ argument
40 .key = __WAIT_BIT_KEY_INITIALIZER(word, bit), \
72 wait_on_bit(unsigned long *word, int bit, unsigned mode) in wait_on_bit() argument
75 if (!test_bit_acquire(bit, word)) in wait_on_bit()
77 return out_of_line_wait_on_bit(word, bit, in wait_on_bit()
100 wait_on_bit_io(unsigned long *word, int bit, unsigned mode) in wait_on_bit_io() argument
103 if (!test_bit_acquire(bit, word)) in wait_on_bit_io()
105 return out_of_line_wait_on_bit(word, bit, in wait_on_bit_io()
131 wait_on_bit_timeout(unsigned long *word, int bit, unsigned mode, in wait_on_bit_timeout() argument
135 if (!test_bit_acquire(bit, word)) in wait_on_bit_timeout()
137 return out_of_line_wait_on_bit_timeout(word, bit, in wait_on_bit_timeout()
161 wait_on_bit_action(unsigned long *word, int bit, wait_bit_action_f *action, in wait_on_bit_action() argument
165 if (!test_bit_acquire(bit, word)) in wait_on_bit_action()
167 return out_of_line_wait_on_bit(word, bit, action, mode); in wait_on_bit_action()
189 wait_on_bit_lock(unsigned long *word, int bit, unsigned mode) in wait_on_bit_lock() argument
192 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock()
194 return out_of_line_wait_on_bit_lock(word, bit, bit_wait, mode); in wait_on_bit_lock()
216 wait_on_bit_lock_io(unsigned long *word, int bit, unsigned mode) in wait_on_bit_lock_io() argument
219 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock_io()
221 return out_of_line_wait_on_bit_lock(word, bit, bit_wait_io, mode); in wait_on_bit_lock_io()
240 wait_on_bit_lock_action(unsigned long *word, int bit, wait_bit_action_f *action, in wait_on_bit_lock_action() argument
244 if (!test_and_set_bit(bit, word)) in wait_on_bit_lock_action()
246 return out_of_line_wait_on_bit_lock(word, bit, action, mode); in wait_on_bit_lock_action()
550 static inline void clear_and_wake_up_bit(int bit, unsigned long *word) in clear_and_wake_up_bit() argument
552 clear_bit_unlock(bit, word); in clear_and_wake_up_bit()
555 wake_up_bit(word, bit); in clear_and_wake_up_bit()
571 static inline bool test_and_clear_wake_up_bit(int bit, unsigned long *word) in test_and_clear_wake_up_bit() argument
573 if (!test_and_clear_bit(bit, word)) in test_and_clear_wake_up_bit()
576 wake_up_bit(word, bit); in test_and_clear_wake_up_bit()