Home
last modified time | relevance | path

Searched refs:nvram_size (Results 1 – 10 of 10) 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 = be32_to_cpup(nbytes_p); in opal_nvram_init()
81 pr_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 = be32_to_cpup(nbytes_p); in chrp_nvram_init()
84 printk(KERN_INFO "CHRP nvram contains %u bytes\n", nvram_size); in chrp_nvram_init()
/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()
87 if (!ppc_md.nvram_size) { in dev_nvram_read()
92 size = ppc_md.nvram_size(); in dev_nvram_read()
133 if (!ppc_md.nvram_size) in dev_nvram_write()
137 size = ppc_md.nvram_size(); in dev_nvram_write()
489 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0) in nvram_scan_partitions()
491 total_size = ppc_md.nvram_size(); in nvram_scan_partitions()
558 if (ppc_md.nvram_size == NULL || ppc_md.nvram_size() <= 0) in nvram_init()
Dsetup_32.c196 if (ppc_md.nvram_size) in nvram_get_size()
197 return ppc_md.nvram_size(); in nvram_get_size()
/arch/powerpc/platforms/pseries/
Dnvram.c40 static unsigned int nvram_size; variable
167 if (nvram_size == 0 || nvram_fetch == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_read()
170 if (*index >= nvram_size) in pSeries_nvram_read()
174 if (i + count > nvram_size) in pSeries_nvram_read()
175 count = nvram_size - i; in pSeries_nvram_read()
210 if (nvram_size == 0 || nvram_store == RTAS_UNKNOWN_SERVICE) in pSeries_nvram_write()
213 if (*index >= nvram_size) in pSeries_nvram_write()
217 if (i + count > nvram_size) in pSeries_nvram_write()
218 count = nvram_size - i; in pSeries_nvram_write()
246 return nvram_size ? nvram_size : -ENODEV; in pSeries_nvram_get_size()
[all …]
/arch/arm/mach-clps711x/
Dboard-autcpu12.c219 resource_size_t nvram_size = SZ_128K; in autcpu12_nvram_init() local
236 nvram_size = SZ_32K; in autcpu12_nvram_init()
242 autcpu12_nvram_resource[0].start + nvram_size - 1; in autcpu12_nvram_init()
/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.h169 ssize_t (*nvram_size)(void); member
/arch/powerpc/platforms/powermac/
Dnvram.c540 ppc_md.nvram_size = core99_nvram_size; in core99_nvram_setup()