Home
last modified time | relevance | path

Searched refs:sgt (Results 1 – 4 of 4) sorted by relevance

/kernel/dma/
Dmapping.c266 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 …]
Dops_helpers.c18 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()
Ddirect.c541 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()
Ddirect.h13 int dma_direct_get_sgtable(struct device *dev, struct sg_table *sgt,