Lines Matching refs:prod
97 u32 prod; in queue_get_producer() local
102 prod = smp_load_acquire(&q->buf->producer_index); in queue_get_producer()
105 prod = q->index; in queue_get_producer()
109 prod = smp_load_acquire(&q->buf->producer_index); in queue_get_producer()
112 prod = q->buf->producer_index; in queue_get_producer()
116 return prod; in queue_get_producer()
146 u32 prod = queue_get_producer(q, type); in queue_empty() local
149 return ((prod - cons) & q->index_mask) == 0; in queue_empty()
154 u32 prod = queue_get_producer(q, type); in queue_full() local
157 return ((prod + 1 - cons) & q->index_mask) == 0; in queue_full()
163 u32 prod = queue_get_producer(q, type); in queue_count() local
166 return (prod - cons) & q->index_mask; in queue_count()
172 u32 prod; in queue_advance_producer() local
180 prod = q->index; in queue_advance_producer()
181 prod = (prod + 1) & q->index_mask; in queue_advance_producer()
182 q->index = prod; in queue_advance_producer()
184 smp_store_release(&q->buf->producer_index, prod); in queue_advance_producer()
191 prod = q->buf->producer_index; in queue_advance_producer()
192 prod = (prod + 1) & q->index_mask; in queue_advance_producer()
193 q->buf->producer_index = prod; in queue_advance_producer()
230 u32 prod = queue_get_producer(q, type); in queue_producer_addr() local
232 return q->buf->data + (prod << q->log2_elem_size); in queue_producer_addr()