Lines Matching refs:part
300 struct cmdline_mtd_partition *part; in parse_cmdline_partitions() local
309 for(part = partitions; part; part = part->next) in parse_cmdline_partitions()
311 if ((!mtd_id) || (!strcmp(part->mtd_id, mtd_id))) in parse_cmdline_partitions()
313 for(i = 0, offset = 0; i < part->num_parts; i++) in parse_cmdline_partitions()
315 if (!part->parts[i].offset) in parse_cmdline_partitions()
316 part->parts[i].offset = offset; in parse_cmdline_partitions()
318 offset = part->parts[i].offset; in parse_cmdline_partitions()
319 if (part->parts[i].size == SIZE_REMAINING) in parse_cmdline_partitions()
320 part->parts[i].size = master->size - offset; in parse_cmdline_partitions()
321 if (offset + part->parts[i].size > master->size) in parse_cmdline_partitions()
325 part->mtd_id); in parse_cmdline_partitions()
326 part->parts[i].size = master->size - offset; in parse_cmdline_partitions()
327 part->num_parts = i; in parse_cmdline_partitions()
329 offset += part->parts[i].size; in parse_cmdline_partitions()
331 *pparts = part->parts; in parse_cmdline_partitions()
332 return part->num_parts; in parse_cmdline_partitions()