Searched refs:max_discard (Results 1 – 3 of 3) sorted by relevance
/drivers/mmc/core/ |
D | queue.c | 181 unsigned max_discard; in mmc_queue_setup_discard() local 183 max_discard = mmc_calc_max_discard(card); in mmc_queue_setup_discard() 184 if (!max_discard) in mmc_queue_setup_discard() 187 blk_queue_max_discard_sectors(q, max_discard); in mmc_queue_setup_discard() 190 if (card->pref_erase > max_discard) in mmc_queue_setup_discard() 193 blk_queue_max_secure_erase_sectors(q, max_discard); in mmc_queue_setup_discard() 195 blk_queue_max_write_zeroes_sectors(q, max_discard); in mmc_queue_setup_discard()
|
D | core.c | 1887 unsigned int max_discard, x, y, qty = 0, max_qty, min_qty, timeout; in mmc_do_calc_max_discard() local 1952 max_discard = qty << card->erase_shift; in mmc_do_calc_max_discard() 1954 max_discard = qty + 1; in mmc_do_calc_max_discard() 1956 max_discard = qty * card->erase_size; in mmc_do_calc_max_discard() 1958 return max_discard; in mmc_do_calc_max_discard() 1964 unsigned int max_discard, max_trim; in mmc_calc_max_discard() local 1974 max_discard = mmc_do_calc_max_discard(card, MMC_ERASE_ARG); in mmc_calc_max_discard() 1977 if (max_trim < max_discard || max_discard == 0) in mmc_calc_max_discard() 1978 max_discard = max_trim; in mmc_calc_max_discard() 1979 } else if (max_discard < card->erase_size) { in mmc_calc_max_discard() [all …]
|
/drivers/block/drbd/ |
D | drbd_nl.c | 1261 unsigned int max_discard = device->rq_queue->limits.max_discard_sectors; in fixup_discard_support() local 1265 if (discard_granularity > max_discard) { in fixup_discard_support()
|