Home
last modified time | relevance | path

Searched refs:hdr_crc_self (Results 1 – 5 of 5) sorted by relevance

/freebsd/stand/libsa/
H A Dgpt.c79 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gptupdate()
80 hdr->hdr_crc_self = crc32(hdr->hdr_crc_self, (const Bytef *)hdr, in gptupdate()
200 crc = hdr->hdr_crc_self; in gptread_hdr()
201 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gptread_hdr()
202 if (crc32(hdr->hdr_crc_self, (const Bytef *)hdr, hdr->hdr_size) != in gptread_hdr()
208 hdr->hdr_crc_self = crc; in gptread_hdr()
272 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gptbootconv()
273 hdr->hdr_crc_self = crc32(hdr->hdr_crc_self, (const Bytef *)hdr, in gptbootconv()
/freebsd/usr.bin/mkimg/
H A Dgpt.c223 hdr->hdr_crc_self = 0; in gpt_write_hdr()
225 le64enc(&hdr->hdr_crc_self, crc); in gpt_write_hdr()
/freebsd/sys/sys/disk/
H A Dgpt.h61 uint32_t hdr_crc_self; member
/freebsd/stand/common/
H A Dpart.c161 crc = le32toh(hdr->hdr_crc_self); in gpt_checkhdr()
162 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gpt_checkhdr()
163 if (crc32(hdr->hdr_crc_self, (const Bytef *)hdr, sz) != crc) { in gpt_checkhdr()
167 hdr->hdr_crc_self = crc; in gpt_checkhdr()
/freebsd/sys/geom/part/
H A Dg_part_gpt.c479 crc = le32toh(buf->hdr_crc_self); in gpt_read_hdr()
480 buf->hdr_crc_self = 0; in gpt_read_hdr()
483 hdr->hdr_crc_self = crc; in gpt_read_hdr()