Lines Matching full:nvram
3 * BCM947xx nvram variable access
51 /* Probe for NVRAM header */
59 pr_warn("nvram already initialized\n"); in nvram_find_and_copy()
63 /* TODO: when nvram is on nand flash check for bad blocks first. */ in nvram_find_and_copy()
75 /* Try embedded NVRAM at 4 KB and 1 KB as last resorts */ in nvram_find_and_copy()
88 pr_err("no nvram found\n"); in nvram_find_and_copy()
95 pr_err("The nvram size according to the header seems to be bigger than the partition on flash\n"); in nvram_find_and_copy()
99 …pr_err("nvram on flash (%zu bytes) is bigger than the reserved space in memory, will just copy the… in nvram_find_and_copy()
112 * On bcm47xx we need access to the NVRAM very early, so we can't use mtd
116 * soon as we get info about flash device, before any NVRAM entry is needed.
142 mtd = get_mtd_device_nm("nvram"); in nvram_init()
151 …pr_err("nvram on flash (%zu bytes) is bigger than the reserved space in memory, will just copy the… in nvram_init()
220 char *nvram; in bcm47xx_nvram_get_contents() local
229 nvram = vmalloc(*nvram_size); in bcm47xx_nvram_get_contents()
230 if (!nvram) in bcm47xx_nvram_get_contents()
232 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size); in bcm47xx_nvram_get_contents()
234 return nvram; in bcm47xx_nvram_get_contents()