Home
last modified time | relevance | path

Searched refs:max_segments (Results 1 – 25 of 27) sorted by relevance

12

/linux/block/
H A Dblk-settings.c46 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()
326 if (!lim->max_segments) in blk_validate_limits()
327 lim->max_segments = BLK_MAX_SEGMENTS; in blk_validate_limits()
712 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
H A Dblk-merge.c330 if (nsegs < lim->max_segments && in bio_split_rw_at()
337 lim->max_segments, max_bytes)) in bio_split_rw_at()
H A Dblk-sysfs.c105 QUEUE_SYSFS_LIMIT_SHOW(max_segments)
H A Dblk-mq.c3189 unsigned int max_segments = blk_rq_get_max_segments(rq); in blk_insert_cloned_request() local
3216 if (rq->nr_phys_segments > max_segments) { in blk_insert_cloned_request()
3218 __func__, rq->nr_phys_segments, max_segments); in blk_insert_cloned_request()
/linux/drivers/infiniband/ulp/rtrs/
H A Drtrs.h113 u32 max_segments; member
H A Drtrs-clt.h169 unsigned int max_segments; member
H A Drtrs-clt.c1470 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 Drnbd-clt.h88 u32 max_segments; member
H A Drnbd-proto.h154 __le16 max_segments; member
/linux/include/linux/
H A Dblkdev.h398 unsigned short max_segments; member
1213 return q->limits.max_segments; in queue_max_segments()
/linux/drivers/nvme/target/
H A Dpassthru.c105 max_hw_sectors = min_not_zero(pctrl->max_segments << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
/linux/drivers/cdrom/
H A Dgdrom.c744 .max_segments = 1, in probe_gdrom()
/linux/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c2634 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 Ddrbd_nl.c1248 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 Dscsi_transport_fc.c4286 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()
H A Dscsi_lib.c1985 lim->max_segments = in scsi_init_limits()
/linux/drivers/nvme/host/
H A Dnvme.h322 u32 max_segments; member
H A Dfc.c3075 ctrl->ctrl.max_segments = ctrl->lport->ops->max_sgl_segments; in nvme_fc_create_association()
3076 ctrl->ctrl.max_hw_sectors = ctrl->ctrl.max_segments << in nvme_fc_create_association()
H A Drdma.c829 ctrl->ctrl.max_segments = ctrl->max_fr_pages; in nvme_rdma_configure_admin_queue()
/linux/drivers/block/
H A Dsunvdc.c793 .max_segments = port->ring_cookies, in probe_disk()
H A Dublk_drv.c2258 .max_segments = USHRT_MAX, in ublk_ctrl_start_dev()
/linux/drivers/ata/
H A Dsata_nv.c747 lim->max_segments = sg_tablesize; in nv_adma_sdev_configure()
/linux/fs/btrfs/
H A Dzoned.c748 (u64)lim->max_segments << PAGE_SHIFT), in btrfs_check_zoned_mode()
/linux/drivers/md/bcache/
H A Dsuper.c906 .max_segments = BIO_MAX_VECS, in bcache_device_init()
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_app.c2952 .max_segments = MPI3MR_MAX_APP_XFER_SEGMENTS, in mpi3mr_bsg_init()

12