Home
last modified time | relevance | path

Searched refs:max_discard (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/mmc/core/
Dqueue.c180 unsigned max_discard; in mmc_queue_setup_discard() local
182 max_discard = mmc_calc_max_discard(card); in mmc_queue_setup_discard()
183 if (!max_discard) in mmc_queue_setup_discard()
186 lim->max_hw_discard_sectors = max_discard; in mmc_queue_setup_discard()
188 lim->max_secure_erase_sectors = max_discard; in mmc_queue_setup_discard()
190 lim->max_write_zeroes_sectors = max_discard; in mmc_queue_setup_discard()
193 if (card->pref_erase > max_discard) in mmc_queue_setup_discard()
Dcore.c1881 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()
[all …]