Home
last modified time | relevance | path

Searched refs:erase_shift (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/cmd/
H A Donenand.c65 int blocks = (int) len >> this->erase_shift; in onenand_block_read()
66 int blocksize = (1 << this->erase_shift); in onenand_block_read()
82 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_read()
136 int blocks = len >> this->erase_shift; in onenand_block_write()
137 int blocksize = (1 << this->erase_shift); in onenand_block_write()
161 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_write()
194 int blocksize = 1 << this->erase_shift; in onenand_block_erase()
200 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_erase()
211 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_erase()
229 int blocksize = 1 << this->erase_shift; in onenand_block_test()
[all …]
/openbmc/qemu/hw/block/
H A Dnand.c68 int page_shift, oob_shift, erase_shift, addr_shift; member
150 int erase_shift; member
398 s->erase_shift = 6; in nand_realize()
401 s->erase_shift = nand_flash_ids[s->chip_id].erase_shift; in nand_realize()
726 addr = s->addr & ~((1 << (ADDR_SHIFT + s->erase_shift)) - 1);
734 0xff, (NAND_PAGE_SIZE + OOB_SIZE) << s->erase_shift);
737 0xff, OOB_SIZE << s->erase_shift);
739 page = SECTOR(addr + (1 << (ADDR_SHIFT + s->erase_shift)));
760 for (addr += ((NAND_PAGE_SIZE + OOB_SIZE) << s->erase_shift) - 0x200;
/openbmc/linux/drivers/mtd/nand/onenand/
H A Donenand_base.c312 blk = addr >> (this->erase_shift - 1); in flexonenand_block()
323 return addr >> this->erase_shift; in onenand_block()
346 ofs += (loff_t)block << (this->erase_shift - 1); in flexonenand_addr()
348 ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1); in flexonenand_addr()
355 return (loff_t)block << this->erase_shift; in onenand_addr()
879 block = (int) (addr >> this->erase_shift) & ~1; in onenand_get_2x_blockpage()
1090 if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) in onenand_recover_lsb()
2136 unsigned int block_size = (1 << this->erase_shift); in onenand_multiblock_erase_verify()
2176 bdry_block = bdry_addr >> this->erase_shift; in onenand_multiblock_erase()
2205 int this_block = (addr >> this->erase_shift); in onenand_multiblock_erase()
[all …]
H A Donenand_bbt.c187 len = this->chipsize >> (this->erase_shift + 2); in onenand_scan_bbt()
194 bbm->bbt_erase_shift = this->erase_shift; in onenand_scan_bbt()
H A Donenand_samsung.c386 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command()
733 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
752 start = ofs >> this->erase_shift; in s3c_onenand_do_lock_cmd()
754 end = start + (len >> this->erase_shift) - 1; in s3c_onenand_do_lock_cmd()
/openbmc/u-boot/drivers/mtd/onenand/
H A Donenand_base.c240 blk = addr >> (this->erase_shift - 1); in flexonenand_block()
251 return addr >> this->erase_shift; in onenand_block()
274 ofs += (loff_t) block << (this->erase_shift - 1); in flexonenand_addr()
277 << (this->erase_shift - 1); in flexonenand_addr()
284 return (loff_t) block << this->erase_shift; in onenand_addr()
622 block = (int) (addr >> this->erase_shift) & ~1; in onenand_get_2x_blockpage()
828 if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) in onenand_recover_lsb()
1758 block_size = 1 << this->erase_shift; in onenand_erase()
2068 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status()
2318 blksperdie = ((loff_t)(16 << density) << 20) >> (this->erase_shift); in flexonenand_get_size()
[all …]
H A Donenand_bbt.c198 len = this->chipsize >> (this->erase_shift + 2); in onenand_scan_bbt()
210 bbm->bbt_erase_shift = this->erase_shift; in onenand_scan_bbt()
H A Dsamsung.c280 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command()
452 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
470 start = ofs >> this->erase_shift; in s3c_onenand_do_lock_cmd()
472 end = start + (len >> this->erase_shift) - 1; in s3c_onenand_do_lock_cmd()
/openbmc/linux/drivers/mmc/core/
H A Dcore.c1448 card->erase_shift = ffs(card->erase_size) - 1; in mmc_init_erase()
1450 card->erase_shift = 0; in mmc_init_erase()
1469 card->erase_shift = ffs(card->ssr.au) - 1; in mmc_init_erase()
1627 if (card->erase_shift) in mmc_do_erase()
1628 qty += ((to >> card->erase_shift) - in mmc_do_erase()
1629 (from >> card->erase_shift)) + 1; in mmc_do_erase()
1886 if (card->erase_shift) { in mmc_do_calc_max_discard()
1887 max_qty = UINT_MAX >> card->erase_shift; in mmc_do_calc_max_discard()
1888 min_qty = card->pref_erase >> card->erase_shift; in mmc_do_calc_max_discard()
1945 if (card->erase_shift) in mmc_do_calc_max_discard()
[all …]
/openbmc/u-boot/include/linux/mtd/
H A Donenand.h83 unsigned int erase_shift; member
/openbmc/linux/include/linux/mtd/
H A Donenand.h96 unsigned int erase_shift; member
/openbmc/linux/include/linux/mmc/
H A Dcard.h305 unsigned int erase_shift; /* if erase unit is power 2 */ member