Lines Matching refs:parts
79 static void free_subpart(struct cmdline_parts *parts)
83 while (parts->subpart) {
84 subpart = parts->subpart;
85 parts->subpart = subpart->next_subpart;
90 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef)
99 *parts = NULL;
142 *parts = newparts;
151 void cmdline_parts_free(struct cmdline_parts **parts)
155 while (*parts) {
156 next_parts = (*parts)->next_parts;
157 free_subpart(*parts);
158 kfree(*parts);
159 *parts = next_parts;
164 int cmdline_parts_parse(struct cmdline_parts **parts, const char *cmdline)
172 *parts = NULL;
178 next_parts = parts;
195 if (!*parts) {
207 cmdline_parts_free(parts);
212 struct cmdline_parts *cmdline_parts_find(struct cmdline_parts *parts,
215 while (parts && strncmp(bdev, parts->name, sizeof(parts->name)))
216 parts = parts->next_parts;
217 return parts;
226 int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size,
234 for (subpart = parts->subpart; subpart;