Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
83fcaf70
Commit
83fcaf70
authored
Oct 23, 2007
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fvr32: fixup dma-mapping for new sg layout
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
71df50a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
include/asm-avr32/dma-mapping.h
include/asm-avr32/dma-mapping.h
+3
-4
No files found.
include/asm-avr32/dma-mapping.h
View file @
83fcaf70
...
...
@@ -217,8 +217,8 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
for
(
i
=
0
;
i
<
nents
;
i
++
)
{
char
*
virt
;
sg
[
i
].
dma_address
=
page_to_bus
(
sg
[
i
].
page
)
+
sg
[
i
].
offset
;
virt
=
page_address
(
sg
[
i
].
page
)
+
sg
[
i
].
offset
;
sg
[
i
].
dma_address
=
page_to_bus
(
sg
_page
(
&
sg
[
i
])
)
+
sg
[
i
].
offset
;
virt
=
sg_virt
(
&
sg
[
i
])
;
dma_cache_sync
(
dev
,
virt
,
sg
[
i
].
length
,
direction
);
}
...
...
@@ -327,8 +327,7 @@ dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
int
i
;
for
(
i
=
0
;
i
<
nents
;
i
++
)
{
dma_cache_sync
(
dev
,
page_address
(
sg
[
i
].
page
)
+
sg
[
i
].
offset
,
sg
[
i
].
length
,
direction
);
dma_cache_sync
(
dev
,
sg_virt
(
&
sg
[
i
]),
sg
[
i
].
length
,
direction
);
}
}
...
...
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