sglist 1417 arch/ia64/hp/common/sba_iommu.c static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist, sglist 1430 arch/ia64/hp/common/sba_iommu.c static int sba_map_sg_attrs(struct device *dev, struct scatterlist *sglist, sglist 1450 arch/ia64/hp/common/sba_iommu.c for_each_sg(sglist, sg, nents, filled) { sglist 1459 arch/ia64/hp/common/sba_iommu.c sglist->dma_length = sglist->length; sglist 1460 arch/ia64/hp/common/sba_iommu.c sglist->dma_address = sba_map_page(dev, sg_page(sglist), sglist 1461 arch/ia64/hp/common/sba_iommu.c sglist->offset, sglist->length, dir, attrs); sglist 1462 arch/ia64/hp/common/sba_iommu.c if (dma_mapping_error(dev, sglist->dma_address)) sglist 1471 arch/ia64/hp/common/sba_iommu.c sba_dump_sg(ioc, sglist, nents); sglist 1487 arch/ia64/hp/common/sba_iommu.c coalesced = sba_coalesce_chunks(ioc, dev, sglist, nents); sglist 1489 arch/ia64/hp/common/sba_iommu.c sba_unmap_sg_attrs(dev, sglist, nents, dir, attrs); sglist 1501 arch/ia64/hp/common/sba_iommu.c filled = sba_fill_pdir(ioc, sglist, nents); sglist 1507 arch/ia64/hp/common/sba_iommu.c sba_dump_sg(ioc, sglist, nents); sglist 1529 arch/ia64/hp/common/sba_iommu.c static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist, sglist 1539 arch/ia64/hp/common/sba_iommu.c __func__, nents, sba_sg_address(sglist), sglist->length); sglist 1550 arch/ia64/hp/common/sba_iommu.c while (nents && sglist->dma_length) { sglist 1552 arch/ia64/hp/common/sba_iommu.c sba_unmap_page(dev, sglist->dma_address, sglist->dma_length, sglist 1554 arch/ia64/hp/common/sba_iommu.c sglist = sg_next(sglist); sglist 607 arch/mips/jazz/jazzdma.c static int jazz_dma_map_sg(struct device *dev, struct scatterlist *sglist, sglist 613 arch/mips/jazz/jazzdma.c for_each_sg(sglist, sg, nents, i) { sglist 626 arch/mips/jazz/jazzdma.c static void jazz_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 632 arch/mips/jazz/jazzdma.c for_each_sg(sglist, sg, nents, i) { sglist 253 arch/powerpc/include/asm/iommu.h struct scatterlist *sglist, int nelems, sglist 258 arch/powerpc/include/asm/iommu.h struct scatterlist *sglist, sglist 90 arch/powerpc/kernel/dma-iommu.c static int dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, sglist 95 arch/powerpc/kernel/dma-iommu.c return dma_direct_map_sg(dev, sglist, nelems, direction, attrs); sglist 96 arch/powerpc/kernel/dma-iommu.c return ppc_iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems, sglist 100 arch/powerpc/kernel/dma-iommu.c static void dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 105 arch/powerpc/kernel/dma-iommu.c ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, sglist 108 arch/powerpc/kernel/dma-iommu.c dma_direct_unmap_sg(dev, sglist, nelems, direction, attrs); sglist 419 arch/powerpc/kernel/iommu.c struct scatterlist *sglist, int nelems, sglist 435 arch/powerpc/kernel/iommu.c outs = s = segstart = &sglist[0]; sglist 446 arch/powerpc/kernel/iommu.c for_each_sg(sglist, s, nelems, i) { sglist 545 arch/powerpc/kernel/iommu.c for_each_sg(sglist, s, nelems, i) { sglist 563 arch/powerpc/kernel/iommu.c void ppc_iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, sglist 574 arch/powerpc/kernel/iommu.c sg = sglist; sglist 548 arch/powerpc/platforms/pseries/vio.c static int vio_dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, sglist 558 arch/powerpc/platforms/pseries/vio.c for_each_sg(sglist, sgl, nelems, count) sglist 563 arch/powerpc/platforms/pseries/vio.c ret = ppc_iommu_map_sg(dev, tbl, sglist, nelems, dma_get_mask(dev), sglist 568 arch/powerpc/platforms/pseries/vio.c for_each_sg(sglist, sgl, ret, count) sglist 582 arch/powerpc/platforms/pseries/vio.c struct scatterlist *sglist, int nelems, sglist 592 arch/powerpc/platforms/pseries/vio.c for_each_sg(sglist, sgl, nelems, count) sglist 595 arch/powerpc/platforms/pseries/vio.c ppc_iommu_unmap_sg(tbl, sglist, nelems, direction, attrs); sglist 432 arch/sparc/kernel/iommu.c static int dma_4u_map_sg(struct device *dev, struct scatterlist *sglist, sglist 466 arch/sparc/kernel/iommu.c outs = s = segstart = &sglist[0]; sglist 478 arch/sparc/kernel/iommu.c for_each_sg(sglist, s, nelems, i) { sglist 557 arch/sparc/kernel/iommu.c for_each_sg(sglist, s, nelems, i) { sglist 608 arch/sparc/kernel/iommu.c static void dma_4u_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 622 arch/sparc/kernel/iommu.c ctx = fetch_sg_ctx(iommu, sglist); sglist 626 arch/sparc/kernel/iommu.c sg = sglist; sglist 699 arch/sparc/kernel/iommu.c struct scatterlist *sglist, int nelems, sglist 723 arch/sparc/kernel/iommu.c iopte = iommu->page_table + ((sglist[0].dma_address - sglist 729 arch/sparc/kernel/iommu.c bus_addr = sglist[0].dma_address & IO_PAGE_MASK; sglist 731 arch/sparc/kernel/iommu.c for_each_sg(sglist, sg, nelems, i) { sglist 467 arch/sparc/kernel/pci_sun4v.c static int dma_4v_map_sg(struct device *dev, struct scatterlist *sglist, sglist 498 arch/sparc/kernel/pci_sun4v.c outs = s = segstart = &sglist[0]; sglist 522 arch/sparc/kernel/pci_sun4v.c for_each_sg(sglist, s, nelems, i) { sglist 604 arch/sparc/kernel/pci_sun4v.c for_each_sg(sglist, s, nelems, i) { sglist 625 arch/sparc/kernel/pci_sun4v.c static void dma_4v_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 646 arch/sparc/kernel/pci_sun4v.c sg = sglist; sglist 325 arch/x86/kernel/pci-calgary_64.c static void calgary_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 336 arch/x86/kernel/pci-calgary_64.c for_each_sg(sglist, s, nelems, i) { sglist 69 block/blk-integrity.c struct scatterlist *sglist) sglist 89 block/blk-integrity.c sg = sglist; sglist 382 block/blk-merge.c struct scatterlist *sglist) sglist 385 block/blk-merge.c return sglist; sglist 399 block/blk-merge.c struct bio_vec *bvec, struct scatterlist *sglist, sglist 421 block/blk-merge.c *sg = blk_next_sg(sg, sglist); sglist 433 block/blk-merge.c struct scatterlist *sglist, struct scatterlist **sg) sglist 435 block/blk-merge.c *sg = blk_next_sg(sg, sglist); sglist 463 block/blk-merge.c struct scatterlist *sglist, sglist 483 block/blk-merge.c nsegs += __blk_bvec_map_sg(bvec, sglist, sg); sglist 485 block/blk-merge.c nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg); sglist 503 block/blk-merge.c struct scatterlist *sglist) sglist 509 block/blk-merge.c nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, &sg); sglist 511 block/blk-merge.c nsegs = __blk_bvec_map_sg(bio_iovec(rq->bio), sglist, &sg); sglist 513 block/blk-merge.c nsegs = __blk_bios_map_sg(q, rq->bio, sglist, &sg); sglist 245 drivers/firmware/efi/capsule.c efi_capsule_block_desc_t *sglist; sglist 247 drivers/firmware/efi/capsule.c sglist = kmap(sg_pages[i]); sglist 253 drivers/firmware/efi/capsule.c sglist[j].length = sz; sglist 254 drivers/firmware/efi/capsule.c sglist[j].data = *pages++; sglist 261 drivers/firmware/efi/capsule.c sglist[j].length = 0; sglist 264 drivers/firmware/efi/capsule.c sglist[j].data = 0; sglist 266 drivers/firmware/efi/capsule.c sglist[j].data = page_to_phys(sg_pages[i + 1]); sglist 2828 drivers/infiniband/core/verbs.c struct scatterlist *sglist, unsigned int nents, sglist 2832 drivers/infiniband/core/verbs.c biter->__sg = sglist; sglist 863 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->sq.sg_info.sglist = umem->sg_head.sgl; sglist 876 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_qp->rq.sg_info.sglist = umem->sg_head.sgl; sglist 1330 drivers/infiniband/hw/bnxt_re/ib_verbs.c qplib_srq->sg_info.sglist = umem->sg_head.sgl; sglist 2573 drivers/infiniband/hw/bnxt_re/ib_verbs.c cq->qplib_cq.sg_info.sglist = cq->umem->sg_head.sgl; sglist 183 drivers/infiniband/hw/bnxt_re/qplib_res.c sghead = sg_info->sglist; sglist 227 drivers/infiniband/hw/bnxt_re/qplib_res.h struct scatterlist *sglist; sglist 1067 drivers/infiniband/hw/efa/efa_verbs.c struct scatterlist *sglist; sglist 1071 drivers/infiniband/hw/efa/efa_verbs.c sglist = kcalloc(page_cnt, sizeof(*sglist), GFP_KERNEL); sglist 1072 drivers/infiniband/hw/efa/efa_verbs.c if (!sglist) sglist 1074 drivers/infiniband/hw/efa/efa_verbs.c sg_init_table(sglist, page_cnt); sglist 1079 drivers/infiniband/hw/efa/efa_verbs.c sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); sglist 1082 drivers/infiniband/hw/efa/efa_verbs.c return sglist; sglist 1085 drivers/infiniband/hw/efa/efa_verbs.c kfree(sglist); sglist 2546 drivers/iommu/amd_iommu.c struct scatterlist *sglist, sglist 2557 drivers/iommu/amd_iommu.c for_each_sg(sglist, s, nelems, i) { sglist 2575 drivers/iommu/amd_iommu.c static int map_sg(struct device *dev, struct scatterlist *sglist, sglist 2594 drivers/iommu/amd_iommu.c npages = sg_num_pages(dev, sglist, nelems); sglist 2603 drivers/iommu/amd_iommu.c for_each_sg(sglist, s, nelems, i) { sglist 2622 drivers/iommu/amd_iommu.c for_each_sg(sglist, s, nelems, i) { sglist 2641 drivers/iommu/amd_iommu.c for_each_sg(sglist, s, nelems, i) { sglist 2666 drivers/iommu/amd_iommu.c static void unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 2679 drivers/iommu/amd_iommu.c startaddr = sg_dma_address(sglist) & PAGE_MASK; sglist 2681 drivers/iommu/amd_iommu.c npages = sg_num_pages(dev, sglist, nelems); sglist 3687 drivers/iommu/intel-iommu.c static void intel_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 3691 drivers/iommu/intel-iommu.c dma_addr_t startaddr = sg_dma_address(sglist) & PAGE_MASK; sglist 3697 drivers/iommu/intel-iommu.c return dma_direct_unmap_sg(dev, sglist, nelems, dir, attrs); sglist 3699 drivers/iommu/intel-iommu.c for_each_sg(sglist, sg, nelems, i) { sglist 3708 drivers/iommu/intel-iommu.c static int intel_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, sglist 3723 drivers/iommu/intel-iommu.c return dma_direct_map_sg(dev, sglist, nelems, dir, attrs); sglist 3731 drivers/iommu/intel-iommu.c for_each_sg(sglist, sg, nelems, i) sglist 3737 drivers/iommu/intel-iommu.c sglist->dma_length = 0; sglist 3753 drivers/iommu/intel-iommu.c ret = domain_sg_mapping(domain, start_vpfn, sglist, size, prot); sglist 3763 drivers/iommu/intel-iommu.c sg_phys(sglist), size << VTD_PAGE_SHIFT); sglist 3948 drivers/iommu/intel-iommu.c bounce_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, sglist 3954 drivers/iommu/intel-iommu.c for_each_sg(sglist, sg, nelems, i) sglist 3960 drivers/iommu/intel-iommu.c bounce_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, sglist 3966 drivers/iommu/intel-iommu.c for_each_sg(sglist, sg, nelems, i) { sglist 3978 drivers/iommu/intel-iommu.c bounce_unmap_sg(dev, sglist, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC); sglist 3997 drivers/iommu/intel-iommu.c bounce_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, sglist 4003 drivers/iommu/intel-iommu.c for_each_sg(sglist, sg, nelems, i) sglist 4009 drivers/iommu/intel-iommu.c bounce_sync_sg_for_device(struct device *dev, struct scatterlist *sglist, sglist 4015 drivers/iommu/intel-iommu.c for_each_sg(sglist, sg, nelems, i) sglist 139 drivers/media/common/saa7146/saa7146_core.c struct scatterlist *sglist; sglist 143 drivers/media/common/saa7146/saa7146_core.c sglist = kcalloc(nr_pages, sizeof(struct scatterlist), GFP_KERNEL); sglist 144 drivers/media/common/saa7146/saa7146_core.c if (NULL == sglist) sglist 146 drivers/media/common/saa7146/saa7146_core.c sg_init_table(sglist, nr_pages); sglist 152 drivers/media/common/saa7146/saa7146_core.c sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); sglist 154 drivers/media/common/saa7146/saa7146_core.c return sglist; sglist 157 drivers/media/common/saa7146/saa7146_core.c kfree(sglist); sglist 258 drivers/media/common/saa7146/saa7146_vbi.c dma->sglist, dma->sglen); sglist 200 drivers/media/common/saa7146/saa7146_video.c struct scatterlist *list = dma->sglist; sglist 263 drivers/media/common/saa7146/saa7146_video.c pt1->offset = dma->sglist->offset; sglist 36 drivers/media/pci/bt8xx/bttv-risc.c struct scatterlist *sglist, sglist 68 drivers/media/pci/bt8xx/bttv-risc.c sg = sglist; sglist 115 drivers/media/pci/bt8xx/bttv-risc.c struct scatterlist *sglist, sglist 146 drivers/media/pci/bt8xx/bttv-risc.c ysg = sglist; sglist 147 drivers/media/pci/bt8xx/bttv-risc.c usg = sglist; sglist 148 drivers/media/pci/bt8xx/bttv-risc.c vsg = sglist; sglist 717 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv,&buf->top,dma->sglist, sglist 723 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv,&buf->bottom,dma->sglist, sglist 727 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv,&buf->top,dma->sglist, sglist 729 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv,&buf->bottom,dma->sglist, sglist 733 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv,&buf->top,dma->sglist, sglist 735 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv,&buf->bottom,dma->sglist, sglist 768 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_planar(btv, &buf->top, dma->sglist, sglist 777 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_planar(btv, &buf->bottom, dma->sglist, sglist 790 drivers/media/pci/bt8xx/bttv-risc.c dma->sglist, sglist 797 drivers/media/pci/bt8xx/bttv-risc.c dma->sglist, sglist 813 drivers/media/pci/bt8xx/bttv-risc.c dma->sglist, sglist 821 drivers/media/pci/bt8xx/bttv-risc.c dma->sglist, sglist 840 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv, &buf->top, dma->sglist, sglist 843 drivers/media/pci/bt8xx/bttv-risc.c bttv_risc_packed(btv, &buf->bottom, dma->sglist, sglist 154 drivers/media/pci/bt8xx/bttv-vbi.c dma->sglist, sglist 166 drivers/media/pci/bt8xx/bttv-vbi.c dma->sglist, sglist 239 drivers/media/pci/bt8xx/bttvp.h struct scatterlist *sglist, sglist 89 drivers/media/pci/cx23885/cx23885-alsa.c buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf->nr_pages)); sglist 90 drivers/media/pci/cx23885/cx23885-alsa.c if (NULL == buf->sglist) sglist 93 drivers/media/pci/cx23885/cx23885-alsa.c sg_init_table(buf->sglist, buf->nr_pages); sglist 98 drivers/media/pci/cx23885/cx23885-alsa.c sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); sglist 103 drivers/media/pci/cx23885/cx23885-alsa.c vfree(buf->sglist); sglist 104 drivers/media/pci/cx23885/cx23885-alsa.c buf->sglist = NULL; sglist 115 drivers/media/pci/cx23885/cx23885-alsa.c buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, sglist 132 drivers/media/pci/cx23885/cx23885-alsa.c dma_unmap_sg(&dev->pci->dev, buf->sglist, buf->sglen, PCI_DMA_FROMDEVICE); sglist 139 drivers/media/pci/cx23885/cx23885-alsa.c vfree(buf->sglist); sglist 140 drivers/media/pci/cx23885/cx23885-alsa.c buf->sglist = NULL; sglist 392 drivers/media/pci/cx23885/cx23885-alsa.c ret = cx23885_risc_databuffer(chip->pci, &buf->risc, buf->sglist, sglist 1131 drivers/media/pci/cx23885/cx23885-core.c static __le32 *cx23885_risc_field(__le32 *rp, struct scatterlist *sglist, sglist 1151 drivers/media/pci/cx23885/cx23885-core.c sg = sglist; sglist 1199 drivers/media/pci/cx23885/cx23885-core.c struct scatterlist *sglist, unsigned int top_offset, sglist 1228 drivers/media/pci/cx23885/cx23885-core.c rp = cx23885_risc_field(rp, sglist, top_offset, 0, sglist 1231 drivers/media/pci/cx23885/cx23885-core.c rp = cx23885_risc_field(rp, sglist, bottom_offset, 0x200, sglist 1242 drivers/media/pci/cx23885/cx23885-core.c struct scatterlist *sglist, sglist 1264 drivers/media/pci/cx23885/cx23885-core.c rp = cx23885_risc_field(rp, sglist, 0, NO_SYNC_LINE, sglist 1274 drivers/media/pci/cx23885/cx23885-core.c struct scatterlist *sglist, unsigned int top_offset, sglist 1305 drivers/media/pci/cx23885/cx23885-core.c rp = cx23885_risc_field(rp, sglist, top_offset, 0, sglist 1309 drivers/media/pci/cx23885/cx23885-core.c rp = cx23885_risc_field(rp, sglist, bottom_offset, 0x200, sglist 327 drivers/media/pci/cx23885/cx23885.h struct scatterlist *sglist; sglist 517 drivers/media/pci/cx23885/cx23885.h struct scatterlist *sglist, sglist 522 drivers/media/pci/cx23885/cx23885.h struct cx23885_riscmem *risc, struct scatterlist *sglist, sglist 623 drivers/media/pci/cx23885/cx23885.h struct scatterlist *sglist, sglist 55 drivers/media/pci/cx25821/cx25821-alsa.c struct scatterlist *sglist; sglist 153 drivers/media/pci/cx25821/cx25821-alsa.c buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf->nr_pages)); sglist 154 drivers/media/pci/cx25821/cx25821-alsa.c if (NULL == buf->sglist) sglist 157 drivers/media/pci/cx25821/cx25821-alsa.c sg_init_table(buf->sglist, buf->nr_pages); sglist 162 drivers/media/pci/cx25821/cx25821-alsa.c sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); sglist 167 drivers/media/pci/cx25821/cx25821-alsa.c vfree(buf->sglist); sglist 168 drivers/media/pci/cx25821/cx25821-alsa.c buf->sglist = NULL; sglist 179 drivers/media/pci/cx25821/cx25821-alsa.c buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, sglist 196 drivers/media/pci/cx25821/cx25821-alsa.c dma_unmap_sg(&dev->pci->dev, buf->sglist, buf->sglen, PCI_DMA_FROMDEVICE); sglist 203 drivers/media/pci/cx25821/cx25821-alsa.c vfree(buf->sglist); sglist 204 drivers/media/pci/cx25821/cx25821-alsa.c buf->sglist = NULL; sglist 534 drivers/media/pci/cx25821/cx25821-alsa.c ret = cx25821_risc_databuffer_audio(chip->pci, &buf->risc, buf->sglist, sglist 993 drivers/media/pci/cx25821/cx25821-core.c static __le32 *cx25821_risc_field(__le32 * rp, struct scatterlist *sglist, sglist 1012 drivers/media/pci/cx25821/cx25821-core.c sg = sglist; sglist 1056 drivers/media/pci/cx25821/cx25821-core.c struct scatterlist *sglist, unsigned int top_offset, sglist 1088 drivers/media/pci/cx25821/cx25821-core.c rp = cx25821_risc_field(rp, sglist, top_offset, 0, bpl, padding, sglist 1093 drivers/media/pci/cx25821/cx25821-core.c rp = cx25821_risc_field(rp, sglist, bottom_offset, 0x200, bpl, sglist 1104 drivers/media/pci/cx25821/cx25821-core.c static __le32 *cx25821_risc_field_audio(__le32 * rp, struct scatterlist *sglist, sglist 1117 drivers/media/pci/cx25821/cx25821-core.c sg = sglist; sglist 1167 drivers/media/pci/cx25821/cx25821-core.c struct scatterlist *sglist, sglist 1189 drivers/media/pci/cx25821/cx25821-core.c rp = cx25821_risc_field_audio(rp, sglist, 0, NO_SYNC_LINE, bpl, 0, sglist 399 drivers/media/pci/cx25821/cx25821.h struct scatterlist *sglist, sglist 406 drivers/media/pci/cx25821/cx25821.h struct scatterlist *sglist, sglist 48 drivers/media/pci/cx88/cx88-alsa.c struct scatterlist *sglist; sglist 292 drivers/media/pci/cx88/cx88-alsa.c buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf->nr_pages)); sglist 293 drivers/media/pci/cx88/cx88-alsa.c if (!buf->sglist) sglist 296 drivers/media/pci/cx88/cx88-alsa.c sg_init_table(buf->sglist, buf->nr_pages); sglist 301 drivers/media/pci/cx88/cx88-alsa.c sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); sglist 306 drivers/media/pci/cx88/cx88-alsa.c vfree(buf->sglist); sglist 307 drivers/media/pci/cx88/cx88-alsa.c buf->sglist = NULL; sglist 318 drivers/media/pci/cx88/cx88-alsa.c buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, sglist 335 drivers/media/pci/cx88/cx88-alsa.c dma_unmap_sg(&dev->pci->dev, buf->sglist, buf->sglen, sglist 343 drivers/media/pci/cx88/cx88-alsa.c vfree(buf->sglist); sglist 344 drivers/media/pci/cx88/cx88-alsa.c buf->sglist = NULL; sglist 484 drivers/media/pci/cx88/cx88-alsa.c ret = cx88_risc_databuffer(chip->pci, &buf->risc, buf->sglist, sglist 70 drivers/media/pci/cx88/cx88-core.c static __le32 *cx88_risc_field(__le32 *rp, struct scatterlist *sglist, sglist 88 drivers/media/pci/cx88/cx88-core.c sg = sglist; sglist 131 drivers/media/pci/cx88/cx88-core.c struct scatterlist *sglist, sglist 162 drivers/media/pci/cx88/cx88-core.c rp = cx88_risc_field(rp, sglist, top_offset, 0, sglist 165 drivers/media/pci/cx88/cx88-core.c rp = cx88_risc_field(rp, sglist, bottom_offset, 0x200, sglist 177 drivers/media/pci/cx88/cx88-core.c struct scatterlist *sglist, unsigned int bpl, sglist 199 drivers/media/pci/cx88/cx88-core.c rp = cx88_risc_field(rp, sglist, 0, NO_SYNC_LINE, bpl, 0, sglist 622 drivers/media/pci/cx88/cx88.h struct scatterlist *sglist, sglist 627 drivers/media/pci/cx88/cx88.h struct scatterlist *sglist, unsigned int bpl, sglist 273 drivers/media/pci/saa7134/saa7134-alsa.c dma->sglist = vzalloc(array_size(sizeof(*dma->sglist), dma->nr_pages)); sglist 274 drivers/media/pci/saa7134/saa7134-alsa.c if (NULL == dma->sglist) sglist 277 drivers/media/pci/saa7134/saa7134-alsa.c sg_init_table(dma->sglist, dma->nr_pages); sglist 282 drivers/media/pci/saa7134/saa7134-alsa.c sg_set_page(&dma->sglist[i], pg, PAGE_SIZE, 0); sglist 287 drivers/media/pci/saa7134/saa7134-alsa.c vfree(dma->sglist); sglist 288 drivers/media/pci/saa7134/saa7134-alsa.c dma->sglist = NULL; sglist 299 drivers/media/pci/saa7134/saa7134-alsa.c dma->sglen = dma_map_sg(&dev->pci->dev, dma->sglist, sglist 316 drivers/media/pci/saa7134/saa7134-alsa.c dma_unmap_sg(&dev->pci->dev, dma->sglist, dma->sglen, PCI_DMA_FROMDEVICE); sglist 323 drivers/media/pci/saa7134/saa7134-alsa.c vfree(dma->sglist); sglist 324 drivers/media/pci/saa7134/saa7134-alsa.c dma->sglist = NULL; sglist 715 drivers/media/pci/saa7134/saa7134-alsa.c dev->dmasound.sglist, dev->dmasound.sglen, 0); sglist 510 drivers/media/pci/saa7134/saa7134.h struct scatterlist *sglist; sglist 33 drivers/media/pci/tw68/tw68-risc.c static __le32 *tw68_risc_field(__le32 *rp, struct scatterlist *sglist, sglist 54 drivers/media/pci/tw68/tw68-risc.c sg = sglist; sglist 130 drivers/media/pci/tw68/tw68-risc.c struct scatterlist *sglist, sglist 161 drivers/media/pci/tw68/tw68-risc.c rp = tw68_risc_field(rp, sglist, top_offset, 1, sglist 164 drivers/media/pci/tw68/tw68-risc.c rp = tw68_risc_field(rp, sglist, bottom_offset, 2, sglist 203 drivers/media/pci/tw68/tw68.h struct scatterlist *sglist, unsigned int top_offset, sglist 65 drivers/media/v4l2-core/videobuf-dma-sg.c struct scatterlist *sglist; sglist 69 drivers/media/v4l2-core/videobuf-dma-sg.c sglist = vzalloc(array_size(nr_pages, sizeof(*sglist))); sglist 70 drivers/media/v4l2-core/videobuf-dma-sg.c if (NULL == sglist) sglist 72 drivers/media/v4l2-core/videobuf-dma-sg.c sg_init_table(sglist, nr_pages); sglist 78 drivers/media/v4l2-core/videobuf-dma-sg.c sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); sglist 80 drivers/media/v4l2-core/videobuf-dma-sg.c return sglist; sglist 83 drivers/media/v4l2-core/videobuf-dma-sg.c vfree(sglist); sglist 95 drivers/media/v4l2-core/videobuf-dma-sg.c struct scatterlist *sglist; sglist 100 drivers/media/v4l2-core/videobuf-dma-sg.c sglist = vmalloc(array_size(nr_pages, sizeof(*sglist))); sglist 101 drivers/media/v4l2-core/videobuf-dma-sg.c if (NULL == sglist) sglist 103 drivers/media/v4l2-core/videobuf-dma-sg.c sg_init_table(sglist, nr_pages); sglist 108 drivers/media/v4l2-core/videobuf-dma-sg.c sg_set_page(&sglist[0], pages[0], sglist 116 drivers/media/v4l2-core/videobuf-dma-sg.c sg_set_page(&sglist[i], pages[i], min_t(size_t, PAGE_SIZE, size), 0); sglist 119 drivers/media/v4l2-core/videobuf-dma-sg.c return sglist; sglist 123 drivers/media/v4l2-core/videobuf-dma-sg.c vfree(sglist); sglist 128 drivers/media/v4l2-core/videobuf-dma-sg.c vfree(sglist); sglist 291 drivers/media/v4l2-core/videobuf-dma-sg.c dma->sglist = videobuf_pages_to_sg(dma->pages, dma->nr_pages, sglist 295 drivers/media/v4l2-core/videobuf-dma-sg.c dma->sglist = videobuf_vmalloc_to_sg(dma->vaddr, sglist 299 drivers/media/v4l2-core/videobuf-dma-sg.c dma->sglist = vmalloc(sizeof(*dma->sglist)); sglist 300 drivers/media/v4l2-core/videobuf-dma-sg.c if (NULL != dma->sglist) { sglist 302 drivers/media/v4l2-core/videobuf-dma-sg.c sg_dma_address(&dma->sglist[0]) = dma->bus_addr sglist 304 drivers/media/v4l2-core/videobuf-dma-sg.c dma->sglist[0].offset = dma->bus_addr & ~PAGE_MASK; sglist 305 drivers/media/v4l2-core/videobuf-dma-sg.c sg_dma_len(&dma->sglist[0]) = dma->nr_pages * PAGE_SIZE; sglist 308 drivers/media/v4l2-core/videobuf-dma-sg.c if (NULL == dma->sglist) { sglist 313 drivers/media/v4l2-core/videobuf-dma-sg.c dma->sglen = dma_map_sg(dev, dma->sglist, sglist 318 drivers/media/v4l2-core/videobuf-dma-sg.c vfree(dma->sglist); sglist 319 drivers/media/v4l2-core/videobuf-dma-sg.c dma->sglist = NULL; sglist 335 drivers/media/v4l2-core/videobuf-dma-sg.c dma_unmap_sg(dev, dma->sglist, dma->nr_pages, dma->direction); sglist 337 drivers/media/v4l2-core/videobuf-dma-sg.c vfree(dma->sglist); sglist 338 drivers/media/v4l2-core/videobuf-dma-sg.c dma->sglist = NULL; sglist 584 drivers/media/v4l2-core/videobuf-dma-sg.c dma_sync_sg_for_cpu(q->dev, mem->dma.sglist, sglist 450 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_transfer_data(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 456 drivers/misc/cardreader/rtsx_pcr.c count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read); sglist 461 drivers/misc/cardreader/rtsx_pcr.c err = rtsx_pci_dma_transfer(pcr, sglist, count, read, timeout); sglist 463 drivers/misc/cardreader/rtsx_pcr.c rtsx_pci_dma_unmap_sg(pcr, sglist, num_sg, read); sglist 469 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_dma_map_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 477 drivers/misc/cardreader/rtsx_pcr.c if ((sglist == NULL) || (num_sg <= 0)) sglist 480 drivers/misc/cardreader/rtsx_pcr.c return dma_map_sg(&(pcr->pci->dev), sglist, num_sg, dir); sglist 484 drivers/misc/cardreader/rtsx_pcr.c void rtsx_pci_dma_unmap_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 489 drivers/misc/cardreader/rtsx_pcr.c dma_unmap_sg(&(pcr->pci->dev), sglist, num_sg, dir); sglist 493 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_dma_transfer(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 509 drivers/misc/cardreader/rtsx_pcr.c if ((sglist == NULL) || (count < 1)) sglist 514 drivers/misc/cardreader/rtsx_pcr.c for_each_sg(sglist, sg, count, i) { sglist 408 drivers/mmc/core/mmc_test.c struct scatterlist *sglist, int repeat, sglist 416 drivers/mmc/core/mmc_test.c sg_init_table(sglist, max_segs); sglist 434 drivers/mmc/core/mmc_test.c sg = sglist; sglist 460 drivers/mmc/core/mmc_test.c struct scatterlist *sglist, sglist 470 drivers/mmc/core/mmc_test.c sg_init_table(sglist, max_segs); sglist 489 drivers/mmc/core/mmc_test.c sg = sglist; sglist 908 drivers/parisc/ccio-dma.c ccio_map_sg(struct device *dev, struct scatterlist *sglist, int nents, sglist 927 drivers/parisc/ccio-dma.c sg_dma_address(sglist) = ccio_map_single(dev, sglist 928 drivers/parisc/ccio-dma.c sg_virt(sglist), sglist->length, sglist 930 drivers/parisc/ccio-dma.c sg_dma_len(sglist) = sglist->length; sglist 935 drivers/parisc/ccio-dma.c prev_len += sglist[i].length; sglist 951 drivers/parisc/ccio-dma.c coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, ccio_alloc_range); sglist 961 drivers/parisc/ccio-dma.c filled = iommu_fill_pdir(ioc, sglist, nents, hint, ccio_io_pdir_entry); sglist 970 drivers/parisc/ccio-dma.c current_len += sg_dma_len(sglist + i); sglist 987 drivers/parisc/ccio-dma.c ccio_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, sglist 1000 drivers/parisc/ccio-dma.c __func__, nents, sg_virt(sglist), sglist->length); sglist 1006 drivers/parisc/ccio-dma.c while(sg_dma_len(sglist) && nents--) { sglist 1009 drivers/parisc/ccio-dma.c ioc->usg_pages += sg_dma_len(sglist) >> PAGE_SHIFT; sglist 1011 drivers/parisc/ccio-dma.c ccio_unmap_page(dev, sg_dma_address(sglist), sglist 1012 drivers/parisc/ccio-dma.c sg_dma_len(sglist), direction, 0); sglist 1013 drivers/parisc/ccio-dma.c ++sglist; sglist 939 drivers/parisc/sba_iommu.c sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents, sglist 954 drivers/parisc/sba_iommu.c sg_dma_address(sglist) = sba_map_single(dev, sg_virt(sglist), sglist 955 drivers/parisc/sba_iommu.c sglist->length, direction); sglist 956 drivers/parisc/sba_iommu.c sg_dma_len(sglist) = sglist->length; sglist 965 drivers/parisc/sba_iommu.c sba_dump_sg(ioc, sglist, nents); sglist 982 drivers/parisc/sba_iommu.c coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, sba_alloc_range); sglist 992 drivers/parisc/sba_iommu.c filled = iommu_fill_pdir(ioc, sglist, nents, 0, sba_io_pdir_entry); sglist 1000 drivers/parisc/sba_iommu.c sba_dump_sg(ioc, sglist, nents); sglist 1023 drivers/parisc/sba_iommu.c sba_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, sglist 1032 drivers/parisc/sba_iommu.c __func__, nents, sg_virt(sglist), sglist->length); sglist 1050 drivers/parisc/sba_iommu.c while (sg_dma_len(sglist) && nents--) { sglist 1052 drivers/parisc/sba_iommu.c sba_unmap_page(dev, sg_dma_address(sglist), sg_dma_len(sglist), sglist 1055 drivers/parisc/sba_iommu.c ioc->usg_pages += ((sg_dma_address(sglist) & ~IOVP_MASK) + sg_dma_len(sglist) + IOVP_SIZE - 1) >> PAGE_SHIFT; sglist 1058 drivers/parisc/sba_iommu.c ++sglist; sglist 92 drivers/platform/x86/dcdbas.h sglist[MAX_SYSMGMT_LONGCMD_SGENTRY_NUM]; sglist 284 drivers/scsi/3w-9xxx.c TW_SG_Entry sglist[1]; sglist 305 drivers/scsi/3w-9xxx.c memset(&sglist, 0, sizeof(TW_SG_Entry)); sglist 306 drivers/scsi/3w-9xxx.c sglist[0].length = TW_SECTOR_SIZE; sglist 307 drivers/scsi/3w-9xxx.c sglist[0].address = tw_dev->generic_buffer_phys[request_id]; sglist 309 drivers/scsi/3w-9xxx.c if (sglist[0].address & TW_ALIGNMENT_9000_SGL) { sglist 319 drivers/scsi/3w-9xxx.c if (twa_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { sglist 429 drivers/scsi/3w-9xxx.c TW_SG_Entry sglist[1]; sglist 442 drivers/scsi/3w-9xxx.c memset(&sglist, 0, sizeof(TW_SG_Entry)); sglist 443 drivers/scsi/3w-9xxx.c sglist[0].length = TW_SECTOR_SIZE; sglist 444 drivers/scsi/3w-9xxx.c sglist[0].address = tw_dev->generic_buffer_phys[request_id]; sglist 450 drivers/scsi/3w-9xxx.c if (twa_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { sglist 1812 drivers/scsi/3w-9xxx.c struct scatterlist *sglist = NULL, *sg; sglist 1818 drivers/scsi/3w-9xxx.c sglist = scsi_sglist(srb); sglist 298 drivers/scsi/3w-sas.c struct scatterlist *sglist = NULL, *sg; sglist 304 drivers/scsi/3w-sas.c sglist = scsi_sglist(srb); sglist 378 drivers/scsi/3w-sas.c TW_SG_Entry_ISO sglist[1]; sglist 391 drivers/scsi/3w-sas.c memset(&sglist, 0, sizeof(TW_SG_Entry_ISO)); sglist 392 drivers/scsi/3w-sas.c sglist[0].length = TW_SECTOR_SIZE; sglist 393 drivers/scsi/3w-sas.c sglist[0].address = tw_dev->generic_buffer_phys[request_id]; sglist 399 drivers/scsi/3w-sas.c if (twl_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { sglist 560 drivers/scsi/3w-sas.c TW_SG_Entry_ISO sglist[1]; sglist 581 drivers/scsi/3w-sas.c memset(&sglist, 0, sizeof(TW_SG_Entry_ISO)); sglist 582 drivers/scsi/3w-sas.c sglist[0].length = TW_SECTOR_SIZE; sglist 583 drivers/scsi/3w-sas.c sglist[0].address = tw_dev->generic_buffer_phys[request_id]; sglist 590 drivers/scsi/3w-sas.c if (twl_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { sglist 1704 drivers/scsi/3w-xxxx.c struct scatterlist *sglist, *sg; sglist 1710 drivers/scsi/3w-xxxx.c sglist = scsi_sglist(srb); sglist 1711 drivers/scsi/3w-xxxx.c if (!sglist) { sglist 3081 drivers/scsi/BusLogic.c ((unsigned long) &ccb->sglist - sglist 3084 drivers/scsi/BusLogic.c ccb->data = ccb->sglist; sglist 3087 drivers/scsi/BusLogic.c ccb->sglist[i].segbytes = sg_dma_len(sg); sglist 3088 drivers/scsi/BusLogic.c ccb->sglist[i].segdata = sg_dma_address(sg); sglist 857 drivers/scsi/BusLogic.h struct blogic_sg_seg sglist[BLOGIC_SG_LIMIT]; sglist 864 drivers/scsi/a100u2w.c sgent = (struct orc_sgent *) & escb->sglist[0]; sglist 1041 drivers/scsi/a100u2w.c (unsigned char *) &escb->sglist[0], SENSE_SIZE); sglist 137 drivers/scsi/a100u2w.h struct orc_sgent sglist[TOTAL_SG_ENTRY]; /*0 Start of SG list */ sglist 1567 drivers/scsi/initio.c sgp = &scb->sglist[scb->sgidx]; sglist 2534 drivers/scsi/initio.c struct scatterlist *sglist; sglist 2576 drivers/scsi/initio.c dma_addr = dma_map_single(&host->pci_dev->dev, &cblk->sglist[0], sglist 2586 drivers/scsi/initio.c sg = &cblk->sglist[0]; sglist 2587 drivers/scsi/initio.c scsi_for_each_sg(cmnd, sglist, cblk->sglen, i) { sglist 2588 drivers/scsi/initio.c sg->data = cpu_to_le32((u32)sg_dma_address(sglist)); sglist 2589 drivers/scsi/initio.c sg->len = cpu_to_le32((u32)sg_dma_len(sglist)); sglist 2590 drivers/scsi/initio.c total_len += sg_dma_len(sglist); sglist 386 drivers/scsi/initio.h struct sg_entry sglist[TOTAL_SG_ENTRY]; /*54 Start of SG list */ sglist 3847 drivers/scsi/ipr.c struct ipr_sglist *sglist; sglist 3856 drivers/scsi/ipr.c sglist = kzalloc(sizeof(struct ipr_sglist), GFP_KERNEL); sglist 3857 drivers/scsi/ipr.c if (sglist == NULL) { sglist 3861 drivers/scsi/ipr.c sglist->order = order; sglist 3862 drivers/scsi/ipr.c sglist->scatterlist = sgl_alloc_order(buf_len, order, false, GFP_KERNEL, sglist 3863 drivers/scsi/ipr.c &sglist->num_sg); sglist 3864 drivers/scsi/ipr.c if (!sglist->scatterlist) { sglist 3865 drivers/scsi/ipr.c kfree(sglist); sglist 3869 drivers/scsi/ipr.c return sglist; sglist 3882 drivers/scsi/ipr.c static void ipr_free_ucode_buffer(struct ipr_sglist *sglist) sglist 3884 drivers/scsi/ipr.c sgl_free_order(sglist->scatterlist, sglist->order); sglist 3885 drivers/scsi/ipr.c kfree(sglist); sglist 3900 drivers/scsi/ipr.c static int ipr_copy_ucode_buffer(struct ipr_sglist *sglist, sglist 3908 drivers/scsi/ipr.c bsize_elem = PAGE_SIZE * (1 << sglist->order); sglist 3910 drivers/scsi/ipr.c sg = sglist->scatterlist; sglist 3938 drivers/scsi/ipr.c sglist->buffer_len = len; sglist 3951 drivers/scsi/ipr.c struct ipr_sglist *sglist) sglist 3955 drivers/scsi/ipr.c struct scatterlist *scatterlist = sglist->scatterlist; sglist 3959 drivers/scsi/ipr.c ipr_cmd->dma_use_sg = sglist->num_dma_sg; sglist 3961 drivers/scsi/ipr.c ioarcb->data_transfer_length = cpu_to_be32(sglist->buffer_len); sglist 3983 drivers/scsi/ipr.c struct ipr_sglist *sglist) sglist 3987 drivers/scsi/ipr.c struct scatterlist *scatterlist = sglist->scatterlist; sglist 3991 drivers/scsi/ipr.c ipr_cmd->dma_use_sg = sglist->num_dma_sg; sglist 3993 drivers/scsi/ipr.c ioarcb->data_transfer_length = cpu_to_be32(sglist->buffer_len); sglist 4020 drivers/scsi/ipr.c struct ipr_sglist *sglist) sglist 4038 drivers/scsi/ipr.c sglist->num_dma_sg = dma_map_sg(&ioa_cfg->pdev->dev, sglist 4039 drivers/scsi/ipr.c sglist->scatterlist, sglist->num_sg, sglist 4042 drivers/scsi/ipr.c if (!sglist->num_dma_sg) { sglist 4049 drivers/scsi/ipr.c ioa_cfg->ucode_sglist = sglist; sglist 4079 drivers/scsi/ipr.c struct ipr_sglist *sglist; sglist 4103 drivers/scsi/ipr.c sglist = ipr_alloc_ucode_buffer(dnld_size); sglist 4105 drivers/scsi/ipr.c if (!sglist) { sglist 4111 drivers/scsi/ipr.c result = ipr_copy_ucode_buffer(sglist, src, dnld_size); sglist 4121 drivers/scsi/ipr.c result = ipr_update_ioa_ucode(ioa_cfg, sglist); sglist 4126 drivers/scsi/ipr.c ipr_free_ucode_buffer(sglist); sglist 9088 drivers/scsi/ipr.c struct ipr_sglist *sglist = ioa_cfg->ucode_sglist; sglist 9090 drivers/scsi/ipr.c dma_unmap_sg(&ioa_cfg->pdev->dev, sglist->scatterlist, sglist 9091 drivers/scsi/ipr.c sglist->num_sg, DMA_TO_DEVICE); sglist 9110 drivers/scsi/ipr.c struct ipr_sglist *sglist = ioa_cfg->ucode_sglist; sglist 9115 drivers/scsi/ipr.c if (!sglist) sglist 9122 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[6] = (sglist->buffer_len & 0xff0000) >> 16; sglist 9123 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[7] = (sglist->buffer_len & 0x00ff00) >> 8; sglist 9124 drivers/scsi/ipr.c ipr_cmd->ioarcb.cmd_pkt.cdb[8] = sglist->buffer_len & 0x0000ff; sglist 9127 drivers/scsi/ipr.c ipr_build_ucode_ioadl64(ipr_cmd, sglist); sglist 9129 drivers/scsi/ipr.c ipr_build_ucode_ioadl(ipr_cmd, sglist); sglist 515 drivers/scsi/lpfc/lpfc_crtn.h int lpfc_io_buf_flush(struct lpfc_hba *phba, struct list_head *sglist); sglist 3150 drivers/scsi/pmcraid.c struct scatterlist *sglist; sglist 3182 drivers/scsi/pmcraid.c scsi_for_each_sg(scsi_cmd, sglist, nseg, i) { sglist 3183 drivers/scsi/pmcraid.c ioadl[i].data_len = cpu_to_le32(sg_dma_len(sglist)); sglist 3184 drivers/scsi/pmcraid.c ioadl[i].address = cpu_to_le64(sg_dma_address(sglist)); sglist 3202 drivers/scsi/pmcraid.c static void pmcraid_free_sglist(struct pmcraid_sglist *sglist) sglist 3204 drivers/scsi/pmcraid.c sgl_free_order(sglist->scatterlist, sglist->order); sglist 3205 drivers/scsi/pmcraid.c kfree(sglist); sglist 3220 drivers/scsi/pmcraid.c struct pmcraid_sglist *sglist; sglist 3228 drivers/scsi/pmcraid.c sglist = kzalloc(sizeof(struct pmcraid_sglist), GFP_KERNEL); sglist 3229 drivers/scsi/pmcraid.c if (sglist == NULL) sglist 3232 drivers/scsi/pmcraid.c sglist->order = order; sglist 3234 drivers/scsi/pmcraid.c GFP_KERNEL | GFP_DMA | __GFP_ZERO, &sglist->num_sg); sglist 3236 drivers/scsi/pmcraid.c return sglist; sglist 3252 drivers/scsi/pmcraid.c struct pmcraid_sglist *sglist, sglist 3265 drivers/scsi/pmcraid.c bsize_elem = PAGE_SIZE * (1 << sglist->order); sglist 3267 drivers/scsi/pmcraid.c sg = sglist->scatterlist; sglist 3489 drivers/scsi/pmcraid.c struct pmcraid_sglist *sglist = NULL; sglist 3495 drivers/scsi/pmcraid.c sglist = pmcraid_alloc_sglist(buflen); sglist 3497 drivers/scsi/pmcraid.c if (!sglist) { sglist 3502 drivers/scsi/pmcraid.c sglist->num_dma_sg = dma_map_sg(&cmd->drv_inst->pdev->dev, sglist 3503 drivers/scsi/pmcraid.c sglist->scatterlist, sglist 3504 drivers/scsi/pmcraid.c sglist->num_sg, direction); sglist 3506 drivers/scsi/pmcraid.c if (!sglist->num_dma_sg || sglist->num_dma_sg > PMCRAID_MAX_IOADLS) { sglist 3509 drivers/scsi/pmcraid.c pmcraid_free_sglist(sglist); sglist 3513 drivers/scsi/pmcraid.c cmd->sglist = sglist; sglist 3516 drivers/scsi/pmcraid.c ioadl = pmcraid_init_ioadls(cmd, sglist->num_dma_sg); sglist 3519 drivers/scsi/pmcraid.c for_each_sg(sglist->scatterlist, sg, sglist->num_dma_sg, i) { sglist 3548 drivers/scsi/pmcraid.c struct pmcraid_sglist *sglist = cmd->sglist; sglist 3552 drivers/scsi/pmcraid.c sglist->scatterlist, sglist 3553 drivers/scsi/pmcraid.c sglist->num_sg, sglist 3555 drivers/scsi/pmcraid.c pmcraid_free_sglist(sglist); sglist 3556 drivers/scsi/pmcraid.c cmd->sglist = NULL; sglist 3706 drivers/scsi/pmcraid.c rc = pmcraid_copy_sglist(cmd->sglist, sglist 3804 drivers/scsi/pmcraid.c rc = pmcraid_copy_sglist(cmd->sglist, sglist 580 drivers/scsi/pmcraid.h struct pmcraid_sglist *sglist; /* used for passthrough IOCTLs */ sglist 198 drivers/staging/media/ipu3/ipu3-dmamap.c int imgu_dmamap_map_sg(struct imgu_device *imgu, struct scatterlist *sglist, sglist 207 drivers/staging/media/ipu3/ipu3-dmamap.c for_each_sg(sglist, sg, nents, i) { sglist 230 drivers/staging/media/ipu3/ipu3-dmamap.c sglist, nents) < size) sglist 15 drivers/staging/media/ipu3/ipu3-dmamap.h int imgu_dmamap_map_sg(struct imgu_device *imgu, struct scatterlist *sglist, sglist 516 drivers/staging/unisys/visorhba/visorhba_main.c struct scatterlist *sglist = NULL; sglist 554 drivers/staging/unisys/visorhba/visorhba_main.c sglist = scsi_sglist(scsicmd); sglist 556 drivers/staging/unisys/visorhba/visorhba_main.c for_each_sg(sglist, sg, scsi_sg_count(scsicmd), i) { sglist 449 drivers/video/fbdev/sh_mobile_lcdcfb.c sg_init_table(ch->sglist, nr_pages_max); sglist 452 drivers/video/fbdev/sh_mobile_lcdcfb.c sg_set_page(&ch->sglist[nr_pages++], page, PAGE_SIZE, 0); sglist 485 drivers/video/fbdev/sh_mobile_lcdcfb.c dma_map_sg(ch->lcdc->dev, ch->sglist, nr_pages, DMA_TO_DEVICE); sglist 489 drivers/video/fbdev/sh_mobile_lcdcfb.c dma_unmap_sg(ch->lcdc->dev, ch->sglist, nr_pages, sglist 1999 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->sglist = vmalloc(sizeof(struct scatterlist) * sglist 2001 drivers/video/fbdev/sh_mobile_lcdcfb.c if (!ch->sglist) sglist 2031 drivers/video/fbdev/sh_mobile_lcdcfb.c vfree(ch->sglist); sglist 103 drivers/video/fbdev/sh_mobile_lcdcfb.h struct scatterlist *sglist; sglist 36 include/linux/dma-debug.h extern void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 105 include/linux/dma-debug.h struct scatterlist *sglist, sglist 1296 include/linux/rtsx_pci.h int rtsx_pci_transfer_data(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 1298 include/linux/rtsx_pci.h int rtsx_pci_dma_map_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 1300 include/linux/rtsx_pci.h void rtsx_pci_dma_unmap_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 1302 include/linux/rtsx_pci.h int rtsx_pci_dma_transfer(struct rtsx_pcr *pcr, struct scatterlist *sglist, sglist 151 include/linux/scatterlist.h #define for_each_sg(sglist, sg, nr, __i) \ sglist 152 include/linux/scatterlist.h for (__i = 0, sg = (sglist); __i < (nr); __i++, sg = sg_next(sg)) sglist 376 include/linux/scatterlist.h struct scatterlist *sglist, unsigned int nents, sglist 408 include/linux/scatterlist.h #define for_each_sg_page(sglist, piter, nents, pgoffset) \ sglist 409 include/linux/scatterlist.h for (__sg_page_iter_start((piter), (sglist), (nents), (pgoffset)); \ sglist 422 include/linux/scatterlist.h #define for_each_sg_dma_page(sglist, dma_iter, dma_nents, pgoffset) \ sglist 423 include/linux/scatterlist.h for (__sg_page_iter_start(&(dma_iter)->base, sglist, dma_nents, \ sglist 61 include/media/videobuf-dma-sg.h struct scatterlist *sglist; sglist 2744 include/rdma/ib_verbs.h struct scatterlist *sglist, sglist 2770 include/rdma/ib_verbs.h #define rdma_for_each_block(sglist, biter, nents, pgsz) \ sglist 2771 include/rdma/ib_verbs.h for (__rdma_block_iter_start(biter, sglist, nents, \ sglist 1403 kernel/dma/debug.c void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, sglist 1412 kernel/dma/debug.c for_each_sg(sglist, s, nelems, i) { sglist 601 lib/scatterlist.c struct scatterlist *sglist, unsigned int nents, sglist 607 lib/scatterlist.c piter->sg = sglist; sglist 328 net/rds/ib.h struct scatterlist *sglist, sglist 335 net/rds/ib.h for_each_sg(sglist, sg, sg_dma_len, i) { sglist 343 net/rds/ib.h struct scatterlist *sglist, sglist 350 net/rds/ib.h for_each_sg(sglist, sg, sg_dma_len, i) { sglist 77 tools/virtio/linux/scatterlist.h #define for_each_sg(sglist, sg, nr, __i) \ sglist 78 tools/virtio/linux/scatterlist.h for (__i = 0, sg = (sglist); __i < (nr); __i++, sg = sg_next(sg))