Re: [PATCH 1/6] lib/scatterlist: Add contiguous DMA chunks helpers

2021-10-08 Thread Michał Mirosław
On Thu, Sep 16, 2021 at 11:43:59AM +0200, Thierry Reding wrote: > From: Thierry Reding > > Add a few helpers to count the number of contiguous DMA chunks found in > an SG table. This is useful to determine whether or not a mapping can be > used by drivers whose devices need contiguous memory. [..

[PATCH 1/6] lib/scatterlist: Add contiguous DMA chunks helpers

2021-09-16 Thread Thierry Reding
From: Thierry Reding Add a few helpers to count the number of contiguous DMA chunks found in an SG table. This is useful to determine whether or not a mapping can be used by drivers whose devices need contiguous memory. Signed-off-by: Thierry Reding --- include/linux/scatterlist.h | 11 +++