Home
last modified time | relevance | path

Searched refs:gh_csum (Results 1 – 12 of 12) sorted by relevance

/openbsd/sbin/fdisk/
H A Dgpt.c198 gh.gh_csum = letoh32(legh.gh_csum); in get_header()
199 legh.gh_csum = 0; in get_header()
200 legh.gh_csum = crc32((unsigned char *)&legh, gh.gh_size); in get_header()
201 if (legh.gh_csum != gh.gh_csum) { in get_header()
203 legh.gh_csum, gh.gh_csum); in get_header()
205 if (swap32(legh.gh_csum) != gh.gh_csum) in get_header()
381 printf("gh_csum : 0x%x\n", gh.gh_csum); in GPT_print()
582 gh.gh_csum = 0; in init_gh()
731 legh.gh_csum = 0; in GPT_write()
732 legh.gh_csum = htole32(crc32((unsigned char *)&legh, gh.gh_size)); in GPT_write()
[all …]
/openbsd/sys/arch/armv7/stand/efiboot/
H A Defidev.c326 orig_csum = gh.gh_csum; in findopenbsd_gpt()
327 gh.gh_csum = 0; in findopenbsd_gpt()
329 gh.gh_csum = orig_csum; in findopenbsd_gpt()
/openbsd/sys/arch/riscv64/stand/efiboot/
H A Defidev.c326 orig_csum = gh.gh_csum; in findopenbsd_gpt()
327 gh.gh_csum = 0; in findopenbsd_gpt()
329 gh.gh_csum = orig_csum; in findopenbsd_gpt()
H A Dsoftraid_riscv64.c485 orig_csum = gh.gh_csum; in findopenbsd_gpt()
486 gh.gh_csum = 0; in findopenbsd_gpt()
488 gh.gh_csum = orig_csum; in findopenbsd_gpt()
/openbsd/usr.sbin/installboot/
H A Defi_installboot.c518 orig_csum = gh.gh_csum; in findgptefisys()
519 gh.gh_csum = 0; in findgptefisys()
521 gh.gh_csum = orig_csum; in findgptefisys()
H A Di386_installboot.c650 orig_csum = gh.gh_csum; in findgptefisys()
651 gh.gh_csum = 0; in findgptefisys()
653 gh.gh_csum = orig_csum; in findgptefisys()
/openbsd/sys/arch/amd64/stand/libsa/
H A Dsoftraid_amd64.c493 orig_csum = gh.gh_csum; in findopenbsd_gpt()
494 gh.gh_csum = 0; in findopenbsd_gpt()
496 gh.gh_csum = orig_csum; in findopenbsd_gpt()
/openbsd/sys/arch/arm64/stand/efiboot/
H A Dsoftraid_arm64.c485 orig_csum = gh.gh_csum; in findopenbsd_gpt()
486 gh.gh_csum = 0; in findopenbsd_gpt()
488 gh.gh_csum = orig_csum; in findopenbsd_gpt()
H A Defidev.c326 orig_csum = gh.gh_csum; in findopenbsd_gpt()
327 gh.gh_csum = 0; in findopenbsd_gpt()
329 gh.gh_csum = orig_csum; in findopenbsd_gpt()
/openbsd/sys/arch/amd64/stand/efiboot/
H A Defidev.c336 orig_csum = gh.gh_csum; in findopenbsd_gpt()
337 gh.gh_csum = 0; in findopenbsd_gpt()
339 gh.gh_csum = orig_csum; in findopenbsd_gpt()
/openbsd/sys/sys/
H A Ddisklabel.h359 u_int32_t gh_csum; /* CRC32: with this field as 0 */ member
/openbsd/sys/kern/
H A Dsubr_disk.c482 csum = ngh.gh_csum; in gpt_get_hdr()
483 ngh.gh_csum = 0; in gpt_get_hdr()
484 ngh.gh_csum = htole32(crc32(0, (unsigned char *)&ngh, GPTMINHDRSIZE)); in gpt_get_hdr()
490 csum == ngh.gh_csum) in gpt_get_hdr()