Lines Matching refs:pipe
246 struct vx_pipe *pipe, int count) in vx2_dma_write() argument
249 int offset = pipe->hw_ptr; in vx2_dma_write()
259 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_write()
260 int length = pipe->buffer_bytes - offset; in vx2_dma_write()
269 pipe->hw_ptr = 0; in vx2_dma_write()
271 pipe->hw_ptr += count; in vx2_dma_write()
285 struct vx_pipe *pipe, int count) in vx2_dma_read() argument
287 int offset = pipe->hw_ptr; in vx2_dma_read()
297 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_read()
298 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
305 pipe->hw_ptr = 0; in vx2_dma_read()
307 pipe->hw_ptr += count; in vx2_dma_read()