Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/platforms/powermac/
Dnvram.c262 struct core99_header* hdr99 = (struct core99_header*)datas; in core99_check() local
264 if (hdr99->hdr.signature != CORE99_SIGNATURE) { in core99_check()
268 if (hdr99->hdr.cksum != chrp_checksum(&hdr99->hdr)) { in core99_check()
272 if (hdr99->adler != core99_calc_adler(datas)) { in core99_check()
276 return hdr99->generation; in core99_check()
472 struct core99_header* hdr99; in core99_nvram_sync() local
485 hdr99 = (struct core99_header*)nvram_image; in core99_nvram_sync()
486 hdr99->generation++; in core99_nvram_sync()
487 hdr99->hdr.signature = CORE99_SIGNATURE; in core99_nvram_sync()
488 hdr99->hdr.cksum = chrp_checksum(&hdr99->hdr); in core99_nvram_sync()
[all …]