Lines Matching refs:num_parts
62 int num_parts; member
84 int *num_parts, in newpart() argument
169 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart()
177 *num_parts = this_part + 1; in newpart()
178 alloc_size = *num_parts * sizeof(struct mtd_partition) + in newpart()
184 extra_mem = (unsigned char *)(parts + *num_parts); in newpart()
228 int mtd_id_len, num_parts; in mtdpart_setup_real() local
278 &num_parts, /* out: number of parts */ in mtdpart_setup_real()
299 this_mtd->num_parts = num_parts; in mtdpart_setup_real()
308 this_mtd->mtd_id, this_mtd->num_parts)); in mtdpart_setup_real()
361 for (i = 0, offset = 0; i < part->num_parts; i++) { in parse_cmdline_partitions()
380 part->num_parts--; in parse_cmdline_partitions()
382 sizeof(*part->parts) * (part->num_parts - i)); in parse_cmdline_partitions()
387 *pparts = kmemdup(part->parts, sizeof(*part->parts) * part->num_parts, in parse_cmdline_partitions()
392 return part->num_parts; in parse_cmdline_partitions()