• Home
  • Raw
  • Download

Lines Matching refs:wait

1054 static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg)  in wake_page_function()  argument
1059 = container_of(wait, struct wait_page_queue, wait); in wake_page_function()
1068 flags = wait->flags; in wake_page_function()
1088 smp_store_release(&wait->flags, flags | WQ_FLAG_WOKEN); in wake_page_function()
1089 wake_up_state(wait->private, mode); in wake_page_function()
1101 list_del_init_careful(&wait->entry); in wake_page_function()
1186 struct wait_queue_entry *wait) in trylock_page_bit_common() argument
1188 if (wait->flags & WQ_FLAG_EXCLUSIVE) { in trylock_page_bit_common()
1194 wait->flags |= WQ_FLAG_WOKEN | WQ_FLAG_DONE; in trylock_page_bit_common()
1206 wait_queue_entry_t *wait = &wait_page.wait; in wait_on_page_bit_common() local
1221 init_wait(wait); in wait_on_page_bit_common()
1222 wait->func = wake_page_function; in wait_on_page_bit_common()
1227 wait->flags = 0; in wait_on_page_bit_common()
1229 wait->flags = WQ_FLAG_EXCLUSIVE; in wait_on_page_bit_common()
1231 wait->flags |= WQ_FLAG_CUSTOM; in wait_on_page_bit_common()
1250 if (!trylock_page_bit_common(page, bit_nr, wait)) in wait_on_page_bit_common()
1251 __add_wait_queue_entry_tail(q, wait); in wait_on_page_bit_common()
1277 flags = smp_load_acquire(&wait->flags); in wait_on_page_bit_common()
1303 wait->flags |= WQ_FLAG_DONE; in wait_on_page_bit_common()
1313 finish_wait(q, wait); in wait_on_page_bit_common()
1335 return wait->flags & WQ_FLAG_DONE ? 0 : -EINTR; in wait_on_page_bit_common()
1337 return wait->flags & WQ_FLAG_WOKEN ? 0 : -EINTR; in wait_on_page_bit_common()
1355 struct wait_page_queue *wait, bool set) in __wait_on_page_locked_async() argument
1360 wait->page = page; in __wait_on_page_locked_async()
1361 wait->bit_nr = PG_locked; in __wait_on_page_locked_async()
1364 __add_wait_queue_entry_tail(q, &wait->wait); in __wait_on_page_locked_async()
1377 __remove_wait_queue(q, &wait->wait); in __wait_on_page_locked_async()
1385 struct wait_page_queue *wait) in wait_on_page_locked_async() argument
1389 return __wait_on_page_locked_async(compound_head(page), wait, false); in wait_on_page_locked_async()
1562 __sched int __lock_page_async(struct page *page, struct wait_page_queue *wait) in __lock_page_async() argument
1564 return __wait_on_page_locked_async(page, wait, true); in __lock_page_async()