]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/dmaengine.h
dmaengine: Add scatter-gathered memset
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 6 Jul 2015 10:19:23 +0000 (12:19 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Aug 2015 03:00:56 +0000 (08:30 +0530)
commit50c7cd2bd3786258606c6c7c8356064c08ab2383
treeb5854b21601f6cf912246f6ddd59a30c44836b2c
parent77a68e56aae141d3e9c740a0ac43362af75d4890
dmaengine: Add scatter-gathered memset

The current API allows the driver to accelerate memset by using the DMA
controller.

However, it does so over a contiguous memory area, which might proves
inefficient when you have to do it over a non-contiguous yet repititive
pattern, since you have to create a number of descriptors and then submit
each other.

Add a memset operation going over a scatter list to handle such cases in a
single call.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/dmaengine.h