Searched refs:NVRAM_SIZE (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/arch/powerpc/platforms/powermac/ |
H A D | nvram.c | 36 #define NVRAM_SIZE 0x2000 /* 8kB of non-volatile RAM */ macro 105 if (*index > NVRAM_SIZE) in core99_nvram_read() 109 if (i + count > NVRAM_SIZE) in core99_nvram_read() 110 count = NVRAM_SIZE - i; in core99_nvram_read() 123 if (*index > NVRAM_SIZE) in core99_nvram_write() 127 if (i + count > NVRAM_SIZE) in core99_nvram_write() 128 count = NVRAM_SIZE - i; in core99_nvram_write() 139 return NVRAM_SIZE; in core99_nvram_size() 148 return NVRAM_SIZE; in ppc32_nvram_size() 153 return in_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult]); in direct_nvram_read_byte() [all …]
|
/openbmc/qemu/hw/rtc/ |
H A D | ds1338.c | 24 #define NVRAM_SIZE 64 macro 40 uint8_t nvram[NVRAM_SIZE]; 53 VMSTATE_UINT8_ARRAY(nvram, DS1338State, NVRAM_SIZE), 94 s->ptr = (s->ptr + 1) & (NVRAM_SIZE - 1); in inc_regptr() 143 s->ptr = data & (NVRAM_SIZE - 1); in ds1338_send() 218 memset(s->nvram, 0, NVRAM_SIZE); in ds1338_reset()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-pcf85363.c | 111 #define NVRAM_SIZE 0x40 macro 399 .size = NVRAM_SIZE, in pcf85363_probe()
|
/openbmc/qemu/hw/ppc/ |
H A D | prep.c | 57 #define NVRAM_SIZE 0x2000 macro 409 PPC_NVRAM_set_params(m48t59, NVRAM_SIZE, "PREP", machine->ram_size, in ibm_40p_init()
|
/openbmc/qemu/hw/sparc64/ |
H A D | sun4u.c | 69 #define NVRAM_SIZE 0x2000 macro 688 sun4u_NVRAM_set_params(nvram, NVRAM_SIZE, "Sun4u", machine->ram_size, in sun4uv_init()
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bnx2.c | 5941 #define NVRAM_SIZE 0x200 macro 5947 __be32 buf[NVRAM_SIZE / 4]; in bnx2_test_nvram() 5961 if ((rc = bnx2_nvram_read(bp, 0x100, data, NVRAM_SIZE)) != 0) in bnx2_test_nvram()
|