Lines Matching refs:mtd

652 #define to_falcon_mtd_partition(mtd)				\  argument
653 container_of(mtd, struct falcon_mtd_partition, common.mtd)
741 struct efx_nic *efx = part->common.mtd.priv; in falcon_spi_slow_wait()
805 struct efx_nic *efx = part->common.mtd.priv; in falcon_spi_erase()
851 struct efx_nic *efx = part->mtd.priv; in falcon_mtd_rename()
857 static int falcon_mtd_read(struct mtd_info *mtd, loff_t start, in falcon_mtd_read() argument
860 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_read()
861 struct efx_nic *efx = mtd->priv; in falcon_mtd_read()
874 static int falcon_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) in falcon_mtd_erase() argument
876 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_erase()
877 struct efx_nic *efx = mtd->priv; in falcon_mtd_erase()
889 static int falcon_mtd_write(struct mtd_info *mtd, loff_t start, in falcon_mtd_write() argument
892 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_write()
893 struct efx_nic *efx = mtd->priv; in falcon_mtd_write()
906 static int falcon_mtd_sync(struct mtd_info *mtd) in falcon_mtd_sync() argument
908 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_sync()
909 struct efx_nic *efx = mtd->priv; in falcon_mtd_sync()
941 parts[n_parts].common.mtd.type = MTD_NORFLASH; in falcon_mtd_probe()
942 parts[n_parts].common.mtd.flags = MTD_CAP_NORFLASH; in falcon_mtd_probe()
943 parts[n_parts].common.mtd.size = spi->size - FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
944 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe()
954 parts[n_parts].common.mtd.type = MTD_RAM; in falcon_mtd_probe()
955 parts[n_parts].common.mtd.flags = MTD_CAP_RAM; in falcon_mtd_probe()
956 parts[n_parts].common.mtd.size = in falcon_mtd_probe()
959 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe()