Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5eb907aa
Commit
5eb907aa
authored
Jul 17, 2008
by
Dan Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iop_adma: document how to calculate the minimum descriptor pool size
Signed-off-by:
Dan Williams
<
dan.j.williams@intel.com
>
parent
c7141d00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
drivers/dma/iop-adma.c
drivers/dma/iop-adma.c
+10
-1
No files found.
drivers/dma/iop-adma.c
View file @
5eb907aa
...
@@ -450,7 +450,16 @@ iop_adma_tx_submit(struct dma_async_tx_descriptor *tx)
...
@@ -450,7 +450,16 @@ iop_adma_tx_submit(struct dma_async_tx_descriptor *tx)
static
void
iop_chan_start_null_memcpy
(
struct
iop_adma_chan
*
iop_chan
);
static
void
iop_chan_start_null_memcpy
(
struct
iop_adma_chan
*
iop_chan
);
static
void
iop_chan_start_null_xor
(
struct
iop_adma_chan
*
iop_chan
);
static
void
iop_chan_start_null_xor
(
struct
iop_adma_chan
*
iop_chan
);
/* returns the number of allocated descriptors */
/**
* iop_adma_alloc_chan_resources - returns the number of allocated descriptors
* @chan - allocate descriptor resources for this channel
* @client - current client requesting the channel be ready for requests
*
* Note: We keep the slots for 1 operation on iop_chan->chain at all times. To
* avoid deadlock, via async_xor, num_descs_in_pool must at a minimum be
* greater than 2x the number slots needed to satisfy a device->max_xor
* request.
* */
static
int
iop_adma_alloc_chan_resources
(
struct
dma_chan
*
chan
,
static
int
iop_adma_alloc_chan_resources
(
struct
dma_chan
*
chan
,
struct
dma_client
*
client
)
struct
dma_client
*
client
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment