Lines Matching refs:nvh
218 struct nvram_header *nvh;
264 nvh = (struct nvram_header *)OSL_UNCACHED(flbase + off);
265 if (nvh->magic != NVRAM_MAGIC)
269 if ((nvh = nand_find_nvram(nfl_info, off)) == NULL)
271 if (nvram_calc_crc(nvh) == (uint8)nvh->crc_ver_init)
272 return nvh;
280 nvh = (struct nvram_header *)
282 if (nvh->magic == NVRAM_MAGIC) {
283 if (nvram_calc_crc(nvh) == (uint8) nvh->crc_ver_init) {
284 return (nvh);
303 nvh = (struct nvram_header *)OSL_UNCACHED(flbase + (4 * 1024));
304 if (nvh->magic == NVRAM_MAGIC)
305 return (nvh);
306 nvh = (struct nvram_header *)OSL_UNCACHED(flbase + 1024);
307 if (nvh->magic == NVRAM_MAGIC)
308 return (nvh);
310 nvh = (struct nvram_header *)embedded_nvram;
311 if (nvh->magic == NVRAM_MAGIC)
312 return (nvh);