Lines Matching refs:parts
79 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()
157 free_subpart(*parts); in cmdline_parts_free()
158 kfree(*parts); in cmdline_parts_free()
159 *parts = next_parts; in cmdline_parts_free()
164 int cmdline_parts_parse(struct cmdline_parts **parts, const char *cmdline) in cmdline_parts_parse() argument
172 *parts = NULL; in cmdline_parts_parse()
178 next_parts = parts; in cmdline_parts_parse()
195 if (!*parts) { in cmdline_parts_parse()
207 cmdline_parts_free(parts); in cmdline_parts_parse()
212 struct cmdline_parts *cmdline_parts_find(struct cmdline_parts *parts, in cmdline_parts_find() argument
215 while (parts && strncmp(bdev, parts->name, sizeof(parts->name))) in cmdline_parts_find()
216 parts = parts->next_parts; in cmdline_parts_find()
217 return parts; in cmdline_parts_find()
226 int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size, in cmdline_parts_set() argument
234 for (subpart = parts->subpart; subpart; in cmdline_parts_set()