Lines Matching refs:QP
1908 #define QUEUE_ACTIVE(QP) ((QP)->q_flags & OP_PENDING)
1911 #define HEAD_IS_READER(QP) NGI_QUEUED_READER(STAILQ_FIRST(&(QP)->queue))
1912 #define HEAD_IS_WRITER(QP) NGI_QUEUED_WRITER(STAILQ_FIRST(&(QP)->queue)) /* notused */
1915 #define QUEUED_READER_CAN_PROCEED(QP) \
1916 (((QP)->q_flags & (NGQ_RMASK & ~OP_PENDING)) == 0)
1917 #define QUEUED_WRITER_CAN_PROCEED(QP) \
1918 (((QP)->q_flags & (NGQ_WMASK & ~OP_PENDING)) == 0)
1921 #define NEXT_QUEUED_ITEM_CAN_PROCEED(QP) \
1922 ((HEAD_IS_READER(QP)) ? QUEUED_READER_CAN_PROCEED(QP) : \
1923 QUEUED_WRITER_CAN_PROCEED(QP))