Lines Matching full:partition
42 struct list_head partition; member
163 * In NVRAM the partition containing the error log buffer will looks like:
217 * Reads nvram partition for at most 'length'
259 * This sets up a partition with an "OS" signature.
262 * 1.) If a partition with the indicated name already exists...
265 * 2.) Search for a free partition that is large enough.
266 * 3.) If there's not a free partition large enough, recycle any obsolete
284 pr_info("nvram: Found too small %s partition," in nvram_init_os_partition()
295 pr_info("nvram: No room to create %s partition, " in nvram_init_os_partition()
307 " partition, err %d\n", part->name, (int)p); in nvram_init_os_partition()
417 * Reads the oops/panic report, rtas, of-config and common partition.
418 * Returns the length of the data we read from each partition.
478 pr_err("nvram: Failed to find partition %s, " in nvram_pstore_read()
579 pr_err("nvram: Failed to initialize oops partition!"); in nvram_init_oops_partition()
582 pr_notice("nvram: Using %s partition to log both" in nvram_init_oops_partition()
588 pr_err("nvram: Failed to initialize oops partition!"); in nvram_init_oops_partition()
594 pr_err("nvram: No memory for %s partition\n", in nvram_init_oops_partition()
618 "skipping compression of %s partition data\n", in nvram_init_oops_partition()
643 * partition. If that's too much, go back and capture uncompressed text.
712 list_for_each_entry(tmp_part, &nvram_partitions, partition) { in nvram_print_partitions()
754 * partition be removed? 1=remove, 0=keep
776 * @name: name of the partition to remove, or NULL for a
778 * @sig: signature of the partition(s) to remove
789 list_for_each_entry(part, &nvram_partitions, partition) { in nvram_remove_partition()
793 /* Make partition a free partition */ in nvram_remove_partition()
806 list_for_each_entry_safe(part, tmp, &nvram_partitions, partition) { in nvram_remove_partition()
819 list_del(&part->partition); in nvram_remove_partition()
829 * nvram_create_partition - Create a partition in nvram
830 * @name: name of the partition to create
831 * @sig: signature of the partition to create
837 * partition. If you provided a min_size smaller than req_size
870 /* Find a free partition that will give us the maximum needed size in nvram_create_partition()
872 list_for_each_entry(part, &nvram_partitions, partition) { in nvram_create_partition()
890 /* Create our OS partition */ in nvram_create_partition()
909 list_add_tail(&new_part->partition, &free_part->partition); in nvram_create_partition()
911 /* Adjust or remove the partition we stole the space from */ in nvram_create_partition()
923 list_del(&free_part->partition); in nvram_create_partition()
927 /* Clear the new partition */ in nvram_create_partition()
943 * nvram_get_partition_size - Get the data size of an nvram partition
945 * the partition. The same value that is returned by
952 list_for_each_entry(part, &nvram_partitions, partition) { in nvram_get_partition_size()
961 * nvram_find_partition - Find an nvram partition by signature and name
962 * @name: Name of the partition or NULL for any name
964 * @out_size: if non-NULL, returns the size of the data part of the partition
970 list_for_each_entry(p, &nvram_partitions, partition) { in nvram_find_partition()
1020 printk(KERN_WARNING "WARNING: nvram partition checksum" in nvram_scan_partitions()
1023 printk(KERN_WARNING "Terminating nvram partition scan\n"); in nvram_scan_partitions()
1028 "detected: 0-length partition\n"); in nvram_scan_partitions()
1040 list_add_tail(&tmp_part->partition, &nvram_partitions); in nvram_scan_partitions()