Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
3280ab3e
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3280ab3e
编写于
3月 13, 2008
作者:
D
Dan Williams
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
async_tx: checkpatch says s/__FUNCTION__/__func__/g
Signed-off-by:
N
Dan Williams
<
dan.j.williams@intel.com
>
上级
3d9b525b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
crypto/async_tx/async_memcpy.c
crypto/async_tx/async_memcpy.c
+3
-3
crypto/async_tx/async_memset.c
crypto/async_tx/async_memset.c
+3
-3
crypto/async_tx/async_tx.c
crypto/async_tx/async_tx.c
+3
-3
crypto/async_tx/async_xor.c
crypto/async_tx/async_xor.c
+6
-6
未找到文件。
crypto/async_tx/async_memcpy.c
浏览文件 @
3280ab3e
...
...
@@ -66,11 +66,11 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
}
if
(
tx
)
{
pr_debug
(
"%s: (async) len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: (async) len: %zu
\n
"
,
__
func
__
,
len
);
async_tx_submit
(
chan
,
tx
,
flags
,
depend_tx
,
cb_fn
,
cb_param
);
}
else
{
void
*
dest_buf
,
*
src_buf
;
pr_debug
(
"%s: (sync) len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: (sync) len: %zu
\n
"
,
__
func
__
,
len
);
/* wait for any prerequisite operations */
if
(
depend_tx
)
{
...
...
@@ -80,7 +80,7 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
BUG_ON
(
depend_tx
->
ack
);
if
(
dma_wait_for_async_tx
(
depend_tx
)
==
DMA_ERROR
)
panic
(
"%s: DMA_ERROR waiting for depend_tx
\n
"
,
__
FUNCTION
__
);
__
func
__
);
}
dest_buf
=
kmap_atomic
(
dest
,
KM_USER0
)
+
dest_offset
;
...
...
crypto/async_tx/async_memset.c
浏览文件 @
3280ab3e
...
...
@@ -63,11 +63,11 @@ async_memset(struct page *dest, int val, unsigned int offset,
}
if
(
tx
)
{
pr_debug
(
"%s: (async) len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: (async) len: %zu
\n
"
,
__
func
__
,
len
);
async_tx_submit
(
chan
,
tx
,
flags
,
depend_tx
,
cb_fn
,
cb_param
);
}
else
{
/* run the memset synchronously */
void
*
dest_buf
;
pr_debug
(
"%s: (sync) len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: (sync) len: %zu
\n
"
,
__
func
__
,
len
);
dest_buf
=
(
void
*
)
(((
char
*
)
page_address
(
dest
))
+
offset
);
...
...
@@ -79,7 +79,7 @@ async_memset(struct page *dest, int val, unsigned int offset,
BUG_ON
(
depend_tx
->
ack
);
if
(
dma_wait_for_async_tx
(
depend_tx
)
==
DMA_ERROR
)
panic
(
"%s: DMA_ERROR waiting for depend_tx
\n
"
,
__
FUNCTION
__
);
__
func
__
);
}
memset
(
dest_buf
,
val
,
len
);
...
...
crypto/async_tx/async_tx.c
浏览文件 @
3280ab3e
...
...
@@ -472,11 +472,11 @@ async_trigger_callback(enum async_tx_flags flags,
tx
=
NULL
;
if
(
tx
)
{
pr_debug
(
"%s: (async)
\n
"
,
__
FUNCTION
__
);
pr_debug
(
"%s: (async)
\n
"
,
__
func
__
);
async_tx_submit
(
chan
,
tx
,
flags
,
depend_tx
,
cb_fn
,
cb_param
);
}
else
{
pr_debug
(
"%s: (sync)
\n
"
,
__
FUNCTION
__
);
pr_debug
(
"%s: (sync)
\n
"
,
__
func
__
);
/* wait for any prerequisite operations */
if
(
depend_tx
)
{
...
...
@@ -486,7 +486,7 @@ async_trigger_callback(enum async_tx_flags flags,
BUG_ON
(
depend_tx
->
ack
);
if
(
dma_wait_for_async_tx
(
depend_tx
)
==
DMA_ERROR
)
panic
(
"%s: DMA_ERROR waiting for depend_tx
\n
"
,
__
FUNCTION
__
);
__
func
__
);
}
async_tx_sync_epilog
(
flags
,
depend_tx
,
cb_fn
,
cb_param
);
...
...
crypto/async_tx/async_xor.c
浏览文件 @
3280ab3e
...
...
@@ -47,7 +47,7 @@ do_async_xor(struct dma_device *device,
int
i
;
unsigned
long
dma_prep_flags
=
cb_fn
?
DMA_PREP_INTERRUPT
:
0
;
pr_debug
(
"%s: len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: len: %zu
\n
"
,
__
func
__
,
len
);
dma_dest
=
dma_map_page
(
device
->
dev
,
dest
,
offset
,
len
,
DMA_FROM_DEVICE
);
...
...
@@ -86,7 +86,7 @@ do_sync_xor(struct page *dest, struct page **src_list, unsigned int offset,
void
*
_dest
;
int
i
;
pr_debug
(
"%s: len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: len: %zu
\n
"
,
__
func
__
,
len
);
/* reuse the 'src_list' array to convert to buffer pointers */
for
(
i
=
0
;
i
<
src_cnt
;
i
++
)
...
...
@@ -196,7 +196,7 @@ async_xor(struct page *dest, struct page **src_list, unsigned int offset,
DMA_ERROR
)
panic
(
"%s: DMA_ERROR waiting for "
"depend_tx
\n
"
,
__
FUNCTION
__
);
__
func
__
);
}
do_sync_xor
(
dest
,
&
src_list
[
src_off
],
offset
,
...
...
@@ -276,7 +276,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
unsigned
long
dma_prep_flags
=
cb_fn
?
DMA_PREP_INTERRUPT
:
0
;
int
i
;
pr_debug
(
"%s: (async) len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: (async) len: %zu
\n
"
,
__
func
__
,
len
);
for
(
i
=
0
;
i
<
src_cnt
;
i
++
)
dma_src
[
i
]
=
dma_map_page
(
device
->
dev
,
src_list
[
i
],
...
...
@@ -299,7 +299,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
}
else
{
unsigned
long
xor_flags
=
flags
;
pr_debug
(
"%s: (sync) len: %zu
\n
"
,
__
FUNCTION
__
,
len
);
pr_debug
(
"%s: (sync) len: %zu
\n
"
,
__
func
__
,
len
);
xor_flags
|=
ASYNC_TX_XOR_DROP_DST
;
xor_flags
&=
~
ASYNC_TX_ACK
;
...
...
@@ -310,7 +310,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
if
(
tx
)
{
if
(
dma_wait_for_async_tx
(
tx
)
==
DMA_ERROR
)
panic
(
"%s: DMA_ERROR waiting for tx
\n
"
,
__
FUNCTION
__
);
__
func
__
);
async_tx_ack
(
tx
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录