Lines Matching refs:mtd

639 #define to_falcon_mtd_partition(mtd)				\  argument
640 container_of(mtd, struct falcon_mtd_partition, common.mtd)
728 struct efx_nic *efx = part->common.mtd.priv; in falcon_spi_slow_wait()
792 struct efx_nic *efx = part->common.mtd.priv; in falcon_spi_erase()
838 struct efx_nic *efx = part->mtd.priv; in falcon_mtd_rename()
844 static int falcon_mtd_read(struct mtd_info *mtd, loff_t start, in falcon_mtd_read() argument
847 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_read()
848 struct efx_nic *efx = mtd->priv; in falcon_mtd_read()
861 static int falcon_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) in falcon_mtd_erase() argument
863 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_erase()
864 struct efx_nic *efx = mtd->priv; in falcon_mtd_erase()
876 static int falcon_mtd_write(struct mtd_info *mtd, loff_t start, in falcon_mtd_write() argument
879 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_write()
880 struct efx_nic *efx = mtd->priv; in falcon_mtd_write()
893 static int falcon_mtd_sync(struct mtd_info *mtd) in falcon_mtd_sync() argument
895 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); in falcon_mtd_sync()
896 struct efx_nic *efx = mtd->priv; in falcon_mtd_sync()
928 parts[n_parts].common.mtd.type = MTD_NORFLASH; in falcon_mtd_probe()
929 parts[n_parts].common.mtd.flags = MTD_CAP_NORFLASH; in falcon_mtd_probe()
930 parts[n_parts].common.mtd.size = spi->size - FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
931 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe()
941 parts[n_parts].common.mtd.type = MTD_RAM; in falcon_mtd_probe()
942 parts[n_parts].common.mtd.flags = MTD_CAP_RAM; in falcon_mtd_probe()
943 parts[n_parts].common.mtd.size = in falcon_mtd_probe()
946 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe()