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