Lines Matching refs:sg
157 pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) in pci_map_sg() argument
162 return sa1111_map_sg(sg, nents, direction); in pci_map_sg()
164 for (i = 0; i < nents; i++, sg++) { in pci_map_sg()
165 char *vaddr = sg->address; in pci_map_sg()
168 vaddr = ((char *)page_address(sg->page)) + sg->offset; in pci_map_sg()
170 consistent_sync(vaddr, sg->length, direction); in pci_map_sg()
171 sg->dma_address = virt_to_bus(vaddr); in pci_map_sg()
182 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) in pci_unmap_sg() argument
185 sa1111_unmap_sg(sg, nents, direction); in pci_unmap_sg()
219 pci_dma_sync_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction) in pci_dma_sync_sg() argument
224 sa1111_dma_sync_sg(sg, nelems, direction); in pci_dma_sync_sg()
228 for (i = 0; i < nelems; i++, sg++) in pci_dma_sync_sg()
229 consistent_sync(sg->address, sg->length, direction); in pci_dma_sync_sg()