Lines Matching refs:header
197 tmp_part->index, tmp_part->header.signature,
198 tmp_part->header.checksum, tmp_part->header.length,
199 tmp_part->header.name);
211 rc = ppc_md.nvram_write((char *)&part->header, NVRAM_HEADER_LEN, &tmp_index);
241 if (part->header.signature != NVRAM_SIG_OS)
245 part->header.signature = NVRAM_SIG_FREE;
246 sprintf(part->header.name, "wwwwwwwwwwww");
247 part->header.checksum = nvram_checksum(&part->header);
252 if (cur_part == nvram_part || cur_part->header.signature != NVRAM_SIG_FREE) {
256 part->header.length += cur_part->header.length;
257 part->header.checksum = nvram_checksum(&part->header);
268 if (cur_part == nvram_part || cur_part->header.signature != NVRAM_SIG_FREE) {
272 part->header.length += cur_part->header.length;
273 part->header.checksum = nvram_checksum(&part->header);
310 if (part->header.signature != NVRAM_SIG_FREE)
313 if (part->header.length >= NVRAM_MAX_REQ) {
318 if (!size && part->header.length >= NVRAM_MIN_REQ) {
334 new_part->header.signature = NVRAM_SIG_OS;
335 new_part->header.length = size;
336 strcpy(new_part->header.name, "ppc64,linux");
337 new_part->header.checksum = nvram_checksum(&new_part->header);
357 nvram_error_log_size = ((part->header.length - 1) *
362 if (free_part->header.length <= size) {
370 free_part->header.length -= size;
371 free_part->header.checksum = nvram_checksum(&free_part->header);
419 if (part->header.signature != NVRAM_SIG_OS)
422 if (strcmp(part->header.name, "ppc64,linux"))
425 if (part->header.length >= NVRAM_MIN_REQ) {
428 nvram_error_log_size = ((part->header.length - 1) *
464 char * header;
472 header = kmalloc(NVRAM_HEADER_LEN, GFP_KERNEL);
473 if (!header) {
480 err = ppc_md.nvram_read(header, NVRAM_HEADER_LEN, &cur_index);
489 memcpy(&phead, header, NVRAM_HEADER_LEN);
513 memcpy(&tmp_part->header, &phead, NVRAM_HEADER_LEN);
522 kfree(header);