79 DBGC (
image,
"GZIP %p overlength extra header\n",
95 DBGC (
image,
"GZIP %p overlength name/comment\n",
107 DBGC (
image,
"GZIP %p overlength CRC header\n",
119 DBGC (
image,
"GZIP %p could not presize: %s\n",
126 DBGC (
image,
"GZIP %p could not decompress: %s\n",
152 sizeof (
header.magic ) );
#define cpu_to_be16(value)
#define EINVAL
Invalid argument.
struct arbelprm_rc_send_wqe rc
userptr_t data
Raw file image.
#define le32_to_cpu(value)
#define GZIP_FL_NAME
File name is present.
off_t memchr_user(userptr_t userptr, off_t offset, int c, size_t len)
Find character in user buffer.
uint8_t extra
Signature extra byte.
#define ENOEXEC
Exec format error.
static __always_inline void copy_from_user(void *dest, userptr_t src, off_t src_off, size_t len)
Copy data from user buffer.
#define GZIP_FL_HCRC
CRC header is present.
An executable image type.
#define PROBE_NORMAL
Normal image probe priority.
struct image_type gzip_image_type __image_type(PROBE_NORMAL)
gzip image type
Access to external ("user") memory.
char * name
Name of this image type.
userptr_t userptr_add(userptr_t userptr, off_t offset)
Add offset to user pointer.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
#define GZIP_FL_EXTRA
Extra header is present.
static int gzip_probe(struct image *image)
Probe gzip image.
int zlib_deflate(enum deflate_format format, struct deflate_chunk *in, struct image *extracted)
Extract compressed data to image.
char * strerror(int errno)
Retrieve string representation of error number.
size_t len
Length of raw file image.
#define GZIP_MAGIC
Magic ID.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static int gzip_extract(struct image *image, struct image *extracted)
Extract gzip image.
#define le16_to_cpu(value)
int image_set_len(struct image *image, size_t len)
Set image length.
Raw DEFLATE data (no header or footer)
struct ena_aq_header header
Header.
uint16_t offset
Offset to command line.
#define GZIP_FL_COMMENT
File comment is present.
DEFLATE decompression algorithm.
int image_extract_exec(struct image *image)
Extract and execute image.