Lines Matching refs:parts
23 * <size> and <offset> can be specified such that the parts are out of order
26 * The parts are assigned MTD numbers in the order they are specified in the
63 struct mtd_partition *parts;
89 struct mtd_partition *parts;
169 parts = newpart(s + 1, &s, num_parts, this_part + 1,
171 if (IS_ERR(parts))
172 return parts;
181 parts = kzalloc(alloc_size, GFP_KERNEL);
182 if (!parts)
184 extra_mem = (unsigned char *)(parts + *num_parts);
191 parts[this_part].size = size;
192 parts[this_part].offset = offset;
193 parts[this_part].mask_flags = mask_flags;
194 parts[this_part].add_flags = add_flags;
199 parts[this_part].name = extra_mem;
203 this_part, parts[this_part].name, parts[this_part].offset,
204 parts[this_part].size, parts[this_part].mask_flags));
214 return parts;
227 struct mtd_partition *parts;
276 parts = newpart(p + 1, /* cmdline */
278 &num_parts, /* out: number of parts */
283 if (IS_ERR(parts)) {
291 return PTR_ERR(parts);
298 this_mtd->parts = parts;
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) {
373 part->parts[i].size = master->size - offset;
375 offset += part->parts[i].size;
377 if (part->parts[i].size == 0) {
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,