Home
last modified time | relevance | path

Searched refs:max_segments (Results 1 – 25 of 41) 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()
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 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.c103 QUEUE_SYSFS_LIMIT_SHOW(max_segments)
H A Dblk-mq.c3178 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 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
H A Drnbd-clt.c1284 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 Drnbd-srv.c551 rsp->max_segments = cpu_to_le16(bdev_max_segments(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux/drivers/s390/block/
H A Ddasd_genhd.c44 .max_segments = USHRT_MAX, in dasd_gendisk_alloc()
H A Dscm_blk.c444 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 Dqueue.c374 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 Dblock.c352 .max_segments = UBI_MAX_SG_COUNT, in ubiblock_create()
/linux/drivers/block/
H A Dps3disk.c388 .max_segments = -1, in ps3disk_probe()
H A Dsunvdc.c793 .max_segments = port->ring_cookies, in probe_disk()
/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()
/linux/drivers/nvme/host/
H A Dnvme.h317 u32 max_segments; member
H A Dapple.c1055 anv->ctrl.max_segments = NVME_MAX_SEGS; in apple_nvme_reset_work()
/linux/arch/um/drivers/
H A Dubd_kern.c833 .max_segments = MAX_SG, in ubd_add()

12