Lines Matching refs:max_sectors

42 	lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS;  in blk_set_default_limits()
80 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits()
125 unsigned int max_sectors; in blk_queue_max_hw_sectors() local
137 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
138 max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); in blk_queue_max_hw_sectors()
139 max_sectors = round_down(max_sectors, in blk_queue_max_hw_sectors()
141 limits->max_sectors = max_sectors; in blk_queue_max_hw_sectors()
145 q->disk->bdi->io_pages = max_sectors >> (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
186 unsigned int max_sectors) in blk_queue_max_secure_erase_sectors() argument
188 q->limits.max_secure_erase_sectors = max_sectors; in blk_queue_max_secure_erase_sectors()
213 unsigned int max_sectors; in blk_queue_max_zone_append_sectors() local
218 max_sectors = min(q->limits.max_hw_sectors, max_zone_append_sectors); in blk_queue_max_zone_append_sectors()
219 max_sectors = min(q->limits.chunk_sectors, max_sectors); in blk_queue_max_zone_append_sectors()
226 WARN_ON(!max_sectors); in blk_queue_max_zone_append_sectors()
228 q->limits.max_zone_append_sectors = max_sectors; in blk_queue_max_zone_append_sectors()
317 limits->max_sectors = in blk_queue_logical_block_size()
318 round_down(limits->max_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size()
552 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
651 t->max_sectors = blk_round_down_sectors(t->max_sectors, t->logical_block_size); in blk_stack_limits()