Lines Matching refs: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()
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()
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()
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()
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()