Home
last modified time | relevance | path

Searched refs:max_sectors (Results 1 – 25 of 120) 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()
609 static DEVICE_ATTR_RW(max_sectors);
669 .max_sectors = 240,
/drivers/scsi/
Dhosts.c250 shost->max_sectors = min_t(unsigned int, shost->max_sectors, in scsi_add_host_with_dma()
472 if (sht->max_sectors) in scsi_host_alloc()
473 shost->max_sectors = sht->max_sectors; in scsi_host_alloc()
475 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; in scsi_host_alloc()
/drivers/infiniband/ulp/iser/
Discsi_iser.c103 module_param_cb(max_sectors, &iscsi_iser_size_ops, &iser_max_sectors,
105 MODULE_PARM_DESC(max_sectors, "Max number of sectors in a single scsi command, should > 0 (default:…
668 shost->max_sectors = min(iser_max_sectors, max_fr_sectors); in iscsi_iser_session_create()
672 shost->max_sectors); in iscsi_iser_session_create()
674 if (shost->max_sectors < iser_max_sectors) in iscsi_iser_session_create()
676 iser_max_sectors, shost->max_sectors); in iscsi_iser_session_create()
Diser_verbs.c488 unsigned int max_sectors) in iser_calc_scsi_params() argument
512 sg_tablesize = DIV_ROUND_UP(max_sectors * SECTOR_SIZE, SZ_4K); in iser_calc_scsi_params()
/drivers/md/
Draid1.c598 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) in read_balance() argument
788 *max_sectors = sectors; in read_balance()
1224 int max_sectors; in raid1_read_request() local
1268 rdisk = read_balance(conf, r1_bio, &max_sectors); in raid1_read_request()
1300 if (max_sectors < bio_sectors(bio)) { in raid1_read_request()
1301 struct bio *split = bio_split(bio, max_sectors, in raid1_read_request()
1307 r1_bio->sectors = max_sectors; in raid1_read_request()
1346 int max_sectors; in raid1_write_request() local
1399 max_sectors = r1_bio->sectors; in raid1_write_request()
1429 is_bad = is_badblock(rdev, r1_bio->sector, max_sectors, in raid1_write_request()
[all …]
Ddm.c1163 unsigned int max_sectors) in __max_io_len() argument
1177 min(max_sectors ? : queue_max_sectors(ti->table->md->queue), in __max_io_len()
1599 unsigned int max_sectors) in __send_changing_extent_only() argument
1604 __max_io_len(ti, ci->sector, max_granularity, max_sectors)); in __send_changing_extent_only()
1641 unsigned int max_sectors = 0; in __process_abnormal_io() local
1647 max_sectors = limits->max_discard_sectors; in __process_abnormal_io()
1649 max_granularity = max_sectors; in __process_abnormal_io()
1653 max_sectors = limits->max_secure_erase_sectors; in __process_abnormal_io()
1655 max_granularity = max_sectors; in __process_abnormal_io()
1659 max_sectors = limits->max_write_zeroes_sectors; in __process_abnormal_io()
[all …]
Draid10.c731 int *max_sectors) in read_balance() argument
880 *max_sectors = best_good_sectors; in read_balance()
1179 int max_sectors; in raid10_read_request() local
1216 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request()
1231 if (max_sectors < bio_sectors(bio)) { in raid10_read_request()
1232 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request()
1240 r10_bio->sectors = max_sectors; in raid10_read_request()
1413 int max_sectors; in raid10_write_request() local
1478 max_sectors = r10_bio->sectors; in raid10_write_request()
1503 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
[all …]
Dmd.c2180 sector_t max_sectors; in super_1_rdev_size_change() local
2187 max_sectors = bdev_nr_sectors(rdev->bdev) - rdev->data_offset; in super_1_rdev_size_change()
2188 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
2189 num_sectors = max_sectors; in super_1_rdev_size_change()
2207 max_sectors = sb_start - bm_space - 4*2; in super_1_rdev_size_change()
2209 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
2210 num_sectors = max_sectors; in super_1_rdev_size_change()
5071 unsigned long long max_sectors, resync; in sync_completed_show() local
5082 max_sectors = mddev->resync_max_sectors; in sync_completed_show()
5084 max_sectors = mddev->dev_sectors; in sync_completed_show()
[all …]
Ddm-thin.c4069 if (limits->max_sectors < pool->sectors_per_block) { in pool_io_hints()
4070 while (!is_factor(pool->sectors_per_block, limits->max_sectors)) { in pool_io_hints()
4071 if ((limits->max_sectors & (limits->max_sectors - 1)) == 0) in pool_io_hints()
4072 limits->max_sectors--; in pool_io_hints()
4073 limits->max_sectors = rounddown_pow_of_two(limits->max_sectors); in pool_io_hints()
4083 if (is_factor(pool->sectors_per_block, limits->max_sectors)) in pool_io_hints()
4084 blk_limits_io_min(limits, limits->max_sectors << SECTOR_SHIFT); in pool_io_hints()
/drivers/vdpa/vdpa_sim/
Dvdpa_sim_blk.c80 u64 num_sectors, u64 max_sectors) in vdpasim_blk_check_range() argument
88 if (num_sectors > max_sectors) { in vdpasim_blk_check_range()
91 num_sectors, max_sectors); in vdpasim_blk_check_range()
/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.c1501 .max_sectors = 128,
1724 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1730 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1734 shost->max_segment_size = shost->max_sectors << 9; in aac_probe_one()
/drivers/scsi/cxlflash/
Dmain.h94 u64 max_sectors; member
/drivers/target/
Dtarget_core_device.c490 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument
499 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors()
501 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors()
503 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
/drivers/scsi/megaraid/
Dmega_common.h187 uint16_t max_sectors; member
/drivers/scsi/arm/
Doak.c117 .max_sectors = 128,
/drivers/block/null_blk/
Dnull_blk.h110 unsigned int max_sectors; /* Max sectors per command */ member
Dmain.c157 module_param_named(max_sectors, g_max_sectors, int, 0444);
158 MODULE_PARM_DESC(max_sectors, "Maximum size of a command (in 512B sectors)");
415 NULLB_DEVICE_ATTR(max_sectors, uint, NULL);
731 dev->max_sectors = g_max_sectors; in null_alloc_dev()
2179 if (dev->max_sectors) in null_add_dev()
2180 blk_queue_max_hw_sectors(nullb->q, dev->max_sectors); in null_add_dev()
/drivers/ata/
Dlibata-core.c1190 static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors) in ata_read_native_max_address() argument
1221 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address()
1223 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address()
1225 (*max_sectors)--; in ata_read_native_max_address()
2886 dev->max_sectors = 0; in ata_dev_configure()
3028 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
3030 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure()
3038 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
3043 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure()
3048 dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, in ata_dev_configure()
[all …]
Dpata_it821x.c506 if (adev->max_sectors > 255) in it821x_dev_config()
507 adev->max_sectors = 255; in it821x_dev_config()
Dpata_pdc202xx_old.c260 adev->max_sectors = 256; in pdc2026x_dev_config()
/drivers/spi/
Dspi-mtk-snfi.c238 u16 max_sectors; member
254 .max_sectors = 8,
268 .max_sectors = 8,
282 .max_sectors = 8,
549 if (nsectors > snf->caps->max_sectors) { in mtk_snand_setup_pagefmt()
/drivers/scsi/snic/
Dsnic_ctl.c199 snic->shost->max_sectors = snic->fwinfo.max_io_sz >> 9; in snic_io_exch_ver_cmpl_handler()
/drivers/scsi/bfa/
Dbfad_im.c737 sht->max_sectors = max_xfer_size << 1; in bfad_scsi_host_alloc()
812 .max_sectors = BFAD_MAX_SECTORS,
835 .max_sectors = BFAD_MAX_SECTORS,

12345