Home
last modified time | relevance | path

Searched refs:lzma_head (Results 1 - 4 of 4) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/lzmaram/
H A Dlzmaram.c54 * @param lzma_head [IN] type #hi_u8*-LZMA head
64 unsigned int hi_lzma_get_uncompress_len(const hi_u8 lzma_head[13], hi_u32 head_size, /* head 13B */ in hi_lzma_get_uncompress_len() argument
70 if ((lzma_head == HI_NULL) in hi_lzma_get_uncompress_len()
77 uncompressed_len = (unsigned int)lzma_head[5] | /* index 5, low 8bits */ in hi_lzma_get_uncompress_len()
78 ((unsigned int)lzma_head[6] << 8) | /* index 6, bits 8-15 */ in hi_lzma_get_uncompress_len()
79 ((unsigned int)lzma_head[7] << 16) | /* index 7, bits 16-23 */ in hi_lzma_get_uncompress_len()
80 ((unsigned int)lzma_head[8] << 24); /* index 8, bits 24-32 */ in hi_lzma_get_uncompress_len()
81 uncompressed_len_high = (unsigned int)lzma_head[9] | /* index 9, low 8bits */ in hi_lzma_get_uncompress_len()
82 ((unsigned int)lzma_head[10] << 8) | /* index 10, bits 8-15 */ in hi_lzma_get_uncompress_len()
83 ((unsigned int)lzma_head[1 in hi_lzma_get_uncompress_len()
124 hi_lzma_decompress(const hi_u8 lzma_head[13], hi_u32 head_size, unsigned int compress_len, lzma_stream_fct in_func, lzma_stream_fct out_func) hi_lzma_decompress() argument
171 hi_lzma_mem_detect(const hi_u8 lzma_head[13], hi_u32 head_size) hi_lzma_mem_detect() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_kernel.c25 hi_u8 lzma_head[13] = { 0 }; /* head 13B */ in boot_upg_lzma_detect() local
29 hi_u32 ret = hi_flash_read(addr_write + section_head->section0_offset, 13, lzma_head); /* 13 Bytes:head length */ in boot_upg_lzma_detect()
33 ret = hi_lzma_get_uncompress_len(lzma_head, sizeof(lzma_head), uncompress_size, &dic_size); in boot_upg_lzma_detect()
41 ret = hi_lzma_mem_detect(lzma_head, sizeof(lzma_head)); in boot_upg_lzma_detect()
H A Dboot_upg_tool.c108 hi_u8 lzma_head[13] = { 0 }; /* head 13B */ in boot_upg_copy_flash_2_flash() local
116 hi_flash_read(src_addr, 13, lzma_head); /* read 13B */ in boot_upg_copy_flash_2_flash()
119 ret = hi_lzma_decompress(lzma_head, sizeof(lzma_head), src_size, kernel_comprss_flash_read, in boot_upg_copy_flash_2_flash()
283 hi_u8 lzma_head[13] = { 0 }; /* head 13B */ in boot_upg_check_before_decompress() local
287 hi_flash_read(addr_write + section_head->section0_offset, 13, lzma_head); /* read 13B */ in boot_upg_check_before_decompress()
296 ret = hi_lzma_decompress(lzma_head, sizeof(lzma_head), section_head->section0_len, kernel_comprss_flash_read, in boot_upg_check_before_decompress()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/include/
H A Dlzmaram.h37 unsigned int hi_lzma_decompress(const hi_u8 lzma_head[13], hi_u32 head_size, /* head 13B */
40 unsigned int hi_lzma_get_uncompress_len(const hi_u8 lzma_head[13], hi_u32 head_size, /* head 13B */
42 unsigned int hi_lzma_mem_detect(const hi_u8 lzma_head[13], hi_u32 head_size); /* head 13B */

Completed in 3 milliseconds