exynos-linux-stable/include/linux/decompress
Nick Terrell 758cac1719
lib: Add zstd support to decompress
- Add unzstd() and the zstd decompress interface.

- Add zstd support to decompress_method().

The decompress_method() and unzstd() functions are used to decompress
the initramfs and the initrd. The __decompress() function is used in
the preboot environment to decompress a zstd compressed kernel.

The zstd decompression function allows the input and output buffers to
overlap because that is used by x86 kernel decompression.

Signed-off-by: Nick Terrell <terrelln@fb.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200730190841.2071656-3-nickrterrell@gmail.com
2023-02-21 00:21:02 +03:00
..
bunzip2.h initramfs: support initramfs that is bigger than 2GiB 2014-08-08 15:57:26 -07:00
generic.h initramfs: support initramfs that is bigger than 2GiB 2014-08-08 15:57:26 -07:00
inflate.h initramfs: support initramfs that is bigger than 2GiB 2014-08-08 15:57:26 -07:00
mm.h Fix common misspellings 2011-03-31 11:26:23 -03:00
unlz4.h initramfs: support initramfs that is bigger than 2GiB 2014-08-08 15:57:26 -07:00
unlzma.h initramfs: support initramfs that is bigger than 2GiB 2014-08-08 15:57:26 -07:00
unlzo.h initramfs: support initramfs that is bigger than 2GiB 2014-08-08 15:57:26 -07:00
unxz.h initramfs: support initramfs that is bigger than 2GiB 2014-08-08 15:57:26 -07:00
unzstd.h lib: Add zstd support to decompress 2023-02-21 00:21:02 +03:00