Lines Matching refs:nvram
3 * BCM947xx nvram variable access
40 static bool bcm47xx_nvram_is_valid(void __iomem *nvram)
42 return ((struct nvram_header *)nvram)->magic == NVRAM_MAGIC;
55 pr_err("The nvram size according to the header seems to be bigger than the partition on flash\n");
59 pr_err("nvram on flash (%zu bytes) is bigger than the reserved space in memory, will just copy the first %i bytes\n",
79 pr_warn("nvram already initialized\n");
83 /* TODO: when nvram is on nand flash check for bad blocks first. */
104 pr_err("no nvram found\n");
116 pr_warn("nvram already initialized\n");
162 mtd = get_mtd_device_nm("nvram");
171 pr_err("nvram on flash (%zu bytes) is bigger than the reserved space in memory, will just copy the first %i bytes\n",
240 char *nvram;
249 nvram = vmalloc(*nvram_size);
250 if (!nvram)
252 memcpy(nvram, &nvram_buf[sizeof(struct nvram_header)], *nvram_size);
254 return nvram;