'\" t .\" Title: rio_dma_prep_xfer .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: RapidIO driver interface .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "RIO_DMA_PREP_XFER" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "RapidIO driver interface" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" rio_dma_prep_xfer \- RapidIO specific wrapper for device_prep_slave_sg callback defined by DMAENGINE\&. .SH "SYNOPSIS" .HP \w'struct\ dma_async_tx_descriptor\ *\ rio_dma_prep_xfer('u .BI "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" ");" .SH "ARGUMENTS" .PP \fIstruct dma_chan * dchan\fR .RS 4 DMA channel to configure .RE .PP \fIu16 destid\fR .RS 4 target RapidIO device destination ID .RE .PP \fIstruct rio_dma_data * data\fR .RS 4 RIO specific data descriptor .RE .PP \fIenum dma_transfer_direction direction\fR .RS 4 DMA data transfer direction (TO or FROM the device) .RE .PP \fIunsigned long flags\fR .RS 4 dmaengine defined flags .RE .SH "DESCRIPTION" .PP Initializes RapidIO capable DMA channel for the specified data transfer\&. Uses DMA channel private extension to pass information related to remote target RIO device\&. .SH "RETURN" .PP pointer to DMA transaction descriptor if successful, error\-valued pointer or NULL if failed\&. .SH "AUTHOR" .PP \fBMatt Porter\fR <\&mporter@kernel.crashing.org\&>, <\&mporter@mvista.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br