Home
last modified time | relevance | path

Searched refs:eraseregions (Results 1 – 8 of 8) sorted by relevance

/external/u-boot/drivers/mtd/
Dcfi_mtd.c161 mtd->eraseregions = malloc(sizeof(struct mtd_erase_region_info) * regions); in cfi_mtd_set_erasesize()
171 mtd->eraseregions[regions].offset = offset - base_addr; in cfi_mtd_set_erasesize()
172 mtd->eraseregions[regions].erasesize = sect_size_old; in cfi_mtd_set_erasesize()
173 mtd->eraseregions[regions].numblocks = numblocks; in cfi_mtd_set_erasesize()
193 mtd->eraseregions[regions].offset = offset - base_addr; in cfi_mtd_set_erasesize()
194 mtd->eraseregions[regions].erasesize = sect_size_old; in cfi_mtd_set_erasesize()
195 mtd->eraseregions[regions].numblocks = numblocks; in cfi_mtd_set_erasesize()
Dmtdconcat.c403 concat->mtd.eraseregions; in concat_erase()
848 if (subdev[i]->eraseregions[j].erasesize != in mtd_concat_create()
852 subdev[i]->eraseregions[j]. in mtd_concat_create()
880 concat->mtd.eraseregions = erase_region_p = in mtd_concat_create()
922 if (subdev[i]->eraseregions[j]. in mtd_concat_create()
933 subdev[i]->eraseregions[j]. in mtd_concat_create()
938 subdev[i]->eraseregions[j]. in mtd_concat_create()
962 kfree(concat->mtd.eraseregions); in mtd_concat_destroy()
Dmtdpart.c527 struct mtd_erase_region_info *regions = master->eraseregions; in allocate_partition()
/external/u-boot/drivers/mtd/onenand/
Donenand_base.c298 if (addr < mtd->eraseregions[i].offset) in flexonenand_region()
828 if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) in onenand_recover_lsb()
1744 region = &mtd->eraseregions[i]; in onenand_erase()
2333 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size()
2334 mtd->eraseregions[i].erasesize = 1 << eraseshift; in flexonenand_get_size()
2335 mtd->eraseregions[i].numblocks = in flexonenand_get_size()
2337 ofs += mtd->eraseregions[i].numblocks << eraseshift; in flexonenand_get_size()
2341 mtd->eraseregions[i].numblocks += in flexonenand_get_size()
2347 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size()
2348 mtd->eraseregions[i].erasesize = 1 << eraseshift; in flexonenand_get_size()
[all …]
Donenand_bbt.c122 from += mtd->eraseregions[rgn].erasesize; in create_bbt()
/external/u-boot/env/
Donenand.c88 instr.len <<= onenand_mtd.eraseregions[0].numblocks == 1 ? in env_onenand_save()
/external/u-boot/cmd/
Dmtdparts.c364 start = mtd->eraseregions[i].offset; in part_validate_eraseblock()
365 for (j = 0; j < mtd->eraseregions[i].numblocks; j++) { in part_validate_eraseblock()
368 start += mtd->eraseregions[i].erasesize; in part_validate_eraseblock()
380 start = mtd->eraseregions[i].offset; in part_validate_eraseblock()
381 for (j = 0; j < mtd->eraseregions[i].numblocks; j++) { in part_validate_eraseblock()
384 start += mtd->eraseregions[i].erasesize; in part_validate_eraseblock()
/external/u-boot/include/linux/mtd/
Dmtd.h227 struct mtd_erase_region_info *eraseregions; member