Lines Matching refs:write
28 cdr->write = cdr->base; in safexcel_init_ring_descriptors()
65 rdr->write = rdr->base; in safexcel_init_ring_descriptors()
82 void *ptr = ring->write; in safexcel_ring_next_cwptr()
87 if ((ring->write == ring->read - ring->offset) || in safexcel_ring_next_cwptr()
88 (ring->read == ring->base && ring->write == ring->base_end)) in safexcel_ring_next_cwptr()
91 if (ring->write == ring->base_end) { in safexcel_ring_next_cwptr()
92 ring->write = ring->base; in safexcel_ring_next_cwptr()
95 ring->write += ring->offset; in safexcel_ring_next_cwptr()
106 void *ptr = ring->write; in safexcel_ring_next_rwptr()
109 *rtoken = ring->write + ring->shoffset; in safexcel_ring_next_rwptr()
111 if ((ring->write == ring->read - ring->offset) || in safexcel_ring_next_rwptr()
112 (ring->read == ring->base && ring->write == ring->base_end)) in safexcel_ring_next_rwptr()
115 if (ring->write == ring->base_end) in safexcel_ring_next_rwptr()
116 ring->write = ring->base; in safexcel_ring_next_rwptr()
118 ring->write += ring->offset; in safexcel_ring_next_rwptr()
128 if (ring->write == ring->read) in safexcel_ring_next_rptr()
167 if (ring->write == ring->read) in safexcel_ring_rollback_wptr()
170 if (ring->write == ring->base) { in safexcel_ring_rollback_wptr()
171 ring->write = ring->base_end; in safexcel_ring_rollback_wptr()
174 ring->write -= ring->offset; in safexcel_ring_rollback_wptr()