Lines Matching refs:pipe
259 struct vx_pipe *pipe, int count) in vx2_dma_write() argument
262 int offset = pipe->hw_ptr; in vx2_dma_write()
272 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_write()
273 int length = pipe->buffer_bytes - offset; in vx2_dma_write()
282 pipe->hw_ptr = 0; in vx2_dma_write()
284 pipe->hw_ptr += count; in vx2_dma_write()
298 struct vx_pipe *pipe, int count) in vx2_dma_read() argument
300 int offset = pipe->hw_ptr; in vx2_dma_read()
310 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_read()
311 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
318 pipe->hw_ptr = 0; in vx2_dma_read()
320 pipe->hw_ptr += count; in vx2_dma_read()