Home
last modified time | relevance | path

Searched refs:boundary_sectors (Results 1 – 3 of 3) sorted by relevance

/linux/block/
H A Dblk-merge.c207 unsigned boundary_sectors = blk_boundary_sectors(lim, is_atomic); in get_max_io_size() local
219 if (boundary_sectors) { in get_max_io_size()
222 boundary_sectors)); in get_max_io_size()
604 unsigned int max_sectors, boundary_sectors; in blk_rq_get_max_sectors() local
610 boundary_sectors = blk_boundary_sectors(lim, is_atomic); in blk_rq_get_max_sectors()
613 if (!boundary_sectors || in blk_rq_get_max_sectors()
618 blk_boundary_sectors_left(offset, boundary_sectors)); in blk_rq_get_max_sectors()
H A Dblk-settings.c177 unsigned int boundary_sectors; in blk_validate_atomic_write_limits() local
182 boundary_sectors = lim->atomic_write_hw_boundary >> SECTOR_SHIFT; in blk_validate_atomic_write_limits()
184 if (boundary_sectors) { in blk_validate_atomic_write_limits()
198 if (WARN_ON_ONCE(lim->chunk_sectors % boundary_sectors)) in blk_validate_atomic_write_limits()
208 if (!is_power_of_2(boundary_sectors)) in blk_validate_atomic_write_limits()
/linux/include/linux/
H A Dblkdev.h904 unsigned int boundary_sectors) in blk_boundary_sectors_left() argument
906 if (unlikely(!is_power_of_2(boundary_sectors))) in blk_boundary_sectors_left()
907 return boundary_sectors - sector_div(offset, boundary_sectors); in blk_boundary_sectors_left()
908 return boundary_sectors - (offset & (boundary_sectors - 1)); in blk_boundary_sectors_left()