Home
last modified time | relevance | path

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

123456

/linux/block/
A Dblk-settings.c80 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits()
126 unsigned int max_sectors; in blk_queue_max_hw_sectors() local
139 max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); in blk_queue_max_hw_sectors()
140 max_sectors = round_down(max_sectors, in blk_queue_max_hw_sectors()
142 limits->max_sectors = max_sectors; in blk_queue_max_hw_sectors()
214 unsigned int max_sectors; in blk_queue_max_zone_append_sectors() local
220 max_sectors = min(q->limits.chunk_sectors, max_sectors); in blk_queue_max_zone_append_sectors()
227 WARN_ON(!max_sectors); in blk_queue_max_zone_append_sectors()
318 limits->max_sectors = in blk_queue_logical_block_size()
519 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
[all …]
A Dblk-merge.c181 unsigned max_sectors = sectors; in get_max_io_size() local
186 max_sectors += start_offset; in get_max_io_size()
187 max_sectors &= ~(pbs - 1); in get_max_io_size()
188 if (max_sectors > start_offset) in get_max_io_size()
189 return max_sectors - start_offset; in get_max_io_size()
233 unsigned max_sectors) in bvec_split_segs() argument
235 unsigned max_len = (min(max_sectors, UINT_MAX >> 9) - *sectors) << 9; in bvec_split_segs()
286 const unsigned max_sectors = get_max_io_size(q, bio); in blk_bio_segment_split() local
298 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split()
303 max_sectors)) { in blk_bio_segment_split()
A Dioctl.c471 unsigned int max_sectors; in blkdev_common_ioctl() local
513 max_sectors = min_t(unsigned int, USHRT_MAX, in blkdev_common_ioctl()
515 return put_ushort(argp, max_sectors); in blkdev_common_ioctl()
A Dblk-core.c1113 unsigned int max_sectors = blk_queue_get_max_sectors(q, req_op(rq)); in blk_cloned_rq_check_limits() local
1115 if (blk_rq_sectors(rq) > max_sectors) { in blk_cloned_rq_check_limits()
1126 if (max_sectors == 0) in blk_cloned_rq_check_limits()
1130 __func__, blk_rq_sectors(rq), max_sectors); in blk_cloned_rq_check_limits()
A Dblk-map.c236 unsigned int max_sectors = queue_max_hw_sectors(rq->q); in bio_map_user_iov() local
276 max_sectors, &same_page)) { in bio_map_user_iov()
A Dblk-sysfs.c234 unsigned long long max_sectors = q->limits.max_zone_append_sectors; in queue_zone_append_max_show() local
236 return sprintf(page, "%llu\n", max_sectors << SECTOR_SHIFT); in queue_zone_append_max_show()
257 q->limits.max_sectors = max_sectors_kb << 1; in queue_max_sectors_store()
/linux/drivers/usb/storage/
A 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()
588 static DEVICE_ATTR_RW(max_sectors);
648 .max_sectors = 240,
/linux/drivers/infiniband/ulp/iser/
A 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:…
685 shost->max_sectors = min(iser_max_sectors, max_fr_sectors); in iscsi_iser_session_create()
689 shost->max_sectors); in iscsi_iser_session_create()
691 if (shost->max_sectors < iser_max_sectors) in iscsi_iser_session_create()
693 iser_max_sectors, shost->max_sectors); in iscsi_iser_session_create()
/linux/drivers/scsi/
A Dhosts.c455 if (sht->max_sectors) in scsi_host_alloc()
456 shost->max_sectors = sht->max_sectors; in scsi_host_alloc()
458 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; in scsi_host_alloc()
/linux/drivers/md/
A Draid1.c786 *max_sectors = sectors; in read_balance()
1211 int max_sectors; in raid1_read_request() local
1290 r1_bio->sectors = max_sectors; in raid1_read_request()
1331 int max_sectors; in raid1_write_request() local
1382 max_sectors = r1_bio->sectors; in raid1_write_request()
1424 if (bad_sectors < max_sectors) in raid1_write_request()
1428 max_sectors = bad_sectors; in raid1_write_request()
1444 if (good_sectors < max_sectors) in raid1_write_request()
1445 max_sectors = good_sectors; in raid1_write_request()
1474 max_sectors = min_t(int, max_sectors, in raid1_write_request()
[all …]
A Draid10.c706 int *max_sectors) in read_balance() argument
847 *max_sectors = best_good_sectors; in read_balance()
1125 int max_sectors; in raid10_read_request() local
1185 r10_bio->sectors = max_sectors; in raid10_read_request()
1352 int max_sectors; in raid10_write_request() local
1412 max_sectors = r10_bio->sectors; in raid10_write_request()
1444 if (bad_sectors < max_sectors) in raid10_write_request()
1448 max_sectors = bad_sectors; in raid10_write_request()
1462 max_sectors = good_sectors; in raid10_write_request()
1477 r10_bio->sectors = max_sectors; in raid10_write_request()
[all …]
A Dmd.c2161 sector_t max_sectors; in super_1_rdev_size_change() local
2170 num_sectors = max_sectors; in super_1_rdev_size_change()
2191 num_sectors = max_sectors; in super_1_rdev_size_change()
8035 resync = max_sectors; in status_resync()
8036 } else if (resync > max_sectors) in status_resync()
8037 resync = max_sectors; in status_resync()
8070 WARN_ON(max_sectors == 0); in status_resync()
8880 while (j < max_sectors) { in md_do_sync()
8888 > (max_sectors >> 4)) || in md_do_sync()
8937 if (j > max_sectors) in md_do_sync()
[all …]
/linux/drivers/target/
A Dtarget_core_xcopy.c673 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()
A Dtarget_core_device.c527 static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size) in se_dev_align_max_sectors() argument
536 aligned_max_sectors = rounddown(max_sectors, alignment); in se_dev_align_max_sectors()
538 if (max_sectors != aligned_max_sectors) in se_dev_align_max_sectors()
540 max_sectors, aligned_max_sectors); in se_dev_align_max_sectors()
/linux/include/linux/
A Dblkdev.h90 unsigned int max_sectors; member
652 return q->limits.max_sectors; in blk_queue_get_max_sectors()
667 return q->limits.max_sectors; in blk_max_size_offset()
675 return min(q->limits.max_sectors, chunk_sectors); in blk_max_size_offset()
903 return q->limits.max_sectors; in queue_max_sectors()
936 return min(l->max_zone_append_sectors, l->max_sectors); in queue_max_zone_append_sectors()
/linux/drivers/scsi/aacraid/
A 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()
A 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()
/linux/drivers/scsi/cxlflash/
A Dmain.h94 u64 max_sectors; member
/linux/include/scsi/
A Dscsi_host.h393 unsigned int max_sectors; member
612 unsigned int max_sectors; member
/linux/drivers/block/null_blk/
A Dmain.c160 module_param_named(max_sectors, g_max_sectors, int, 0444);
161 MODULE_PARM_DESC(max_sectors, "Maximum size of a command (in 512B sectors)");
397 NULLB_DEVICE_ATTR(max_sectors, uint, NULL);
647 dev->max_sectors = g_max_sectors; in null_alloc_dev()
2060 if (!dev->max_sectors) in null_add_dev()
2061 dev->max_sectors = queue_max_hw_sectors(nullb->q); in null_add_dev()
2062 dev->max_sectors = min_t(unsigned int, dev->max_sectors, in null_add_dev()
2064 blk_queue_max_hw_sectors(nullb->q, dev->max_sectors); in null_add_dev()
A Dnull_blk.h95 unsigned int max_sectors; /* Max sectors per command */ member
/linux/include/uapi/linux/
A Dvirtio_scsi.h108 __virtio32 max_sectors; member
/linux/drivers/scsi/megaraid/
A Dmega_common.h187 uint16_t max_sectors; member
/linux/drivers/ata/
A Dlibata-core.c1194 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address()
1196 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address()
1198 (*max_sectors)--; in ata_read_native_max_address()
2634 dev->max_sectors = 0; in ata_dev_configure()
2776 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2778 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure()
2786 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2791 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure()
2797 dev->max_sectors); in ata_dev_configure()
2801 dev->max_sectors); in ata_dev_configure()
[all …]
/linux/drivers/scsi/arm/
A Doak.c117 .max_sectors = 128,

Completed in 88 milliseconds

123456