Lines Matching defs:mtd
2375 int efx_mcdi_mtd_read(struct mtd_info *mtd, loff_t start,
2378 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2379 struct efx_nic *efx = mtd->priv;
2381 loff_t end = min_t(loff_t, start + len, mtd->size);
2399 int efx_mcdi_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len)
2401 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2402 struct efx_nic *efx = mtd->priv;
2403 loff_t offset = start & ~((loff_t)(mtd->erasesize - 1));
2404 loff_t end = min_t(loff_t, start + len, mtd->size);
2405 size_t chunk = part->common.mtd.erasesize;
2429 int efx_mcdi_mtd_write(struct mtd_info *mtd, loff_t start,
2432 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2433 struct efx_nic *efx = mtd->priv;
2435 loff_t end = min_t(loff_t, start + len, mtd->size);
2460 int efx_mcdi_mtd_sync(struct mtd_info *mtd)
2462 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd);
2463 struct efx_nic *efx = mtd->priv;
2478 struct efx_nic *efx = part->mtd.priv;