Lines Matching refs:max_hw_sectors
48 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits()
100 min3(lim->max_hw_sectors, in blk_validate_zoned_limits()
159 unsigned int unit_limit = min(lim->max_hw_sectors << SECTOR_SHIFT, in blk_atomic_writes_update_limits()
166 lim->max_hw_sectors); in blk_atomic_writes_update_limits()
228 unsigned int max_hw_sectors; in blk_validate_limits() local
261 if (!lim->max_hw_sectors) in blk_validate_limits()
262 lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_validate_limits()
263 if (WARN_ON_ONCE(lim->max_hw_sectors < PAGE_SECTORS)) in blk_validate_limits()
266 if (WARN_ON_ONCE(logical_block_sectors > lim->max_hw_sectors)) in blk_validate_limits()
268 lim->max_hw_sectors = round_down(lim->max_hw_sectors, in blk_validate_limits()
277 max_hw_sectors = min_not_zero(lim->max_hw_sectors, in blk_validate_limits()
282 lim->max_sectors = min(max_hw_sectors, lim->max_user_sectors); in blk_validate_limits()
285 min(max_hw_sectors, lim->io_opt >> SECTOR_SHIFT); in blk_validate_limits()
288 min(max_hw_sectors, lim->io_min >> SECTOR_SHIFT); in blk_validate_limits()
290 lim->max_sectors = min(max_hw_sectors, BLK_DEF_MAX_SECTORS_CAP); in blk_validate_limits()
526 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
618 t->max_hw_sectors = blk_round_down_sectors(t->max_hw_sectors, t->logical_block_size); in blk_stack_limits()