max_segs          195 block/blk-merge.c 			    unsigned *sectors, unsigned max_segs,
max_segs          203 block/blk-merge.c 	while (len && *nsegs < max_segs) {
max_segs          249 block/blk-merge.c 	const unsigned max_segs = queue_max_segments(q);
max_segs          259 block/blk-merge.c 		if (nsegs < max_segs &&
max_segs          264 block/blk-merge.c 		} else if (bvec_split_segs(q, &bv, &nsegs, &sectors, max_segs,
max_segs          159 drivers/infiniband/sw/rdmavt/mr.c 	mr->max_segs = count;
max_segs          608 drivers/infiniband/sw/rdmavt/mr.c 	if (unlikely(mapped_segs == mr->mr.max_segs))
max_segs          757 drivers/infiniband/sw/rdmavt/mr.c 	fmr->mr.max_segs = fmr_attr->max_pages;
max_segs          799 drivers/infiniband/sw/rdmavt/mr.c 	if (list_len > fmr->mr.max_segs)
max_segs          439 drivers/mmc/core/host.c 	host->max_segs = 1;
max_segs           79 drivers/mmc/core/mmc_test.c 	unsigned int max_segs;
max_segs          335 drivers/mmc/core/mmc_test.c 					       unsigned int max_segs,
max_segs          353 drivers/mmc/core/mmc_test.c 	if (max_segs > max_page_cnt)
max_segs          354 drivers/mmc/core/mmc_test.c 		max_segs = max_page_cnt;
max_segs          360 drivers/mmc/core/mmc_test.c 	mem->arr = kcalloc(max_segs, sizeof(*mem->arr), GFP_KERNEL);
max_segs          389 drivers/mmc/core/mmc_test.c 		if (mem->cnt >= max_segs) {
max_segs          409 drivers/mmc/core/mmc_test.c 			   unsigned int max_segs, unsigned int max_seg_sz,
max_segs          416 drivers/mmc/core/mmc_test.c 	sg_init_table(sglist, max_segs);
max_segs          417 drivers/mmc/core/mmc_test.c 	if (min_sg_len > max_segs)
max_segs          418 drivers/mmc/core/mmc_test.c 		min_sg_len = max_segs;
max_segs          461 drivers/mmc/core/mmc_test.c 				       unsigned int max_segs,
max_segs          470 drivers/mmc/core/mmc_test.c 	sg_init_table(sglist, max_segs);
max_segs         1408 drivers/mmc/core/mmc_test.c 						  t->max_segs, t->max_seg_sz,
max_segs         1411 drivers/mmc/core/mmc_test.c 		err = mmc_test_map_sg(t->mem, sz, t->sg, 1, t->max_segs,
max_segs         1454 drivers/mmc/core/mmc_test.c 			max_tfr = t->max_segs * PAGE_SIZE;
max_segs         1456 drivers/mmc/core/mmc_test.c 			max_tfr = t->max_segs * t->max_seg_sz;
max_segs         1558 drivers/mmc/core/mmc_test.c 	t->max_segs = test->card->host->max_segs;
max_segs         1567 drivers/mmc/core/mmc_test.c 	if (t->max_tfr / t->max_seg_sz > t->max_segs)
max_segs         1568 drivers/mmc/core/mmc_test.c 		t->max_tfr = t->max_segs * t->max_seg_sz;
max_segs         1576 drivers/mmc/core/mmc_test.c 	t->mem = mmc_test_alloc_mem(min_sz, t->max_tfr, t->max_segs,
max_segs         1581 drivers/mmc/core/mmc_test.c 	t->sg = kmalloc_array(t->max_segs, sizeof(*t->sg), GFP_KERNEL);
max_segs         2002 drivers/mmc/core/mmc_test.c 			max_tfr = t->max_segs * PAGE_SIZE;
max_segs         2004 drivers/mmc/core/mmc_test.c 			max_tfr = t->max_segs * t->max_seg_sz;
max_segs          195 drivers/mmc/core/queue.c 					 host->max_segs;
max_segs          444 drivers/mmc/core/queue.c 	    host->max_segs < MMC_DMA_MAP_MERGE_SEGMENTS &&
max_segs         1072 drivers/mmc/host/alcor.c 	mmc->max_segs = AU6601_MAX_DMA_SEGMENTS;
max_segs          490 drivers/mmc/host/android-goldfish.c 	mmc->max_segs = 32;
max_segs         2261 drivers/mmc/host/atmel-mci.c 		mmc->max_segs = 256;
max_segs         2265 drivers/mmc/host/atmel-mci.c 		mmc->max_seg_size = mmc->max_blk_size * mmc->max_segs;
max_segs         2267 drivers/mmc/host/atmel-mci.c 		mmc->max_segs = 64;
max_segs         1004 drivers/mmc/host/au1xmmc.c 	mmc->max_segs = AU1XMMC_DESCRIPTOR_COUNT;
max_segs         1316 drivers/mmc/host/bcm2835.c 	mmc->max_segs = 128;
max_segs         1045 drivers/mmc/host/cavium.c 		mmc->max_segs = 16;
max_segs         1047 drivers/mmc/host/cavium.c 		mmc->max_segs = 1;
max_segs           50 drivers/mmc/host/cqhci.c 		(cq_host->mmc->max_segs * tag *
max_segs           57 drivers/mmc/host/cqhci.c 		(cq_host->trans_desc_len * cq_host->mmc->max_segs * tag);
max_segs          196 drivers/mmc/host/cqhci.c 	cq_host->data_size = cq_host->trans_desc_len * cq_host->mmc->max_segs *
max_segs         1286 drivers/mmc/host/davinci_mmc.c 	mmc->max_segs		= MAX_NR_SG;
max_segs         1296 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "max_segs=%d\n", mmc->max_segs);
max_segs         2830 drivers/mmc/host/dw_mmc.c 		mmc->max_segs = host->ring_size;
max_segs         2836 drivers/mmc/host/dw_mmc.c 		mmc->max_segs = 64;
max_segs         2844 drivers/mmc/host/dw_mmc.c 		mmc->max_segs = 64;
max_segs          996 drivers/mmc/host/jz4740_mmc.c 	mmc->max_segs = 128;
max_segs         1155 drivers/mmc/host/meson-gx-mmc.c 		mmc->max_segs = SD_EMMC_SRAM_DATA_BUF_LEN / mmc->max_blk_size;
max_segs         1156 drivers/mmc/host/meson-gx-mmc.c 		mmc->max_blk_count = mmc->max_segs;
max_segs         1159 drivers/mmc/host/meson-gx-mmc.c 		mmc->max_segs = SD_EMMC_DESC_BUF_LEN /
max_segs         1333 drivers/mmc/host/mmc_spi.c 	mmc->max_segs = MMC_SPI_BLOCKSATONCE;
max_segs         1976 drivers/mmc/host/mmci.c 	mmc->max_segs = NR_SG;
max_segs          112 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->max_segs = SDMMC_LLI_BUF_LEN /
max_segs          116 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->max_segs = 1;
max_segs         2290 drivers/mmc/host/mtk-sd.c 	mmc->max_segs = MAX_BD_NUM;
max_segs          746 drivers/mmc/host/mvsdio.c 	mmc->max_segs = 1;
max_segs         1056 drivers/mmc/host/mxcmmc.c 		mmc->max_segs = 64;
max_segs          651 drivers/mmc/host/mxs-mmc.c 	mmc->max_segs = 52;
max_segs         1264 drivers/mmc/host/omap.c 	mmc->max_segs = 32;
max_segs         1927 drivers/mmc/host/omap_hsmmc.c 	mmc->max_segs = 64;
max_segs          632 drivers/mmc/host/pxamci.c 	mmc->max_segs = NR_SG;
max_segs           33 drivers/mmc/host/renesas_sdhi.h 	unsigned short max_segs;
max_segs          712 drivers/mmc/host/renesas_sdhi_core.c 		mmc_data->max_segs = of_data->max_segs;
max_segs          101 drivers/mmc/host/renesas_sdhi_internal_dmac.c 	.max_segs	= 1,
max_segs          116 drivers/mmc/host/renesas_sdhi_internal_dmac.c 	.max_segs	= 1,
max_segs         1358 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_segs = 256;
max_segs         1324 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_segs = 256;
max_segs         1679 drivers/mmc/host/s3cmci.c 	mmc->max_segs		= 128;
max_segs         3700 drivers/mmc/host/sdhci.c 	mmc->max_segs = max_blocks;
max_segs         4191 drivers/mmc/host/sdhci.c 		mmc->max_segs = SDHCI_MAX_SEGS;
max_segs         4193 drivers/mmc/host/sdhci.c 		mmc->max_segs = 1;
max_segs         4201 drivers/mmc/host/sdhci.c 		mmc->max_segs = SDHCI_MAX_SEGS;
max_segs         4241 drivers/mmc/host/sdhci.c 	if (mmc->max_segs == 1)
max_segs         1433 drivers/mmc/host/sh_mmcif.c 	mmc->max_segs = 32;
max_segs         1435 drivers/mmc/host/sh_mmcif.c 	mmc->max_req_size = PAGE_SIZE * mmc->max_segs;
max_segs         1387 drivers/mmc/host/sunxi-mmc.c 	mmc->max_segs		= PAGE_SIZE / sizeof(struct sunxi_idma_des);
max_segs         1389 drivers/mmc/host/sunxi-mmc.c 	mmc->max_req_size	= mmc->max_seg_size * mmc->max_segs;
max_segs          975 drivers/mmc/host/tifm_sd.c 	mmc->max_segs = mmc->max_blk_count;
max_segs         1189 drivers/mmc/host/tmio_mmc_core.c 	mmc->max_segs = pdata->max_segs ? : 32;
max_segs         1192 drivers/mmc/host/tmio_mmc_core.c 		(PAGE_SIZE / mmc->max_blk_size) * mmc->max_segs;
max_segs          637 drivers/mmc/host/uniphier-sd.c 	tmio_data->max_segs = 1;
max_segs         1842 drivers/mmc/host/usdhi6rol0.c 	mmc->max_segs = 32;
max_segs         1844 drivers/mmc/host/usdhi6rol0.c 	mmc->max_req_size = PAGE_SIZE * mmc->max_segs;
max_segs          457 drivers/mmc/host/ushc.c 	mmc->max_segs      = 1;
max_segs         1038 drivers/mmc/host/via-sdmmc.c 	mmc->max_segs = 1;
max_segs         2152 drivers/mmc/host/vub300.c 	mmc->max_segs = 128;
max_segs         1220 drivers/mmc/host/wbsd.c 	mmc->max_segs = 128;
max_segs          181 drivers/mmc/host/wmt-sdmmc.c 	u32		max_segs;
max_segs          740 drivers/mmc/host/wmt-sdmmc.c 	.max_segs = 128,
max_segs          795 drivers/mmc/host/wmt-sdmmc.c 	mmc->max_segs = wmt_caps->max_segs;
max_segs          798 drivers/mmc/host/wmt-sdmmc.c 	mmc->max_req_size = (16*512*mmc->max_segs);
max_segs          744 drivers/net/wireless/ath/ath6kl/sdio.c 	if (ar_sdio->func->card->host->max_segs < MAX_SCATTER_ENTRIES_PER_REQ) {
max_segs          746 drivers/net/wireless/ath/ath6kl/sdio.c 			   ar_sdio->func->card->host->max_segs,
max_segs          760 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 	sdiodev->sg_support = host->max_segs > 1;
max_segs          764 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 	sdiodev->max_segment_count = min_t(uint, host->max_segs,
max_segs         3908 drivers/scsi/st.c 	int segs, max_segs, b_size, order, got;
max_segs         3917 drivers/scsi/st.c 	max_segs = STbuffer->use_sg;
max_segs         3932 drivers/scsi/st.c 			     max_segs * (PAGE_SIZE << order) < new_size;
max_segs         3937 drivers/scsi/st.c 	if (max_segs * (PAGE_SIZE << order) < new_size) {
max_segs         3945 drivers/scsi/st.c 	     segs < max_segs && got < new_size;) {
max_segs          799 drivers/staging/greybus/sdio.c 	mmc->max_segs = host->mmc->max_blk_count;
max_segs          106 include/linux/mfd/tmio.h 	unsigned short			max_segs;
max_segs          380 include/linux/mmc/host.h 	unsigned short		max_segs;	/* see blk_queue_max_segments */
max_segs           81 include/rdma/rdmavt_mr.h 	u32 max_segs;           /* number of rvt_segs in all the arrays */
max_segs         2563 net/core/rtnetlink.c 		u32 max_segs = nla_get_u32(tb[IFLA_GSO_MAX_SEGS]);
max_segs         2565 net/core/rtnetlink.c 		if (max_segs > GSO_MAX_SEGS) {
max_segs         2570 net/core/rtnetlink.c 		if (dev->gso_max_segs ^ max_segs) {
max_segs         2571 net/core/rtnetlink.c 			dev->gso_max_segs = max_segs;
max_segs         1924 net/core/sock.c 	u32 max_segs = 1;
max_segs         1937 net/core/sock.c 			max_segs = max_t(u32, dst->dev->gso_max_segs, 1);
max_segs         1940 net/core/sock.c 	sk->sk_gso_max_segs = max_segs;
max_segs         1768 net/ipv4/tcp_output.c 					unsigned int max_segs,
max_segs         1775 net/ipv4/tcp_output.c 	max_len = mss_now * max_segs;
max_segs         1942 net/ipv4/tcp_output.c 				 u32 max_segs)
max_segs         1976 net/ipv4/tcp_output.c 	if (limit >= max_segs * tp->mss_cache)
max_segs         2374 net/ipv4/tcp_output.c 	u32 max_segs;
max_segs         2389 net/ipv4/tcp_output.c 	max_segs = tcp_tso_segs(sk, mss_now);
max_segs         2429 net/ipv4/tcp_output.c 						 &is_rwnd_limited, max_segs))
max_segs         2438 net/ipv4/tcp_output.c 							  max_segs),
max_segs         3051 net/ipv4/tcp_output.c 	u32 max_segs;
max_segs         3059 net/ipv4/tcp_output.c 	max_segs = tcp_tso_segs(sk, tcp_current_mss(sk));
max_segs         3078 net/ipv4/tcp_output.c 		segs = min_t(int, segs, max_segs);