Searched refs:eraseregions (Results 1 – 13 of 13) sorted by relevance
/linux/drivers/mtd/devices/ |
A 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/drivers/mtd/ |
A D | mtdconcat.c | 386 concat->mtd.eraseregions; in concat_erase() 793 if (subdev[i]->eraseregions[j].erasesize != in mtd_concat_create() 797 subdev[i]->eraseregions[j]. in mtd_concat_create() 825 concat->mtd.eraseregions = erase_region_p = in mtd_concat_create() 868 if (subdev[i]->eraseregions[j]. in mtd_concat_create() 879 subdev[i]->eraseregions[j]. in mtd_concat_create() 884 subdev[i]->eraseregions[j]. in mtd_concat_create() 905 kfree(concat->mtd.eraseregions); in mtd_concat_destroy()
|
A D | mtdpart.c | 145 struct mtd_erase_region_info *regions = parent->eraseregions; in allocate_partition()
|
A D | mtdchar.c | 696 kr = &(mtd->eraseregions[ur_idx]); in mtdchar_ioctl()
|
/linux/drivers/mtd/maps/ |
A 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/drivers/mtd/chips/ |
A 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()
|
A D | cfi_cmdset_0001.c | 613 mtd->eraseregions = kcalloc(mtd->numeraseregions, in cfi_intelext_setup() 616 if (!mtd->eraseregions) in cfi_intelext_setup() 646 i,(unsigned long long)mtd->eraseregions[i].offset, in cfi_intelext_setup() 647 mtd->eraseregions[i].erasesize, in cfi_intelext_setup() 648 mtd->eraseregions[i].numblocks); in cfi_intelext_setup() 670 if (mtd->eraseregions) in cfi_intelext_setup() 674 kfree(mtd->eraseregions); in cfi_intelext_setup() 2490 region = &mtd->eraseregions[i]; in cfi_intelext_save_locks() 2591 region = &mtd->eraseregions[i]; in cfi_intelext_restore_locks() 2682 region = &mtd->eraseregions[i]; in cfi_intelext_destroy() [all …]
|
A D | cfi_cmdset_0002.c | 766 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_amdstd_setup() 769 if (!mtd->eraseregions) in cfi_amdstd_setup() 781 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_amdstd_setup() 782 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_amdstd_setup() 783 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup() 798 kfree(mtd->eraseregions); in cfi_amdstd_setup() 2807 struct mtd_erase_region_info *regions = mtd->eraseregions; in cfi_ppb_unlock() 3113 kfree(mtd->eraseregions); in cfi_amdstd_destroy()
|
A D | cfi_util.c | 366 struct mtd_erase_region_info *regions = mtd->eraseregions; in cfi_varsize_frob()
|
/linux/drivers/mtd/nand/onenand/ |
A D | onenand_base.c | 382 if (addr < mtd->eraseregions[i].offset) in flexonenand_region() 2349 region = &mtd->eraseregions[i]; in onenand_erase() 3445 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size() 3447 mtd->eraseregions[i].numblocks = in flexonenand_get_size() 3453 mtd->eraseregions[i].numblocks += in flexonenand_get_size() 3459 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size() 3479 mtd->eraseregions[i].erasesize, in flexonenand_get_size() 3480 mtd->eraseregions[i].numblocks); in flexonenand_get_size() 3717 mtd->eraseregions = in onenand_probe() 3721 if (!mtd->eraseregions) in onenand_probe() [all …]
|
A D | onenand_bbt.c | 114 from += mtd->eraseregions[rgn].erasesize; in create_bbt()
|
/linux/drivers/mtd/spi-nor/ |
A D | core.c | 3225 i, (long long)mtd->eraseregions[i].offset, in spi_nor_scan() 3226 mtd->eraseregions[i].erasesize, in spi_nor_scan() 3227 mtd->eraseregions[i].erasesize / 1024, in spi_nor_scan() 3228 mtd->eraseregions[i].numblocks); in spi_nor_scan()
|
/linux/include/linux/mtd/ |
A D | mtd.h | 306 struct mtd_erase_region_info *eraseregions; member
|
Completed in 43 milliseconds