Home
last modified time | relevance | path

Searched refs:parts (Results 1 – 10 of 10) sorted by relevance

/block/
Dcmdline-parser.c78 static void free_subpart(struct cmdline_parts *parts) in free_subpart() argument
82 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() argument
98 *parts = NULL; in parse_parts()
141 *parts = newparts; in parse_parts()
150 void cmdline_parts_free(struct cmdline_parts **parts) in cmdline_parts_free() argument
154 while (*parts) { in cmdline_parts_free()
155 next_parts = (*parts)->next_parts; in cmdline_parts_free()
[all …]
Dpartition-generic.c481 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()
/block/partitions/
Dcmdline.c38 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() local
88 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()
Dcheck.c124 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()
Dcheck.h18 } *parts; member
46 p->parts[n].from = from; in put_partition()
47 p->parts[n].size = size; in put_partition()
Dsun.c109 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()
Dmsdos.c101 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()
Defi.c722 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()
Dsgi.c75 state->parts[slot].flags = ADDPART_FLAG_RAID; in sgi_partition()
Dmac.c85 state->parts[slot].flags = ADDPART_FLAG_RAID; in mac_partition()