Lines Matching refs:parts
83 struct mtd_partition *parts; in bcm63xx_parse_cfe_nor_partitions() local
96 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL); in bcm63xx_parse_cfe_nor_partitions()
97 if (!parts) in bcm63xx_parse_cfe_nor_partitions()
101 parts[curpart].name = "CFE"; in bcm63xx_parse_cfe_nor_partitions()
102 parts[curpart].offset = 0; in bcm63xx_parse_cfe_nor_partitions()
103 parts[curpart].size = cfelen; in bcm63xx_parse_cfe_nor_partitions()
106 parts[curpart].name = "nvram"; in bcm63xx_parse_cfe_nor_partitions()
107 parts[curpart].offset = master->size - nvramlen; in bcm63xx_parse_cfe_nor_partitions()
108 parts[curpart].size = nvramlen; in bcm63xx_parse_cfe_nor_partitions()
112 parts[curpart].name = "linux"; in bcm63xx_parse_cfe_nor_partitions()
113 parts[curpart].offset = cfelen; in bcm63xx_parse_cfe_nor_partitions()
114 parts[curpart].size = master->size - cfelen - nvramlen; in bcm63xx_parse_cfe_nor_partitions()
115 parts[curpart].types = bcm63xx_cfe_part_types; in bcm63xx_parse_cfe_nor_partitions()
119 parts[i].name, parts[i].offset, parts[i].size); in bcm63xx_parse_cfe_nor_partitions()
121 *pparts = parts; in bcm63xx_parse_cfe_nor_partitions()