Home
last modified time | relevance | path

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

/block/
Dcmdline-parser.c79 static void free_subpart(struct cmdline_parts *parts) in free_subpart() argument
83 while (parts->subpart) { in free_subpart()
84 subpart = parts->subpart; in free_subpart()
85 parts->subpart = subpart->next_subpart; in free_subpart()
90 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef) in parse_parts() argument
99 *parts = NULL; in parse_parts()
142 *parts = newparts; in parse_parts()
151 void cmdline_parts_free(struct cmdline_parts **parts) in cmdline_parts_free() argument
155 while (*parts) { in cmdline_parts_free()
156 next_parts = (*parts)->next_parts; in cmdline_parts_free()
[all …]
Dpartition-generic.c560 if (state->parts[p].size) in rescan_partitions()
569 size = state->parts[p].size; in rescan_partitions()
573 from = state->parts[p].from; in rescan_partitions()
618 state->parts[p].flags, in rescan_partitions()
619 &state->parts[p].info); in rescan_partitions()
626 if (state->parts[p].flags & ADDPART_FLAG_RAID) in rescan_partitions()
/block/partitions/
Dcmdline.c39 info = &state->parts[slot].info; in add_part()
49 state->parts[slot].has_info = true; in add_part()
72 struct cmdline_parts *parts; in cmdline_partition() local
89 parts = cmdline_parts_find(bdev_parts, bdev); in cmdline_partition()
90 if (!parts) in cmdline_partition()
95 cmdline_parts_set(parts, disk_size, 1, add_part, (void *)state); in cmdline_partition()
Dcheck.c125 state->parts = vzalloc(nr * sizeof(state->parts[0])); in allocate_partitions()
126 if (!state->parts) { in allocate_partitions()
138 vfree(state->parts); in free_partitions()
166 memset(state->parts, 0, state->limit * sizeof(state->parts[0])); in check_partition()
Dcheck.h19 } *parts; member
47 p->parts[n].from = from; in put_partition()
48 p->parts[n].size = size; in put_partition()
Dsun.c110 state->parts[slot].flags = 0; in sun_partition()
113 state->parts[slot].flags |= ADDPART_FLAG_RAID; in sun_partition()
115 state->parts[slot].flags |= ADDPART_FLAG_WHOLEDISK; in sun_partition()
Dmsdos.c102 struct partition_meta_info *info = &state->parts[slot].info; in set_info()
107 state->parts[slot].has_info = true; in set_info()
186 state->parts[state->next].flags = ADDPART_FLAG_RAID; in parse_extended()
559 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.c76 state->parts[slot].flags = ADDPART_FLAG_RAID; in sgi_partition()
Dmac.c90 state->parts[slot].flags = ADDPART_FLAG_RAID; in mac_partition()