Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
c01545da
Commit
c01545da
authored
Mar 11, 2015
by
Federico Vaga
Committed by
Federico Vaga
Jun 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test kmalloc 1 transfer
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
086c0547
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dma.c
dma.c
+7
-1
No files found.
dma.c
View file @
c01545da
...
...
@@ -83,7 +83,7 @@ static int zio_calculate_nents(struct zio_blocks_sg *sg_blocks,
nents
+=
sg_blocks
[
i
].
block
->
datalen
/
PAGE_SIZE
+
1
;
}
return
nents
;
return
1
;
//
nents;
}
static
void
zio_dma_setup_scatter
(
struct
zio_dma_sgt
*
zdma
)
...
...
@@ -95,6 +95,7 @@ static void zio_dma_setup_scatter(struct zio_dma_sgt *zdma)
int
i
,
i_blk
;
i_blk
=
0
;
#if 0
for_each_sg(zdma->sgt.sgl, sg, zdma->sgt.nents, i) {
if (i_blk < zdma->n_blocks && i == zdma->sg_blocks[i_blk].first_nent) {
WARN(bytesleft, "unmapped byte in block %i\n",
...
...
@@ -134,6 +135,11 @@ static void zio_dma_setup_scatter(struct zio_dma_sgt *zdma)
virt_to_page(bufp), offset_in_page(bufp),
mapbytes, bytesleft);
}
#endif
for_each_sg
(
zdma
->
sgt
.
sgl
,
sg
,
zdma
->
sgt
.
nents
,
i
)
{
sg_set_page
(
sg
,
virt_to_page
(
bufp
),
zdma
->
sg_blocks
[
i_blk
].
block
->
datalen
,
offset_in_page
(
bufp
));
}
}
/*
...
...
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