/kernel/linux/linux-5.10/drivers/mtd/chips/ |
D | map_rom.c | 36 const __be32 *erase_size = NULL; in default_erasesize() local 38 erase_size = of_get_property(map->device_node, "erase-size", NULL); in default_erasesize() 40 return !erase_size ? map->size : be32_to_cpu(*erase_size); in default_erasesize()
|
/kernel/linux/linux-5.10/Documentation/driver-api/mmc/ |
D | mmc-dev-attrs.rst | 34 erase_size Erase group size 47 "erase_size" is the minimum size, in bytes, of an erase 48 operation. For MMC, "erase_size" is the erase group size 49 reported by the card. Note that "erase_size" does not apply 51 always one 512 byte sector. For SD, "erase_size" is 512 71 "erase_size" is not the most efficient unit to erase
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | core.c | 1492 if (is_power_of_2(card->erase_size)) in mmc_init_erase() 1493 card->erase_shift = ffs(card->erase_size) - 1; in mmc_init_erase() 1515 } else if (card->erase_size) { in mmc_init_erase() 1525 if (card->pref_erase < card->erase_size) in mmc_init_erase() 1526 card->pref_erase = card->erase_size; in mmc_init_erase() 1528 sz = card->pref_erase % card->erase_size; in mmc_init_erase() 1530 card->pref_erase += card->erase_size - sz; in mmc_init_erase() 1673 qty += ((to / card->erase_size) - in mmc_do_erase() 1674 (from / card->erase_size)) + 1; in mmc_do_erase() 1769 if (is_power_of_2(card->erase_size)) { in mmc_align_erase_size() [all …]
|
D | sd.c | 133 csd->erase_size = 1; in mmc_decode_csd() 135 csd->erase_size = UNSTUFF_BITS(resp, 39, 7) + 1; in mmc_decode_csd() 136 csd->erase_size <<= csd->write_blkbits - 9; in mmc_decode_csd() 174 csd->erase_size = 1; in mmc_decode_csd() 185 card->erase_size = csd->erase_size; in mmc_decode_csd() 688 MMC_DEV_ATTR(erase_size, "%u\n", card->erase_size << 9);
|
D | mmc.c | 123 card->erase_size = card->ext_csd.hc_erase_size; in mmc_set_erase_size() 125 card->erase_size = card->csd.erase_size; in mmc_set_erase_size() 178 csd->erase_size = (a + 1) * (b + 1); in mmc_decode_csd() 179 csd->erase_size <<= csd->write_blkbits - 9; in mmc_decode_csd() 781 MMC_DEV_ATTR(erase_size, "%u\n", card->erase_size << 9);
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
D | mtdram.c | 22 static unsigned long erase_size = CONFIG_MTDRAM_ERASE_SIZE; variable 25 #define MTDRAM_ERASE_SIZE (erase_size * 1024) 29 module_param(erase_size, ulong, 0); 30 MODULE_PARM_DESC(erase_size, "Device erase block size in KiB");
|
D | block2mtd.c | 216 static struct block2mtd_dev *add_device(char *devname, int erase_size, in add_device() argument 272 if ((long)dev->blkdev->bd_inode->i_size % erase_size) { in add_device() 288 dev->mtd.erasesize = erase_size; in add_device() 386 size_t erase_size = PAGE_SIZE; in block2mtd_setup2() local 418 ret = parse_num(&erase_size, token[1]); in block2mtd_setup2() 425 add_device(name, erase_size, timeout); in block2mtd_setup2()
|
D | powernv_flash.c | 186 u32 erase_size; in powernv_flash_set_driver_info() local 190 &erase_size); in powernv_flash_set_driver_info() 210 mtd->erasesize = erase_size; in powernv_flash_set_driver_info()
|
D | sst25l.c | 57 unsigned erase_size; member 374 flash->mtd.erasesize = flash_info->erase_size; in sst25l_probe()
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | ssfdc.c | 26 int erase_size; /* phys_block_size */ member 249 (unsigned long)ssfdc->map_len * ssfdc->erase_size / 1024); in build_logical_block_map() 254 offset = (unsigned long)phys_block * ssfdc->erase_size; in build_logical_block_map() 309 ssfdc->erase_size = mtd->erasesize; in ssfdcr_add_mtd() 313 ssfdc->cis_block, ssfdc->erase_size, ssfdc->map_len, in ssfdcr_add_mtd() 373 sectors_per_block = ssfdc->erase_size >> SECTOR_SHIFT; in ssfdcr_readsect()
|
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/ |
D | intel-spi.c | 773 size_t erase_size, len = nor->mtd.erasesize; in intel_spi_erase() local 781 erase_size = SZ_64K; in intel_spi_erase() 784 erase_size = SZ_4K; in intel_spi_erase() 796 offs += erase_size; in intel_spi_erase() 797 len -= erase_size; in intel_spi_erase() 826 offs += erase_size; in intel_spi_erase() 827 len -= erase_size; in intel_spi_erase()
|
/kernel/linux/linux-5.10/include/linux/mmc/ |
D | card.h | 34 unsigned int erase_size; /* In sectors */ member 276 unsigned int erase_size; /* erase size in sectors */ member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | siena.c | 857 size_t size, erase_size; in siena_mtd_probe_partition() local 870 rc = efx_mcdi_nvram_info(efx, type, &size, &erase_size, &protected); in siena_mtd_probe_partition() 883 part->common.mtd.erasesize = erase_size; in siena_mtd_probe_partition()
|
D | ef10.c | 3462 size_t size, erase_size, outlen; in efx_ef10_mtd_probe_partition() local 3477 rc = efx_mcdi_nvram_info(efx, type, &size, &erase_size, &protected); in efx_ef10_mtd_probe_partition() 3488 erase_size = 0; in efx_ef10_mtd_probe_partition() 3517 part->common.mtd.erasesize = erase_size; in efx_ef10_mtd_probe_partition() 3519 if (!erase_size) in efx_ef10_mtd_probe_partition()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | nic.h | 204 unsigned int erase_size; member
|
D | falcon.c | 813 if (len != spi->erase_size) in falcon_spi_erase() 946 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe() 961 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe() 2165 spi_device->erase_size = in falcon_spi_device_init()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0030_linux_drivers_pci_misc_nvmem_of_mtd_mmc.patch | 2427 if (!card->erase_size) 2432 - if (card->csd.cmdclass & CCC_ERASE && card->erase_size) 2434 + (card->csd.cmdclass & CCC_ERASE) && card->erase_size) 4062 csd->erase_size = UNSTUFF_BITS(resp, 39, 7) + 1; 4063 csd->erase_size <<= csd->write_blkbits - 9; 4074 csd->erase_size = 1;
|