Searched refs:sg (Results 1 - 3 of 3) sorted by relevance

/lib/
H A Dscatterlist.c17 * @sg: The current sg entry
20 * Usually the next entry will be @sg@ + 1, but if this sg element is part
25 struct scatterlist *sg_next(struct scatterlist *sg) argument
28 BUG_ON(sg->sg_magic != SG_MAGIC);
30 if (sg_is_last(sg))
33 sg++;
34 if (unlikely(sg_is_chain(sg)))
35 sg
50 sg_nents(struct scatterlist *sg) argument
125 sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) argument
155 sg_kfree(struct scatterlist *sg, unsigned int nents) argument
251 struct scatterlist *sg, *prv; local
420 sg_page_count(struct scatterlist *sg) argument
470 struct scatterlist *sg; local
[all...]
H A Dswiotlb.c874 struct scatterlist *sg; local
879 for_each_sg(sgl, sg, nelems, i) {
880 phys_addr_t paddr = sg_phys(sg);
884 !dma_capable(hwdev, dev_addr, sg->length)) {
885 phys_addr_t map = map_single(hwdev, sg_phys(sg),
886 sg->length, dir);
890 swiotlb_full(hwdev, sg->length, dir, 0);
896 sg->dma_address = phys_to_dma(hwdev, map);
898 sg->dma_address = dev_addr;
899 sg_dma_len(sg)
921 struct scatterlist *sg; local
952 struct scatterlist *sg; local
961 swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument
969 swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument
[all...]
H A Ddma-debug.c59 * @dev: 'dev' argument to dma_map_{page|single|sg} or dma_alloc_coherent
60 * @type: single, page, sg, coherent
431 * dma_unmap_{single|sg|page} or dma_free_coherent delete the entry. If
1115 "DMA sg list with different entry count "
1338 void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, argument
1348 for_each_sg(sg, s, mapped_ents, i) {
1553 void debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, argument
1562 for_each_sg(sg, s, nelems, i) {
1586 void debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, argument
1595 for_each_sg(sg,
[all...]

Completed in 70 milliseconds