Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4cb79fb4
Commit
4cb79fb4
authored
Mar 12, 2004
by
Randy Dunlap
Committed by
Jeff Garzik
Mar 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] use netdev_priv() in fusion/mptlan
parent
dd50d55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
drivers/message/fusion/mptlan.c
drivers/message/fusion/mptlan.c
+10
-10
No files found.
drivers/message/fusion/mptlan.c
View file @
4cb79fb4
...
...
@@ -337,7 +337,7 @@ static int
mpt_lan_ioc_reset
(
MPT_ADAPTER
*
ioc
,
int
reset_phase
)
{
struct
net_device
*
dev
=
mpt_landev
[
ioc
->
id
];
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
dlprintk
((
KERN_INFO
MYNAM
": IOC %s_reset routed to LAN driver!
\n
"
,
reset_phase
==
MPT_IOC_SETUP_RESET
?
"setup"
:
(
...
...
@@ -409,7 +409,7 @@ mpt_lan_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply)
static
int
mpt_lan_open
(
struct
net_device
*
dev
)
{
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
int
i
;
if
(
mpt_lan_reset
(
dev
)
!=
0
)
{
...
...
@@ -500,7 +500,7 @@ mpt_lan_reset(struct net_device *dev)
{
MPT_FRAME_HDR
*
mf
;
LANResetRequest_t
*
pResetReq
;
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
mf
=
mpt_get_msg_frame
(
LanCtx
,
priv
->
mpt_dev
->
id
);
...
...
@@ -529,7 +529,7 @@ mpt_lan_reset(struct net_device *dev)
static
int
mpt_lan_close
(
struct
net_device
*
dev
)
{
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
MPT_ADAPTER
*
mpt_dev
=
priv
->
mpt_dev
;
unsigned
int
timeout
;
int
i
;
...
...
@@ -590,7 +590,7 @@ mpt_lan_close(struct net_device *dev)
static
struct
net_device_stats
*
mpt_lan_get_stats
(
struct
net_device
*
dev
)
{
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
return
(
struct
net_device_stats
*
)
&
priv
->
stats
;
}
...
...
@@ -610,7 +610,7 @@ mpt_lan_change_mtu(struct net_device *dev, int new_mtu)
static
void
mpt_lan_tx_timeout
(
struct
net_device
*
dev
)
{
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
MPT_ADAPTER
*
mpt_dev
=
priv
->
mpt_dev
;
if
(
mpt_dev
->
active
)
{
...
...
@@ -624,7 +624,7 @@ mpt_lan_tx_timeout(struct net_device *dev)
static
int
mpt_lan_send_turbo
(
struct
net_device
*
dev
,
u32
tmsg
)
{
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
MPT_ADAPTER
*
mpt_dev
=
priv
->
mpt_dev
;
struct
sk_buff
*
sent
;
unsigned
long
flags
;
...
...
@@ -657,7 +657,7 @@ mpt_lan_send_turbo(struct net_device *dev, u32 tmsg)
static
int
mpt_lan_send_reply
(
struct
net_device
*
dev
,
LANSendReply_t
*
pSendRep
)
{
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
MPT_ADAPTER
*
mpt_dev
=
priv
->
mpt_dev
;
struct
sk_buff
*
sent
;
unsigned
long
flags
;
...
...
@@ -730,7 +730,7 @@ mpt_lan_send_reply(struct net_device *dev, LANSendReply_t *pSendRep)
static
int
mpt_lan_sdu_send
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
struct
mpt_lan_priv
*
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
struct
mpt_lan_priv
*
priv
=
netdev_priv
(
dev
)
;
MPT_ADAPTER
*
mpt_dev
=
priv
->
mpt_dev
;
MPT_FRAME_HDR
*
mf
;
LANSendRequest_t
*
pSendReq
;
...
...
@@ -1372,7 +1372,7 @@ mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum)
dev
->
mtu
=
MPT_LAN_MTU
;
priv
=
(
struct
mpt_lan_priv
*
)
dev
->
priv
;
priv
=
netdev_priv
(
dev
)
;
priv
->
mpt_dev
=
mpt_dev
;
priv
->
pnum
=
pnum
;
...
...
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