Searched refs:eraseregions (Results 1 – 13 of 13) sorted by relevance
/Linux-v5.10/drivers/mtd/devices/ |
D | lart.c | 376 for (i = 0; i < mtd->numeraseregions && instr->addr >= mtd->eraseregions[i].offset; i++) ; in flash_erase() 385 if (i < 0 || (instr->addr & (mtd->eraseregions[i].erasesize - 1))) in flash_erase() 398 … for (; i < mtd->numeraseregions && instr->addr + instr->len >= mtd->eraseregions[i].offset; i++) ; in flash_erase() 402 if (i < 0 || ((instr->addr + instr->len) & (mtd->eraseregions[i].erasesize - 1))) in flash_erase() 416 addr += mtd->eraseregions[i].erasesize; in flash_erase() 417 len -= mtd->eraseregions[i].erasesize; in flash_erase() 419 …if (addr == mtd->eraseregions[i].offset + (mtd->eraseregions[i].erasesize * mtd->eraseregions[i].n… in flash_erase() 625 mtd.eraseregions = erase_regions; in lart_flash_init() 649 result,mtd.eraseregions[result].offset, in lart_flash_init() 650 result,mtd.eraseregions[result].erasesize,mtd.eraseregions[result].erasesize / 1024, in lart_flash_init() [all …]
|
/Linux-v5.10/drivers/mtd/ |
D | mtdconcat.c | 386 concat->mtd.eraseregions; in concat_erase() 780 if (subdev[i]->eraseregions[j].erasesize != in mtd_concat_create() 784 subdev[i]->eraseregions[j]. in mtd_concat_create() 812 concat->mtd.eraseregions = erase_region_p = in mtd_concat_create() 855 if (subdev[i]->eraseregions[j]. in mtd_concat_create() 866 subdev[i]->eraseregions[j]. in mtd_concat_create() 871 subdev[i]->eraseregions[j]. in mtd_concat_create() 892 kfree(concat->mtd.eraseregions); in mtd_concat_destroy()
|
D | mtdpart.c | 145 struct mtd_erase_region_info *regions = parent->eraseregions; in allocate_partition()
|
D | mtdchar.c | 703 kr = &(mtd->eraseregions[ur_idx]); in mtdchar_ioctl()
|
/Linux-v5.10/drivers/mtd/maps/ |
D | scb2_flash.c | 106 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd() 117 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd()
|
/Linux-v5.10/drivers/mtd/chips/ |
D | cfi_cmdset_0020.c | 187 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_staa_setup() 190 if (!mtd->eraseregions) { in cfi_staa_setup() 205 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_staa_setup() 206 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_staa_setup() 207 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_staa_setup() 215 kfree(mtd->eraseregions); in cfi_staa_setup() 223 i, (unsigned long long)mtd->eraseregions[i].offset, in cfi_staa_setup() 224 mtd->eraseregions[i].erasesize, in cfi_staa_setup() 225 mtd->eraseregions[i].numblocks); in cfi_staa_setup() 897 struct mtd_erase_region_info *regions = mtd->eraseregions; in cfi_staa_erase_varsize()
|
D | cfi_cmdset_0001.c | 612 mtd->eraseregions = kcalloc(mtd->numeraseregions, in cfi_intelext_setup() 615 if (!mtd->eraseregions) in cfi_intelext_setup() 627 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_intelext_setup() 628 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_intelext_setup() 629 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup() 630 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup() 631 if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) in cfi_intelext_setup() 645 i,(unsigned long long)mtd->eraseregions[i].offset, in cfi_intelext_setup() 646 mtd->eraseregions[i].erasesize, in cfi_intelext_setup() 647 mtd->eraseregions[i].numblocks); in cfi_intelext_setup() [all …]
|
D | cfi_cmdset_0002.c | 762 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_amdstd_setup() 765 if (!mtd->eraseregions) in cfi_amdstd_setup() 777 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_amdstd_setup() 778 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_amdstd_setup() 779 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup() 794 kfree(mtd->eraseregions); in cfi_amdstd_setup() 2802 struct mtd_erase_region_info *regions = mtd->eraseregions; in cfi_ppb_unlock() 3107 kfree(mtd->eraseregions); in cfi_amdstd_destroy()
|
D | cfi_util.c | 366 struct mtd_erase_region_info *regions = mtd->eraseregions; in cfi_varsize_frob()
|
/Linux-v5.10/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 382 if (addr < mtd->eraseregions[i].offset) in flexonenand_region() 1090 if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) in onenand_recover_lsb() 2352 region = &mtd->eraseregions[i]; in onenand_erase() 3449 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size() 3450 mtd->eraseregions[i].erasesize = 1 << eraseshift; in flexonenand_get_size() 3451 mtd->eraseregions[i].numblocks = in flexonenand_get_size() 3453 ofs += mtd->eraseregions[i].numblocks << eraseshift; in flexonenand_get_size() 3457 mtd->eraseregions[i].numblocks += in flexonenand_get_size() 3463 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size() 3464 mtd->eraseregions[i].erasesize = 1 << eraseshift; in flexonenand_get_size() [all …]
|
D | onenand_bbt.c | 114 from += mtd->eraseregions[rgn].erasesize; in create_bbt()
|
/Linux-v5.10/drivers/mtd/spi-nor/ |
D | core.c | 3228 i, (long long)mtd->eraseregions[i].offset, in spi_nor_scan() 3229 mtd->eraseregions[i].erasesize, in spi_nor_scan() 3230 mtd->eraseregions[i].erasesize / 1024, in spi_nor_scan() 3231 mtd->eraseregions[i].numblocks); in spi_nor_scan()
|
/Linux-v5.10/include/linux/mtd/ |
D | mtd.h | 307 struct mtd_erase_region_info *eraseregions; member
|