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()
1725 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_seq_end_work()
1762 if (ctx->bitstream.vaddr) in coda_alloc_bitstream_buffer()
1765 ctx->bitstream.size = roundup_pow_of_two(q_data->sizeimage * 2); in coda_alloc_bitstream_buffer()
1766 ctx->bitstream.vaddr = dma_alloc_wc(ctx->dev->dev, ctx->bitstream.size, in coda_alloc_bitstream_buffer()
1767 &ctx->bitstream.paddr, GFP_KERNEL); in coda_alloc_bitstream_buffer()
1768 if (!ctx->bitstream.vaddr) { in coda_alloc_bitstream_buffer()
1770 "failed to allocate bitstream ringbuffer"); in coda_alloc_bitstream_buffer()
1774 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_alloc_bitstream_buffer()
1781 if (ctx->bitstream.vaddr == NULL) in coda_free_bitstream_buffer()
1784 dma_free_wc(ctx->dev->dev, ctx->bitstream.size, ctx->bitstream.vaddr, in coda_free_bitstream_buffer()
1785 ctx->bitstream.paddr); in coda_free_bitstream_buffer()
1786 ctx->bitstream.vaddr = NULL; in coda_free_bitstream_buffer()
1883 bitstream_buf = ctx->bitstream.paddr; in __coda_decoder_seq_init()
1884 bitstream_size = ctx->bitstream.size; in __coda_decoder_seq_init()
1888 /* Update coda bitstream read and write pointers from kfifo */ in __coda_decoder_seq_init()
1952 /* Update kfifo out pointer from coda bitstream read pointer */ in __coda_decoder_seq_init()
2170 /* Try to copy source buffer contents into the bitstream ringbuffer */ in coda_prepare_decode()
2177 coda_dbg(1, ctx, "bitstream payload: %d, skipping\n", in coda_prepare_decode()
2265 /* If this is the last buffer in the bitstream, add padding */ in coda_prepare_decode()
2315 /* Update kfifo out pointer from coda bitstream read pointer */ in coda_finish_decode()
2323 if (coda_get_bitstream_payload(ctx) >= ctx->bitstream.size - 512) in coda_finish_decode()
2325 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_finish_decode()
2392 /* not enough bitstream data */ in coda_finish_decode()
2586 * The current decode run might have brought the bitstream fill level in coda_finish_decode()
2589 * blocked, we can't rely on the next qbuf to trigger the bitstream in coda_finish_decode()
2590 * refill. Check if we have data to refill the bitstream now. in coda_finish_decode()