Lines Matching refs:bh
247 struct esas2r_boot_header *bh; in fix_bios() local
250 bh = in fix_bios()
253 bh->device_id = cpu_to_le16(a->pcid->device); in fix_bios()
281 struct esas2r_boot_header *bh; in fix_efi() local
287 bh = (struct esas2r_boot_header *)((u8 *)ei + in fix_efi()
290 bh->device_id = cpu_to_le16(a->pcid->device); in fix_efi()
291 thislen = (u32)le16_to_cpu(bh->image_length) * 512; in fix_efi()
634 struct esas2r_boot_header *bh; in chk_boot() local
644 bh = (struct esas2r_boot_header *)((char *)bi + hdroffset); in chk_boot()
646 if (bh->signature[0] != 'P' in chk_boot()
647 || bh->signature[1] != 'C' in chk_boot()
648 || bh->signature[2] != 'I' in chk_boot()
649 || bh->signature[3] != 'R' in chk_boot()
650 || le16_to_cpu(bh->struct_length) < in chk_boot()
652 || bh->class_code[2] != 0x01 in chk_boot()
653 || bh->class_code[1] != 0x04 in chk_boot()
654 || bh->class_code[0] != 0x00 in chk_boot()
655 || (bh->code_type != CODE_TYPE_PC in chk_boot()
656 && bh->code_type != CODE_TYPE_OPEN in chk_boot()
657 && bh->code_type != CODE_TYPE_EFI)) in chk_boot()
660 return bh->code_type; in chk_boot()
1110 struct esas2r_boot_header *bh; in esas2r_read_image_type() local
1127 bh = (struct esas2r_boot_header *)((u8 *)bi + in esas2r_read_image_type()
1133 if (bh->code_type == CODE_TYPE_PC) { in esas2r_read_image_type()
1137 } else if (bh->code_type == CODE_TYPE_EFI) { in esas2r_read_image_type()
1170 thislen = (u32)le16_to_cpu(bh->image_length) * 512; in esas2r_read_image_type()
1173 || bh->indicator == INDICATOR_LAST) in esas2r_read_image_type()