• Home
  • Raw
  • Download

Lines Matching refs:parts

51 	struct mtd_partition *parts;  member
76 struct mtd_partition *parts; in newpart() local
162 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart()
164 if (!parts) in newpart()
174 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart()
175 if (!parts) in newpart()
180 extra_mem = (unsigned char *)(parts + *num_parts); in newpart()
183 parts[this_part].size = size; in newpart()
184 parts[this_part].offset = offset; in newpart()
185 parts[this_part].mask_flags = mask_flags; in newpart()
194 parts[this_part].name = extra_mem; in newpart()
199 parts[this_part].name, in newpart()
200 parts[this_part].offset, in newpart()
201 parts[this_part].size, in newpart()
202 parts[this_part].mask_flags)); in newpart()
212 return parts; in newpart()
225 struct mtd_partition *parts; in mtdpart_setup_real() local
245 parts = newpart(p + 1, /* cmdline */ in mtdpart_setup_real()
252 if(!parts) in mtdpart_setup_real()
268 this_mtd->parts = parts; in mtdpart_setup_real()
322 if (part->parts[i].offset == OFFSET_CONTINUOUS) in parse_cmdline_partitions()
323 part->parts[i].offset = offset; in parse_cmdline_partitions()
325 offset = part->parts[i].offset; in parse_cmdline_partitions()
326 if (part->parts[i].size == SIZE_REMAINING) in parse_cmdline_partitions()
327 part->parts[i].size = master->size - offset; in parse_cmdline_partitions()
328 if (offset + part->parts[i].size > master->size) in parse_cmdline_partitions()
333 part->parts[i].size = master->size - offset; in parse_cmdline_partitions()
336 offset += part->parts[i].size; in parse_cmdline_partitions()
338 *pparts = part->parts; in parse_cmdline_partitions()