Lines Matching full:parts
78 struct mtd_partition *parts; in parse_redboot_partitions() local
242 parts = kzalloc(sizeof(*parts) * nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions()
244 if (!parts) { in parse_redboot_partitions()
249 nullname = (char *)&parts[nrparts]; in parse_redboot_partitions()
260 parts[0].name = nullname; in parse_redboot_partitions()
261 parts[0].size = fl->img->flash_base; in parse_redboot_partitions()
262 parts[0].offset = 0; in parse_redboot_partitions()
267 parts[i].size = fl->img->size; in parse_redboot_partitions()
268 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions()
269 parts[i].name = names; in parse_redboot_partitions()
276 parts[i].mask_flags = MTD_WRITEABLE; in parse_redboot_partitions()
284 parts[i].offset = parts[i - 1].size + parts[i - 1].offset; in parse_redboot_partitions()
285 parts[i].size = fl->next->img->flash_base - parts[i].offset; in parse_redboot_partitions()
286 parts[i].name = nullname; in parse_redboot_partitions()
294 *pparts = parts; in parse_redboot_partitions()