summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-lib.c
diff options
context:
space:
mode:
authorJoel Fernandes <joelf@ti.com>2013-09-03 17:02:46 +0200
committerVinod Koul <vinod.koul@intel.com>2013-09-04 15:08:46 +0200
commit534070622d2c7fbc5cc929aa93541ccd0ae52ab1 (patch)
tree30bd34589b97c189ae86a5a4b0f12f11b1e5379d /drivers/ide/ide-lib.c
parentdma: edma: Setup parameters to DMA MAX_NR_SG at a time (diff)
downloadlinux-534070622d2c7fbc5cc929aa93541ccd0ae52ab1.tar.xz
linux-534070622d2c7fbc5cc929aa93541ccd0ae52ab1.zip
dma: edma: Write out and handle MAX_NR_SG at a given time
Process SG-elements in batches of MAX_NR_SG if they are greater than MAX_NR_SG. Due to this, at any given time only those many slots will be used in the given channel no matter how long the scatter list is. We keep track of how much has been written inorder to process the next batch of elements in the scatter-list and detect completion. For such intermediate transfer completions (one batch of MAX_NR_SG), make use of pause and resume functions instead of start and stop when such intermediate transfer is in progress or completed as we donot want to clear any pending events. Signed-off-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/ide/ide-lib.c')
0 files changed, 0 insertions, 0 deletions