---
name: "rio_dma_prep_xfer"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/rio_dma_prep_xfer"
---

# rio\_dma\_prep\_xfer(9)

RapidIO specific wrapper for device\_prep\_slave\_sg callback defined by DMAENGINE.

## NAME

rio\_dma\_prep\_xfer - RapidIO specific wrapper for device\_prep\_slave\_sg callback defined by DMAENGINE.

## SYNOPSIS

**struct dma\_async\_tx\_descriptor \* rio\_dma\_prep\_xfer(struct dma\_chan \*** *dchan***, u16** *destid***, struct rio\_dma\_data \*** *data***, enum dma\_transfer\_direction** *direction***, unsigned long** *flags***);**

## ARGUMENTS

*dchan*

DMA channel to configure

*destid*

target RapidIO device destination ID

*data*

RIO specific data descriptor

*direction*

DMA data transfer direction (TO or FROM the device)

*flags*

dmaengine defined flags

## DESCRIPTION

Initializes RapidIO capable DMA channel for the specified data transfer. Uses DMA channel private extension to pass information related to remote target RIO device.

## RETURN

pointer to DMA transaction descriptor if successful, error-valued pointer or NULL if failed.

## AUTHOR

**Matt Porter** \<mporter@kernel.crashing.org\>, \<mporter@mvista.com\>

Author.

## COPYRIGHT
