Searched refs:max_sectors (Results 1 – 6 of 6) sorted by relevance
/block/ |
D | blk-settings.c | 115 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits() 149 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits() 261 limits->max_sectors = min_t(unsigned int, max_hw_sectors, in blk_limits_max_hw_sectors() 547 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
|
D | ioctl.c | 281 unsigned int max_sectors; in blkdev_ioctl() local 377 max_sectors = min_t(unsigned int, USHRT_MAX, in blkdev_ioctl() 379 return put_ushort(arg, max_sectors); in blkdev_ioctl()
|
D | scsi_ioctl.c | 87 unsigned int max_sectors = queue_max_sectors(q); in max_sectors_bytes() local 89 max_sectors = min_t(unsigned int, max_sectors, INT_MAX >> 9); in max_sectors_bytes() 91 return max_sectors << 9; in max_sectors_bytes()
|
D | bio.c | 705 unsigned int max_sectors) in __bio_add_page() argument 716 if (((bio->bi_iter.bi_size + len) >> 9) > max_sectors) in __bio_add_page() 864 unsigned int max_sectors; in bio_add_page() local 866 max_sectors = blk_max_size_offset(q, bio->bi_iter.bi_sector); in bio_add_page() 867 if ((max_sectors < (len >> 9)) && !bio->bi_iter.bi_size) in bio_add_page() 868 max_sectors = len >> 9; in bio_add_page() 870 return __bio_add_page(q, bio, page, len, offset, max_sectors); in bio_add_page()
|
D | compat_ioctl.c | 666 unsigned int max_sectors; in compat_blkdev_ioctl() local 721 max_sectors = min_t(unsigned int, USHRT_MAX, in compat_blkdev_ioctl() 723 return compat_put_ushort(arg, max_sectors); in compat_blkdev_ioctl()
|
D | blk-sysfs.c | 180 q->limits.max_sectors = max_sectors_kb << 1; in queue_max_sectors_store()
|