Lines Matching full:nvram
11 * Broadcom BCM963xx SoC board nvram data structure.
13 * The nvram structure varies in size depending on the SoC board version. Use
51 #define BCM963XX_NVRAM_NAND_PART_OFFSET(nvram, part) \ argument
52 bcm963xx_nvram_nand_part_offset(nvram, BCM963XX_NVRAM_NAND_PART_ ##part)
55 const struct bcm963xx_nvram *nvram, in bcm963xx_nvram_nand_part_offset() argument
58 return nvram->nand_part_offset[part] * SZ_1K; in bcm963xx_nvram_nand_part_offset()
61 #define BCM963XX_NVRAM_NAND_PART_SIZE(nvram, part) \ argument
62 bcm963xx_nvram_nand_part_size(nvram, BCM963XX_NVRAM_NAND_PART_ ##part)
65 const struct bcm963xx_nvram *nvram, in bcm963xx_nvram_nand_part_size() argument
68 return nvram->nand_part_size[part] * SZ_1K; in bcm963xx_nvram_nand_part_size()
72 * bcm963xx_nvram_checksum - Verify nvram checksum
74 * @nvram: pointer to full size nvram data structure
81 const struct bcm963xx_nvram *nvram, in bcm963xx_nvram_checksum() argument
87 if (nvram->version <= 4) { in bcm963xx_nvram_checksum()
88 expected = nvram->checksum_v4; in bcm963xx_nvram_checksum()
91 expected = nvram->checksum_v5; in bcm963xx_nvram_checksum()
96 * Calculate the CRC32 value for the nvram with a checksum value in bcm963xx_nvram_checksum()
97 * of 0 without modifying or copying the nvram by combining: in bcm963xx_nvram_checksum()
98 * - The CRC32 of the nvram without the checksum value in bcm963xx_nvram_checksum()
102 crc32_le(~0, (u8 *)nvram, len), 0, sizeof(u32)); in bcm963xx_nvram_checksum()