Home
last modified time | relevance | path

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

12345

/drivers/usb/storage/
Dscsiglue.c127 unsigned int max_sectors = 64; in slave_configure() local
130 max_sectors = PAGE_SIZE >> 9; in slave_configure()
131 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure()
133 max_sectors); in slave_configure()
589 static DEVICE_ATTR_RW(max_sectors);
647 .max_sectors = 240,
/drivers/scsi/aacraid/
Dcomminit.c142 init->MaxIoSize = cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm()
500 host->max_sectors = (status[1] >> 16) << 1; in aac_init_adapter()
520 host->max_sectors = AAC_MAX_32BIT_SGBCOUNT; in aac_init_adapter()
528 host->max_sectors = 512; in aac_init_adapter()
534 host->max_sectors = 1024; in aac_init_adapter()
540 host->max_sectors = 2048; in aac_init_adapter()
Dcommctrl.c612 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
663 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
717 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
756 (dev->scsi_host_ptr->max_sectors << 9) : in aac_send_raw_srb()
Dlinit.c1058 .max_sectors = 128,
1255 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1261 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1266 (shost->max_sectors << 9) : 65536); in aac_probe_one()
/drivers/md/
Draid1.c507 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) in read_balance() argument
694 *max_sectors = sectors; in read_balance()
1053 int max_sectors; in raid1_make_request() local
1127 rdisk = read_balance(conf, r1_bio, &max_sectors); in raid1_make_request()
1150 max_sectors); in raid1_make_request()
1161 if (max_sectors < r1_bio->sectors) { in raid1_make_request()
1166 sectors_handled = (r1_bio->sector + max_sectors in raid1_make_request()
1168 r1_bio->sectors = max_sectors; in raid1_make_request()
1220 max_sectors = r1_bio->sectors; in raid1_make_request()
1242 max_sectors, in raid1_make_request()
[all …]
Draid10.c699 int *max_sectors) in read_balance() argument
813 *max_sectors = best_good_sectors; in read_balance()
1068 int max_sectors; in __make_request() local
1139 rdev = read_balance(conf, r10_bio, &max_sectors); in __make_request()
1148 max_sectors); in __make_request()
1160 if (max_sectors < r10_bio->sectors) { in __make_request()
1164 sectors_handled = (r10_bio->sector + max_sectors in __make_request()
1166 r10_bio->sectors = max_sectors; in __make_request()
1219 max_sectors = r10_bio->sectors; in __make_request()
1257 max_sectors, in __make_request()
[all …]
Dmd.c1838 sector_t max_sectors; in super_1_rdev_size_change() local
1845 max_sectors = i_size_read(rdev->bdev->bd_inode) >> 9; in super_1_rdev_size_change()
1846 max_sectors -= rdev->data_offset; in super_1_rdev_size_change()
1847 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
1848 num_sectors = max_sectors; in super_1_rdev_size_change()
1857 max_sectors = rdev->sectors + sb_start - rdev->sb_start; in super_1_rdev_size_change()
1858 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
1859 num_sectors = max_sectors; in super_1_rdev_size_change()
4524 unsigned long long max_sectors, resync; in sync_completed_show() local
4535 max_sectors = mddev->resync_max_sectors; in sync_completed_show()
[all …]
Ddm-thin.c3923 if (limits->max_sectors < pool->sectors_per_block) { in pool_io_hints()
3924 while (!is_factor(pool->sectors_per_block, limits->max_sectors)) { in pool_io_hints()
3925 if ((limits->max_sectors & (limits->max_sectors - 1)) == 0) in pool_io_hints()
3926 limits->max_sectors--; in pool_io_hints()
3927 limits->max_sectors = rounddown_pow_of_two(limits->max_sectors); in pool_io_hints()
3937 if (is_factor(pool->sectors_per_block, limits->max_sectors)) in pool_io_hints()
3938 blk_limits_io_min(limits, limits->max_sectors << SECTOR_SHIFT); in pool_io_hints()
/drivers/scsi/
Dhosts.c480 if (sht->max_sectors) in scsi_host_alloc()
481 shost->max_sectors = sht->max_sectors; in scsi_host_alloc()
483 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; in scsi_host_alloc()
Dmac_scsi.c353 .max_sectors = 128,
/drivers/target/
Dtarget_core_xcopy.c759 unsigned int max_sectors; in target_xcopy_do_work() local
768 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work()
770 max_sectors = min_t(u32, max_sectors, XCOPY_MAX_SECTORS); in target_xcopy_do_work()
772 max_nolb = min_t(u16, max_sectors, ((u16)(~0U))); in target_xcopy_do_work()
Dtarget_core_device.c538 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument
547 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors()
549 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors()
551 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
/drivers/scsi/cxlflash/
Dmain.h90 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()
/drivers/infiniband/ulp/iser/
Discsi_iser.c98 module_param_named(max_sectors, iser_max_sectors, uint, S_IRUGO | S_IWUSR);
99 MODULE_PARM_DESC(max_sectors, "Max number of sectors in a single scsi command (default:1024");
676 shost->max_sectors = min(iser_max_sectors, max_fr_sectors); in iscsi_iser_session_create()
Diser_verbs.c703 unsigned int max_sectors) in iser_calc_scsi_params() argument
708 sg_tablesize = DIV_ROUND_UP(max_sectors * 512, SIZE_4K); in iser_calc_scsi_params()
716 iser_conn->scsi_max_sectors = max_sectors; in iser_calc_scsi_params()
/drivers/lightnvm/
Dgennvm.c166 sector_t max_sectors = (dev->sec_size * dev->total_secs) >> 9; in gen_get_area() local
168 if (len > max_sectors) in gen_get_area()
187 if ((begin + len) > max_sectors) { in gen_get_area()
/drivers/scsi/megaraid/
Dmega_common.h191 uint16_t max_sectors; member
/drivers/scsi/arm/
Doak.c118 .max_sectors = 128,
/drivers/ata/
Dlibata-core.c1225 static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors) in ata_read_native_max_address() argument
1256 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address()
1258 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address()
1260 (*max_sectors)--; in ata_read_native_max_address()
2414 dev->max_sectors = 0; in ata_dev_configure()
2617 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2619 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure()
2627 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2632 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure()
2637 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.c217 snic->shost->max_sectors = snic->fwinfo.max_io_sz >> 9; in snic_io_exch_ver_cmpl_handler()
/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");
1911 if (shost->max_sectors > MPT3SAS_RAID_MAX_SECTORS) { in scsih_slave_configure()
8589 .max_sectors = 32767,
8627 .max_sectors = 32767,
8822 if (max_sectors != 0xFFFF) { in _scsih_probe()
8823 if (max_sectors < 64) { in _scsih_probe()
8824 shost->max_sectors = 64; in _scsih_probe()
8827 "value of 64.\n", ioc->name, max_sectors); in _scsih_probe()
[all …]
/drivers/scsi/bfa/
Dbfad_im.c754 sht->max_sectors = max_xfer_size << 1; in bfad_scsi_host_alloc()
829 .max_sectors = BFAD_MAX_SECTORS,
851 .max_sectors = BFAD_MAX_SECTORS,

12345