Searched refs:parts (Results 1 – 10 of 10) sorted by relevance
78 static void free_subpart(struct cmdline_parts *parts) in free_subpart() argument82 while (parts->subpart) { in free_subpart()83 subpart = parts->subpart; in free_subpart()84 parts->subpart = subpart->next_subpart; in free_subpart()89 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef) in parse_parts() argument98 *parts = NULL; in parse_parts()141 *parts = newparts; in parse_parts()150 void cmdline_parts_free(struct cmdline_parts **parts) in cmdline_parts_free() argument154 while (*parts) { in cmdline_parts_free()155 next_parts = (*parts)->next_parts; in cmdline_parts_free()[all …]
481 if (state->parts[p].size) in rescan_partitions()491 size = state->parts[p].size; in rescan_partitions()495 from = state->parts[p].from; in rescan_partitions()524 if (state->parts[p].has_info) in rescan_partitions()525 info = &state->parts[p].info; in rescan_partitions()527 state->parts[p].flags, in rescan_partitions()528 &state->parts[p].info); in rescan_partitions()535 if (state->parts[p].flags & ADDPART_FLAG_RAID) in rescan_partitions()
38 info = &state->parts[slot].info; in add_part()48 state->parts[slot].has_info = true; in add_part()71 struct cmdline_parts *parts; in cmdline_partition() local88 parts = cmdline_parts_find(bdev_parts, bdev); in cmdline_partition()89 if (!parts) in cmdline_partition()94 cmdline_parts_set(parts, disk_size, 1, add_part, (void *)state); in cmdline_partition()
124 state->parts = vzalloc(nr * sizeof(state->parts[0])); in allocate_partitions()125 if (!state->parts) { in allocate_partitions()137 vfree(state->parts); in free_partitions()165 memset(state->parts, 0, state->limit * sizeof(state->parts[0])); in check_partition()
18 } *parts; member46 p->parts[n].from = from; in put_partition()47 p->parts[n].size = size; in put_partition()
109 state->parts[slot].flags = 0; in sun_partition()112 state->parts[slot].flags |= ADDPART_FLAG_RAID; in sun_partition()114 state->parts[slot].flags |= ADDPART_FLAG_WHOLEDISK; in sun_partition()
101 struct partition_meta_info *info = &state->parts[slot].info; in set_info()106 state->parts[slot].has_info = true; in set_info()185 state->parts[state->next].flags = ADDPART_FLAG_RAID; in parse_extended()556 state->parts[slot].flags = ADDPART_FLAG_RAID; in msdos_partition()
722 state->parts[i + 1].flags = ADDPART_FLAG_RAID; in efi_partition()724 info = &state->parts[i + 1].info; in efi_partition()738 state->parts[i + 1].has_info = true; in efi_partition()
75 state->parts[slot].flags = ADDPART_FLAG_RAID; in sgi_partition()
85 state->parts[slot].flags = ADDPART_FLAG_RAID; in mac_partition()