Lines Matching refs:index_mask
63 u32 index_mask; member
91 return (index + 1) & q->index_mask; in queue_next_index()
149 return ((prod - cons) & q->index_mask) == 0; in queue_empty()
157 return ((prod + 1 - cons) & q->index_mask) == 0; in queue_full()
166 return (prod - cons) & q->index_mask; in queue_count()
181 prod = (prod + 1) & q->index_mask; in queue_advance_producer()
192 prod = (prod + 1) & q->index_mask; in queue_advance_producer()
206 cons = (cons + 1) & q->index_mask; in queue_advance_consumer()
217 cons = (cons + 1) & q->index_mask; in queue_advance_consumer()
245 return q->buf->data + ((index & q->index_mask) in queue_addr_from_index()
253 & q->index_mask; in queue_index_from_addr()