Home
last modified time | relevance | path

Searched refs:NVRAM_SIZE (Results 1 – 4 of 4) sorted by relevance

/linux-3.4.99/arch/powerpc/platforms/powermac/
Dnvram.c40 #define NVRAM_SIZE 0x2000 /* 8kB of non-volatile RAM */ macro
109 if (*index > NVRAM_SIZE) in core99_nvram_read()
113 if (i + count > NVRAM_SIZE) in core99_nvram_read()
114 count = NVRAM_SIZE - i; in core99_nvram_read()
127 if (*index > NVRAM_SIZE) in core99_nvram_write()
131 if (i + count > NVRAM_SIZE) in core99_nvram_write()
132 count = NVRAM_SIZE - i; in core99_nvram_write()
143 return NVRAM_SIZE; in core99_nvram_size()
152 return in_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult]); in direct_nvram_read_byte()
157 out_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult], val); in direct_nvram_write_byte()
[all …]
/linux-3.4.99/drivers/macintosh/
Dnvram.c19 #define NVRAM_SIZE 8192 macro
30 offset += NVRAM_SIZE; in nvram_llseek()
50 if (*ppos >= NVRAM_SIZE) in read_nvram()
52 for (i = *ppos; count > 0 && i < NVRAM_SIZE; ++i, ++p, --count) in read_nvram()
68 if (*ppos >= NVRAM_SIZE) in write_nvram()
70 for (i = *ppos; count > 0 && i < NVRAM_SIZE; ++i, ++p, --count) { in write_nvram()
/linux-3.4.99/drivers/char/
Dgeneric_nvram.c29 #define NVRAM_SIZE 8192 macro
161 nvram_len = NVRAM_SIZE; in nvram_init()
/linux-3.4.99/drivers/net/ethernet/broadcom/
Dbnx2.c5887 #define NVRAM_SIZE 0x200 macro
5893 __be32 buf[NVRAM_SIZE / 4]; in bnx2_test_nvram()
5907 if ((rc = bnx2_nvram_read(bp, 0x100, data, NVRAM_SIZE)) != 0) in bnx2_test_nvram()