| /kernel/linux/linux-5.10/lib/zstd/ |
| D | entropy_common.c | 67 U32 bitStream; in FSE_readNCount() local 74 bitStream = ZSTD_readLE32(ip); in FSE_readNCount() 75 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount() 78 bitStream >>= 4; in FSE_readNCount() 88 while ((bitStream & 0xFFFF) == 0xFFFF) { in FSE_readNCount() 92 bitStream = ZSTD_readLE32(ip) >> bitCount; in FSE_readNCount() 94 bitStream >>= 16; in FSE_readNCount() 98 while ((bitStream & 3) == 3) { in FSE_readNCount() 100 bitStream >>= 2; in FSE_readNCount() 103 n0 += bitStream & 3; in FSE_readNCount() [all …]
|
| D | fse_compress.c | 48 #include "bitstream.h" 213 U32 bitStream; in FSE_writeNCount_generic() local 218 bitStream = 0; in FSE_writeNCount_generic() 221 bitStream += (tableLog - FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic() 236 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic() 239 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic() 240 out[1] = (BYTE)(bitStream >> 8); in FSE_writeNCount_generic() 242 bitStream >>= 16; in FSE_writeNCount_generic() 246 bitStream += 3 << bitCount; in FSE_writeNCount_generic() 249 bitStream += (charnum - start) << bitCount; in FSE_writeNCount_generic() [all …]
|
| D | bitstream.h | 2 * bitstream 64 * bitStream encoding API (write forward) 66 /* bitStream can mix input from multiple sources. 84 * bitStream will never write outside of this buffer. 93 * Avoid storing elements of more than 24 bits if you want compatibility with 32-bits bitstream rea… 95 * Last operation is to close the bitStream. 101 * bitStream decoding API (read backward) 124 * A chunk of the bitStream is then stored into a local register. 156 * bitStream encoding 231 * bitStream decoding [all …]
|
| D | fse.h | 228 #include "bitstream.h" 317 BIT_CStream_t bitStream; // bitStream tracking structure 321 The first thing to do is to init bitStream and state. 322 size_t errorCode = BIT_initCStream(&bitStream, dstBuffer, maxDstSize); 329 FSE_encodeByte(&bitStream, &state, symbol); 333 BIT_addBits(&bitStream, bitField, nbBits); 338 BIT_flushBits(&bitStream); 341 FSE_flushState(&bitStream, &state); 343 Finally, you must close the bitStream. 347 size_t size = BIT_closeCStream(&bitStream); [all …]
|
| /kernel/linux/linux-6.6/fs/ntfs3/lib/ |
| D | decompress_common.h | 72 /* Initialize a bitstream to read from the specified input buffer. */ 82 /* Ensure the bit buffer variable for the bitstream contains at least @num_bits 84 * may be called on the bitstream to peek or remove up to @num_bits bits. Note 100 /* Return the next @num_bits bits from the bitstream, without removing them. 110 /* Remove @num_bits from the bitstream. There must be at least @num_bits 121 /* Remove and return @num_bits bits from the bitstream. There must be at least 134 /* Read and return the next @num_bits bits from the bitstream. */ 142 /* Read and return the next literal byte embedded in the bitstream. */ 151 /* Read and return the next 16-bit integer embedded in the bitstream. */ 164 /* Read and return the next 32-bit integer embedded in the bitstream. */ [all …]
|
| /kernel/linux/linux-6.6/lib/zstd/common/ |
| D | entropy_common.c | 68 U32 bitStream; in FSE_readNCount_body() local 88 bitStream = MEM_readLE32(ip); in FSE_readNCount_body() 89 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body() 91 bitStream >>= 4; in FSE_readNCount_body() 105 int repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body() 115 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body() 116 repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body() 119 bitStream >>= 2 * repeats; in FSE_readNCount_body() 123 assert((bitStream & 3) < 3); in FSE_readNCount_body() 124 charnum += bitStream & 3; in FSE_readNCount_body() [all …]
|
| D | bitstream.h | 2 * bitstream 42 * bitStream encoding API (write forward) 44 /* bitStream can mix input from multiple sources. 62 * bitStream will never write outside of this buffer. 71 * Avoid storing elements of more than 24 bits if you want compatibility with 32-bits bitstream rea… 73 * Last operation is to close the bitStream. 80 * bitStream decoding API (read backward) 103 * A chunk of the bitStream is then stored into a local register. 163 * bitStream encoding 250 * bitStream decoding [all …]
|
| /kernel/linux/linux-5.10/drivers/block/drbd/ |
| 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() argument 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 *bs, u64 val, const unsigned int bits) in bitstream_put_bits() [all …]
|
| /kernel/linux/linux-6.6/drivers/block/drbd/ |
| 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() argument 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 *bs, u64 val, const unsigned int bits) in bitstream_put_bits() [all …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-driver-genwqe | 4 Description: Unique bitstream identification e.g. 21 Description: Currently active bitstream. 1 is default, 0 is backup. 26 Description: Interface to set the next bitstream to be used. 31 Description: Interface to trigger a PCIe card reset to reload the bitstream. 38 If successfully, the card will come back with the bitstream set
|
| D | debugfs-driver-genwqe | 58 Description: Comprehensive summary of bitstream version and software 59 version. Used bitstream and bitstream clocking information.
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| D | sysfs-driver-genwqe | 4 Description: Unique bitstream identification e.g. 21 Description: Currently active bitstream. 1 is default, 0 is backup. 26 Description: Interface to set the next bitstream to be used. 31 Description: Interface to trigger a PCIe card reset to reload the bitstream. 38 If successfully, the card will come back with the bitstream set
|
| D | debugfs-driver-genwqe | 58 Description: Comprehensive summary of bitstream version and software 59 version. Used bitstream and bitstream clocking information.
|
| /kernel/linux/linux-6.6/lib/zstd/compress/ |
| D | fse_compress.c | 22 #include "../common/bitstream.h" 228 + 2 /* additional two bytes for bitstream flush */; in FSE_NCountWriteBound() 244 U32 bitStream = 0; in FSE_writeNCount_generic() local 251 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic() 266 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic() 269 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic() 270 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic() 272 bitStream>>=16; in FSE_writeNCount_generic() 276 bitStream += 3 << bitCount; in FSE_writeNCount_generic() 279 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/test-drivers/visl/ |
| D | visl-debugfs.c | 3 * Debugfs tracing for bitstream buffers. This is similar to VA-API's 4 * LIBVA_TRACE_BUFDATA in that the raw bitstream can be dumped as a debugging 32 dev->bitstream_debugfs = debugfs_create_dir("bitstream", in visl_debugfs_bitstream_init() 57 snprintf(name, 32, "bitstream%d", run->src->sequence); in visl_trace_bitstream()
|
| /kernel/linux/linux-5.10/drivers/media/platform/coda/ |
| 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 buffer overflow\n"); in coda_bitstream_try_queue() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/chips-media/ |
| 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 buffer overflow\n"); in coda_bitstream_try_queue() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/ |
| D | venc_ipi_msg.h | 75 * @bs_mode: bitstream mode for h264 107 * @bs_mode: bitstream mode for h264 110 * @bs_addr: output bitstream buffer 34 bit address 111 * @bs_size: bitstream buffer size 217 * @bs_size: encoded bitstream size
|
| /kernel/linux/linux-6.6/drivers/fpga/ |
| D | microchip-spi.c | 125 * Go through look-up table to find out where actual bitstream starts in mpf_ops_parse_header() 126 * and where sizes of components of the bitstream lies. in mpf_ops_parse_header() 173 * Parse bitstream size. in mpf_ops_parse_header() 174 * Sizes of components of the bitstream are 22-bits long placed next in mpf_ops_parse_header() 176 * actual bitstream starts, so no need for overflow check anymore. in mpf_ops_parse_header() 312 dev_err(dev, "Bitstream size is not a multiple of %d\n", in mpf_ops_write() 320 dev_err(dev, "Failed to write bitstream frame %d/%zu\n", in mpf_ops_write()
|
| /kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/venc/ |
| D | venc_vp8_if.c | 222 * Compose ac_tag, bitstream header and bitstream payload into 223 * one bitstream buffer. 261 mtk_venc_err(inst->ctx, "bitstream buf size is too small(%zu)", bs_buf->size); in vp8_enc_compose_one_frame() 266 * (1) The vp8 bitstream header and body are generated by the HW vp8 in vp8_enc_compose_one_frame() 267 * encoder separately at the same time. We cannot know the bitstream in vp8_enc_compose_one_frame() 270 * ac tag, bitstream header and bitstream body. in vp8_enc_compose_one_frame()
|
| /kernel/linux/linux-6.6/Documentation/admin-guide/media/ |
| D | visl.rst | 43 - keep_bitstream_buffers: Controls whether bitstream (i.e. OUTPUT) buffers are 131 **/sys/kernel/debug/visl/bitstream** with OUTPUT buffer data according to the 140 snprintf(name, 32, "bitstream%d", run->src->sequence); 148 $ xxd /sys/kernel/debug/visl/bitstream/bitstream0 162 $ xxd /sys/kernel/debug/visl/bitstream/bitstream1
|
| /kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/venc/ |
| D | venc_vp8_if.c | 233 * Compose ac_tag, bitstream header and bitstream payload into 234 * one bitstream buffer. 272 mtk_vcodec_err(inst, "bitstream buf size is too small(%zu)", in vp8_enc_compose_one_frame() 278 * (1) The vp8 bitstream header and body are generated by the HW vp8 in vp8_enc_compose_one_frame() 279 * encoder separately at the same time. We cannot know the bitstream in vp8_enc_compose_one_frame() 282 * ac tag, bitstream header and bitstream body. in vp8_enc_compose_one_frame()
|
| /kernel/linux/linux-5.10/drivers/misc/genwqe/ |
| D | card_sysfs.c | 15 * the version of the bitstream as well as some for the driver. For 133 * curr_bitstream_show() - Show the current bitstream id 136 * bitstream, which causes the IO_SLU_BITSTREAM register to report 144 * The proposed circumvention is to use a special recovery bitstream 160 * next_bitstream_show() - Show the next activated bitstream
|
| /kernel/linux/linux-6.6/drivers/misc/genwqe/ |
| D | card_sysfs.c | 15 * the version of the bitstream as well as some for the driver. For 133 * curr_bitstream_show() - Show the current bitstream id 136 * bitstream, which causes the IO_SLU_BITSTREAM register to report 144 * The proposed circumvention is to use a special recovery bitstream 160 * next_bitstream_show() - Show the next activated bitstream
|
| /kernel/linux/linux-5.10/drivers/staging/gs_fpgaboot/ |
| D | gs_fpgaboot.h | 8 f_bit, /* only bitstream is supported */ 32 * the following can be read from bitstream,
|