Lines Matching refs:nvram_image
86 static char *nvram_image; variable
91 if (nvram_image == NULL) in core99_nvram_read_byte()
93 return nvram_image[addr]; in core99_nvram_read_byte()
98 if (nvram_image == NULL) in core99_nvram_write_byte()
100 nvram_image[addr] = val; in core99_nvram_write_byte()
107 if (nvram_image == NULL) in core99_nvram_read()
116 memcpy(buf, &nvram_image[i], count); in core99_nvram_read()
125 if (nvram_image == NULL) in core99_nvram_write()
134 memcpy(&nvram_image[i], buf, count); in core99_nvram_write()
141 if (nvram_image == NULL) in core99_nvram_size()
475 if (!is_core_99 || !nvram_data || !nvram_image) in core99_nvram_sync()
479 if (!memcmp(nvram_image, (u8*)nvram_data + core99_bank*NVRAM_SIZE, in core99_nvram_sync()
485 hdr99 = (struct core99_header*)nvram_image; in core99_nvram_sync()
489 hdr99->adler = core99_calc_adler(nvram_image); in core99_nvram_sync()
497 if (core99_write_bank(core99_bank, nvram_image)) in core99_nvram_sync()
516 nvram_image = alloc_bootmem(NVRAM_SIZE); in core99_nvram_setup()
517 if (nvram_image == NULL) { in core99_nvram_setup()
534 nvram_image[i] = nvram_data[i + core99_bank*NVRAM_SIZE]; in core99_nvram_setup()