num_sg            107 arch/sparc/include/asm/ldc.h 	       struct scatterlist *sg, int num_sg,
num_sg           2131 arch/sparc/kernel/ldc.c static int sg_count_pages(struct scatterlist *sg, int num_sg)
num_sg           2137 arch/sparc/kernel/ldc.c 	for (i = 0; i < num_sg; i++) {
num_sg           2148 arch/sparc/kernel/ldc.c 	       struct scatterlist *sg, int num_sg,
num_sg           2162 arch/sparc/kernel/ldc.c 	err = sg_count_pages(sg, num_sg);
num_sg           2184 arch/sparc/kernel/ldc.c 	for_each_sg(sg, s, num_sg, i) {
num_sg            104 drivers/block/xen-blkfront.c 	unsigned int num_sg;
num_sg            713 drivers/block/xen-blkfront.c 	int num_sg, max_grefs, num_grant;
num_sg            742 drivers/block/xen-blkfront.c 	num_sg = blk_rq_map_sg(req->q, req, rinfo->shadow[id].sg);
num_sg            745 drivers/block/xen-blkfront.c 	for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i)
num_sg            752 drivers/block/xen-blkfront.c 	rinfo->shadow[id].num_sg = num_sg;
num_sg            796 drivers/block/xen-blkfront.c 			rinfo->shadow[extra_id].num_sg = 0;
num_sg            813 drivers/block/xen-blkfront.c 	for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) {
num_sg           1425 drivers/block/xen-blkfront.c 	int num_sg, num_grant;
num_sg           1459 drivers/block/xen-blkfront.c 		if (s2->num_sg != 0) {
num_sg           1475 drivers/block/xen-blkfront.c 	num_sg = s->num_sg;
num_sg           1478 drivers/block/xen-blkfront.c 		for_each_sg(s->sg, sg, num_sg, i) {
num_sg            124 drivers/char/agp/intel-gtt.c static void intel_gtt_unmap_memory(struct scatterlist *sg_list, int num_sg)
num_sg            130 drivers/char/agp/intel-gtt.c 		     num_sg, PCI_DMA_BIDIRECTIONAL);
num_sg            133 drivers/char/agp/intel-gtt.c 	st.orig_nents = st.nents = num_sg;
num_sg            936 drivers/char/agp/intel-gtt.c 		mem->num_sg = st.nents;
num_sg            971 drivers/char/agp/intel-gtt.c 		intel_gtt_unmap_memory(mem->sg_list, mem->num_sg);
num_sg            973 drivers/char/agp/intel-gtt.c 		mem->num_sg = 0;
num_sg             92 drivers/crypto/omap-crypto.c 	int num_sg = 0;
num_sg             98 drivers/crypto/omap-crypto.c 		num_sg++;
num_sg            116 drivers/crypto/omap-crypto.c 	if ((flags & OMAP_CRYPTO_FORCE_SINGLE_ENTRY) && num_sg > 1)
num_sg            451 drivers/misc/cardreader/rtsx_pcr.c 		int num_sg, bool read, int timeout)
num_sg            455 drivers/misc/cardreader/rtsx_pcr.c 	pcr_dbg(pcr, "--> %s: num_sg = %d\n", __func__, num_sg);
num_sg            456 drivers/misc/cardreader/rtsx_pcr.c 	count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read);
num_sg            463 drivers/misc/cardreader/rtsx_pcr.c 	rtsx_pci_dma_unmap_sg(pcr, sglist, num_sg, read);
num_sg            470 drivers/misc/cardreader/rtsx_pcr.c 		int num_sg, bool read)
num_sg            477 drivers/misc/cardreader/rtsx_pcr.c 	if ((sglist == NULL) || (num_sg <= 0))
num_sg            480 drivers/misc/cardreader/rtsx_pcr.c 	return dma_map_sg(&(pcr->pci->dev), sglist, num_sg, dir);
num_sg            485 drivers/misc/cardreader/rtsx_pcr.c 		int num_sg, bool read)
num_sg            489 drivers/misc/cardreader/rtsx_pcr.c 	dma_unmap_sg(&(pcr->pci->dev), sglist, num_sg, dir);
num_sg             41 drivers/misc/cardreader/rtsx_usb.c 		unsigned int pipe, struct scatterlist *sg, int num_sg,
num_sg             47 drivers/misc/cardreader/rtsx_usb.c 			__func__, length, num_sg);
num_sg             49 drivers/misc/cardreader/rtsx_usb.c 			sg, num_sg, length, GFP_NOIO);
num_sg             68 drivers/misc/cardreader/rtsx_usb.c 			      void *buf, unsigned int len, int num_sg,
num_sg             74 drivers/misc/cardreader/rtsx_usb.c 	if (num_sg)
num_sg             76 drivers/misc/cardreader/rtsx_usb.c 				(struct scatterlist *)buf, num_sg, len, act_len,
num_sg            138 drivers/mmc/host/moxart-mmc.c 	u32				num_sg;
num_sg            155 drivers/mmc/host/moxart-mmc.c 	host->num_sg = data->sg_len;
num_sg            168 drivers/mmc/host/moxart-mmc.c 	host->num_sg--;
num_sg            170 drivers/mmc/host/moxart-mmc.c 	if (host->num_sg > 0) {
num_sg            177 drivers/mmc/host/moxart-mmc.c 	return host->num_sg;
num_sg            241 drivers/mmc/host/wbsd.c 	host->num_sg = data->sg_len;
num_sg            253 drivers/mmc/host/wbsd.c 	host->num_sg--;
num_sg            258 drivers/mmc/host/wbsd.c 	if (host->num_sg > 0) {
num_sg            263 drivers/mmc/host/wbsd.c 	return host->num_sg;
num_sg            407 drivers/mmc/host/wbsd.c 	if (host->num_sg == 0)
num_sg            473 drivers/mmc/host/wbsd.c 	if (host->num_sg == 0)
num_sg           1059 drivers/mmc/host/wbsd.c 	if (host->num_sg == 0) {
num_sg            152 drivers/mmc/host/wbsd.h 	unsigned int		num_sg;		/* Number of entries left */
num_sg            531 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	int num_sg;
num_sg            548 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	num_sg = skb_to_sgvec(skb, scl, 0, skb->len);
num_sg            549 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	num_dma_bufs = dma_map_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL);
num_sg            590 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	swa->sg.num_sg = num_sg;
num_sg            613 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 	dma_unmap_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL);
num_sg            706 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c 		dma_unmap_sg(dev, swa->sg.scl, swa->sg.num_sg,
num_sg            111 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h 			int num_sg;
num_sg           1511 drivers/net/virtio_net.c 	int num_sg;
num_sg           1538 drivers/net/virtio_net.c 		num_sg = skb_to_sgvec(skb, sq->sg, 0, skb->len);
num_sg           1539 drivers/net/virtio_net.c 		if (unlikely(num_sg < 0))
num_sg           1540 drivers/net/virtio_net.c 			return num_sg;
num_sg           1545 drivers/net/virtio_net.c 		num_sg = skb_to_sgvec(skb, sq->sg + 1, 0, skb->len);
num_sg           1546 drivers/net/virtio_net.c 		if (unlikely(num_sg < 0))
num_sg           1547 drivers/net/virtio_net.c 			return num_sg;
num_sg           1548 drivers/net/virtio_net.c 		num_sg++;
num_sg           1550 drivers/net/virtio_net.c 	return virtqueue_add_outbuf(sq->vq, sq->sg, num_sg, skb, GFP_ATOMIC);
num_sg             43 drivers/scsi/aic94xx/aic94xx_task.c 	int num_sg, res;
num_sg             62 drivers/scsi/aic94xx/aic94xx_task.c 		num_sg = task->num_scatter;
num_sg             64 drivers/scsi/aic94xx/aic94xx_task.c 		num_sg = dma_map_sg(&asd_ha->pcidev->dev, task->scatter,
num_sg             66 drivers/scsi/aic94xx/aic94xx_task.c 	if (num_sg == 0)
num_sg             69 drivers/scsi/aic94xx/aic94xx_task.c 	if (num_sg > 3) {
num_sg             73 drivers/scsi/aic94xx/aic94xx_task.c 						  num_sg*sizeof(struct sg_el),
num_sg             79 drivers/scsi/aic94xx/aic94xx_task.c 		for_each_sg(task->scatter, sc, num_sg, i) {
num_sg             84 drivers/scsi/aic94xx/aic94xx_task.c 			if (i == num_sg-1)
num_sg            100 drivers/scsi/aic94xx/aic94xx_task.c 		for_each_sg(task->scatter, sc, num_sg, i) {
num_sg           2075 drivers/scsi/be2iscsi/be_main.c 		  unsigned int num_sg, struct beiscsi_io_task *io_task)
num_sg           2090 drivers/scsi/be2iscsi/be_main.c 	for (index = 0; (index < num_sg) && (index < 2); index++,
num_sg           2131 drivers/scsi/be2iscsi/be_main.c 	if (num_sg == 1) {
num_sg           2136 drivers/scsi/be2iscsi/be_main.c 	} else if (num_sg == 2) {
num_sg           2152 drivers/scsi/be2iscsi/be_main.c 	for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) {
num_sg           2170 drivers/scsi/be2iscsi/be_main.c 	      unsigned int num_sg, struct beiscsi_io_task *io_task)
num_sg           2185 drivers/scsi/be2iscsi/be_main.c 	for (index = 0; (index < num_sg) && (index < 2); index++,
num_sg           2220 drivers/scsi/be2iscsi/be_main.c 	if (num_sg == 1) {
num_sg           2225 drivers/scsi/be2iscsi/be_main.c 	} else if (num_sg == 2) {
num_sg           2240 drivers/scsi/be2iscsi/be_main.c 	for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) {
num_sg           4288 drivers/scsi/be2iscsi/be_main.c 			if (io_task->num_sg)
num_sg           4519 drivers/scsi/be2iscsi/be_main.c 		       unsigned int num_sg, unsigned int xferlen,
num_sg           4558 drivers/scsi/be2iscsi/be_main.c 	hwi_write_sgl_v2(pwrb, sg, num_sg, io_task);
num_sg           4580 drivers/scsi/be2iscsi/be_main.c 			  unsigned int num_sg, unsigned int xferlen,
num_sg           4618 drivers/scsi/be2iscsi/be_main.c 	hwi_write_sgl(pwrb, sg, num_sg, io_task);
num_sg           4764 drivers/scsi/be2iscsi/be_main.c 	int num_sg;
num_sg           4783 drivers/scsi/be2iscsi/be_main.c 	io_task->num_sg = 0;
num_sg           4784 drivers/scsi/be2iscsi/be_main.c 	num_sg = scsi_dma_map(sc);
num_sg           4785 drivers/scsi/be2iscsi/be_main.c 	if (num_sg < 0) {
num_sg           4793 drivers/scsi/be2iscsi/be_main.c 		return num_sg;
num_sg           4799 drivers/scsi/be2iscsi/be_main.c 	io_task->num_sg = num_sg;
num_sg           4807 drivers/scsi/be2iscsi/be_main.c 	return phba->iotask_fn(task, sg, num_sg, xferlen, writedir);
num_sg            375 drivers/scsi/be2iscsi/be_main.h 			uint32_t num_sg, uint32_t xferlen,
num_sg            462 drivers/scsi/be2iscsi/be_main.h 	int num_sg;
num_sg            384 drivers/scsi/esp_scsi.c 		spriv->num_sg = scsi_sg_count(cmd);
num_sg            386 drivers/scsi/esp_scsi.c 		scsi_for_each_sg(cmd, s, spriv->num_sg, i) {
num_sg            391 drivers/scsi/esp_scsi.c 		spriv->num_sg = scsi_dma_map(cmd);
num_sg            392 drivers/scsi/esp_scsi.c 		scsi_for_each_sg(cmd, s, spriv->num_sg, i)
num_sg            974 drivers/scsi/esp_scsi.c 	spriv->num_sg = 0;
num_sg           1363 drivers/scsi/esp_scsi.c 			ptr = scsi_kmap_atomic_sg(p->cur_sg, p->num_sg,
num_sg            252 drivers/scsi/esp_scsi.h 	int			num_sg;
num_sg           3863 drivers/scsi/ipr.c 					      &sglist->num_sg);
num_sg           4039 drivers/scsi/ipr.c 					sglist->scatterlist, sglist->num_sg,
num_sg           9091 drivers/scsi/ipr.c 		     sglist->num_sg, DMA_TO_DEVICE);
num_sg           1449 drivers/scsi/ipr.h 	u32 num_sg;
num_sg           3234 drivers/scsi/pmcraid.c 			GFP_KERNEL | GFP_DMA | __GFP_ZERO, &sglist->num_sg);
num_sg           3504 drivers/scsi/pmcraid.c 					sglist->num_sg, direction);
num_sg           3553 drivers/scsi/pmcraid.c 			     sglist->num_sg,
num_sg            530 drivers/scsi/pmcraid.h 	u32 num_sg;
num_sg           4568 drivers/scsi/qla2xxx/qla_def.h 	uint32_t		num_sg;
num_sg            878 drivers/scsi/qla2xxx/qla_iocb.c 		sgx->num_sg++;
num_sg            314 drivers/staging/rts5208/rtsx_transport.c 					     struct scatterlist *sg, int num_sg,
num_sg            329 drivers/staging/rts5208/rtsx_transport.c 	if (!sg || (num_sg <= 0) || !offset || !index)
num_sg            358 drivers/staging/rts5208/rtsx_transport.c 	sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
num_sg            471 drivers/staging/rts5208/rtsx_transport.c 	dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
num_sg            480 drivers/staging/rts5208/rtsx_transport.c 				     struct scatterlist *sg, int num_sg,
num_sg            492 drivers/staging/rts5208/rtsx_transport.c 	if (!sg || (num_sg <= 0))
num_sg            521 drivers/staging/rts5208/rtsx_transport.c 	buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
num_sg            618 drivers/staging/rts5208/rtsx_transport.c 	dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
num_sg            412 drivers/usb/storage/transport.c 		struct scatterlist *sg, int num_sg, unsigned int length,
num_sg            422 drivers/usb/storage/transport.c 	usb_stor_dbg(us, "xfer %u bytes, %d entries\n", length, num_sg);
num_sg            424 drivers/usb/storage/transport.c 			sg, num_sg, length, GFP_NOIO);
num_sg             86 include/linux/agp_backend.h 	int num_sg;
num_sg           1297 include/linux/rtsx_pci.h 		int num_sg, bool read, int timeout);
num_sg           1299 include/linux/rtsx_pci.h 		int num_sg, bool read);
num_sg           1301 include/linux/rtsx_pci.h 		int num_sg, bool read);
num_sg            329 tools/virtio/vringh_test.c 			unsigned int num_sg, len;
num_sg            353 tools/virtio/vringh_test.c 				sg_init_table(sg, num_sg = 3);
num_sg            359 tools/virtio/vringh_test.c 				sg_init_table(sg, num_sg = 2);
num_sg            364 tools/virtio/vringh_test.c 				sg_init_table(sg, num_sg = 1);
num_sg            368 tools/virtio/vringh_test.c 				sg_init_table(sg, num_sg = 4);
num_sg            380 tools/virtio/vringh_test.c 				err = virtqueue_add_outbuf(vq, sg, num_sg, dbuf,
num_sg            383 tools/virtio/vringh_test.c 				err = virtqueue_add_inbuf(vq, sg, num_sg,