Lines Matching refs:qty

1867 				          unsigned int arg, unsigned int qty)  in mmc_mmc_erase_timeout()  argument
1918 erase_timeout *= qty; in mmc_mmc_erase_timeout()
1932 unsigned int qty) in mmc_sd_erase_timeout() argument
1938 erase_timeout = card->ssr.erase_timeout * qty + in mmc_sd_erase_timeout()
1945 erase_timeout = 250 * qty; in mmc_sd_erase_timeout()
1957 unsigned int qty) in mmc_erase_timeout() argument
1960 return mmc_sd_erase_timeout(card, arg, qty); in mmc_erase_timeout()
1962 return mmc_mmc_erase_timeout(card, arg, qty); in mmc_erase_timeout()
1969 unsigned int qty = 0, busy_timeout = 0; in mmc_do_erase() local
1994 qty += ((to >> card->erase_shift) - in mmc_do_erase()
1997 qty += to - from + 1; in mmc_do_erase()
1999 qty += ((to / card->erase_size) - in mmc_do_erase()
2039 busy_timeout = mmc_erase_timeout(card, arg, qty); in mmc_do_erase()
2293 unsigned int max_discard, x, y, qty = 0, max_qty, min_qty, timeout; in mmc_do_calc_max_discard() local
2324 for (x = 1; x && x <= max_qty && max_qty - x >= qty; x <<= 1) { in mmc_do_calc_max_discard()
2325 timeout = mmc_erase_timeout(card, arg, qty + x); in mmc_do_calc_max_discard()
2327 if (qty + x > min_qty && timeout > max_busy_timeout) in mmc_do_calc_max_discard()
2335 qty += y; in mmc_do_calc_max_discard()
2338 if (!qty) in mmc_do_calc_max_discard()
2351 if (qty == 1) in mmc_do_calc_max_discard()
2354 qty--; in mmc_do_calc_max_discard()
2358 max_discard = qty << card->erase_shift; in mmc_do_calc_max_discard()
2360 max_discard = qty + 1; in mmc_do_calc_max_discard()
2362 max_discard = qty * card->erase_size; in mmc_do_calc_max_discard()