Lines Matching refs:sglist
547 static int pci_4u_map_sg(struct pci_dev *pdev, struct scatterlist *sglist, int nelems, int direction)
559 sglist->dma_address =
561 (page_address(sglist->page) + sglist->offset),
562 sglist->length, direction);
563 if (unlikely(sglist->dma_address == PCI_DMA_ERROR_CODE))
565 sglist->dma_length = sglist->length;
577 npages = prepare_sg(sglist, nelems);
599 sgtmp = sglist;
615 fill_sg(base, sglist, used, nelems, iopte_protection);
618 verify_sglist(sglist, nelems, base, npages);
632 static void pci_4u_unmap_sg(struct pci_dev *pdev, struct scatterlist *sglist, int nelems, int direction)
648 bus_addr = sglist->dma_address & IO_PAGE_MASK;
651 if (sglist[i].dma_length == 0)
654 npages = (IO_PAGE_ALIGN(sglist[i].dma_address + sglist[i].dma_length) -
662 printk("pci_unmap_sg called on non-mapped region %016lx,%d from %016lx\n", sglist->dma_address, nelems, __builtin_return_address(0));
728 static void pci_4u_dma_sync_sg_for_cpu(struct pci_dev *pdev, struct scatterlist *sglist, int nelems, int direction)
750 ((sglist[0].dma_address - iommu->page_table_map_base) >> IO_PAGE_SHIFT);
755 bus_addr = sglist[0].dma_address & IO_PAGE_MASK;
757 if (!sglist[i].dma_length)
760 npages = (IO_PAGE_ALIGN(sglist[i].dma_address + sglist[i].dma_length)