Lines Matching refs:sbq_wait
729 struct sbq_wait *sbq_wait) in sbitmap_add_wait_queue() argument
731 if (!sbq_wait->sbq) { in sbitmap_add_wait_queue()
732 sbq_wait->sbq = sbq; in sbitmap_add_wait_queue()
734 add_wait_queue(&ws->wait, &sbq_wait->wait); in sbitmap_add_wait_queue()
739 void sbitmap_del_wait_queue(struct sbq_wait *sbq_wait) in sbitmap_del_wait_queue() argument
741 list_del_init(&sbq_wait->wait.entry); in sbitmap_del_wait_queue()
742 if (sbq_wait->sbq) { in sbitmap_del_wait_queue()
743 atomic_dec(&sbq_wait->sbq->ws_active); in sbitmap_del_wait_queue()
744 sbq_wait->sbq = NULL; in sbitmap_del_wait_queue()
751 struct sbq_wait *sbq_wait, int state) in sbitmap_prepare_to_wait() argument
753 if (!sbq_wait->sbq) { in sbitmap_prepare_to_wait()
755 sbq_wait->sbq = sbq; in sbitmap_prepare_to_wait()
757 prepare_to_wait_exclusive(&ws->wait, &sbq_wait->wait, state); in sbitmap_prepare_to_wait()
762 struct sbq_wait *sbq_wait) in sbitmap_finish_wait() argument
764 finish_wait(&ws->wait, &sbq_wait->wait); in sbitmap_finish_wait()
765 if (sbq_wait->sbq) { in sbitmap_finish_wait()
767 sbq_wait->sbq = NULL; in sbitmap_finish_wait()