Lines Matching refs:nvram_image
82 static char *nvram_image; variable
87 if (nvram_image == NULL) in core99_nvram_read_byte()
89 return nvram_image[addr]; in core99_nvram_read_byte()
94 if (nvram_image == NULL) in core99_nvram_write_byte()
96 nvram_image[addr] = val; in core99_nvram_write_byte()
103 if (nvram_image == NULL) in core99_nvram_read()
112 memcpy(buf, &nvram_image[i], count); in core99_nvram_read()
121 if (nvram_image == NULL) in core99_nvram_write()
130 memcpy(&nvram_image[i], buf, count); in core99_nvram_write()
137 if (nvram_image == NULL) in core99_nvram_size()
476 if (!is_core_99 || !nvram_data || !nvram_image) in core99_nvram_sync()
480 if (!memcmp(nvram_image, (u8*)nvram_data + core99_bank*NVRAM_SIZE, in core99_nvram_sync()
486 hdr99 = (struct core99_header*)nvram_image; in core99_nvram_sync()
490 hdr99->adler = core99_calc_adler(nvram_image); in core99_nvram_sync()
498 if (core99_write_bank(core99_bank, nvram_image)) in core99_nvram_sync()
517 nvram_image = memblock_alloc(NVRAM_SIZE, SMP_CACHE_BYTES); in core99_nvram_setup()
518 if (!nvram_image) in core99_nvram_setup()
534 nvram_image[i] = nvram_data[i + core99_bank*NVRAM_SIZE]; in core99_nvram_setup()