Lines Matching refs:header
43 struct nvram_header __iomem *header; in find_nvram_size() local
47 header = (struct nvram_header *)(end - nvram_sizes[i]); in find_nvram_size()
48 if (header->magic == NVRAM_MAGIC) in find_nvram_size()
58 struct nvram_header __iomem *header; in nvram_find_and_copy() local
73 header = (struct nvram_header *)(iobase + off - size); in nvram_find_and_copy()
80 header = (struct nvram_header *)(iobase + 4096); in nvram_find_and_copy()
81 if (header->magic == NVRAM_MAGIC) { in nvram_find_and_copy()
86 header = (struct nvram_header *)(iobase + 1024); in nvram_find_and_copy()
87 if (header->magic == NVRAM_MAGIC) { in nvram_find_and_copy()
96 __ioread32_copy(nvram_buf, header, sizeof(*header) / 4); in nvram_find_and_copy()
108 __ioread32_copy(nvram_buf + sizeof(*header), header + 1, in nvram_find_and_copy()
142 struct nvram_header header; in nvram_init() local
150 err = mtd_read(mtd, 0, sizeof(header), &bytes_read, (uint8_t *)&header); in nvram_init()
151 if (!err && header.magic == NVRAM_MAGIC && in nvram_init()
152 header.len > sizeof(header)) { in nvram_init()
153 nvram_len = header.len; in nvram_init()
156 header.len, NVRAM_SPACE); in nvram_init()