summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw_dmac_regs.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-01-25 10:48:01 +0100
committerVinod Koul <vinod.koul@intel.com>2013-01-28 13:04:36 +0100
commit30d38a3286b140ae8cea84a93cde1f112e352aaf (patch)
treeb8b08a5ffacdfad43531ef38227db39cdbb69fcb /drivers/dma/dw_dmac_regs.h
parentdw_dmac: remove unnecessary tx_list field in dw_dma_chan (diff)
downloadlinux-30d38a3286b140ae8cea84a93cde1f112e352aaf.tar.xz
linux-30d38a3286b140ae8cea84a93cde1f112e352aaf.zip
dw_dmac: introduce total_len field in struct dw_desc
By this new field we distinguish a total length of the chain and the individual length of each descriptor in the chain. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac_regs.h')
-rw-r--r--drivers/dma/dw_dmac_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw_dmac_regs.h b/drivers/dma/dw_dmac_regs.h
index 13000d2b3352..833b4cf9843d 100644
--- a/drivers/dma/dw_dmac_regs.h
+++ b/drivers/dma/dw_dmac_regs.h
@@ -296,6 +296,7 @@ struct dw_desc {
struct list_head tx_list;
struct dma_async_tx_descriptor txd;
size_t len;
+ size_t total_len;
};
#define to_dw_desc(h) list_entry(h, struct dw_desc, desc_node)