Lines Matching refs:parts
77 struct mtd_partition *parts; in bcm63xx_parse_cfe_partitions() local
157 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL); in bcm63xx_parse_cfe_partitions()
158 if (!parts) { in bcm63xx_parse_cfe_partitions()
164 parts[curpart].name = "CFE"; in bcm63xx_parse_cfe_partitions()
165 parts[curpart].offset = 0; in bcm63xx_parse_cfe_partitions()
166 parts[curpart].size = cfelen; in bcm63xx_parse_cfe_partitions()
174 parts[kernelpart].name = "kernel"; in bcm63xx_parse_cfe_partitions()
175 parts[kernelpart].offset = kerneladdr; in bcm63xx_parse_cfe_partitions()
176 parts[kernelpart].size = kernellen; in bcm63xx_parse_cfe_partitions()
185 parts[rootfspart].name = "rootfs"; in bcm63xx_parse_cfe_partitions()
186 parts[rootfspart].offset = rootfsaddr; in bcm63xx_parse_cfe_partitions()
187 parts[rootfspart].size = rootfslen; in bcm63xx_parse_cfe_partitions()
189 parts[rootfspart].size += sparelen; in bcm63xx_parse_cfe_partitions()
193 parts[curpart].name = "nvram"; in bcm63xx_parse_cfe_partitions()
194 parts[curpart].offset = master->size - nvramlen; in bcm63xx_parse_cfe_partitions()
195 parts[curpart].size = nvramlen; in bcm63xx_parse_cfe_partitions()
199 parts[curpart].name = "linux"; in bcm63xx_parse_cfe_partitions()
200 parts[curpart].offset = cfelen; in bcm63xx_parse_cfe_partitions()
201 parts[curpart].size = master->size - cfelen - nvramlen; in bcm63xx_parse_cfe_partitions()
205 parts[i].name, parts[i].offset, parts[i].size); in bcm63xx_parse_cfe_partitions()
210 *pparts = parts; in bcm63xx_parse_cfe_partitions()