Lines Matching refs:n_parts
926 size_t n_parts; in falcon_mtd_probe() local
935 n_parts = 0; 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()
947 n_parts++; 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()
962 n_parts++; in falcon_mtd_probe()
965 rc = ef4_mtd_add(efx, &parts[0].common, n_parts, sizeof(*parts)); in falcon_mtd_probe()