/linux/block/ |
H A D | blk-settings.c | 50 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits() 66 bdi->io_pages = lim->max_sectors >> PAGE_SECTORS_SHIFT; in blk_apply_bdi_limits() 305 lim->max_sectors = min(max_hw_sectors, lim->max_user_sectors); in blk_validate_limits() 307 lim->max_sectors = in blk_validate_limits() 310 lim->max_sectors = in blk_validate_limits() 313 lim->max_sectors = min(max_hw_sectors, BLK_DEF_MAX_SECTORS_CAP); in blk_validate_limits() 315 lim->max_sectors = round_down(lim->max_sectors, in blk_validate_limits() 658 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits() 752 t->max_sectors = blk_round_down_sectors(t->max_sectors, t->logical_block_size); in blk_stack_limits()
|
H A D | blk-merge.c | 202 unsigned max_sectors, start, end; in get_max_io_size() local 209 max_sectors = lim->max_write_zeroes_sectors; in get_max_io_size() 211 max_sectors = lim->atomic_write_max_sectors; in get_max_io_size() 213 max_sectors = lim->max_sectors; in get_max_io_size() 216 max_sectors = min(max_sectors, in get_max_io_size() 222 end = (start + max_sectors) & ~(pbs - 1); in get_max_io_size() 225 return max_sectors & ~(lbs - 1); in get_max_io_size() 407 unsigned int max_sectors = get_max_io_size(bio, lim); in bio_split_write_zeroes() local 417 if (!max_sectors) in bio_split_write_zeroes() 419 if (bio_sectors(bio) <= max_sectors) in bio_split_write_zeroes() [all …]
|
H A D | blk-lib.c | 333 unsigned int max_sectors = bdev_max_secure_erase_sectors(bdev); in blkdev_issue_secure_erase() local 339 if (max_sectors > UINT_MAX >> SECTOR_SHIFT) in blkdev_issue_secure_erase() 340 max_sectors = UINT_MAX >> SECTOR_SHIFT; in blkdev_issue_secure_erase() 341 max_sectors &= ~bs_mask; in blkdev_issue_secure_erase() 343 if (max_sectors == 0) in blkdev_issue_secure_erase() 352 unsigned int len = min_t(sector_t, nr_sects, max_sectors); in blkdev_issue_secure_erase()
|
H A D | blk.h | 205 return q->limits.max_sectors; in blk_queue_get_max_sectors() 561 unsigned int max_sectors, bool *same_page); 565 unsigned int max_sectors, bool *same_page);
|
H A D | ioctl.c | 560 unsigned int max_sectors; in blkdev_common_ioctl() local 601 max_sectors = min_t(unsigned int, USHRT_MAX, in blkdev_common_ioctl() 603 return put_ushort(argp, max_sectors); in blkdev_common_ioctl()
|
/linux/drivers/usb/storage/ |
H A D | scsiglue.c | 102 unsigned int max_sectors = 64; in device_configure() local 105 max_sectors = PAGE_SIZE >> 9; in device_configure() 106 lim->max_hw_sectors = min(lim->max_hw_sectors, max_sectors); in device_configure() 605 static DEVICE_ATTR_RW(max_sectors); 670 .max_sectors = 240,
|
/linux/drivers/scsi/ |
H A D | hosts.c | 250 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/drivers/md/ |
H A D | raid1.c | 593 int *max_sectors) in choose_first_rdev() argument 614 *max_sectors = read_len; in choose_first_rdev() 629 int *max_sectors) in choose_bb_rdev() argument 660 *max_sectors = best_len; in choose_bb_rdev() 668 int *max_sectors) in choose_slow_rdev() argument 693 *max_sectors = read_len; in choose_slow_rdev() 709 *max_sectors = bb_read_len; in choose_slow_rdev() 866 int *max_sectors) in read_balance() argument 874 return choose_first_rdev(conf, r1_bio, max_sectors); in read_balance() 878 *max_sectors = r1_bio->sectors; in read_balance() [all …]
|
H A D | raid10.c | 726 int *max_sectors) in read_balance() argument 857 *max_sectors = best_good_sectors; in read_balance() 1156 int max_sectors; in raid10_read_request() local 1192 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request() 1207 if (max_sectors < bio_sectors(bio)) { in raid10_read_request() 1208 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request() 1220 r10_bio->sectors = max_sectors; in raid10_read_request() 1359 int max_sectors; in raid10_write_request() local 1425 max_sectors = r10_bio->sectors; in raid10_write_request() 1451 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request() [all …]
|
H A D | md.c | 2203 sector_t max_sectors; in super_1_rdev_size_change() local 2210 max_sectors = bdev_nr_sectors(rdev->bdev) - rdev->data_offset; in super_1_rdev_size_change() 2211 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2212 num_sectors = max_sectors; in super_1_rdev_size_change() 2230 max_sectors = sb_start - bm_space - 4*2; in super_1_rdev_size_change() 2232 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2233 num_sectors = max_sectors; in super_1_rdev_size_change() 5196 unsigned long long max_sectors, resync; in sync_completed_show() local 5207 max_sectors = mddev->resync_max_sectors; in sync_completed_show() 5209 max_sectors = mddev->dev_sectors; in sync_completed_show() [all …]
|
/linux/drivers/infiniband/ulp/iser/ |
H A 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/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 80 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()
|
/linux/drivers/scsi/aacraid/ |
H A 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()
|
H A 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() 606 host->max_sectors = (status[1] >> 16) << 1; in aac_init_adapter()
|
/linux/drivers/scsi/cxlflash/ |
H A D | main.h | 94 u64 max_sectors; member
|
/linux/include/scsi/ |
H A D | scsi_host.h | 405 unsigned int max_sectors; member 620 unsigned int max_sectors; member
|
/linux/include/uapi/linux/ |
H A D | virtio_scsi.h | 108 __virtio32 max_sectors; member
|
H A D | ublk_cmd.h | 368 __u32 max_sectors; member
|
/linux/fs/btrfs/ |
H A D | defrag.c | 1274 unsigned long max_sectors, in defrag_one_cluster() argument 1293 if (max_sectors && *sectors_defragged >= max_sectors) { in defrag_one_cluster() 1298 if (max_sectors) in defrag_one_cluster() 1300 (max_sectors - *sectors_defragged) * sectorsize); in defrag_one_cluster()
|
/linux/drivers/target/ |
H A D | target_core_device.c | 489 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument 498 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors() 500 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors() 502 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
|
/linux/drivers/scsi/megaraid/ |
H A D | mega_common.h | 187 uint16_t max_sectors; member
|
/linux/drivers/block/null_blk/ |
H A D | null_blk.h | 93 unsigned int max_sectors; /* Max sectors per command */ member
|
/linux/drivers/scsi/arm/ |
H A D | oak.c | 117 .max_sectors = 128,
|
/linux/drivers/ata/ |
H A D | libata-core.c | 1177 static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors) in ata_read_native_max_address() argument 1208 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address() 1210 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address() 1212 (*max_sectors)--; in ata_read_native_max_address() 2876 dev->max_sectors = 0; in ata_dev_configure() 3019 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure() 3021 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure() 3029 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure() 3034 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure() 3039 dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, in ata_dev_configure() [all …]
|
/linux/drivers/spi/ |
H A D | spi-mtk-snfi.c | 238 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()
|