Lines Matching refs:qty
1493 unsigned int arg, unsigned int qty) in mmc_mmc_erase_timeout() argument
1544 erase_timeout *= qty; in mmc_mmc_erase_timeout()
1558 unsigned int qty) in mmc_sd_erase_timeout() argument
1570 erase_timeout = card->ssr.erase_timeout * qty + in mmc_sd_erase_timeout()
1577 erase_timeout = 250 * qty; in mmc_sd_erase_timeout()
1589 unsigned int qty) in mmc_erase_timeout() argument
1592 return mmc_sd_erase_timeout(card, arg, qty); in mmc_erase_timeout()
1594 return mmc_mmc_erase_timeout(card, arg, qty); in mmc_erase_timeout()
1601 unsigned int qty = 0, busy_timeout = 0; in mmc_do_erase() local
1624 qty += ((to >> card->erase_shift) - in mmc_do_erase()
1627 qty += to - from + 1; in mmc_do_erase()
1629 qty += ((to / card->erase_size) - in mmc_do_erase()
1669 busy_timeout = mmc_erase_timeout(card, arg, qty); in mmc_do_erase()
1877 unsigned int max_discard, x, y, qty = 0, max_qty, min_qty, timeout; in mmc_do_calc_max_discard() local
1908 for (x = 1; x && x <= max_qty && max_qty - x >= qty; x <<= 1) { in mmc_do_calc_max_discard()
1909 timeout = mmc_erase_timeout(card, arg, qty + x); in mmc_do_calc_max_discard()
1911 if (qty + x > min_qty && timeout > max_busy_timeout) in mmc_do_calc_max_discard()
1919 qty += y; in mmc_do_calc_max_discard()
1922 if (!qty) in mmc_do_calc_max_discard()
1935 if (qty == 1) in mmc_do_calc_max_discard()
1938 qty--; in mmc_do_calc_max_discard()
1942 max_discard = qty << card->erase_shift; in mmc_do_calc_max_discard()
1944 max_discard = qty + 1; in mmc_do_calc_max_discard()
1946 max_discard = qty * card->erase_size; in mmc_do_calc_max_discard()