Lines Matching refs:lim
34 void blk_set_default_limits(struct queue_limits *lim) in blk_set_default_limits() argument
36 lim->max_segments = BLK_MAX_SEGMENTS; in blk_set_default_limits()
37 lim->max_discard_segments = 1; in blk_set_default_limits()
38 lim->max_integrity_segments = 0; in blk_set_default_limits()
39 lim->seg_boundary_mask = BLK_SEG_BOUNDARY_MASK; in blk_set_default_limits()
40 lim->virt_boundary_mask = 0; in blk_set_default_limits()
41 lim->max_segment_size = BLK_MAX_SEGMENT_SIZE; in blk_set_default_limits()
42 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
43 lim->max_dev_sectors = 0; in blk_set_default_limits()
44 lim->chunk_sectors = 0; in blk_set_default_limits()
45 lim->max_write_same_sectors = 0; in blk_set_default_limits()
46 lim->max_write_zeroes_sectors = 0; in blk_set_default_limits()
47 lim->max_zone_append_sectors = 0; in blk_set_default_limits()
48 lim->max_discard_sectors = 0; in blk_set_default_limits()
49 lim->max_hw_discard_sectors = 0; in blk_set_default_limits()
50 lim->discard_granularity = 0; in blk_set_default_limits()
51 lim->discard_alignment = 0; in blk_set_default_limits()
52 lim->discard_misaligned = 0; in blk_set_default_limits()
53 lim->logical_block_size = lim->physical_block_size = lim->io_min = 512; in blk_set_default_limits()
54 lim->bounce = BLK_BOUNCE_NONE; in blk_set_default_limits()
55 lim->alignment_offset = 0; in blk_set_default_limits()
56 lim->io_opt = 0; in blk_set_default_limits()
57 lim->misaligned = 0; in blk_set_default_limits()
58 lim->zoned = BLK_ZONED_NONE; in blk_set_default_limits()
59 lim->zone_write_granularity = 0; in blk_set_default_limits()
71 void blk_set_stacking_limits(struct queue_limits *lim) in blk_set_stacking_limits() argument
73 blk_set_default_limits(lim); in blk_set_stacking_limits()
76 lim->max_segments = USHRT_MAX; in blk_set_stacking_limits()
77 lim->max_discard_segments = USHRT_MAX; in blk_set_stacking_limits()
78 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits()
79 lim->max_segment_size = UINT_MAX; in blk_set_stacking_limits()
80 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits()
81 lim->max_dev_sectors = UINT_MAX; in blk_set_stacking_limits()
82 lim->max_write_same_sectors = UINT_MAX; in blk_set_stacking_limits()
83 lim->max_write_zeroes_sectors = UINT_MAX; in blk_set_stacking_limits()
84 lim->max_zone_append_sectors = UINT_MAX; in blk_set_stacking_limits()