Lines Matching refs:nr_segs
1132 unsigned int sg_grant, nr_segs;
1136 nr_segs = min_t(unsigned int, sg_grant, SG_ALL);
1137 nr_segs = max_t(unsigned int, nr_segs, VSCSIIF_SG_TABLESIZE);
1138 nr_segs = min_t(unsigned int, nr_segs,
1143 dev_info(&dev->dev, "using up to %d SG entries\n", nr_segs);
1144 else if (info->pause && nr_segs < host->sg_tablesize)
1147 host->sg_tablesize, nr_segs);
1149 host->sg_tablesize = nr_segs;
1150 host->max_sectors = (nr_segs - 1) * PAGE_SIZE / 512;