/linux-6.1.9/block/ |
D | blk-settings.c | 42 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits() 80 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits() 125 unsigned int max_sectors; in blk_queue_max_hw_sectors() local 137 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors() 138 max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); in blk_queue_max_hw_sectors() 139 max_sectors = round_down(max_sectors, in blk_queue_max_hw_sectors() 141 limits->max_sectors = max_sectors; in blk_queue_max_hw_sectors() 145 q->disk->bdi->io_pages = max_sectors >> (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors() 186 unsigned int max_sectors) in blk_queue_max_secure_erase_sectors() argument 188 q->limits.max_secure_erase_sectors = max_sectors; in blk_queue_max_secure_erase_sectors() [all …]
|
D | blk-lib.c | 307 unsigned int max_sectors = bdev_max_secure_erase_sectors(bdev); in blkdev_issue_secure_erase() local 313 if (max_sectors > UINT_MAX >> SECTOR_SHIFT) in blkdev_issue_secure_erase() 314 max_sectors = UINT_MAX >> SECTOR_SHIFT; in blkdev_issue_secure_erase() 315 max_sectors &= ~bs_mask; in blkdev_issue_secure_erase() 317 if (max_sectors == 0) in blkdev_issue_secure_erase() 326 unsigned int len = min_t(sector_t, nr_sects, max_sectors); in blkdev_issue_secure_erase()
|
D | blk-merge.c | 172 unsigned max_sectors = lim->max_sectors, start, end; in get_max_io_size() local 175 max_sectors = min(max_sectors, in get_max_io_size() 181 end = (start + max_sectors) & ~(pbs - 1); in get_max_io_size() 184 return max_sectors & ~(lbs - 1); in get_max_io_size() 590 unsigned int max_sectors; in blk_rq_get_max_sectors() local 595 max_sectors = blk_queue_get_max_sectors(q, req_op(rq)); in blk_rq_get_max_sectors() 599 return max_sectors; in blk_rq_get_max_sectors() 600 return min(max_sectors, in blk_rq_get_max_sectors()
|
D | ioctl.c | 474 unsigned int max_sectors; in blkdev_common_ioctl() local 515 max_sectors = min_t(unsigned int, USHRT_MAX, in blkdev_common_ioctl() 517 return put_ushort(argp, max_sectors); in blkdev_common_ioctl()
|
D | blk.h | 174 return q->limits.max_sectors; in blk_queue_get_max_sectors() 429 unsigned int max_sectors, bool *same_page);
|
/linux-6.1.9/drivers/usb/storage/ |
D | scsiglue.c | 103 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() 588 static DEVICE_ATTR_RW(max_sectors); 648 .max_sectors = 240,
|
/linux-6.1.9/drivers/scsi/ |
D | hosts.c | 249 shost->max_sectors = min_t(unsigned int, shost->max_sectors, in scsi_add_host_with_dma() 471 if (sht->max_sectors) in scsi_host_alloc() 472 shost->max_sectors = sht->max_sectors; in scsi_host_alloc() 474 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; in scsi_host_alloc()
|
/linux-6.1.9/drivers/infiniband/ulp/iser/ |
D | iscsi_iser.c | 103 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()
|
/linux-6.1.9/drivers/vdpa/vdpa_sim/ |
D | vdpa_sim_blk.c | 50 u64 num_sectors, u64 max_sectors) in vdpasim_blk_check_range() argument 58 if (num_sectors > max_sectors) { in vdpasim_blk_check_range() 61 num_sectors, max_sectors); in vdpasim_blk_check_range()
|
/linux-6.1.9/drivers/target/ |
D | target_core_xcopy.c | 673 unsigned int max_sectors; in target_xcopy_do_work() local 697 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work() 699 max_sectors = min_t(u32, max_sectors, XCOPY_MAX_SECTORS); in target_xcopy_do_work() 701 max_nolb = min_t(u16, max_sectors, ((u16)(~0U))); in target_xcopy_do_work()
|
D | target_core_device.c | 536 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument 545 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors() 547 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors() 549 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
|
/linux-6.1.9/drivers/md/ |
D | raid1.c | 599 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) in read_balance() argument 789 *max_sectors = sectors; in read_balance() 1225 int max_sectors; in raid1_read_request() local 1269 rdisk = read_balance(conf, r1_bio, &max_sectors); in raid1_read_request() 1301 if (max_sectors < bio_sectors(bio)) { in raid1_read_request() 1302 struct bio *split = bio_split(bio, max_sectors, in raid1_read_request() 1308 r1_bio->sectors = max_sectors; in raid1_read_request() 1349 int max_sectors; in raid1_write_request() local 1402 max_sectors = r1_bio->sectors; in raid1_write_request() 1432 is_bad = is_badblock(rdev, r1_bio->sector, max_sectors, in raid1_write_request() [all …]
|
D | raid10.c | 733 int *max_sectors) in read_balance() argument 874 *max_sectors = best_good_sectors; in read_balance() 1182 int max_sectors; in raid10_read_request() local 1219 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request() 1234 if (max_sectors < bio_sectors(bio)) { in raid10_read_request() 1235 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request() 1243 r10_bio->sectors = max_sectors; in raid10_read_request() 1406 int max_sectors; in raid10_write_request() local 1471 max_sectors = r10_bio->sectors; in raid10_write_request() 1498 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request() [all …]
|
D | md.c | 2140 sector_t max_sectors; in super_1_rdev_size_change() local 2147 max_sectors = bdev_nr_sectors(rdev->bdev) - rdev->data_offset; in super_1_rdev_size_change() 2148 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2149 num_sectors = max_sectors; in super_1_rdev_size_change() 2167 max_sectors = sb_start - bm_space - 4*2; in super_1_rdev_size_change() 2169 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2170 num_sectors = max_sectors; in super_1_rdev_size_change() 5006 unsigned long long max_sectors, resync; in sync_completed_show() local 5017 max_sectors = mddev->resync_max_sectors; in sync_completed_show() 5019 max_sectors = mddev->dev_sectors; in sync_completed_show() [all …]
|
/linux-6.1.9/drivers/scsi/cxlflash/ |
D | main.h | 94 u64 max_sectors; member
|
/linux-6.1.9/drivers/scsi/aacraid/ |
D | commctrl.c | 659 (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()
|
D | comminit.c | 123 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()
|
/linux-6.1.9/include/scsi/ |
D | scsi_host.h | 392 unsigned int max_sectors; member 611 unsigned int max_sectors; member
|
/linux-6.1.9/include/uapi/linux/ |
D | virtio_scsi.h | 108 __virtio32 max_sectors; member
|
D | ublk_cmd.h | 199 __u32 max_sectors; member
|
/linux-6.1.9/drivers/block/null_blk/ |
D | null_blk.h | 104 unsigned int max_sectors; /* Max sectors per command */ member
|
D | main.c | 157 module_param_named(max_sectors, g_max_sectors, int, 0444); 158 MODULE_PARM_DESC(max_sectors, "Maximum size of a command (in 512B sectors)"); 411 NULLB_DEVICE_ATTR(max_sectors, uint, NULL); 675 dev->max_sectors = g_max_sectors; in null_alloc_dev() 2104 if (!dev->max_sectors) in null_add_dev() 2105 dev->max_sectors = queue_max_hw_sectors(nullb->q); in null_add_dev() 2106 dev->max_sectors = min_t(unsigned int, dev->max_sectors, in null_add_dev() 2108 blk_queue_max_hw_sectors(nullb->q, dev->max_sectors); in null_add_dev()
|
/linux-6.1.9/drivers/scsi/megaraid/ |
D | mega_common.h | 187 uint16_t max_sectors; member
|
/linux-6.1.9/drivers/scsi/arm/ |
D | oak.c | 117 .max_sectors = 128,
|
/linux-6.1.9/drivers/ata/ |
D | libata-core.c | 1156 static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors) in ata_read_native_max_address() argument 1187 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address() 1189 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address() 1191 (*max_sectors)--; in ata_read_native_max_address() 2605 dev->max_sectors = 0; in ata_dev_configure() 2745 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure() 2747 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure() 2755 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure() 2760 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure() 2765 dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, in ata_dev_configure() [all …]
|