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
241 * part of the mtd-id with an ":"
252 * as an <mtd-id>/<part-definition> separator.
339 struct cmdline_mtd_partition *part;
353 for (part = partitions; part; part = part->next) {
354 if ((!mtd_id) || (!strcmp(part->mtd_id, mtd_id)))
358 if (!part)
361 for (i = 0, offset = 0; i < part->num_parts; i++) {
362 if (part->parts[i].offset == OFFSET_CONTINUOUS)
363 part->parts[i].offset = offset;
365 offset = part->parts[i].offset;
367 if (part->parts[i].size == SIZE_REMAINING)
368 part->parts[i].size = master->size - offset;
370 if (offset + part->parts[i].size > master->size) {
372 part->mtd_id);
373 part->parts[i].size = master->size - offset;
375 offset += part->parts[i].size;
377 if (part->parts[i].size == 0) {
379 part->mtd_id);
380 part->num_parts--;
381 memmove(&part->parts[i], &part->parts[i + 1],
382 sizeof(*part->parts) * (part->num_parts - i));
387 *pparts = kmemdup(part->parts, sizeof(*part->parts) * part->num_parts,
392 return part->num_parts;