Lines Matching refs:hdr
56 static __init int bzimage_check(struct setup_header *hdr, unsigned long len) in bzimage_check() argument
61 if ( memcmp(&hdr->header, HDR_MAGIC, HDR_MAGIC_SZ) != 0 ) in bzimage_check()
64 if ( hdr->version < VERSION(2,8) ) { in bzimage_check()
66 hdr->version >> 8, hdr->version & 0xff); in bzimage_check()
77 struct setup_header *hdr = (struct setup_header *)image_start; in bzimage_headroom() local
81 err = bzimage_check(hdr, image_length); in bzimage_headroom()
87 image_start += (hdr->setup_sects + 1) * 512 + hdr->payload_offset; in bzimage_headroom()
88 image_length = hdr->payload_length; in bzimage_headroom()
110 struct setup_header *hdr = (struct setup_header *)(*image_start); in bzimage_parse() local
111 int err = bzimage_check(hdr, *image_len); in bzimage_parse()
119 *image_start += (hdr->setup_sects + 1) * 512 + hdr->payload_offset; in bzimage_parse()
120 *image_len = hdr->payload_length; in bzimage_parse()