Lines Matching refs:header
50 extern int _nvram_commit(struct nvram_header *header);
537 struct nvram_header *header;
540 if (!(header = (struct nvram_header *) MALLOC(NULL, MAX_NVRAM_SPACE))) {
548 ret = _nvram_commit(header);
551 MFREE(NULL, header, MAX_NVRAM_SPACE);
559 struct nvram_header *header;
564 if (!(header = (struct nvram_header *) MALLOC(NULL, MAX_NVRAM_SPACE))) {
572 ret = _nvram_commit(header);
576 src = (uint32 *) &header[1];
579 for (i = sizeof(struct nvram_header); i < header->len && i < MAX_NVRAM_SPACE; i += 4)
586 header->magic = NVRAM_INVALID_MAGIC;
588 cfe_writeblk(ret, 0, (unsigned char *) header, header->len);
597 header->magic = NVRAM_CLEAR_MAGIC;
598 nvWriteChars((unsigned char *)&header->magic, sizeof(header->magic));
600 header->magic = NVRAM_INVALID_MAGIC;
601 nvWrite((unsigned short *) header, MAX_NVRAM_SPACE);
603 header->magic = NVRAM_MAGIC;
604 nvWriteChars((unsigned char *)&header->magic, sizeof(header->magic));
610 MFREE(NULL, header, MAX_NVRAM_SPACE);