Home
last modified time | relevance | path

Searched refs:nvram_size (Results 1 – 9 of 9) sorted by relevance

/arch/powerpc/platforms/powernv/
Dopal-nvram.c21 static unsigned int nvram_size; variable
25 return nvram_size; in opal_nvram_size()
33 if (*index >= nvram_size) in opal_nvram_read()
36 if ((off + count) > nvram_size) in opal_nvram_read()
37 count = nvram_size - off; in opal_nvram_read()
50 if (*index >= nvram_size) in opal_nvram_write()
53 if ((off + count) > nvram_size) in opal_nvram_write()
54 count = nvram_size - off; in opal_nvram_write()
79 nvram_size = *nbytes_p; in opal_nvram_init()
81 printk(KERN_INFO "OPAL nvram setup, %u bytes\n", nvram_size); in opal_nvram_init()
[all …]
/arch/powerpc/platforms/chrp/
Dnvram.c22 static unsigned int nvram_size; variable
32 if (addr >= nvram_size) { in chrp_nvram_read()
34 current->comm, addr, nvram_size); in chrp_nvram_read()
53 if (addr >= nvram_size) { in chrp_nvram_write()
55 current->comm, addr, nvram_size); in chrp_nvram_write()
82 nvram_size = *nbytes_p; in chrp_nvram_init()
84 printk(KERN_INFO "CHRP nvram contains %u bytes\n", nvram_size); in chrp_nvram_init()
/arch/powerpc/platforms/pseries/
Dnvram.c32 static unsigned int nvram_size; variable
128 if (nvram_size == 0 || nvram_fetch == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_read()
131 if (*index >= nvram_size) in pSeries_nvram_read()
135 if (i + count > nvram_size) in pSeries_nvram_read()
136 count = nvram_size - i; in pSeries_nvram_read()
171 if (nvram_size == 0 || nvram_store == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_write()
174 if (*index >= nvram_size) in pSeries_nvram_write()
178 if (i + count > nvram_size) in pSeries_nvram_write()
179 count = nvram_size - i; in pSeries_nvram_write()
207 return nvram_size ? nvram_size : -ENODEV; in pSeries_nvram_get_size()
[all …]
/arch/powerpc/kernel/
Dnvram_64.c61 if (ppc_md.nvram_size == NULL) in dev_nvram_llseek()
63 size = ppc_md.nvram_size(); in dev_nvram_llseek()
88 if (!ppc_md.nvram_size) in dev_nvram_read()
92 size = ppc_md.nvram_size(); in dev_nvram_read()
125 if (!ppc_md.nvram_size) in dev_nvram_write()
129 size = ppc_md.nvram_size(); in dev_nvram_write()
477 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0) in nvram_scan_partitions()
479 total_size = ppc_md.nvram_size(); in nvram_scan_partitions()
545 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0) in nvram_init()
Dsetup_32.c221 if (ppc_md.nvram_size) in nvram_get_size()
222 return ppc_md.nvram_size(); in nvram_get_size()
/arch/powerpc/sysdev/
Dmmio_nvram.c153 ppc_md.nvram_size = mmio_nvram_get_size; in mmio_nvram_init()
/arch/powerpc/platforms/cell/
Dcelleb_setup.c214 .nvram_size = beat_nvram_get_size, in define_machine()
/arch/powerpc/include/asm/
Dmachdep.h147 ssize_t (*nvram_size)(void); member
/arch/powerpc/platforms/powermac/
Dnvram.c540 ppc_md.nvram_size = core99_nvram_size; in core99_nvram_setup()