Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/mtd/nand/onenand/
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 …]
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()
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()
/linux-6.6.21/drivers/mmc/core/
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 …]
/linux-6.6.21/include/linux/mtd/
Donenand.h96 unsigned int erase_shift; member
/linux-6.6.21/include/linux/mmc/
Dcard.h304 unsigned int erase_shift; /* if erase unit is power 2 */ member