Lines Matching refs:parts
28 struct mtd_partition *parts; in parse_fixed_partitions() local
70 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in parse_fixed_partitions()
71 if (!parts) in parse_fixed_partitions()
105 parts[i].offset = of_read_number(reg, a_cells); in parse_fixed_partitions()
106 parts[i].size = of_read_number(reg + a_cells, s_cells); in parse_fixed_partitions()
107 parts[i].of_node = pp; in parse_fixed_partitions()
112 parts[i].name = partname; in parse_fixed_partitions()
115 parts[i].mask_flags |= MTD_WRITEABLE; in parse_fixed_partitions()
118 parts[i].mask_flags |= MTD_POWERUP_LOCK; in parse_fixed_partitions()
126 *pparts = parts; in parse_fixed_partitions()
135 kfree(parts); in parse_fixed_partitions()
155 struct mtd_partition *parts; in parse_ofoldpart_partitions() local
176 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in parse_ofoldpart_partitions()
177 if (!parts) in parse_ofoldpart_partitions()
183 parts[i].offset = be32_to_cpu(part->offset); in parse_ofoldpart_partitions()
184 parts[i].size = be32_to_cpu(part->len) & ~1; in parse_ofoldpart_partitions()
187 parts[i].mask_flags = MTD_WRITEABLE; in parse_ofoldpart_partitions()
192 parts[i].name = names; in parse_ofoldpart_partitions()
196 parts[i].name = "unnamed"; in parse_ofoldpart_partitions()
202 *pparts = parts; in parse_ofoldpart_partitions()