sgcnt            7562 drivers/scsi/advansys.c 		int sgcnt;
sgcnt            7595 drivers/scsi/advansys.c 		scsi_for_each_sg(scp, slp, use_sg, sgcnt) {
sgcnt            7596 drivers/scsi/advansys.c 			asc_sg_head->sg_list[sgcnt].addr =
sgcnt            7598 drivers/scsi/advansys.c 			asc_sg_head->sg_list[sgcnt].bytes =
sgcnt            1217 drivers/scsi/cxgbi/libcxgbi.c 		unsigned int *sgcnt, unsigned int *dlen,
sgcnt            1223 drivers/scsi/cxgbi/libcxgbi.c 	*sgcnt = sdb->table.nents;
sgcnt            1345 drivers/scsi/cxgbi/libcxgbi.c 	unsigned int sgcnt = ttinfo->nents;
sgcnt            1355 drivers/scsi/cxgbi/libcxgbi.c 	if (!ppm || xferlen < DDP_THRESHOLD || !sgcnt ||
sgcnt            1365 drivers/scsi/cxgbi/libcxgbi.c 	if (cxgbi_ddp_sgl_check(sgl, sgcnt) < 0)
sgcnt            1386 drivers/scsi/cxgbi/libcxgbi.c 	err = dma_map_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE);
sgcnt            1390 drivers/scsi/cxgbi/libcxgbi.c 			__func__, sw_tag, xferlen, sgcnt);
sgcnt            1396 drivers/scsi/cxgbi/libcxgbi.c 			  __func__, sw_tag, xferlen, sgcnt, err);
sgcnt            1422 drivers/scsi/cxgbi/libcxgbi.c 		dma_unmap_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE);
sgcnt            1818 drivers/scsi/cxgbi/libcxgbi.c static int sgl_seek_offset(struct scatterlist *sgl, unsigned int sgcnt,
sgcnt            1825 drivers/scsi/cxgbi/libcxgbi.c 	for_each_sg(sgl, sg, sgcnt, i) {
sgcnt            1980 drivers/scsi/gdth.c     int i, cmd_index, read_write, sgcnt, mode64;
sgcnt            2069 drivers/scsi/gdth.c             sgcnt = dma_map_sg(&ha->pdev->dev, scsi_sglist(scp),
sgcnt            2075 drivers/scsi/gdth.c                 cmdp->u.cache64.sg_canz = sgcnt;
sgcnt            2076 drivers/scsi/gdth.c                 scsi_for_each_sg(scp, sl, sgcnt, i) {
sgcnt            2084 drivers/scsi/gdth.c                 cmdp->u.cache.sg_canz = sgcnt;
sgcnt            2085 drivers/scsi/gdth.c                 scsi_for_each_sg(scp, sl, sgcnt, i) {
sgcnt            2092 drivers/scsi/gdth.c             if (max_sg < (u32)sgcnt) {
sgcnt            2093 drivers/scsi/gdth.c                 max_sg = (u32)sgcnt;
sgcnt            2142 drivers/scsi/gdth.c     int cmd_index, sgcnt, mode64;
sgcnt            2228 drivers/scsi/gdth.c             sgcnt = dma_map_sg(&ha->pdev->dev, scsi_sglist(scp),
sgcnt            2234 drivers/scsi/gdth.c                 cmdp->u.raw64.sg_ranz = sgcnt;
sgcnt            2235 drivers/scsi/gdth.c                 scsi_for_each_sg(scp, sl, sgcnt, i) {
sgcnt            2243 drivers/scsi/gdth.c                 cmdp->u.raw.sg_ranz = sgcnt;
sgcnt            2244 drivers/scsi/gdth.c                 scsi_for_each_sg(scp, sl, sgcnt, i) {
sgcnt            2251 drivers/scsi/gdth.c             if (max_sg < sgcnt) {
sgcnt            2252 drivers/scsi/gdth.c                 max_sg = sgcnt;
sgcnt            2253 drivers/scsi/gdth.c                 TRACE3(("GDT: max_sg = %d\n",sgcnt));
sgcnt             859 drivers/scsi/hptiop.c 	HPT_SCP(scp)->sgcnt = nseg;
sgcnt             862 drivers/scsi/hptiop.c 	BUG_ON(HPT_SCP(scp)->sgcnt > hba->max_sg_descriptors);
sgcnt             864 drivers/scsi/hptiop.c 	scsi_for_each_sg(scp, sg, HPT_SCP(scp)->sgcnt, idx) {
sgcnt             868 drivers/scsi/hptiop.c 		psg[idx].eot = (idx == HPT_SCP(scp)->sgcnt - 1) ?
sgcnt             871 drivers/scsi/hptiop.c 	return HPT_SCP(scp)->sgcnt;
sgcnt             256 drivers/scsi/hptiop.h 	int sgcnt;
sgcnt            1722 drivers/scsi/megaraid.c 	int	sgcnt;
sgcnt            1732 drivers/scsi/megaraid.c 	sgcnt = scsi_dma_map(cmd);
sgcnt            1736 drivers/scsi/megaraid.c 	BUG_ON(sgcnt > adapter->sglen || sgcnt < 0);
sgcnt            1748 drivers/scsi/megaraid.c 	scsi_for_each_sg(cmd, sg, sgcnt, idx) {
sgcnt            1762 drivers/scsi/megaraid.c 	return sgcnt;
sgcnt            1340 drivers/scsi/megaraid/megaraid_mbox.c 	int			sgcnt;
sgcnt            1347 drivers/scsi/megaraid/megaraid_mbox.c 	sgcnt = scsi_dma_map(scp);
sgcnt            1348 drivers/scsi/megaraid/megaraid_mbox.c 	BUG_ON(sgcnt < 0 || sgcnt > adapter->sglen);
sgcnt            1351 drivers/scsi/megaraid/megaraid_mbox.c 	if (!sgcnt)
sgcnt            1356 drivers/scsi/megaraid/megaraid_mbox.c 	scsi_for_each_sg(scp, sgl, sgcnt, i) {
sgcnt            1362 drivers/scsi/megaraid/megaraid_mbox.c 	return sgcnt;
sgcnt             177 drivers/target/iscsi/cxgbit/cxgbit_ddp.c 	unsigned int sgcnt = ttinfo->nents;
sgcnt             181 drivers/target/iscsi/cxgbit/cxgbit_ddp.c 	if ((xferlen < DDP_THRESHOLD) || (!sgcnt)) {
sgcnt             188 drivers/target/iscsi/cxgbit/cxgbit_ddp.c 	if (cxgbit_ddp_sgl_check(sgl, sgcnt) < 0)
sgcnt             204 drivers/target/iscsi/cxgbit/cxgbit_ddp.c 	ret = dma_map_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE);
sgcnt             208 drivers/target/iscsi/cxgbit/cxgbit_ddp.c 			 __func__, 0, xferlen, sgcnt);
sgcnt             218 drivers/target/iscsi/cxgbit/cxgbit_ddp.c 		dma_unmap_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE);