Home
last modified time | relevance | path

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

/linux/arch/powerpc/platforms/powermac/
H A Dnvram.c263 struct core99_header* hdr99 = (struct core99_header*)datas; in core99_check() local
265 if (hdr99->hdr.signature != CORE99_SIGNATURE) { in core99_check()
269 if (hdr99->hdr.cksum != chrp_checksum(&hdr99->hdr)) { in core99_check()
273 if (hdr99->adler != core99_calc_adler(datas)) { in core99_check()
277 return hdr99->generation; in core99_check()
473 struct core99_header* hdr99; in core99_nvram_sync() local
486 hdr99 = (struct core99_header*)nvram_image; in core99_nvram_sync()
487 hdr99->generation++; in core99_nvram_sync()
488 hdr99->hdr.signature = CORE99_SIGNATURE; in core99_nvram_sync()
489 hdr99->hdr.cksum = chrp_checksum(&hdr99->hdr); in core99_nvram_sync()
[all …]