Home
last modified time | relevance | path

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

/linux-6.1.9/block/
Dblk-settings.c36 lim->max_segments = BLK_MAX_SEGMENTS; in blk_set_default_limits()
76 lim->max_segments = USHRT_MAX; in blk_set_stacking_limits()
241 void blk_queue_max_segments(struct request_queue *q, unsigned short max_segments) in blk_queue_max_segments() argument
243 if (!max_segments) { in blk_queue_max_segments()
244 max_segments = 1; in blk_queue_max_segments()
246 __func__, max_segments); in blk_queue_max_segments()
249 q->limits.max_segments = max_segments; in blk_queue_max_segments()
263 unsigned short max_segments) in blk_queue_max_discard_segments() argument
265 q->limits.max_discard_segments = max_segments; in blk_queue_max_discard_segments()
566 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
Dblk-merge.c285 if (nsegs < lim->max_segments && in bio_split_rw()
292 lim->max_segments, max_bytes)) in bio_split_rw()
/linux-6.1.9/drivers/block/rnbd/
Drnbd-clt.h88 u32 max_segments; member
Drnbd-proto.h145 __le16 max_segments; member
Drnbd-clt.c1284 sess->max_segments = attrs.max_segments; in find_and_get_or_create_sess()
1359 blk_queue_max_segments(dev->queue, dev->sess->max_segments); in setup_request_queue()
1637 sess->max_segments, sess->max_io_size / SECTOR_SIZE, in rnbd_clt_map_device()
Drnbd-srv.c546 rsp->max_segments = cpu_to_le16(bdev_max_segments(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-6.1.9/drivers/infiniband/ulp/rtrs/
Drtrs.h113 u32 max_segments; member
Drtrs-clt.h170 unsigned int max_segments; member
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()
2721 clt->max_segments = RTRS_MAX_SEGMENTS; in alloc_clt()
3091 attr->max_segments = clt->max_segments; in rtrs_clt_query()
3094 clt->max_segments * SZ_4K); in rtrs_clt_query()
/linux-6.1.9/include/linux/
Dblkdev.h306 unsigned short max_segments; member
1143 return q->limits.max_segments; in queue_max_segments()
/linux-6.1.9/drivers/nvme/target/
Dpassthru.c105 max_hw_sectors = min_not_zero(pctrl->max_segments << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
/linux-6.1.9/drivers/net/ethernet/myricom/myri10ge/
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-6.1.9/drivers/scsi/
Dsd_zbc.c884 q->limits.max_segments << (PAGE_SHIFT - 9)); in sd_zbc_revalidate_zones()
/linux-6.1.9/drivers/nvme/host/
Dnvme.h283 u32 max_segments; member
Dcore.c1849 u32 max_segments = in nvme_set_queue_limits() local
1852 max_segments = min_not_zero(max_segments, ctrl->max_segments); in nvme_set_queue_limits()
1854 blk_queue_max_segments(q, min_t(u32, max_segments, USHRT_MAX)); in nvme_set_queue_limits()
Dapple.c1040 anv->ctrl.max_segments = NVME_MAX_SEGS; in apple_nvme_reset_work()
Dfc.c3103 ctrl->ctrl.max_segments = ctrl->lport->ops->max_sgl_segments; in nvme_fc_create_association()
3104 ctrl->ctrl.max_hw_sectors = ctrl->ctrl.max_segments << in nvme_fc_create_association()
Drdma.c866 ctrl->ctrl.max_segments = ctrl->max_fr_pages; in nvme_rdma_configure_admin_queue()
Dpci.c2853 dev->ctrl.max_segments = NVME_MAX_SEGS; in nvme_reset_work()
/linux-6.1.9/drivers/block/drbd/
Ddrbd_nl.c1264 unsigned int max_segments = 0; in drbd_setup_queue_param() local
1274 max_segments = dc->max_bio_bvecs; in drbd_setup_queue_param()
1282 blk_queue_max_segments(q, max_segments ? max_segments : BLK_MAX_SEGMENTS); in drbd_setup_queue_param()
/linux-6.1.9/Documentation/ABI/stable/
Dsysfs-block446 What: /sys/block/<disk>/queue/max_segments
/linux-6.1.9/drivers/md/bcache/
Dsuper.c953 q->limits.max_segments = BIO_MAX_VECS; in bcache_device_init()