Lines Matching refs:subpart
11 static int parse_subpart(struct cmdline_subpart **subpart, char *partdef) in parse_subpart() argument
16 *subpart = NULL; in parse_subpart()
72 *subpart = new_subpart; in parse_subpart()
81 struct cmdline_subpart *subpart; in free_subpart() local
83 while (parts->subpart) { in free_subpart()
84 subpart = parts->subpart; in free_subpart()
85 parts->subpart = subpart->next_subpart; in free_subpart()
86 kfree(subpart); in free_subpart()
116 next_subpart = &newparts->subpart; in parse_parts()
136 if (!newparts->subpart) { in parse_parts()
232 struct cmdline_subpart *subpart; in cmdline_parts_set() local
234 for (subpart = parts->subpart; subpart; in cmdline_parts_set()
235 subpart = subpart->next_subpart, slot++) { in cmdline_parts_set()
236 if (subpart->from == (sector_t)(~0ULL)) in cmdline_parts_set()
237 subpart->from = from; in cmdline_parts_set()
239 from = subpart->from; in cmdline_parts_set()
244 if (subpart->size > (disk_size - from)) in cmdline_parts_set()
245 subpart->size = disk_size - from; in cmdline_parts_set()
247 from += subpart->size; in cmdline_parts_set()
249 if (add_part(slot, subpart, param)) in cmdline_parts_set()