Lines Matching refs:consumer
270 if (idx != le32_to_cpu(*(q->headers.consumer))) {
277 if (idx != le32_to_cpu(*(q->headers.consumer)))
289 if ((*index + 1) == le32_to_cpu(*(q->headers.consumer))) { /* Queue is full */
543 * we are a consumer of, and return the address of the queue entry. It does
551 if (le32_to_cpu(*q->headers.producer) == le32_to_cpu(*q->headers.consumer)) {
555 * The consumer index must be wrapped if we have reached
559 if (le32_to_cpu(*q->headers.consumer) >= q->entries)
562 index = le32_to_cpu(*q->headers.consumer);
570 * aac_consumer_free - free consumer entry
575 * Frees up the current top of the queue we are a consumer of. If the
584 if ((le32_to_cpu(*q->headers.producer)+1) == le32_to_cpu(*q->headers.consumer))
587 if (le32_to_cpu(*q->headers.consumer) >= q->entries)
588 *q->headers.consumer = cpu_to_le32(1);
590 *q->headers.consumer = cpu_to_le32(le32_to_cpu(*q->headers.consumer)+1);