Searched refs:sgt (Results 1 – 4 of 4) sorted by relevance
/kernel/dma/ |
D | mapping.c | 266 int dma_map_sgtable(struct device *dev, struct sg_table *sgt, in dma_map_sgtable() argument 271 nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable() 274 sgt->nents = nents; in dma_map_sgtable() 395 int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, in dma_get_sgtable_attrs() argument 402 return dma_direct_get_sgtable(dev, sgt, cpu_addr, dma_addr, in dma_get_sgtable_attrs() 406 return ops->get_sgtable(dev, sgt, cpu_addr, dma_addr, size, attrs); in dma_get_sgtable_attrs() 614 struct sg_table *sgt; in alloc_single_sgt() local 617 sgt = kmalloc(sizeof(*sgt), gfp); in alloc_single_sgt() 618 if (!sgt) in alloc_single_sgt() 620 if (sg_alloc_table(sgt, 1, gfp)) in alloc_single_sgt() [all …]
|
D | ops_helpers.c | 18 int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt, in dma_common_get_sgtable() argument 25 ret = sg_alloc_table(sgt, 1, GFP_KERNEL); in dma_common_get_sgtable() 27 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_common_get_sgtable()
|
D | direct.c | 541 int dma_direct_get_sgtable(struct device *dev, struct sg_table *sgt, in dma_direct_get_sgtable() argument 548 ret = sg_alloc_table(sgt, 1, GFP_KERNEL); in dma_direct_get_sgtable() 550 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_direct_get_sgtable()
|
D | direct.h | 13 int dma_direct_get_sgtable(struct device *dev, struct sg_table *sgt,
|