Lines Matching full:scratch
96 dma_addr_t addr = csi->scratch.paddr; in sun4i_csi_setup_scratch_buffer()
100 "No more available buffer, using the scratch buffer\n"); in sun4i_csi_setup_scratch_buffer()
165 dev_dbg(csi->dev, "Scratch buffer was used, ignoring..\n"); in sun4i_csi_buffer_mark_done()
245 * We need a scratch buffer in case where we'll not have any in sun4i_csi_start_streaming()
255 csi->scratch.size = 0; in sun4i_csi_start_streaming()
257 csi->scratch.size += csi->fmt.plane_fmt[i].sizeimage; in sun4i_csi_start_streaming()
259 csi->scratch.vaddr = dma_alloc_coherent(csi->dev, in sun4i_csi_start_streaming()
260 csi->scratch.size, in sun4i_csi_start_streaming()
261 &csi->scratch.paddr, in sun4i_csi_start_streaming()
263 if (!csi->scratch.vaddr) { in sun4i_csi_start_streaming()
264 dev_err(csi->dev, "Failed to allocate scratch buffer\n"); in sun4i_csi_start_streaming()
336 dma_free_coherent(csi->dev, csi->scratch.size, csi->scratch.vaddr, in sun4i_csi_start_streaming()
337 csi->scratch.paddr); in sun4i_csi_start_streaming()
364 dma_free_coherent(csi->dev, csi->scratch.size, csi->scratch.vaddr, in sun4i_csi_stop_streaming()
365 csi->scratch.paddr); in sun4i_csi_stop_streaming()