Lines Matching refs:nvram_len
38 static size_t nvram_len; variable
62 if (nvram_len) { in nvram_find_and_copy()
97 nvram_len = ((struct nvram_header *)(nvram_buf))->len; in nvram_find_and_copy()
98 if (nvram_len > size) { in nvram_find_and_copy()
100 nvram_len = size; in nvram_find_and_copy()
102 if (nvram_len >= NVRAM_SPACE) { in nvram_find_and_copy()
104 nvram_len, NVRAM_SPACE - 1); in nvram_find_and_copy()
105 nvram_len = NVRAM_SPACE - 1; in nvram_find_and_copy()
109 DIV_ROUND_UP(nvram_len, 4)); in nvram_find_and_copy()
153 nvram_len = header.len; in nvram_init()
154 if (nvram_len >= NVRAM_SPACE) { in nvram_init()
157 nvram_len = NVRAM_SPACE - 1; in nvram_init()
160 err = mtd_read(mtd, 0, nvram_len, &nvram_len, in nvram_init()
177 if (!nvram_len) { in bcm47xx_nvram_getenv()
226 if (!nvram_len) { in bcm47xx_nvram_get_contents()
232 *nvram_size = nvram_len - sizeof(struct nvram_header); in bcm47xx_nvram_get_contents()