• Home
  • Raw
  • Download

Lines Matching refs:header

197 		       tmp_part->index, tmp_part->header.signature,  in nvram_print_partitions()
198 tmp_part->header.checksum, tmp_part->header.length, in nvram_print_partitions()
199 tmp_part->header.name); in nvram_print_partitions()
211 rc = ppc_md.nvram_write((char *)&part->header, NVRAM_HEADER_LEN, &tmp_index); in nvram_write_header()
245 if (sig && part->header.signature != sig) in nvram_find_partition()
247 if (name && 0 != strncmp(name, part->header.name, 12)) in nvram_find_partition()
266 if (part->header.signature != NVRAM_SIG_OS) in nvram_remove_os_partition()
270 part->header.signature = NVRAM_SIG_FREE; in nvram_remove_os_partition()
271 sprintf(part->header.name, "wwwwwwwwwwww"); in nvram_remove_os_partition()
272 part->header.checksum = nvram_checksum(&part->header); in nvram_remove_os_partition()
277 if (cur_part == nvram_part || cur_part->header.signature != NVRAM_SIG_FREE) { in nvram_remove_os_partition()
281 part->header.length += cur_part->header.length; in nvram_remove_os_partition()
282 part->header.checksum = nvram_checksum(&part->header); in nvram_remove_os_partition()
293 if (cur_part == nvram_part || cur_part->header.signature != NVRAM_SIG_FREE) { in nvram_remove_os_partition()
297 part->header.length += cur_part->header.length; in nvram_remove_os_partition()
298 part->header.checksum = nvram_checksum(&part->header); in nvram_remove_os_partition()
335 if (part->header.signature != NVRAM_SIG_FREE) in nvram_create_os_partition()
338 if (part->header.length >= NVRAM_MAX_REQ) { in nvram_create_os_partition()
343 if (!size && part->header.length >= NVRAM_MIN_REQ) { in nvram_create_os_partition()
359 new_part->header.signature = NVRAM_SIG_OS; in nvram_create_os_partition()
360 new_part->header.length = size; in nvram_create_os_partition()
361 strcpy(new_part->header.name, "ppc64,linux"); in nvram_create_os_partition()
362 new_part->header.checksum = nvram_checksum(&new_part->header); in nvram_create_os_partition()
382 nvram_error_log_size = ((part->header.length - 1) * in nvram_create_os_partition()
387 if (free_part->header.length <= size) { in nvram_create_os_partition()
395 free_part->header.length -= size; in nvram_create_os_partition()
396 free_part->header.checksum = nvram_checksum(&free_part->header); in nvram_create_os_partition()
444 if (part->header.signature != NVRAM_SIG_OS) in nvram_setup_partition()
447 if (strcmp(part->header.name, "ppc64,linux")) in nvram_setup_partition()
450 if (part->header.length >= NVRAM_MIN_REQ) { in nvram_setup_partition()
453 nvram_error_log_size = ((part->header.length - 1) * in nvram_setup_partition()
489 char * header; in nvram_scan_partitions() local
497 header = kmalloc(NVRAM_HEADER_LEN, GFP_KERNEL); in nvram_scan_partitions()
498 if (!header) { in nvram_scan_partitions()
505 err = ppc_md.nvram_read(header, NVRAM_HEADER_LEN, &cur_index); in nvram_scan_partitions()
514 memcpy(&phead, header, NVRAM_HEADER_LEN); in nvram_scan_partitions()
538 memcpy(&tmp_part->header, &phead, NVRAM_HEADER_LEN); in nvram_scan_partitions()
547 kfree(header); in nvram_scan_partitions()