Lines Matching full:nvram
52 struct bcm963xx_nvram *nvram) in bcm63xx_read_nvram() argument
58 /* extract nvram data */ in bcm63xx_read_nvram()
60 &retlen, (void *)nvram); in bcm63xx_read_nvram()
64 ret = bcm963xx_nvram_checksum(nvram, &expected_crc, &actual_crc); in bcm63xx_read_nvram()
66 pr_warn("nvram checksum failed, contents may be invalid (expected %08x, got %08x)\n", in bcm63xx_read_nvram()
69 if (!nvram->psi_size) in bcm63xx_read_nvram()
70 nvram->psi_size = BCM963XX_DEFAULT_PSI_SIZE; in bcm63xx_read_nvram()
81 const struct mtd_partition **pparts, struct bcm963xx_nvram *nvram) in bcm63xx_parse_cfe_nor_partitions() argument
93 nvramlen = nvram->psi_size * SZ_1K; in bcm63xx_parse_cfe_nor_partitions()
106 parts[curpart].name = "nvram"; in bcm63xx_parse_cfe_nor_partitions()
130 struct bcm963xx_nvram *nvram = NULL; in bcm63xx_parse_cfe_partitions() local
136 nvram = vzalloc(sizeof(*nvram)); in bcm63xx_parse_cfe_partitions()
137 if (!nvram) in bcm63xx_parse_cfe_partitions()
140 ret = bcm63xx_read_nvram(master, nvram); in bcm63xx_parse_cfe_partitions()
145 ret = bcm63xx_parse_cfe_nor_partitions(master, pparts, nvram); in bcm63xx_parse_cfe_partitions()
150 vfree(nvram); in bcm63xx_parse_cfe_partitions()