Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c697f83e
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看板
提交
c697f83e
编写于
12月 05, 2006
作者:
F
Francois Romieu
提交者:
Jeff Garzik
2月 05, 2007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chelsio: move return, break and continue statements on their own line
Signed-off-by:
N
Francois Romieu
<
romieu@fr.zoreil.com
>
上级
ea8862dc
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
10 deletion
+20
-10
drivers/net/chelsio/espi.c
drivers/net/chelsio/espi.c
+2
-1
drivers/net/chelsio/ixf1010.c
drivers/net/chelsio/ixf1010.c
+6
-3
drivers/net/chelsio/mv88e1xxx.c
drivers/net/chelsio/mv88e1xxx.c
+4
-2
drivers/net/chelsio/subr.c
drivers/net/chelsio/subr.c
+4
-2
drivers/net/chelsio/vsc7326.c
drivers/net/chelsio/vsc7326.c
+2
-1
drivers/net/chelsio/vsc8244.c
drivers/net/chelsio/vsc8244.c
+2
-1
未找到文件。
drivers/net/chelsio/espi.c
浏览文件 @
c697f83e
...
...
@@ -301,7 +301,8 @@ void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val)
{
struct
peespi
*
espi
=
adapter
->
espi
;
if
(
!
is_T2
(
adapter
))
return
;
if
(
!
is_T2
(
adapter
))
return
;
spin_lock
(
&
espi
->
lock
);
espi
->
misc_ctrl
=
(
val
&
~
MON_MASK
)
|
(
espi
->
misc_ctrl
&
MON_MASK
);
...
...
drivers/net/chelsio/ixf1010.c
浏览文件 @
c697f83e
...
...
@@ -273,7 +273,8 @@ static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
static
int
mac_set_mtu
(
struct
cmac
*
mac
,
int
mtu
)
{
/* MAX_FRAME_SIZE inludes header + FCS, mtu doesn't */
if
(
mtu
>
(
MAX_FRAME_SIZE
-
14
-
4
))
return
-
EINVAL
;
if
(
mtu
>
(
MAX_FRAME_SIZE
-
14
-
4
))
return
-
EINVAL
;
t1_tpi_write
(
mac
->
adapter
,
MACREG
(
mac
,
REG_MAX_FRAME_SIZE
),
mtu
+
14
+
4
);
return
0
;
...
...
@@ -460,10 +461,12 @@ static struct cmac *ixf1010_mac_create(adapter_t *adapter, int index)
struct
cmac
*
mac
;
u32
val
;
if
(
index
>
9
)
return
NULL
;
if
(
index
>
9
)
return
NULL
;
mac
=
kzalloc
(
sizeof
(
*
mac
)
+
sizeof
(
cmac_instance
),
GFP_KERNEL
);
if
(
!
mac
)
return
NULL
;
if
(
!
mac
)
return
NULL
;
mac
->
ops
=
&
ixf1010_ops
;
mac
->
instance
=
(
cmac_instance
*
)(
mac
+
1
);
...
...
drivers/net/chelsio/mv88e1xxx.c
浏览文件 @
c697f83e
...
...
@@ -308,7 +308,8 @@ static int mv88e1xxx_interrupt_handler(struct cphy *cphy)
MV88E1XXX_INTERRUPT_STATUS_REGISTER
,
&
cause
);
cause
&=
INTR_ENABLE_MASK
;
if
(
!
cause
)
break
;
if
(
!
cause
)
break
;
if
(
cause
&
MV88E1XXX_INTR_LINK_CHNG
)
{
(
void
)
simple_mdio_read
(
cphy
,
...
...
@@ -360,7 +361,8 @@ static struct cphy *mv88e1xxx_phy_create(adapter_t *adapter, int phy_addr,
{
struct
cphy
*
cphy
=
kzalloc
(
sizeof
(
*
cphy
),
GFP_KERNEL
);
if
(
!
cphy
)
return
NULL
;
if
(
!
cphy
)
return
NULL
;
cphy_init
(
cphy
,
adapter
,
phy_addr
,
&
mv88e1xxx_ops
,
mdio_ops
);
...
...
drivers/net/chelsio/subr.c
浏览文件 @
c697f83e
...
...
@@ -612,7 +612,8 @@ int t1_elmer0_ext_intr_handler(adapter_t *adapter)
int
i
,
port_bit
;
for_each_port
(
adapter
,
i
)
{
port_bit
=
i
+
1
;
if
(
!
(
cause
&
(
1
<<
port_bit
)))
continue
;
if
(
!
(
cause
&
(
1
<<
port_bit
)))
continue
;
phy
=
adapter
->
port
[
i
].
phy
;
phy_cause
=
phy
->
ops
->
interrupt_handler
(
phy
);
...
...
@@ -688,7 +689,8 @@ int t1_elmer0_ext_intr_handler(adapter_t *adapter)
for_each_port
(
adapter
,
i
)
{
port_bit
=
i
?
i
+
1
:
0
;
if
(
!
(
cause
&
(
1
<<
port_bit
)))
continue
;
if
(
!
(
cause
&
(
1
<<
port_bit
)))
continue
;
phy
=
adapter
->
port
[
i
].
phy
;
phy_cause
=
phy
->
ops
->
interrupt_handler
(
phy
);
...
...
drivers/net/chelsio/vsc7326.c
浏览文件 @
c697f83e
...
...
@@ -686,7 +686,8 @@ static struct cmac *vsc7326_mac_create(adapter_t *adapter, int index)
int
i
;
mac
=
kzalloc
(
sizeof
(
*
mac
)
+
sizeof
(
cmac_instance
),
GFP_KERNEL
);
if
(
!
mac
)
return
NULL
;
if
(
!
mac
)
return
NULL
;
mac
->
ops
=
&
vsc7326_ops
;
mac
->
instance
=
(
cmac_instance
*
)(
mac
+
1
);
...
...
drivers/net/chelsio/vsc8244.c
浏览文件 @
c697f83e
...
...
@@ -347,7 +347,8 @@ static struct cphy* vsc8244_phy_create(adapter_t *adapter, int phy_addr, struct
{
struct
cphy
*
cphy
=
kzalloc
(
sizeof
(
*
cphy
),
GFP_KERNEL
);
if
(
!
cphy
)
return
NULL
;
if
(
!
cphy
)
return
NULL
;
cphy_init
(
cphy
,
adapter
,
phy_addr
,
&
vsc8244_ops
,
mdio_ops
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录