Home
last modified time | relevance | path

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

12345

/drivers/usb/storage/
Dscsiglue.c103 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()
603 static DEVICE_ATTR_RW(max_sectors);
661 .max_sectors = 240,
/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");
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()
Diser_verbs.c509 unsigned int max_sectors) in iser_calc_scsi_params() argument
533 sg_tablesize = DIV_ROUND_UP(max_sectors * SECTOR_SIZE, SZ_4K); in iser_calc_scsi_params()
/drivers/scsi/
Dhosts.c458 if (sht->max_sectors) in scsi_host_alloc()
459 shost->max_sectors = sht->max_sectors; in scsi_host_alloc()
461 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; in scsi_host_alloc()
/drivers/target/
Dtarget_core_xcopy.c687 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()
Dtarget_core_device.c525 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument
534 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors()
536 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors()
538 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
/drivers/md/
Draid1.c594 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 …]
Draid10.c705 int *max_sectors) in read_balance() argument
854 *max_sectors = best_good_sectors; in read_balance()
1134 int max_sectors; in raid10_read_request() local
1170 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request()
1185 if (max_sectors < bio_sectors(bio)) { in raid10_read_request()
1186 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request()
1194 r10_bio->sectors = max_sectors; in raid10_read_request()
1296 int max_sectors; in raid10_write_request() local
1355 max_sectors = r10_bio->sectors; in raid10_write_request()
1398 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
[all …]
Dmd.c2233 sector_t max_sectors; in super_1_rdev_size_change() local
2240 max_sectors = i_size_read(rdev->bdev->bd_inode) >> 9; in super_1_rdev_size_change()
2241 max_sectors -= rdev->data_offset; in super_1_rdev_size_change()
2242 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
2243 num_sectors = max_sectors; in super_1_rdev_size_change()
2261 max_sectors = sb_start - bm_space - 4*2; in super_1_rdev_size_change()
2263 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
2264 num_sectors = max_sectors; in super_1_rdev_size_change()
5104 unsigned long long max_sectors, resync; in sync_completed_show() local
5115 max_sectors = mddev->resync_max_sectors; in sync_completed_show()
[all …]
Ddm-thin.c4060 if (limits->max_sectors < pool->sectors_per_block) { in pool_io_hints()
4061 while (!is_factor(pool->sectors_per_block, limits->max_sectors)) { in pool_io_hints()
4062 if ((limits->max_sectors & (limits->max_sectors - 1)) == 0) in pool_io_hints()
4063 limits->max_sectors--; in pool_io_hints()
4064 limits->max_sectors = rounddown_pow_of_two(limits->max_sectors); in pool_io_hints()
4074 if (is_factor(pool->sectors_per_block, limits->max_sectors)) in pool_io_hints()
4075 blk_limits_io_min(limits, limits->max_sectors << SECTOR_SHIFT); in pool_io_hints()
/drivers/scsi/aacraid/
Dcommctrl.c659 (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()
Dcomminit.c123 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()
Dlinit.c1498 .max_sectors = 128,
1720 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1726 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1730 shost->max_segment_size = shost->max_sectors << 9; in aac_probe_one()
/drivers/scsi/cxlflash/
Dmain.h94 u64 max_sectors; member
/drivers/ide/
Dide-probe.c767 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()
Dpdc202xx_old.c270 .max_sectors = sectors, \
/drivers/scsi/megaraid/
Dmega_common.h187 uint16_t max_sectors; member
/drivers/ata/
Dlibata-core.c1159 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 …]
Dpata_it821x.c505 if (adev->max_sectors > 255) in it821x_dev_config()
506 adev->max_sectors = 255; in it821x_dev_config()
Dpata_pdc202xx_old.c262 adev->max_sectors = 256; in pdc2026x_dev_config()
/drivers/scsi/arm/
Doak.c117 .max_sectors = 128,
Dcumana_1.c227 .max_sectors = 128,
/drivers/scsi/snic/
Dsnic_ctl.c216 snic->shost->max_sectors = snic->fwinfo.max_io_sz >> 9; in snic_io_exch_ver_cmpl_handler()
/drivers/scsi/bfa/
Dbfad_im.c738 sht->max_sectors = max_xfer_size << 1; in bfad_scsi_host_alloc()
813 .max_sectors = BFAD_MAX_SECTORS,
835 .max_sectors = BFAD_MAX_SECTORS,
/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c114 static ushort max_sectors = 0xFFFF; variable
115 module_param(max_sectors, ushort, 0444);
116 MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 32767 default=32767");
2444 if (shost->max_sectors > MPT3SAS_RAID_MAX_SECTORS) { in scsih_slave_configure()
10706 .max_sectors = 32767,
10744 .max_sectors = 32767,
11025 shost->max_sectors = 128; in _scsih_probe()
11027 shost->max_sectors); in _scsih_probe()
11029 if (max_sectors != 0xFFFF) { in _scsih_probe()
11030 if (max_sectors < 64) { in _scsih_probe()
[all …]

12345