/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_vli.h | 69 * __little endian__ bitstream, least significant bit first (left most) 190 /* for the bitstream, we need a cursor */ 214 /* the bitstream itself knows its length */ 215 struct bitstream { struct 226 static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits) in bitstream_init() 234 static inline void bitstream_rewind(struct bitstream *bs) in bitstream_rewind() 240 /* Put (at most 64) least significant bits of val into bitstream, and advance cursor. 245 * If there is not enough room left in bitstream, 246 * leaves bitstream unchanged and returns -ENOBUFS. 248 static inline int bitstream_put_bits(struct bitstream *b [all...] |
H A D | drbd_main.c | 1120 struct bitstream bs; in fill_bitmap_rle_bits()
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_vli.h | 69 * __little endian__ bitstream, least significant bit first (left most) 190 /* for the bitstream, we need a cursor */ 214 /* the bitstream itself knows its length */ 215 struct bitstream { struct 226 static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits) in bitstream_init() 234 static inline void bitstream_rewind(struct bitstream *bs) in bitstream_rewind() 240 /* Put (at most 64) least significant bits of val into bitstream, and advance cursor. 245 * If there is not enough room left in bitstream, 246 * leaves bitstream unchanged and returns -ENOBUFS. 248 static inline int bitstream_put_bits(struct bitstream *b [all...] |
/kernel/linux/linux-5.10/drivers/net/hamradio/ |
H A D | hdlcdrv.c | 171 s->hdlcrx.bitstream >>= 16; in hdlcdrv_receiver() 172 s->hdlcrx.bitstream |= word << 16; in hdlcdrv_receiver() 181 if ((s->hdlcrx.bitstream & mask1) == mask1) in hdlcdrv_receiver() 183 else if ((s->hdlcrx.bitstream & mask2) == mask3) { in hdlcdrv_receiver() 196 } else if ((s->hdlcrx.bitstream & mask4) == mask5) { in hdlcdrv_receiver() 315 s->hdlctx.bitstream = 0; in hdlcdrv_transmitter() 327 s->hdlctx.bitstream >>= 8; in hdlcdrv_transmitter() 328 s->hdlctx.bitstream |= (*s->hdlctx.bp++) << 16; in hdlcdrv_transmitter() 335 if ((s->hdlctx.bitstream & mask1) != mask1) in hdlcdrv_transmitter() 337 s->hdlctx.bitstream in hdlcdrv_transmitter() [all...] |
H A D | baycom_epp.c | 176 unsigned int bitbuf, bitstream, numbits, state; member 363 unsigned bitstream, notbitstream, bitbuf, numbit, crc; in encode_hdlc() local 380 bitstream = bitbuf = numbit = 0; in encode_hdlc() 382 bitstream >>= 8; in encode_hdlc() 383 bitstream |= ((unsigned int)*bp) << 8; in encode_hdlc() 385 notbitstream = ~bitstream; in encode_hdlc() 392 bitstream &= ~(0x100 << j); in encode_hdlc() 396 notbitstream = ~bitstream; in encode_hdlc() 555 unsigned int bitbuf, notbitstream, bitstream, numbits, state; in receive() local 563 bitstream in receive() [all...] |
/kernel/linux/linux-6.6/drivers/net/hamradio/ |
H A D | hdlcdrv.c | 172 s->hdlcrx.bitstream >>= 16; in hdlcdrv_receiver() 173 s->hdlcrx.bitstream |= word << 16; in hdlcdrv_receiver() 182 if ((s->hdlcrx.bitstream & mask1) == mask1) in hdlcdrv_receiver() 184 else if ((s->hdlcrx.bitstream & mask2) == mask3) { in hdlcdrv_receiver() 197 } else if ((s->hdlcrx.bitstream & mask4) == mask5) { in hdlcdrv_receiver() 316 s->hdlctx.bitstream = 0; in hdlcdrv_transmitter() 328 s->hdlctx.bitstream >>= 8; in hdlcdrv_transmitter() 329 s->hdlctx.bitstream |= (*s->hdlctx.bp++) << 16; in hdlcdrv_transmitter() 336 if ((s->hdlctx.bitstream & mask1) != mask1) in hdlcdrv_transmitter() 338 s->hdlctx.bitstream in hdlcdrv_transmitter() [all...] |
H A D | baycom_epp.c | 176 unsigned int bitbuf, bitstream, numbits, state; member 363 unsigned bitstream, notbitstream, bitbuf, numbit, crc; in encode_hdlc() local 380 bitstream = bitbuf = numbit = 0; in encode_hdlc() 382 bitstream >>= 8; in encode_hdlc() 383 bitstream |= ((unsigned int)*bp) << 8; in encode_hdlc() 385 notbitstream = ~bitstream; in encode_hdlc() 392 bitstream &= ~(0x100 << j); in encode_hdlc() 396 notbitstream = ~bitstream; in encode_hdlc() 555 unsigned int bitbuf, notbitstream, bitstream, numbits, state; in receive() local 563 bitstream in receive() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/coda/ |
H A D | coda-bit.c | 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 buffe in coda_bitstream_try_queue() [all...] |
H A D | coda.h | 253 struct coda_aux_buf bitstream; member 337 * The bitstream prefetcher needs to read at least 2 256 byte periods past 338 * the desired bitstream position for all data to reach the decoder.
|
H A D | coda-common.c | 951 * bitstream ringbuffer, slice buffer, work buffer, etc. if needed. in coda_reqbufs() 1581 * the compressed frame can be in the bitstream. in coda_job_ready() 1617 "not ready: need 2 buffers available (queue:%d + bitstream:%d)\n", in coda_job_ready() 1627 "not ready: not enough bitstream data to read past %u (%u)\n", in coda_job_ready() 1877 * bitstream ringbuffer and mark it as ready to be dequeued. in coda_buf_queue() 1879 if (ctx->bitstream.size && vq->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { in coda_buf_queue() 2156 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_stop_streaming()
|
/kernel/linux/linux-6.6/drivers/media/platform/chips-media/ |
H A D | coda-bit.c | 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 buffe in coda_bitstream_try_queue() [all...] |
H A D | coda.h | 263 struct coda_aux_buf bitstream; member 348 * The bitstream prefetcher needs to read at least 2 256 byte periods past 349 * the desired bitstream position for all data to reach the decoder.
|
H A D | coda-common.c | 973 * bitstream ringbuffer, slice buffer, work buffer, etc. if needed. in coda_reqbufs() 1575 * the compressed frame can be in the bitstream. in coda_job_ready() 1611 "not ready: need 2 buffers available (queue:%d + bitstream:%d)\n", in coda_job_ready() 1621 "not ready: not enough bitstream data to read past %u (%u)\n", in coda_job_ready() 1876 * bitstream ringbuffer and mark it as ready to be dequeued. in coda_buf_queue() 1878 if (ctx->bitstream.size && vq->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { in coda_buf_queue() 2158 ctx->bitstream.vaddr, ctx->bitstream.size); in coda_stop_streaming()
|
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
H A D | hantro_v4l2.h | 31 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream,
|
H A D | hantro_v4l2.c | 130 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream, in hantro_get_default_fmt() argument 138 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt() 146 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt() 174 vpu_debug(0, "unsupported bitstream format (%08x)\n", in vidioc_enum_framesizes()
|
/kernel/linux/linux-5.10/drivers/misc/genwqe/ |
H A D | card_debugfs.c | 287 u64 app_id, slu_id, bitstream = -1; in info_show() local 294 bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM); in info_show() 312 bitstream); in info_show()
|
H A D | card_utils.c | 705 u64 bitstream; in genwqe_read_softreset() local 710 bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM) & 0x1; in genwqe_read_softreset() 711 cd->softreset = (bitstream == 0) ? 0x8ull : 0xcull; in genwqe_read_softreset()
|
/kernel/linux/linux-6.6/drivers/misc/genwqe/ |
H A D | card_debugfs.c | 287 u64 app_id, slu_id, bitstream = -1; in info_show() local 294 bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM); in info_show() 312 bitstream); in info_show()
|
H A D | card_utils.c | 705 u64 bitstream; in genwqe_read_softreset() local 710 bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM) & 0x1; in genwqe_read_softreset() 711 cd->softreset = (bitstream == 0) ? 0x8ull : 0xcull; in genwqe_read_softreset()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | hdlcdrv.h | 111 unsigned int bitstream; member 131 unsigned int bitstream; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | hdlcdrv.h | 111 unsigned int bitstream; member 131 unsigned int bitstream; member
|
/kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
H A D | hantro_v4l2.c | 86 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream) in hantro_get_default_fmt() argument 93 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt() 127 vpu_debug(0, "unsupported bitstream format (%08x)\n", in vidioc_enum_framesizes()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
H A D | cb_pcidas64.c | 1695 u8 bitstream; in i2c_write() local 1710 bitstream = (address << 1) & ~read_bit; in i2c_write() 1711 i2c_write_byte(dev, bitstream); in i2c_write() 3524 unsigned int bitstream = ((address & 0x7) << 8) | value; in caldac_8800_write() local 3534 if (bitstream & bit) in caldac_8800_write() 3657 unsigned int bitstream = ((channel & 0x3) << 8) | (value & 0xff); in ad8402_write() local 3665 if (bitstream & bit) in ad8402_write() 3709 unsigned int bitstream = (read_command << 8) | address; in read_eeprom() local 3731 if (bitstream & bit) in read_eeprom()
|
/kernel/linux/linux-6.6/drivers/comedi/drivers/ |
H A D | cb_pcidas64.c | 1689 u8 bitstream; in i2c_write() local 1704 bitstream = (address << 1) & ~read_bit; in i2c_write() 1705 i2c_write_byte(dev, bitstream); in i2c_write() 3518 unsigned int bitstream = ((address & 0x7) << 8) | value; in caldac_8800_write() local 3528 if (bitstream & bit) in caldac_8800_write() 3651 unsigned int bitstream = ((channel & 0x3) << 8) | (value & 0xff); in ad8402_write() local 3659 if (bitstream & bit) in ad8402_write() 3703 unsigned int bitstream = (read_command << 8) | address; in read_eeprom() local 3725 if (bitstream & bit) in read_eeprom()
|
/kernel/linux/linux-6.6/drivers/media/platform/nvidia/tegra-vde/ |
H A D | h264.c | 928 struct tegra_m2m_buffer *bitstream = vb_to_tegra_buf(&src->vb2_buf); in tegra_vde_h264_decode_run() local 939 bitstream->dma_addr[0], in tegra_vde_h264_decode_run()
|