Lines Matching refs:num_parts
75 int num_parts; member
97 int *num_parts, in newpart() argument
175 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart()
183 *num_parts = this_part + 1; in newpart()
184 alloc_size = *num_parts * sizeof(struct mtd_partition) + in newpart()
190 extra_mem = (unsigned char *)(parts + *num_parts); in newpart()
233 int mtd_id_len, num_parts; in mtdpart_setup_real() local
254 &num_parts, /* out: number of parts */ in mtdpart_setup_real()
275 this_mtd->num_parts = num_parts; in mtdpart_setup_real()
284 this_mtd->mtd_id, this_mtd->num_parts)); in mtdpart_setup_real()
337 for (i = 0, offset = 0; i < part->num_parts; i++) { in parse_cmdline_partitions()
356 part->num_parts--; in parse_cmdline_partitions()
358 sizeof(*part->parts) * (part->num_parts - i)); in parse_cmdline_partitions()
363 *pparts = kmemdup(part->parts, sizeof(*part->parts) * part->num_parts, in parse_cmdline_partitions()
368 return part->num_parts; in parse_cmdline_partitions()