Lines Matching refs:nvram_header
50 extern int _nvram_commit(struct nvram_header *header);
54 static struct nvram_header *nvram_header = NULL;
62 static struct nvram_header *devinfo_nvram_header = NULL;
184 static struct nvram_header *
206 return (struct nvram_header *)nand_nvh;
215 static struct nvram_header *
218 struct nvram_header *nvh;
264 nvh = (struct nvram_header *)OSL_UNCACHED(flbase + off);
280 nvh = (struct nvram_header *)
303 nvh = (struct nvram_header *)OSL_UNCACHED(flbase + (4 * 1024));
306 nvh = (struct nvram_header *)OSL_UNCACHED(flbase + 1024);
310 nvh = (struct nvram_header *)embedded_nvram;
344 nvram_header = find_nvram(sih, TRUE, &isemb);
355 nvram_header = find_nvram(sih, FALSE, &isemb);
359 if (nvram_header && isemb) {
399 if (!nvram_header)
407 src = idx == 0 ? (uint32 *) nvram_header : (uint32 *) devinfo_nvram_nvh;
409 src = (uint32 *) nvram_header;
414 for (i = 0; i < sizeof(struct nvram_header); i += 4)
426 unsigned int dstlen = nvram_header->len;
452 for (; i < nvram_header->len && i < MAX_NVRAM_SPACE; i += 4)
490 struct nvram_header *header;
493 if (!(header = (struct nvram_header *) MALLOC(NULL, MAX_NVRAM_SPACE))) {
512 struct nvram_header *header;
517 if (!(header = (struct nvram_header *) MALLOC(NULL, MAX_NVRAM_SPACE))) {
532 for (i = sizeof(struct nvram_header); i < header->len && i < MAX_NVRAM_SPACE; i += 4)
575 static struct nvram_header *
590 devinfo_nvram_header = (struct nvram_header *) devinfo_nvram_nvh;
604 nvram_header = find_devinfo_nvram(sih);