Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • linux
  • dmaengine.h
Find file BlameHistoryPermalink
  • Paul Cercueil's avatar
    dmaengine: Add API function dmaengine_prep_peripheral_dma_vec() · 5878853f
    Paul Cercueil authored Jun 20, 2024
    
    
    This function can be used to initiate a scatter-gather DMA transfer,
    where the address and size of each segment is located in one entry of
    the dma_vec array.
    
    The major difference with dmaengine_prep_slave_sg() is that it supports
    specifying the lengths of each DMA transfer; as trying to override the
    length of the transfer with dmaengine_prep_slave_sg() is a very tedious
    process. The introduction of a new API function is also justified by the
    fact that scatterlists are on their way out.
    
    Note that dmaengine_prep_interleaved_dma() is not helpful either in that
    case, as it assumes that the address of each segment will be higher than
    the one of the previous segment, which we just cannot guarantee in case
    of a scatter-gather transfer.
    
    Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
    Co-developed-by: default avatarNuno Sa <nuno.sa@analog.com>
    Signed-off-by: default avatarNuno Sa <nuno.sa@analog.com>
    Link: https://lore.kernel.org/r/20240620122726.41232-2-paul@crapouillou.net
    
    
    Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
    5878853f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7