Lines Matching refs:max_hw_sectors
42 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
78 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits()
123 void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors) in blk_queue_max_hw_sectors() argument
128 if ((max_hw_sectors << 9) < PAGE_SIZE) { in blk_queue_max_hw_sectors()
129 max_hw_sectors = 1 << (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
131 __func__, max_hw_sectors); in blk_queue_max_hw_sectors()
134 max_hw_sectors = round_down(max_hw_sectors, in blk_queue_max_hw_sectors()
136 limits->max_hw_sectors = max_hw_sectors; in blk_queue_max_hw_sectors()
138 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
219 max_sectors = min(q->limits.max_hw_sectors, max_zone_append_sectors); in blk_queue_max_zone_append_sectors()
316 limits->max_hw_sectors = in blk_queue_logical_block_size()
317 round_down(limits->max_hw_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size()
520 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
620 t->max_hw_sectors = blk_round_down_sectors(t->max_hw_sectors, t->logical_block_size); in blk_stack_limits()