• Home
  • Raw
  • Download

Lines Matching refs:limits

186 	blk_set_default_limits(&q->limits);  in blk_queue_make_request()
220 q->limits.bounce_pfn = max(max_low_pfn, b_pfn); in blk_queue_bounce_limit()
224 q->limits.bounce_pfn = b_pfn; in blk_queue_bounce_limit()
229 q->limits.bounce_pfn = b_pfn; in blk_queue_bounce_limit()
250 void blk_limits_max_hw_sectors(struct queue_limits *limits, unsigned int max_hw_sectors) in blk_limits_max_hw_sectors() argument
258 limits->max_hw_sectors = max_hw_sectors; in blk_limits_max_hw_sectors()
259 limits->max_sectors = min_t(unsigned int, max_hw_sectors, in blk_limits_max_hw_sectors()
274 blk_limits_max_hw_sectors(&q->limits, max_hw_sectors); in blk_queue_max_hw_sectors()
286 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()
298 q->limits.max_write_same_sectors = max_write_same_sectors; in blk_queue_max_write_same_sectors()
319 q->limits.max_segments = max_segments; in blk_queue_max_segments()
340 q->limits.max_segment_size = max_size; in blk_queue_max_segment_size()
356 q->limits.logical_block_size = size; in blk_queue_logical_block_size()
358 if (q->limits.physical_block_size < size) in blk_queue_logical_block_size()
359 q->limits.physical_block_size = size; in blk_queue_logical_block_size()
361 if (q->limits.io_min < q->limits.physical_block_size) in blk_queue_logical_block_size()
362 q->limits.io_min = q->limits.physical_block_size; in blk_queue_logical_block_size()
378 q->limits.physical_block_size = size; in blk_queue_physical_block_size()
380 if (q->limits.physical_block_size < q->limits.logical_block_size) in blk_queue_physical_block_size()
381 q->limits.physical_block_size = q->limits.logical_block_size; in blk_queue_physical_block_size()
383 if (q->limits.io_min < q->limits.physical_block_size) in blk_queue_physical_block_size()
384 q->limits.io_min = q->limits.physical_block_size; in blk_queue_physical_block_size()
401 q->limits.alignment_offset = in blk_queue_alignment_offset()
402 offset & (q->limits.physical_block_size - 1); in blk_queue_alignment_offset()
403 q->limits.misaligned = 0; in blk_queue_alignment_offset()
418 void blk_limits_io_min(struct queue_limits *limits, unsigned int min) in blk_limits_io_min() argument
420 limits->io_min = min; in blk_limits_io_min()
422 if (limits->io_min < limits->logical_block_size) in blk_limits_io_min()
423 limits->io_min = limits->logical_block_size; in blk_limits_io_min()
425 if (limits->io_min < limits->physical_block_size) in blk_limits_io_min()
426 limits->io_min = limits->physical_block_size; in blk_limits_io_min()
446 blk_limits_io_min(&q->limits, min); in blk_queue_io_min()
463 void blk_limits_io_opt(struct queue_limits *limits, unsigned int opt) in blk_limits_io_opt() argument
465 limits->io_opt = opt; in blk_limits_io_opt()
484 blk_limits_io_opt(&q->limits, opt); in blk_queue_io_opt()
495 blk_stack_limits(&t->limits, &b->limits, 0); in blk_queue_stack_limits()
648 return blk_stack_limits(t, &bq->limits, start); in bdev_stack_limits()
667 if (bdev_stack_limits(&t->limits, bdev, offset >> 9) < 0) { in disk_stack_limits()
762 q->limits.seg_boundary_mask = mask; in blk_queue_segment_boundary()