Searched refs:sgl (Results 1 – 5 of 5) sorted by relevance
/kernel/dma/ |
D | direct.h | 21 int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl, int nents, 27 void dma_direct_sync_sg_for_device(struct device *dev, struct scatterlist *sgl, 31 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument 39 void dma_direct_unmap_sg(struct device *dev, struct scatterlist *sgl, 42 struct scatterlist *sgl, int nents, enum dma_data_direction dir); 45 struct scatterlist *sgl, int nents, enum dma_data_direction dir, in dma_direct_unmap_sg() argument 50 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument
|
D | direct.c | 415 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument 420 for_each_sg(sgl, sg, nents, i) { in dma_direct_sync_sg_for_device() 438 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument 443 for_each_sg(sgl, sg, nents, i) { in dma_direct_sync_sg_for_cpu() 465 void dma_direct_unmap_sg(struct device *dev, struct scatterlist *sgl, in dma_direct_unmap_sg() argument 471 for_each_sg(sgl, sg, nents, i) { in dma_direct_unmap_sg() 481 int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl, int nents, in dma_direct_map_sg() argument 489 for_each_sg(sgl, sg, nents, i) { in dma_direct_map_sg() 521 dma_direct_unmap_sg(dev, sgl, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC); in dma_direct_map_sg() 550 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_direct_get_sgtable()
|
D | mapping.c | 271 nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable() 622 page = __dma_alloc_pages(dev, size, &sgt->sgl->dma_address, dir, gfp); in alloc_single_sgt() 625 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in alloc_single_sgt() 626 sg_dma_len(sgt->sgl) = sgt->sgl->length; in alloc_single_sgt() 651 debug_dma_map_sg(dev, sgt->sgl, sgt->orig_nents, 1, dir, attrs); in dma_alloc_noncontiguous() 660 __dma_free_pages(dev, size, sg_page(sgt->sgl), sgt->sgl->dma_address, in free_single_sgt() 671 debug_dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in dma_free_noncontiguous() 687 return page_address(sg_page(sgt->sgl)); in dma_vmap_noncontiguous() 713 return dma_mmap_pages(dev, vma, size, sg_page(sgt->sgl)); in dma_mmap_noncontiguous()
|
D | dummy.c | 21 static int dma_dummy_map_sg(struct device *dev, struct scatterlist *sgl, in dma_dummy_map_sg() argument
|
D | ops_helpers.c | 27 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_common_get_sgtable()
|