Lines Matching refs:parts
924 struct falcon_mtd_partition *parts; in falcon_mtd_probe() local
932 parts = kcalloc(2, sizeof(*parts), GFP_KERNEL); in falcon_mtd_probe()
933 if (!parts) in falcon_mtd_probe()
939 parts[n_parts].spi = spi; in falcon_mtd_probe()
940 parts[n_parts].offset = FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
941 parts[n_parts].common.dev_type_name = "flash"; in falcon_mtd_probe()
942 parts[n_parts].common.type_name = "sfc_flash_bootrom"; in falcon_mtd_probe()
943 parts[n_parts].common.mtd.type = MTD_NORFLASH; in falcon_mtd_probe()
944 parts[n_parts].common.mtd.flags = MTD_CAP_NORFLASH; in falcon_mtd_probe()
945 parts[n_parts].common.mtd.size = spi->size - FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
946 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe()
952 parts[n_parts].spi = spi; in falcon_mtd_probe()
953 parts[n_parts].offset = FALCON_EEPROM_BOOTCONFIG_START; in falcon_mtd_probe()
954 parts[n_parts].common.dev_type_name = "EEPROM"; in falcon_mtd_probe()
955 parts[n_parts].common.type_name = "sfc_bootconfig"; in falcon_mtd_probe()
956 parts[n_parts].common.mtd.type = MTD_RAM; in falcon_mtd_probe()
957 parts[n_parts].common.mtd.flags = MTD_CAP_RAM; in falcon_mtd_probe()
958 parts[n_parts].common.mtd.size = in falcon_mtd_probe()
961 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe()
965 rc = ef4_mtd_add(efx, &parts[0].common, n_parts, sizeof(*parts)); in falcon_mtd_probe()
967 kfree(parts); in falcon_mtd_probe()