Lines Matching refs:mtd
1945 int efx_mcdi_mtd_read(struct mtd_info *mtd, loff_t start, in efx_mcdi_mtd_read() argument
1948 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_read()
1949 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_read()
1951 loff_t end = min_t(loff_t, start + len, mtd->size); in efx_mcdi_mtd_read()
1969 int efx_mcdi_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) in efx_mcdi_mtd_erase() argument
1971 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_erase()
1972 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_erase()
1973 loff_t offset = start & ~((loff_t)(mtd->erasesize - 1)); in efx_mcdi_mtd_erase()
1974 loff_t end = min_t(loff_t, start + len, mtd->size); in efx_mcdi_mtd_erase()
1975 size_t chunk = part->common.mtd.erasesize; in efx_mcdi_mtd_erase()
1999 int efx_mcdi_mtd_write(struct mtd_info *mtd, loff_t start, in efx_mcdi_mtd_write() argument
2002 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_write()
2003 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_write()
2005 loff_t end = min_t(loff_t, start + len, mtd->size); in efx_mcdi_mtd_write()
2030 int efx_mcdi_mtd_sync(struct mtd_info *mtd) in efx_mcdi_mtd_sync() argument
2032 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); in efx_mcdi_mtd_sync()
2033 struct efx_nic *efx = mtd->priv; in efx_mcdi_mtd_sync()
2048 struct efx_nic *efx = part->mtd.priv; in efx_mcdi_mtd_rename()