/linux/block/ |
H A D | blk-settings.c | 46 lim->max_segments = USHRT_MAX; in blk_set_stacking_limits() 146 unsigned int max_segments = min(BIO_MAX_VECS, lim->max_segments); in blk_queue_max_guaranteed_bio() local 149 length = min(max_segments, 2) * lim->logical_block_size; in blk_queue_max_guaranteed_bio() 150 if (max_segments > 2) in blk_queue_max_guaranteed_bio() 151 length += (max_segments - 2) * PAGE_SIZE; in blk_queue_max_guaranteed_bio() 322 if (!lim->max_segments) in blk_validate_limits() 323 lim->max_segments = BLK_MAX_SEGMENTS; in blk_validate_limits() 673 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
|
H A D | blk-merge.c | 330 if (nsegs < lim->max_segments && in bio_split_rw_at() 337 lim->max_segments, max_bytes)) in bio_split_rw_at()
|
H A D | blk-sysfs.c | 103 QUEUE_SYSFS_LIMIT_SHOW(max_segments)
|
H A D | blk-mq.c | 3178 unsigned int max_segments = blk_rq_get_max_segments(rq); in blk_insert_cloned_request() local 3205 if (rq->nr_phys_segments > max_segments) { in blk_insert_cloned_request() 3207 __func__, rq->nr_phys_segments, max_segments); in blk_insert_cloned_request()
|
/linux/drivers/infiniband/ulp/rtrs/ |
H A D | rtrs.h | 113 u32 max_segments; member
|
H A D | rtrs-clt.h | 169 unsigned int max_segments; member
|
H A D | rtrs-clt.c | 1470 clt_path->clt->max_segments = in query_fast_reg_mode() 1471 min(clt_path->max_pages_per_mr, clt_path->clt->max_segments); in query_fast_reg_mode() 2718 clt->max_segments = RTRS_MAX_SEGMENTS; in alloc_clt() 3088 attr->max_segments = clt->max_segments; in rtrs_clt_query() 3091 clt->max_segments * SZ_4K); in rtrs_clt_query()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-clt.h | 88 u32 max_segments; member
|
H A D | rnbd-proto.h | 154 __le16 max_segments; member
|
H A D | rnbd-clt.c | 1284 sess->max_segments = attrs.max_segments; in find_and_get_or_create_sess() 1373 .max_segments = dev->sess->max_segments, in rnbd_client_setup_device() 1622 sess->max_segments, sess->max_io_size / SECTOR_SIZE, in rnbd_clt_map_device()
|
H A D | rnbd-srv.c | 551 rsp->max_segments = cpu_to_le16(bdev_max_segments(bdev)); in rnbd_srv_fill_msg_open_rsp()
|
/linux/drivers/s390/block/ |
H A D | dasd_genhd.c | 44 .max_segments = USHRT_MAX, in dasd_gendisk_alloc()
|
H A D | scm_blk.c | 444 lim.max_segments = min(scmdev->nr_max_block, in scm_blk_dev_setup() 446 lim.max_hw_sectors = lim.max_segments << 3; /* 8 * 512 = blk_size */ in scm_blk_dev_setup()
|
/linux/drivers/mmc/core/ |
H A D | queue.c | 374 lim.max_segments = MMC_DMA_MAP_MERGE_SEGMENTS; in mmc_alloc_disk() 378 lim.max_segments = host->max_segs; in mmc_alloc_disk()
|
/linux/drivers/mtd/ubi/ |
H A D | block.c | 352 .max_segments = UBI_MAX_SG_COUNT, in ubiblock_create()
|
/linux/drivers/block/ |
H A D | ps3disk.c | 388 .max_segments = -1, in ps3disk_probe()
|
H A D | sunvdc.c | 793 .max_segments = port->ring_cookies, in probe_disk()
|
/linux/drivers/nvme/target/ |
H A D | passthru.c | 105 max_hw_sectors = min_not_zero(pctrl->max_segments << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
|
/linux/drivers/cdrom/ |
H A D | gdrom.c | 744 .max_segments = 1, in probe_gdrom()
|
/linux/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 2634 int idx, avail, frag_cnt, frag_idx, count, mss, max_segments; in myri10ge_xmit() local 2649 max_segments = MXGEFW_MAX_SEND_DESC; in myri10ge_xmit() 2653 max_segments = MYRI10GE_MAX_SEND_DESC_TSO; in myri10ge_xmit() 2656 if ((unlikely(avail < max_segments))) { in myri10ge_xmit() 2767 if (unlikely(count == max_segments)) in myri10ge_xmit()
|
/linux/drivers/block/drbd/ |
H A D | drbd_nl.c | 1248 unsigned int max_segments; in drbd_backing_dev_max_segments() local 1251 max_segments = rcu_dereference(device->ldev->disk_conf)->max_bio_bvecs; in drbd_backing_dev_max_segments() 1254 if (!max_segments) in drbd_backing_dev_max_segments() 1256 return max_segments; in drbd_backing_dev_max_segments() 1296 lim.max_segments = drbd_backing_dev_max_segments(device); in drbd_reconsider_queue_parameters() 1298 lim.max_segments = BLK_MAX_SEGMENTS; in drbd_reconsider_queue_parameters()
|
/linux/drivers/scsi/ |
H A D | scsi_transport_fc.c | 4286 lim.max_segments = min_not_zero(lim.max_segments, i->f->max_bsg_segments); in fc_bsg_hostadd() 4319 lim.max_segments = min_not_zero(lim.max_segments, i->f->max_bsg_segments); in fc_bsg_rportadd()
|
/linux/drivers/nvme/host/ |
H A D | nvme.h | 317 u32 max_segments; member
|
H A D | apple.c | 1055 anv->ctrl.max_segments = NVME_MAX_SEGS; in apple_nvme_reset_work()
|
/linux/arch/um/drivers/ |
H A D | ubd_kern.c | 833 .max_segments = MAX_SG, in ubd_add()
|