return __qmgr_get_stat1(queue) & QUEUE_STAT1_NEARLY_EMPTY;
}
-/**
- * qmgr_stat_above_high_watermark() - checks if a queue is above high watermark
- * @queue: queue number
- *
- * Returns non-zero value if the queue is above high watermark
- */
-static int qmgr_stat_above_high_watermark(unsigned int queue)
-{
- BUG_ON(queue >= HALF_QUEUES);
- return __qmgr_get_stat1(queue) & QUEUE_STAT1_NEARLY_FULL;
-}
-
/**
* qmgr_stat_full() - checks if a hardware queue is full
* @queue: queue number
return __qmgr_get_stat1(queue) & QUEUE_STAT1_FULL;
}
-/**
- * qmgr_stat_underflow() - checks if a hardware queue experienced underflow
- * @queue: queue number
- *
- * Returns non-zero value if the queue experienced underflow.
- */
-static int qmgr_stat_underflow(unsigned int queue)
-{
- return __qmgr_get_stat2(queue) & QUEUE_STAT2_UNDERFLOW;
-}
-
/**
* qmgr_stat_overflow() - checks if a hardware queue experienced overflow
* @queue: queue number