Lines Matching full:bitstream
156 (rd_ptr - ctx->bitstream.paddr); in coda_kfifo_sync_from_device()
167 rd_ptr = ctx->bitstream.paddr + (kfifo->out & kfifo->mask); in coda_kfifo_sync_to_device_full()
169 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_full()
179 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_write()
211 v4l2_err(&ctx->dev->v4l2_dev, "failed to flush bitstream\n"); in coda_bitstream_flush()
215 kfifo_init(&ctx->bitstream_fifo, ctx->bitstream.vaddr, in coda_bitstream_flush()
216 ctx->bitstream.size); in coda_bitstream_flush()
259 ctx->bitstream.size) in coda_bitstream_try_queue()
286 "bitstream buffer overflow\n"); in coda_bitstream_try_queue()
305 v4l2_err(&ctx->dev->v4l2_dev, "bitstream buffer overflow\n"); in coda_bitstream_try_queue()
334 * Only queue two JPEGs into the bitstream buffer to keep in coda_fill_bitstream()
336 * header of another buffer (for prescan) in the bitstream. in coda_fill_bitstream()
350 * conservative estimate for this) and the bitstream in coda_fill_bitstream()
393 * Source buffer is queued in the bitstream ringbuffer; in coda_fill_bitstream()
1729 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_seq_end_work()
1766 if (ctx->bitstream.vaddr) in coda_alloc_bitstream_buffer()
1769 ctx->bitstream.size = roundup_pow_of_two(q_data->sizeimage * 2); in coda_alloc_bitstream_buffer()
1770 ctx->bitstream.vaddr = dma_alloc_wc(ctx->dev->dev, ctx->bitstream.size, in coda_alloc_bitstream_buffer()
1771 &ctx->bitstream.paddr, GFP_KERNEL); in coda_alloc_bitstream_buffer()
1772 if (!ctx->bitstream.vaddr) { in coda_alloc_bitstream_buffer()
1774 "failed to allocate bitstream ringbuffer"); in coda_alloc_bitstream_buffer()
1778 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_alloc_bitstream_buffer()
1785 if (ctx->bitstream.vaddr == NULL) in coda_free_bitstream_buffer()
1788 dma_free_wc(ctx->dev->dev, ctx->bitstream.size, ctx->bitstream.vaddr, in coda_free_bitstream_buffer()
1789 ctx->bitstream.paddr); in coda_free_bitstream_buffer()
1790 ctx->bitstream.vaddr = NULL; in coda_free_bitstream_buffer()
1864 bitstream_buf = ctx->bitstream.paddr; in __coda_decoder_seq_init()
1865 bitstream_size = ctx->bitstream.size; in __coda_decoder_seq_init()
1869 /* Update coda bitstream read and write pointers from kfifo */ in __coda_decoder_seq_init()
1932 /* Update kfifo out pointer from coda bitstream read pointer */ in __coda_decoder_seq_init()
2152 /* Try to copy source buffer contents into the bitstream ringbuffer */ in coda_prepare_decode()
2159 coda_dbg(1, ctx, "bitstream payload: %d, skipping\n", in coda_prepare_decode()
2249 /* If this is the last buffer in the bitstream, add padding */ in coda_prepare_decode()
2299 /* Update kfifo out pointer from coda bitstream read pointer */ in coda_finish_decode()
2307 if (coda_get_bitstream_payload(ctx) >= ctx->bitstream.size - 512) in coda_finish_decode()
2309 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_finish_decode()
2373 /* not enough bitstream data */ in coda_finish_decode()
2563 * The current decode run might have brought the bitstream fill level in coda_finish_decode()
2566 * blocked, we can't rely on the next qbuf to trigger the bitstream in coda_finish_decode()
2567 * refill. Check if we have data to refill the bitstream now. in coda_finish_decode()