Lines Matching +full:data +full:- +full:bits
1 /* SPDX-License-Identifier: GPL-2.0 */
13 * number of data bytes to add to the output buffer, or an index pointing
14 * to a previously-written number of data bytes to copy to the output buffer.
16 * The template code is a 5-bit value. This code indicates what to do with
17 * the following data. Template codes from 0 to 0x19 should use the template
20 * an arg following the template code bits. Each action is either a "data"
25 * N0 (for which there is no corresponding arg in the compressed data buffer).
27 * "Data" actions, indicated in the table by D2, D4, and D8, mean that the
28 * corresponding arg is 2, 4, or 8 bytes, respectively, in the compressed data
35 * in a ring buffer that contains the last N bytes of output buffer data.
36 * The number of bits for each index's arg are: 8 bits for I2, 9 bits for I4,
37 * and 8 bits for I8. Since each index points to a 2, 4, or 8 byte section,
38 * this means that I2 can reference 512 bytes ((2^8 bits = 256) * 2 bytes), I4
40 * bytes ((2^8 = 256) * 8 bytes). Think of it as a kind-of ring buffer for
53 * "zeros" operation, which has no arg bits, writes 8 zeros to the output
54 * buffer. The "end" operation, which also has no arg bits, signals the end
55 * of the compressed data. There may be some number of padding (don't care,
56 * but usually 0) bits after the "end" operation bits, to fill the buffer
61 * 0x1d as a special "short data" template code, to represent less than 8 bytes
62 * of uncompressed data. It is followed by a 3 bit arg N indicating how many
63 * data bytes will follow, and then N bytes of data, which should be copied to
66 * compressed buffers containing this sw-only template will be rejected by
69 * disable using this sw-only "short data" template, and instead simply
73 * code is in the next 5 bits. The decompression ends once the "end" template
90 /* sw only template - this is not in the hw design; it's used only by this
96 /* additional bits of each op param */
127 /* the max of the regular templates - not including the special templates */