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