Lines Matching refs:sbq_wait
665 struct sbq_wait *sbq_wait) in sbitmap_add_wait_queue() argument
667 if (!sbq_wait->sbq) { in sbitmap_add_wait_queue()
668 sbq_wait->sbq = sbq; in sbitmap_add_wait_queue()
670 add_wait_queue(&ws->wait, &sbq_wait->wait); in sbitmap_add_wait_queue()
675 void sbitmap_del_wait_queue(struct sbq_wait *sbq_wait) in sbitmap_del_wait_queue() argument
677 list_del_init(&sbq_wait->wait.entry); in sbitmap_del_wait_queue()
678 if (sbq_wait->sbq) { in sbitmap_del_wait_queue()
679 atomic_dec(&sbq_wait->sbq->ws_active); in sbitmap_del_wait_queue()
680 sbq_wait->sbq = NULL; in sbitmap_del_wait_queue()
687 struct sbq_wait *sbq_wait, int state) in sbitmap_prepare_to_wait() argument
689 if (!sbq_wait->sbq) { in sbitmap_prepare_to_wait()
691 sbq_wait->sbq = sbq; in sbitmap_prepare_to_wait()
693 prepare_to_wait_exclusive(&ws->wait, &sbq_wait->wait, state); in sbitmap_prepare_to_wait()
698 struct sbq_wait *sbq_wait) in sbitmap_finish_wait() argument
700 finish_wait(&ws->wait, &sbq_wait->wait); in sbitmap_finish_wait()
701 if (sbq_wait->sbq) { in sbitmap_finish_wait()
703 sbq_wait->sbq = NULL; in sbitmap_finish_wait()