Searched refs:CQ_MASK (Results 1 – 1 of 1) sorted by relevance
1335 #define CQ_MASK (MAX_CIRCULAR_QUEUE_SIZE-1) macro1371 return ((cq->rear + 1) & CQ_MASK) == cq->front; in __cq_full()1380 cq->rear = (cq->rear + 1) & CQ_MASK; in __cq_enqueue()1396 cq->front = (cq->front + 1) & CQ_MASK; in __cq_dequeue()1403 return (cq->rear - cq->front) & CQ_MASK; in __cq_get_elem_count()