Lines Matching refs:wq_element
489 wait_queue_element_t wq_element;
497 wq_element = (wait_queue_element_t) queue_first(q);
498 while (!queue_end(q, (queue_entry_t)wq_element)) {
499 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
500 if ((wq_element->wqe_type == WAIT_QUEUE_LINK) ||
501 (wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC)) {
502 wait_queue_link_t wql = (wait_queue_link_t)wq_element;
507 wq_element = (wait_queue_element_t)
508 queue_next((queue_t) wq_element);
559 wait_queue_element_t wq_element;
574 wq_element = (wait_queue_element_t) queue_first(q);
575 while (!queue_end(q, (queue_entry_t)wq_element)) {
576 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
577 if ((wq_element->wqe_type == WAIT_QUEUE_LINK ||
578 wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) &&
579 ((wait_queue_link_t)wq_element)->wql_setqueue == wq_set) {
584 wq_element = (wait_queue_element_t)
585 queue_next((queue_t) wq_element);
722 wait_queue_element_t wq_element;
734 wq_element = (wait_queue_element_t) queue_first(q);
735 while (!queue_end(q, (queue_entry_t)wq_element)) {
736 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
737 if (wq_element->wqe_type == WAIT_QUEUE_LINK ||
738 wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) {
740 wql = (wait_queue_link_t)wq_element;
753 wq_element = (wait_queue_element_t)
754 queue_next((queue_t) wq_element);
774 wait_queue_element_t wq_element;
786 wq_element = (wait_queue_element_t) queue_first(q);
787 while (!queue_end(q, (queue_entry_t)wq_element)) {
788 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
789 if (wq_element->wqe_type == WAIT_QUEUE_LINK ||
790 wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) {
792 wql = (wait_queue_link_t)wq_element;
808 wq_element = (wait_queue_element_t)
809 queue_next((queue_t) wq_element);
831 wait_queue_element_t wq_element;
839 wq_element = (wait_queue_element_t) queue_first(q);
840 while (!queue_end(q, (queue_entry_t)wq_element)) {
842 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
844 queue_next((queue_t) wq_element);
846 if (wq_element->wqe_type == WAIT_QUEUE_LINK ||
847 wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) {
848 wql = (wait_queue_link_t)wq_element;
855 wq_element = wq_next_element;
903 wait_queue_element_t wq_element;
911 wq_element = (wait_queue_element_t) queue_first(q);
912 while (!queue_end(q, (queue_entry_t)wq_element)) {
915 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
917 queue_next((queue_t) wq_element);
919 alloced = (wq_element->wqe_type == WAIT_QUEUE_LINK);
920 if (alloced || wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) {
921 wql = (wait_queue_link_t)wq_element;
929 wq_element = wq_next_element;
1311 wait_queue_element_t wq_element;
1317 wq_element = (wait_queue_element_t) queue_first(q);
1318 while (!queue_end(q, (queue_entry_t)wq_element)) {
1319 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
1321 queue_next((queue_t) wq_element);
1326 if (wq_element->wqe_type == WAIT_QUEUE_LINK ||
1327 wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) {
1328 wait_queue_link_t wql = (wait_queue_link_t)wq_element;
1351 thread_t t = (thread_t)wq_element;
1363 wq_element = wqe_next;
1508 wait_queue_element_t wq_element;
1515 wq_element = (wait_queue_element_t) queue_first(q);
1516 while (!queue_end(q, (queue_entry_t)wq_element)) {
1517 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
1519 queue_next((queue_t) wq_element);
1524 if (wq_element->wqe_type == WAIT_QUEUE_LINK ||
1525 wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) {
1526 wait_queue_link_t wql = (wait_queue_link_t)wq_element;
1559 t = (thread_t)wq_element;
1571 wq_element = wqe_next;
1627 wait_queue_element_t wq_element;
1648 wq_element = (wait_queue_element_t) queue_first(q);
1649 while (!queue_end(q, (queue_entry_t)wq_element)) {
1650 WAIT_QUEUE_ELEMENT_CHECK(wq, wq_element);
1652 queue_next((queue_t) wq_element);
1654 if (wq_element->wqe_type == WAIT_QUEUE_LINK ||
1655 wq_element->wqe_type == WAIT_QUEUE_LINK_NOALLOC) {
1656 wait_queue_link_t wql = (wait_queue_link_t)wq_element;
1669 wq_element = wqe_next;