Searched refs:compress (Results 1 - 17 of 17) sorted by relevance

/u-boot/tools/binman/btool/
H A Dcbfstool.py147 def add_raw(self, cbfs_fname, name, fname, compress=None, base=None):
154 compress (str): Compression to use (cbfs_util.COMPRESS_NAMES) or
166 '-c', compress or 'none']
H A Dlz4.py39 -l : compress using Legacy format (Linux kernel compression)
69 This bintool supports running `lz4` to compress and decompress data, as
81 def compress(self, indata): member in class:Bintoollz4
85 indata (bytes): Data to compress
H A Dlzma_alone.py46 This bintool supports running `lzma_alone` to compress and decompress data,
58 def compress(self, indata): member in class:Bintoollzma_alone
62 indata (bytes): Data to compress
/u-boot/tools/binman/
H A Dcbfs_util.py137 for compress, name in COMPRESS_NAMES.items():
139 return compress
142 def compress_name(compress):
146 compress: Compression algorithm number to find (COMPRESS_...)
154 return COMPRESS_NAMES[compress]
222 def __init__(self, name, ftype, data, cbfs_offset, compress=COMPRESS_NONE):
229 self.compress = compress
237 if self.compress == COMPRESS_LZ4:
239 elif self.compress
[all...]
H A Dcbfs_util_test.py28 COMPRESS_DATA = b'compress xxxxxxxxxxxxxxxxxxxxxx data'
43 TestCbfs._make_input_file('compress', COMPRESS_DATA)
121 self.assertEqual(cbfs_util.COMPRESS_NONE, cfile.compress)
143 self.assertEqual(cbfs_util.COMPRESS_NONE, cfile.compress)
159 def _get_expected_cbfs(self, size, arch='x86', compress=None, base=None):
165 compress: Compression to use, e.g. cbfs_util.COMPRESS_LZMA
179 tools.get_input_filename(compress and 'compress' or 'u-boot.bin'),
180 compress[0] if compress els
[all...]
H A Dentry.py74 compress: Compression algoithm used (e.g. 'lz4'), 'none' if none
89 comp_bintool: Bintools used for compress and decompress data
140 self.compress = 'none'
320 self.compress = fdt_util.GetString(self._node, 'compress', 'none')
377 if self.compress != 'none':
1014 decomp: True to compress the data if needed, False if data is
1191 indata: Data to compress
1197 if self.compress != 'none':
1200 data = self.comp_bintool.compress(indat
[all...]
H A Dentry_test.py111 base.compress = 'lz4'
H A Dbintool.py516 compress_args: List of positional args provided to tool for compress,
517 ['--compress'] if none
531 compress_args = ['--compress']
540 def compress(self, indata): member in class:BintoolPacker
544 indata (bytes): Data to compress
H A Dftest.py83 COMPRESS_DATA = b'compress xxxxxxxxxxxxxxxxxxxxxx data'
221 TestFunctional._MakeInputFile('compress', COMPRESS_DATA)
2639 """Test that compress of device-tree files is supported"""
3237 decomp: True to compress the data if needed, False if data is
4588 expect1 = bintool.compress(COMPRESS_DATA + U_BOOT_DATA)
4595 expect2 = bintool.compress(COMPRESS_DATA + COMPRESS_DATA)
4966 self.assertIn('compress:', stdout.getvalue())
6066 """Test that compress with length header works as expected"""
6098 """Test that invalid compress algorithm is detected"""
6107 data = bintool.compress(COMPRESS_DAT
[all...]
/u-boot/test/
H A Dcompression.c374 mutate_func compress, mutate_func uncompress,
382 ut_assertok(compress(uts, buf->orig_buf, buf->orig_size,
419 ret = compress(uts, buf->orig_buf, buf->orig_size,
440 mutate_func compress, mutate_func uncompress)
460 ret = run_test_internal(uts, name, compress, uncompress, buf);
527 * @compress: Our function to compress data
531 mutate_func compress)
544 compress(uts, (void *)plain, unc_len, compress_buff, compress_size,
373 run_test_internal(struct unit_test_state *uts, char *name, mutate_func compress, mutate_func uncompress, struct buf_state *buf) argument
439 run_test(struct unit_test_state *uts, char *name, mutate_func compress, mutate_func uncompress) argument
530 run_bootm_test(struct unit_test_state *uts, int comp_type, mutate_func compress) argument
/u-boot/tools/binman/etype/
H A Dblob_dtb.py51 if self.compress == 'zstd' and self.prepend != 'length':
H A Dcbfs.py57 cbfs-compress = "lz4";
191 compress = fdt_util.GetString(node, 'cbfs-compress', 'none')
193 entry._cbfs_compress = cbfs_util.find_compress(compress)
196 (node.name, compress))
258 # Store the 'compress' property, since we don't look at
259 # 'cbfs-compress' in Entry.ReadData()
260 state.AddString(entry._node, 'compress',
H A Dsection.py264 if self.compress != 'none':
513 if self.compress == 'none':
901 (child.GetPath(), len(indata), child.compress,
/u-boot/drivers/fpga/
H A Dsocfpga_arria10.c182 bool encrypt, compress; local
195 compress = (rbf_data[COMPRESSION_OFFSET] >> 1) & 1;
196 compress = !compress;
200 debug("FPGA: Read from rbf header: encrypt=%d compress=%d.\n", encrypt,
201 compress);
223 if (!compress && !encrypt) {
226 if (compress)
H A Divm_core.c1364 unsigned char compress = 0; local
1380 * If there is compression, then check if compress by key
1386 compress = GetByte();
1387 if ((compress == VAR) && (g_usDataType & HEAP_IN)) {
1390 compress = GetByte();
1393 switch (compress) {
1437 for (index = 0; index < compress; index++) {
1440 for (i = 0; i < size * 2 / compress; i++) {
1442 (i * (unsigned short)compress));
1721 signed char compress local
[all...]
/u-boot/include/u-boot/
H A Dzlib.h85 # define compress z_compress macro
/u-boot/test/py/tests/
H A Dtest_ut.py261 fd.write(gzip.compress(b'vmlinux'))

Completed in 299 milliseconds