Lines Matching refs:max_discard
1881 unsigned int max_discard, x, y, qty = 0, max_qty, min_qty, timeout; in mmc_do_calc_max_discard() local
1946 max_discard = qty << card->erase_shift; in mmc_do_calc_max_discard()
1948 max_discard = qty + 1; in mmc_do_calc_max_discard()
1950 max_discard = qty * card->erase_size; in mmc_do_calc_max_discard()
1952 return max_discard; in mmc_do_calc_max_discard()
1958 unsigned int max_discard, max_trim; in mmc_calc_max_discard() local
1968 max_discard = mmc_do_calc_max_discard(card, MMC_ERASE_ARG); in mmc_calc_max_discard()
1971 if (max_trim < max_discard || max_discard == 0) in mmc_calc_max_discard()
1972 max_discard = max_trim; in mmc_calc_max_discard()
1973 } else if (max_discard < card->erase_size) { in mmc_calc_max_discard()
1974 max_discard = 0; in mmc_calc_max_discard()
1977 mmc_hostname(host), max_discard, host->max_busy_timeout ? in mmc_calc_max_discard()
1979 return max_discard; in mmc_calc_max_discard()