Searched refs:nvram_size (Results 1 – 10 of 10) sorted by relevance
21 static unsigned int nvram_size; variable25 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 …]
22 static unsigned int nvram_size; variable32 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()
61 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()
196 if (ppc_md.nvram_size) in nvram_get_size()197 return ppc_md.nvram_size(); in nvram_get_size()
40 static unsigned int nvram_size; variable167 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 …]
219 resource_size_t nvram_size = SZ_128K; in autcpu12_nvram_init() local236 nvram_size = SZ_32K; in autcpu12_nvram_init()242 autcpu12_nvram_resource[0].start + nvram_size - 1; in autcpu12_nvram_init()
153 ppc_md.nvram_size = mmio_nvram_get_size; in mmio_nvram_init()
214 .nvram_size = beat_nvram_get_size, in define_machine()
169 ssize_t (*nvram_size)(void); member
540 ppc_md.nvram_size = core99_nvram_size; in core99_nvram_setup()