Lines Matching refs:mtd
1782 int efx_mcdi_mtd_read(struct mtd_info *mtd, loff_t start, in efx_mcdi_mtd_read() argument
1785 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_read()
1786 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_read()
1788 loff_t end = min_t(loff_t, start + len, mtd->size); in efx_mcdi_mtd_read()
1806 int efx_mcdi_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) in efx_mcdi_mtd_erase() argument
1808 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_erase()
1809 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_erase()
1810 loff_t offset = start & ~((loff_t)(mtd->erasesize - 1)); in efx_mcdi_mtd_erase()
1811 loff_t end = min_t(loff_t, start + len, mtd->size); in efx_mcdi_mtd_erase()
1812 size_t chunk = part->common.mtd.erasesize; in efx_mcdi_mtd_erase()
1836 int efx_mcdi_mtd_write(struct mtd_info *mtd, loff_t start, in efx_mcdi_mtd_write() argument
1839 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_write()
1840 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_write()
1842 loff_t end = min_t(loff_t, start + len, mtd->size); in efx_mcdi_mtd_write()
1867 int efx_mcdi_mtd_sync(struct mtd_info *mtd) in efx_mcdi_mtd_sync() argument
1869 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_sync()
1870 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_sync()
1885 struct efx_nic *efx = part->mtd.priv; in efx_mcdi_mtd_rename()