Lines Matching refs:erase_shift
1444 card->erase_shift = ffs(card->erase_size) - 1; in mmc_init_erase()
1446 card->erase_shift = 0; in mmc_init_erase()
1465 card->erase_shift = ffs(card->ssr.au) - 1; in mmc_init_erase()
1623 if (card->erase_shift) in mmc_do_erase()
1624 qty += ((to >> card->erase_shift) - in mmc_do_erase()
1625 (from >> card->erase_shift)) + 1; in mmc_do_erase()
1882 if (card->erase_shift) { in mmc_do_calc_max_discard()
1883 max_qty = UINT_MAX >> card->erase_shift; in mmc_do_calc_max_discard()
1884 min_qty = card->pref_erase >> card->erase_shift; in mmc_do_calc_max_discard()
1941 if (card->erase_shift) in mmc_do_calc_max_discard()
1942 max_discard = qty << card->erase_shift; in mmc_do_calc_max_discard()