Lines Matching refs:parts
31 struct mtd_partition *parts; member
36 #define OF_FLASH_PARTS(info) ((info)->parts)
56 info->parts = kzalloc(nr_parts * sizeof(*info->parts), GFP_KERNEL); in parse_obsolete_partitions()
57 if (!info->parts) in parse_obsolete_partitions()
63 info->parts[i].offset = part->offset; in parse_obsolete_partitions()
64 info->parts[i].size = part->len & ~1; in parse_obsolete_partitions()
66 info->parts[i].mask_flags = MTD_WRITEABLE; in parse_obsolete_partitions()
71 info->parts[i].name = (char *)names; in parse_obsolete_partitions()
75 info->parts[i].name = "unnamed"; in parse_obsolete_partitions()
227 &info->parts, 0); in of_flash_probe()
233 err = of_mtd_parse_partitions(&dev->dev, dp, &info->parts); in of_flash_probe()
246 add_mtd_partitions(info->mtd, info->parts, err); in of_flash_probe()