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
dee9ba82
Commit
dee9ba82
authored
Oct 23, 2007
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: sg fallout
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
4fcc47a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/asm-arm/dma-mapping.h
include/asm-arm/dma-mapping.h
+5
-5
No files found.
include/asm-arm/dma-mapping.h
View file @
dee9ba82
...
...
@@ -5,7 +5,7 @@
#include <linux/mm.h>
/* need struct page */
#include <
asm
/scatterlist.h>
#include <
linux
/scatterlist.h>
/*
* DMA-consistent mapping functions. These allocate/free a region of
...
...
@@ -274,8 +274,8 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
for
(
i
=
0
;
i
<
nents
;
i
++
,
sg
++
)
{
char
*
virt
;
sg
->
dma_address
=
page_to_dma
(
dev
,
sg
->
page
)
+
sg
->
offset
;
virt
=
page_address
(
sg
->
page
)
+
sg
->
offset
;
sg
->
dma_address
=
page_to_dma
(
dev
,
sg
_page
(
sg
)
)
+
sg
->
offset
;
virt
=
sg_virt
(
sg
)
;
if
(
!
arch_is_coherent
())
dma_cache_maint
(
virt
,
sg
->
length
,
dir
);
...
...
@@ -371,7 +371,7 @@ dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents,
int
i
;
for
(
i
=
0
;
i
<
nents
;
i
++
,
sg
++
)
{
char
*
virt
=
page_address
(
sg
->
page
)
+
sg
->
offset
;
char
*
virt
=
sg_virt
(
sg
)
;
if
(
!
arch_is_coherent
())
dma_cache_maint
(
virt
,
sg
->
length
,
dir
);
}
...
...
@@ -384,7 +384,7 @@ dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents,
int
i
;
for
(
i
=
0
;
i
<
nents
;
i
++
,
sg
++
)
{
char
*
virt
=
page_address
(
sg
->
page
)
+
sg
->
offset
;
char
*
virt
=
sg_virt
(
sg
)
;
if
(
!
arch_is_coherent
())
dma_cache_maint
(
virt
,
sg
->
length
,
dir
);
}
...
...
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