Lines Matching refs:core99_bank
78 static int core99_bank = 0; variable
284 u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE; in sm_erase_bank()
315 u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE; in sm_write_bank()
349 u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE; in amd_erase_bank()
395 u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE; in amd_write_bank()
479 if (!memcmp(nvram_image, (u8*)nvram_data + core99_bank*NVRAM_SIZE, in core99_nvram_sync()
490 core99_bank = core99_bank ? 0 : 1; in core99_nvram_sync()
492 if (core99_erase_bank(core99_bank)) { in core99_nvram_sync()
493 printk("nvram: Error erasing bank %d\n", core99_bank); in core99_nvram_sync()
497 if (core99_write_bank(core99_bank, nvram_image)) in core99_nvram_sync()
498 printk("nvram: Error writing bank %d\n", core99_bank); in core99_nvram_sync()
528 core99_bank = (gen_bank0 < gen_bank1) ? 1 : 0; in core99_nvram_setup()
531 DBG("nvram: Active bank is: %d\n", core99_bank); in core99_nvram_setup()
534 nvram_image[i] = nvram_data[i + core99_bank*NVRAM_SIZE]; in core99_nvram_setup()