/kernel/linux/linux-5.10/block/ |
D | blk-settings.c | 46 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits() 83 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits() 152 unsigned int max_sectors; in blk_queue_max_hw_sectors() local 161 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors() 162 max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); in blk_queue_max_hw_sectors() 163 limits->max_sectors = max_sectors; in blk_queue_max_hw_sectors() 164 q->backing_dev_info->io_pages = max_sectors >> (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors() 232 unsigned int max_sectors; in blk_queue_max_zone_append_sectors() local 237 max_sectors = min(q->limits.max_hw_sectors, max_zone_append_sectors); in blk_queue_max_zone_append_sectors() 238 max_sectors = min(q->limits.chunk_sectors, max_sectors); in blk_queue_max_zone_append_sectors() [all …]
|
D | blk-merge.c | 149 unsigned max_sectors = sectors; in get_max_io_size() local 154 max_sectors += start_offset; in get_max_io_size() 155 max_sectors &= ~(pbs - 1); in get_max_io_size() 156 if (max_sectors > start_offset) in get_max_io_size() 157 return max_sectors - start_offset; in get_max_io_size() 201 unsigned max_sectors) in bvec_split_segs() argument 203 unsigned max_len = (min(max_sectors, UINT_MAX >> 9) - *sectors) << 9; in bvec_split_segs() 254 const unsigned max_sectors = get_max_io_size(q, bio); in blk_bio_segment_split() local 266 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split() 271 max_sectors)) { in blk_bio_segment_split()
|
D | scsi_ioctl.c | 73 unsigned int max_sectors = queue_max_sectors(q); in max_sectors_bytes() local 75 max_sectors = min_t(unsigned int, max_sectors, INT_MAX >> 9); in max_sectors_bytes() 77 return max_sectors << 9; in max_sectors_bytes()
|
D | ioctl.c | 509 unsigned int max_sectors; in blkdev_common_ioctl() local 549 max_sectors = min_t(unsigned int, USHRT_MAX, in blkdev_common_ioctl() 551 return put_ushort(argp, max_sectors); in blkdev_common_ioctl()
|
D | blk-sysfs.c | 224 unsigned long long max_sectors = q->limits.max_zone_append_sectors; in queue_zone_append_max_show() local 226 return sprintf(page, "%llu\n", max_sectors << SECTOR_SHIFT); in queue_zone_append_max_show() 247 q->limits.max_sectors = max_sectors_kb << 1; in queue_max_sectors_store()
|
/kernel/linux/linux-5.10/drivers/usb/storage/ |
D | scsiglue.c | 103 unsigned int max_sectors = 64; in slave_configure() local 106 max_sectors = PAGE_SIZE >> 9; in slave_configure() 107 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure() 109 max_sectors); in slave_configure() 589 static DEVICE_ATTR_RW(max_sectors); 647 .max_sectors = 240,
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/iser/ |
D | iscsi_iser.c | 97 module_param_named(max_sectors, iser_max_sectors, uint, S_IRUGO | S_IWUSR); 98 MODULE_PARM_DESC(max_sectors, "Max number of sectors in a single scsi command (default:1024"); 671 shost->max_sectors = min(iser_max_sectors, max_fr_sectors); in iscsi_iser_session_create() 675 shost->max_sectors); in iscsi_iser_session_create() 677 if (shost->max_sectors < iser_max_sectors) in iscsi_iser_session_create() 679 iser_max_sectors, shost->max_sectors); in iscsi_iser_session_create()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | hosts.c | 459 if (sht->max_sectors) in scsi_host_alloc() 460 shost->max_sectors = sht->max_sectors; in scsi_host_alloc() 462 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; in scsi_host_alloc()
|
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/ |
D | main.h | 94 u64 max_sectors; member
|
/kernel/linux/linux-5.10/drivers/target/ |
D | target_core_xcopy.c | 687 unsigned int max_sectors; in target_xcopy_do_work() local 707 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work() 709 max_sectors = min_t(u32, max_sectors, XCOPY_MAX_SECTORS); in target_xcopy_do_work() 711 max_nolb = min_t(u16, max_sectors, ((u16)(~0U))); in target_xcopy_do_work()
|
D | target_core_device.c | 530 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument 539 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors() 541 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors() 543 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
|
/kernel/linux/linux-5.10/drivers/scsi/aacraid/ |
D | commctrl.c | 659 (dev->scsi_host_ptr->max_sectors << 9)) { in aac_send_raw_srb() 662 dev->scsi_host_ptr->max_sectors << 9); in aac_send_raw_srb() 726 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb() 781 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb() 839 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb() 882 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
|
D | comminit.c | 123 cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm() 185 cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm() 607 host->max_sectors = (status[1] >> 16) << 1; in aac_init_adapter()
|
/kernel/linux/linux-5.10/include/scsi/ |
D | scsi_host.h | 368 unsigned int max_sectors; member 600 unsigned int max_sectors; member
|
/kernel/linux/linux-5.10/drivers/md/ |
D | raid1.c | 594 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) in read_balance() argument 784 *max_sectors = sectors; in read_balance() 1209 int max_sectors; in raid1_read_request() local 1249 rdisk = read_balance(conf, r1_bio, &max_sectors); in raid1_read_request() 1281 if (max_sectors < bio_sectors(bio)) { in raid1_read_request() 1282 struct bio *split = bio_split(bio, max_sectors, in raid1_read_request() 1288 r1_bio->sectors = max_sectors; in raid1_read_request() 1326 int max_sectors; in raid1_write_request() local 1376 max_sectors = r1_bio->sectors; in raid1_write_request() 1397 is_bad = is_badblock(rdev, r1_bio->sector, max_sectors, in raid1_write_request() [all …]
|
D | raid10.c | 705 int *max_sectors) in read_balance() argument 846 *max_sectors = best_good_sectors; in read_balance() 1124 int max_sectors; in raid10_read_request() local 1160 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request() 1175 if (max_sectors < bio_sectors(bio)) { in raid10_read_request() 1176 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request() 1184 r10_bio->sectors = max_sectors; in raid10_read_request() 1286 int max_sectors; in raid10_write_request() local 1345 max_sectors = r10_bio->sectors; in raid10_write_request() 1382 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request() [all …]
|
D | md.c | 2187 sector_t max_sectors; in super_1_rdev_size_change() local 2194 max_sectors = i_size_read(rdev->bdev->bd_inode) >> 9; in super_1_rdev_size_change() 2195 max_sectors -= rdev->data_offset; in super_1_rdev_size_change() 2196 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2197 num_sectors = max_sectors; in super_1_rdev_size_change() 2215 max_sectors = sb_start - bm_space - 4*2; in super_1_rdev_size_change() 2217 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2218 num_sectors = max_sectors; in super_1_rdev_size_change() 5042 unsigned long long max_sectors, resync; in sync_completed_show() local 5053 max_sectors = mddev->resync_max_sectors; in sync_completed_show() [all …]
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | virtio_scsi.h | 69 __u32 max_sectors; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | virtio_scsi.h | 82 __virtio32 max_sectors; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | virtio_scsi.h | 108 __virtio32 max_sectors; member
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | ide-probe.c | 767 int max_sectors = 256; in ide_init_queue() local 801 if (hwif->rqsize < max_sectors) in ide_init_queue() 802 max_sectors = hwif->rqsize; in ide_init_queue() 803 blk_queue_max_hw_sectors(q, max_sectors); in ide_init_queue() 1130 if (d->max_sectors) in ide_init_port() 1131 hwif->rqsize = d->max_sectors; in ide_init_port()
|
/kernel/linux/linux-5.10/include/linux/ |
D | blkdev.h | 334 unsigned int max_sectors; member 1087 return q->limits.max_sectors; in blk_queue_get_max_sectors() 1102 return q->limits.max_sectors; in blk_max_size_offset() 1110 return min(q->limits.max_sectors, chunk_sectors); in blk_max_size_offset() 1410 return q->limits.max_sectors; in queue_max_sectors() 1438 return min(l->max_zone_append_sectors, l->max_sectors); in queue_max_zone_append_sectors()
|
/kernel/linux/linux-5.10/drivers/scsi/megaraid/ |
D | mega_common.h | 187 uint16_t max_sectors; member
|
/kernel/linux/linux-5.10/drivers/scsi/arm/ |
D | oak.c | 117 .max_sectors = 128,
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | libata-core.c | 1159 static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors) in ata_read_native_max_address() argument 1190 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address() 1192 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address() 1194 (*max_sectors)--; in ata_read_native_max_address() 2483 dev->max_sectors = 0; in ata_dev_configure() 2687 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure() 2689 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure() 2697 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure() 2702 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure() 2707 dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, in ata_dev_configure() [all …]
|