/drivers/usb/storage/ |
D | scsiglue.c | 127 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/ |
D | comminit.c | 142 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()
|
D | commctrl.c | 612 (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()
|
D | linit.c | 1058 .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/ |
D | raid1.c | 507 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 …]
|
D | raid10.c | 699 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 …]
|
D | md.c | 1838 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 …]
|
D | dm-thin.c | 3923 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/ |
D | hosts.c | 480 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()
|
D | mac_scsi.c | 353 .max_sectors = 128,
|
/drivers/target/ |
D | target_core_xcopy.c | 759 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()
|
D | target_core_device.c | 538 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/ |
D | main.h | 90 u64 max_sectors; member
|
/drivers/ide/ |
D | ide-probe.c | 751 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/ |
D | iscsi_iser.c | 98 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()
|
D | iser_verbs.c | 703 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/ |
D | gennvm.c | 166 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/ |
D | mega_common.h | 191 uint16_t max_sectors; member
|
/drivers/scsi/arm/ |
D | oak.c | 118 .max_sectors = 128,
|
/drivers/ata/ |
D | libata-core.c | 1225 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 …]
|
D | pata_it821x.c | 505 if (adev->max_sectors > 255) in it821x_dev_config() 506 adev->max_sectors = 255; in it821x_dev_config()
|
D | pata_pdc202xx_old.c | 261 adev->max_sectors = 256; in pdc2026x_dev_config()
|
/drivers/scsi/snic/ |
D | snic_ctl.c | 217 snic->shost->max_sectors = snic->fwinfo.max_io_sz >> 9; in snic_io_exch_ver_cmpl_handler()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_scsih.c | 108 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/ |
D | bfad_im.c | 754 sht->max_sectors = max_xfer_size << 1; in bfad_scsi_host_alloc() 829 .max_sectors = BFAD_MAX_SECTORS, 851 .max_sectors = BFAD_MAX_SECTORS,
|