Lines Matching defs:mtd
2266 int efx_mcdi_mtd_read(struct mtd_info *mtd, loff_t start,
2269 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2270 struct efx_nic *efx = mtd->priv;
2272 loff_t end = min_t(loff_t, start + len, mtd->size);
2290 int efx_mcdi_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len)
2292 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2293 struct efx_nic *efx = mtd->priv;
2294 loff_t offset = start & ~((loff_t)(mtd->erasesize - 1));
2295 loff_t end = min_t(loff_t, start + len, mtd->size);
2296 size_t chunk = part->common.mtd.erasesize;
2320 int efx_mcdi_mtd_write(struct mtd_info *mtd, loff_t start,
2323 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2324 struct efx_nic *efx = mtd->priv;
2326 loff_t end = min_t(loff_t, start + len, mtd->size);
2351 int efx_mcdi_mtd_sync(struct mtd_info *mtd)
2353 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2354 struct efx_nic *efx = mtd->priv;
2369 struct efx_nic *efx = part->mtd.priv;