Files
kernel_arpi/include/linux
Marek Szyprowski d9d200bceb dma-mapping: add generic helpers for mapping sgtable objects
struct sg_table is a common structure used for describing a memory
buffer. It consists of a scatterlist with memory pages and DMA addresses
(sgl entry), as well as the number of scatterlist entries: CPU pages
(orig_nents entry) and DMA mapped pages (nents entry).

It turned out that it was a common mistake to misuse nents and orig_nents
entries, calling DMA-mapping functions with a wrong number of entries or
ignoring the number of mapped entries returned by the dma_map_sg
function.

To avoid such issues, let's introduce a common wrappers operating
directly on the struct sg_table objects, which take care of the proper
use of the nents and orig_nents entries.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2020-05-13 15:43:29 +02:00
..
2020-03-31 21:29:04 +02:00
2020-03-30 01:34:00 +02:00
2020-04-10 15:36:21 -07:00
2020-05-04 09:16:37 -07:00
2020-03-27 20:19:24 -03:00
2020-04-15 11:48:21 +02:00
2020-03-21 16:00:24 +01:00
2020-04-10 15:36:21 -07:00
2020-05-05 16:58:36 +02:00
2020-04-07 10:43:38 -07:00
2020-03-21 16:00:24 +01:00
2020-04-02 09:35:27 -07:00
2020-04-07 10:43:38 -07:00
2020-04-09 12:15:35 -05:00
2020-03-21 16:00:24 +01:00
2020-04-07 10:43:42 -07:00
2020-03-21 16:00:24 +01:00
2020-03-23 13:41:55 +01:00
2020-05-04 09:16:37 -07:00
2020-03-23 17:01:47 +01:00
2020-04-17 06:05:30 -04:00
2020-04-01 12:06:26 -04:00
2020-04-17 06:05:30 -04:00