Lines Matching refs:core99_bank
59 static int core99_bank = 0; variable
140 u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE; in core99_erase_bank()
164 u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE; in core99_write_bank()
260 core99_bank = (gen_bank0 < gen_bank1) ? 1 : 0; in pmac_nvram_init()
263 printk("nvram: Active bank is: %d\n", core99_bank); in pmac_nvram_init()
266 nvram_image[i] = nvram_data[i + core99_bank*NVRAM_SIZE]; in pmac_nvram_init()
293 if (!memcmp(nvram_image, (u8*)nvram_data + core99_bank*NVRAM_SIZE, in pmac_nvram_update()
304 core99_bank = core99_bank ? 0 : 1; in pmac_nvram_update()
305 if (core99_erase_bank(core99_bank)) { in pmac_nvram_update()
306 printk("nvram: Error erasing bank %d\n", core99_bank); in pmac_nvram_update()
309 if (core99_write_bank(core99_bank, nvram_image)) in pmac_nvram_update()
310 printk("nvram: Error writing bank %d\n", core99_bank); in pmac_nvram_update()