Home
last modified time | relevance | path

Searched refs:max_sectors (Results 1 – 25 of 99) sorted by relevance

1234

/drivers/usb/storage/
Dscsiglue.c123 unsigned int max_sectors = 64; in slave_configure() local
126 max_sectors = PAGE_CACHE_SIZE >> 9; in slave_configure()
127 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure()
129 max_sectors); in slave_configure()
541 static DEVICE_ATTR_RW(max_sectors);
582 .max_sectors = 240,
/drivers/scsi/aacraid/
Dcomminit.c142 init->MaxIoSize = cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm()
511 host->max_sectors = (status[1] >> 16) << 1; in aac_init_adapter()
531 host->max_sectors = AAC_MAX_32BIT_SGBCOUNT; in aac_init_adapter()
539 host->max_sectors = 512; in aac_init_adapter()
545 host->max_sectors = 1024; in aac_init_adapter()
551 host->max_sectors = 2048; in aac_init_adapter()
Dcommctrl.c612 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
664 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
718 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
757 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
Dlinit.c1062 .max_sectors = 128,
1244 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1250 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1255 (shost->max_sectors << 9) : 65536); in aac_probe_one()
/drivers/md/
Draid1.c513 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) in read_balance() argument
707 *max_sectors = sectors; in read_balance()
1068 int max_sectors; in make_request() local
1142 rdisk = read_balance(conf, r1_bio, &max_sectors); in make_request()
1165 max_sectors); in make_request()
1176 if (max_sectors < r1_bio->sectors) { in make_request()
1181 sectors_handled = (r1_bio->sector + max_sectors in make_request()
1183 r1_bio->sectors = max_sectors; in make_request()
1235 max_sectors = r1_bio->sectors; in make_request()
1257 max_sectors, in make_request()
[all …]
Draid10.c696 int *max_sectors) in read_balance() argument
818 *max_sectors = best_good_sectors; in read_balance()
1073 int max_sectors; in __make_request() local
1144 rdev = read_balance(conf, r10_bio, &max_sectors); in __make_request()
1153 max_sectors); in __make_request()
1165 if (max_sectors < r10_bio->sectors) { in __make_request()
1169 sectors_handled = (r10_bio->sector + max_sectors in __make_request()
1171 r10_bio->sectors = max_sectors; in __make_request()
1224 max_sectors = r10_bio->sectors; in __make_request()
1262 max_sectors, in __make_request()
[all …]
Dmd.c1858 sector_t max_sectors; in super_1_rdev_size_change() local
1865 max_sectors = i_size_read(rdev->bdev->bd_inode) >> 9; in super_1_rdev_size_change()
1866 max_sectors -= rdev->data_offset; in super_1_rdev_size_change()
1867 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
1868 num_sectors = max_sectors; in super_1_rdev_size_change()
1877 max_sectors = rdev->sectors + sb_start - rdev->sb_start; in super_1_rdev_size_change()
1878 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
1879 num_sectors = max_sectors; in super_1_rdev_size_change()
4533 unsigned long long max_sectors, resync; in sync_completed_show() local
4544 max_sectors = mddev->resync_max_sectors; in sync_completed_show()
[all …]
Ddm-thin.c3956 if (limits->max_sectors < pool->sectors_per_block) { in pool_io_hints()
3957 while (!is_factor(pool->sectors_per_block, limits->max_sectors)) { in pool_io_hints()
3958 if ((limits->max_sectors & (limits->max_sectors - 1)) == 0) in pool_io_hints()
3959 limits->max_sectors--; in pool_io_hints()
3960 limits->max_sectors = rounddown_pow_of_two(limits->max_sectors); in pool_io_hints()
3970 if (is_factor(pool->sectors_per_block, limits->max_sectors)) in pool_io_hints()
3971 blk_limits_io_min(limits, limits->max_sectors << SECTOR_SHIFT); in pool_io_hints()
/drivers/scsi/
Dhosts.c470 if (sht->max_sectors) in scsi_host_alloc()
471 shost->max_sectors = sht->max_sectors; in scsi_host_alloc()
473 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; in scsi_host_alloc()
/drivers/infiniband/ulp/iser/
Discsi_iser.c97 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");
635 shost->max_sectors = iser_conn->scsi_max_sectors; in iscsi_iser_session_create()
661 shost->max_sectors = min_t(unsigned int, in iscsi_iser_session_create()
984 .max_sectors = ISER_DEF_MAX_SECTORS,
Diser_verbs.c754 unsigned int max_sectors) in iser_calc_scsi_params() argument
759 sg_tablesize = DIV_ROUND_UP(max_sectors * 512, SIZE_4K); in iser_calc_scsi_params()
767 iser_conn->scsi_max_sectors = max_sectors; in iser_calc_scsi_params()
/drivers/target/
Dtarget_core_xcopy.c805 unsigned int max_sectors; in target_xcopy_do_work() local
814 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work()
816 max_sectors = min_t(u32, max_sectors, XCOPY_MAX_SECTORS); in target_xcopy_do_work()
818 max_nolb = min_t(u16, max_sectors, ((u16)(~0U))); in target_xcopy_do_work()
Dtarget_core_device.c549 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument
558 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors()
560 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors()
562 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
/drivers/scsi/cxlflash/
Dmain.h92 u64 max_sectors; member
/drivers/ide/
Dide-probe.c751 int max_sectors = 256; in ide_init_queue() local
769 if (hwif->rqsize < max_sectors) in ide_init_queue()
770 max_sectors = hwif->rqsize; in ide_init_queue()
771 blk_queue_max_hw_sectors(q, max_sectors); in ide_init_queue()
1097 if (d->max_sectors) in ide_init_port()
1098 hwif->rqsize = d->max_sectors; in ide_init_port()
Dpdc202xx_old.c269 .max_sectors = sectors, \
/drivers/scsi/megaraid/
Dmega_common.h191 uint16_t max_sectors; member
Dmegaraid_sas_base.c64 static unsigned int max_sectors; variable
65 module_param_named(max_sectors, max_sectors, int, 0);
66 MODULE_PARM_DESC(max_sectors,
5249 if (max_sectors && max_sectors < instance->max_sectors_per_req) in megasas_io_attach()
5250 instance->max_sectors_per_req = max_sectors; in megasas_io_attach()
5252 if (max_sectors) { in megasas_io_attach()
5257 (max_sectors <= MEGASAS_MAX_SECTORS)) { in megasas_io_attach()
5258 instance->max_sectors_per_req = max_sectors; in megasas_io_attach()
5267 host->max_sectors = instance->max_sectors_per_req; in megasas_io_attach()
/drivers/ata/
Dlibata-core.c1221 static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors) in ata_read_native_max_address() argument
1252 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address()
1254 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address()
1256 (*max_sectors)--; in ata_read_native_max_address()
2266 dev->max_sectors = 0; in ata_dev_configure()
2468 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2470 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure()
2478 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2483 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure()
2488 dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, in ata_dev_configure()
[all …]
Dpata_it821x.c505 if (adev->max_sectors > 255) in it821x_dev_config()
506 adev->max_sectors = 255; in it821x_dev_config()
Dpata_pdc202xx_old.c261 adev->max_sectors = 256; in pdc2026x_dev_config()
/drivers/scsi/snic/
Dsnic_ctl.c219 snic->shost->max_sectors = snic->fwinfo.max_io_sz >> 9; in snic_io_exch_ver_cmpl_handler()
/drivers/scsi/bfa/
Dbfad_im.c726 sht->max_sectors = max_xfer_size << 1; in bfad_scsi_host_alloc()
801 .max_sectors = BFAD_MAX_SECTORS,
823 .max_sectors = BFAD_MAX_SECTORS,
/drivers/s390/scsi/
Dzfcp_scsi.c372 .max_sectors = (((QDIO_MAX_ELEMENTS_PER_BUFFER - 1)
745 shost->max_sectors = shost->sg_tablesize * 8; in zfcp_scsi_set_prot()
/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c108 static ushort max_sectors = 0xFFFF; variable
109 module_param(max_sectors, ushort, 0);
110 MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 32767 default=32767");
8427 .max_sectors = 32767,
8465 .max_sectors = 32767,
8642 if (max_sectors != 0xFFFF) { in _scsih_probe()
8643 if (max_sectors < 64) { in _scsih_probe()
8644 shost->max_sectors = 64; in _scsih_probe()
8647 "value of 64.\n", ioc->name, max_sectors); in _scsih_probe()
8648 } else if (max_sectors > 32767) { in _scsih_probe()
[all …]

1234