Lines Matching refs:subpart
38 struct cmdline_subpart *subpart;
42 static int parse_subpart(struct cmdline_subpart **subpart, char *partdef)
47 *subpart = NULL;
98 *subpart = new_subpart;
107 struct cmdline_subpart *subpart;
109 while (parts->subpart) {
110 subpart = parts->subpart;
111 parts->subpart = subpart->next_subpart;
112 kfree(subpart);
138 next_subpart = &newparts->subpart;
149 if (!newparts->subpart) {
228 static int add_part(int slot, struct cmdline_subpart *subpart,
237 put_partition(state, slot, subpart->from >> 9,
238 subpart->size >> 9);
242 strscpy(info->volname, subpart->name, sizeof(info->volname));
256 struct cmdline_subpart *subpart;
259 for (subpart = parts->subpart; subpart;
260 subpart = subpart->next_subpart, slot++) {
261 if (subpart->from == (sector_t)(~0ULL))
262 subpart->from = from;
264 from = subpart->from;
269 if (subpart->size > (disk_size - from))
270 subpart->size = disk_size - from;
272 from += subpart->size;
274 if (add_part(slot, subpart, state))