bitstream
struct bitstream bs;
struct bitstream bs;
static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits)
static inline void bitstream_rewind(struct bitstream *bs)
static inline int bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits)
static inline int bitstream_get_bits(struct bitstream *bs, u64 *out, int bits)
static inline int vli_encode_bits(struct bitstream *bs, u64 in)
u8 bitstream;
bitstream = (address << 1) & ~read_bit;
i2c_write_byte(dev, bitstream);
unsigned int bitstream = ((address & 0x7) << 8) | value;
if (bitstream & bit)
unsigned int bitstream = ((channel & 0x3) << 8) | (value & 0xff);
if (bitstream & bit)
unsigned int bitstream = (read_command << 8) | address;
if (bitstream & bit)
(rd_ptr - ctx->bitstream.paddr);
rd_ptr = ctx->bitstream.paddr + (kfifo->out & kfifo->mask);
wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask);
ctx->bitstream.vaddr, ctx->bitstream.size);
if (ctx->bitstream.vaddr)
ctx->bitstream.size = roundup_pow_of_two(q_data->sizeimage * 2);
ctx->bitstream.vaddr = dma_alloc_wc(ctx->dev->dev, ctx->bitstream.size,
&ctx->bitstream.paddr, GFP_KERNEL);
if (!ctx->bitstream.vaddr) {
ctx->bitstream.vaddr, ctx->bitstream.size);
if (ctx->bitstream.vaddr == NULL)
dma_free_wc(ctx->dev->dev, ctx->bitstream.size, ctx->bitstream.vaddr,
ctx->bitstream.paddr);
ctx->bitstream.vaddr = NULL;
wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask);
bitstream_buf = ctx->bitstream.paddr;
bitstream_size = ctx->bitstream.size;
kfifo_init(&ctx->bitstream_fifo, ctx->bitstream.vaddr,
ctx->bitstream.size);
if (coda_get_bitstream_payload(ctx) >= ctx->bitstream.size - 512)
ctx->bitstream.vaddr, ctx->bitstream.size);
ctx->bitstream.size)
if (ctx->bitstream.size && vq->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) {
ctx->bitstream.vaddr, ctx->bitstream.size);
struct coda_aux_buf bitstream;
struct tegra_m2m_buffer *bitstream = vb_to_tegra_buf(&src->vb2_buf);
bitstream->dma_addr[0],
hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream,
if (bitstream == (formats[i].codec_mode !=
if (bitstream == (formats[i].codec_mode !=
hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream,
u64 app_id, slu_id, bitstream = -1;
bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM);
bitstream);
u64 bitstream;
bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM) & 0x1;
cd->softreset = (bitstream == 0) ? 0x8ull : 0xcull;