Lines Matching refs:num_parts
62 int num_parts; member
84 int *num_parts, in newpart() argument
162 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart()
170 *num_parts = this_part + 1; in newpart()
171 alloc_size = *num_parts * sizeof(struct mtd_partition) + in newpart()
177 extra_mem = (unsigned char *)(parts + *num_parts); in newpart()
220 int mtd_id_len, num_parts; in mtdpart_setup_real() local
241 &num_parts, /* out: number of parts */ in mtdpart_setup_real()
262 this_mtd->num_parts = num_parts; in mtdpart_setup_real()
271 this_mtd->mtd_id, this_mtd->num_parts)); in mtdpart_setup_real()
324 for (i = 0, offset = 0; i < part->num_parts; i++) { in parse_cmdline_partitions()
343 part->num_parts--; in parse_cmdline_partitions()
345 sizeof(*part->parts) * (part->num_parts - i)); in parse_cmdline_partitions()
350 *pparts = kmemdup(part->parts, sizeof(*part->parts) * part->num_parts, in parse_cmdline_partitions()
355 return part->num_parts; in parse_cmdline_partitions()