• Home
  • Raw
  • Download

Lines Matching refs:parts

78 static void free_subpart(struct cmdline_parts *parts)  in free_subpart()  argument
82 while (parts->subpart) { in free_subpart()
83 subpart = parts->subpart; in free_subpart()
84 parts->subpart = subpart->next_subpart; in free_subpart()
89 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef) in parse_parts() argument
98 *parts = NULL; in parse_parts()
141 *parts = newparts; in parse_parts()
150 void cmdline_parts_free(struct cmdline_parts **parts) in cmdline_parts_free() argument
154 while (*parts) { in cmdline_parts_free()
155 next_parts = (*parts)->next_parts; in cmdline_parts_free()
156 free_subpart(*parts); in cmdline_parts_free()
157 kfree(*parts); in cmdline_parts_free()
158 *parts = next_parts; in cmdline_parts_free()
163 int cmdline_parts_parse(struct cmdline_parts **parts, const char *cmdline) in cmdline_parts_parse() argument
171 *parts = NULL; in cmdline_parts_parse()
177 next_parts = parts; in cmdline_parts_parse()
194 if (!*parts) { in cmdline_parts_parse()
206 cmdline_parts_free(parts); in cmdline_parts_parse()
211 struct cmdline_parts *cmdline_parts_find(struct cmdline_parts *parts, in cmdline_parts_find() argument
214 while (parts && strncmp(bdev, parts->name, sizeof(parts->name))) in cmdline_parts_find()
215 parts = parts->next_parts; in cmdline_parts_find()
216 return parts; in cmdline_parts_find()
225 int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size, in cmdline_parts_set() argument
233 for (subpart = parts->subpart; subpart; in cmdline_parts_set()