Lines Matching full:bitstream
157 (rd_ptr - ctx->bitstream.paddr); in coda_kfifo_sync_from_device()
168 rd_ptr = ctx->bitstream.paddr + (kfifo->out & kfifo->mask); in coda_kfifo_sync_to_device_full()
170 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_full()
180 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_write()
212 v4l2_err(&ctx->dev->v4l2_dev, "failed to flush bitstream\n"); in coda_bitstream_flush()
216 kfifo_init(&ctx->bitstream_fifo, ctx->bitstream.vaddr, in coda_bitstream_flush()
217 ctx->bitstream.size); in coda_bitstream_flush()
260 ctx->bitstream.size) in coda_bitstream_try_queue()
287 "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()
336 * Only queue two JPEGs into the bitstream buffer to keep in coda_fill_bitstream()
338 * header of another buffer (for prescan) in the bitstream. in coda_fill_bitstream()
352 * conservative estimate for this) and the bitstream in coda_fill_bitstream()
395 * Source buffer is queued in the bitstream ringbuffer; in coda_fill_bitstream()
1731 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_seq_end_work()
1768 if (ctx->bitstream.vaddr) in coda_alloc_bitstream_buffer()
1771 ctx->bitstream.size = roundup_pow_of_two(q_data->sizeimage * 2); in coda_alloc_bitstream_buffer()
1772 ctx->bitstream.vaddr = dma_alloc_wc(ctx->dev->dev, ctx->bitstream.size, in coda_alloc_bitstream_buffer()
1773 &ctx->bitstream.paddr, GFP_KERNEL); in coda_alloc_bitstream_buffer()
1774 if (!ctx->bitstream.vaddr) { in coda_alloc_bitstream_buffer()
1776 "failed to allocate bitstream ringbuffer"); in coda_alloc_bitstream_buffer()
1780 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_alloc_bitstream_buffer()
1787 if (ctx->bitstream.vaddr == NULL) in coda_free_bitstream_buffer()
1790 dma_free_wc(ctx->dev->dev, ctx->bitstream.size, ctx->bitstream.vaddr, in coda_free_bitstream_buffer()
1791 ctx->bitstream.paddr); in coda_free_bitstream_buffer()
1792 ctx->bitstream.vaddr = NULL; in coda_free_bitstream_buffer()
1889 bitstream_buf = ctx->bitstream.paddr; in __coda_decoder_seq_init()
1890 bitstream_size = ctx->bitstream.size; in __coda_decoder_seq_init()
1894 /* Update coda bitstream read and write pointers from kfifo */ in __coda_decoder_seq_init()
1958 /* Update kfifo out pointer from coda bitstream read pointer */ in __coda_decoder_seq_init()
2176 /* Try to copy source buffer contents into the bitstream ringbuffer */ in coda_prepare_decode()
2183 coda_dbg(1, ctx, "bitstream payload: %d, skipping\n", in coda_prepare_decode()
2271 /* If this is the last buffer in the bitstream, add padding */ in coda_prepare_decode()
2321 /* Update kfifo out pointer from coda bitstream read pointer */ in coda_finish_decode()
2329 if (coda_get_bitstream_payload(ctx) >= ctx->bitstream.size - 512) in coda_finish_decode()
2331 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_finish_decode()
2398 /* not enough bitstream data */ in coda_finish_decode()
2592 * The current decode run might have brought the bitstream fill level in coda_finish_decode()
2595 * blocked, we can't rely on the next qbuf to trigger the bitstream in coda_finish_decode()
2596 * refill. Check if we have data to refill the bitstream now. in coda_finish_decode()