Lines Matching full:part

16  *              if specified or truncated size is 0 the part is skipped
18 * if omitted the part will immediately follow the previous part
19 * or 0 if the first part
49 #define dbg(x) do { printk("DEBUG-CMDLINE-PART: "); printk x; } while(0)
240 * make sure that part-names with ":" will not be handled as in mtdpart_setup_real()
241 * part of the mtd-id with an ":" in mtdpart_setup_real()
252 * as an <mtd-id>/<part-definition> separator. in mtdpart_setup_real()
339 struct cmdline_mtd_partition *part; in parse_cmdline_partitions() local
353 for (part = partitions; part; part = part->next) { in parse_cmdline_partitions()
354 if ((!mtd_id) || (!strcmp(part->mtd_id, mtd_id))) in parse_cmdline_partitions()
358 if (!part) in parse_cmdline_partitions()
361 for (i = 0, offset = 0; i < part->num_parts; i++) { in parse_cmdline_partitions()
362 if (part->parts[i].offset == OFFSET_CONTINUOUS) in parse_cmdline_partitions()
363 part->parts[i].offset = offset; in parse_cmdline_partitions()
365 offset = part->parts[i].offset; in parse_cmdline_partitions()
367 if (part->parts[i].size == SIZE_REMAINING) in parse_cmdline_partitions()
368 part->parts[i].size = master->size - offset; in parse_cmdline_partitions()
370 if (offset + part->parts[i].size > master->size) { in parse_cmdline_partitions()
372 part->mtd_id); in parse_cmdline_partitions()
373 part->parts[i].size = master->size - offset; in parse_cmdline_partitions()
375 offset += part->parts[i].size; in parse_cmdline_partitions()
377 if (part->parts[i].size == 0) { in parse_cmdline_partitions()
379 part->mtd_id); in parse_cmdline_partitions()
380 part->num_parts--; in parse_cmdline_partitions()
381 memmove(&part->parts[i], &part->parts[i + 1], 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()