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
nexedi
linux
Commits
5494c22b
Commit
5494c22b
authored
Apr 19, 2006
by
Roland Dreier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IB/ipath: Fix whitespace
Signed-off-by:
Roland Dreier
<
rolandd@cisco.com
>
parent
ac2ae4c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
57 deletions
+57
-57
drivers/infiniband/hw/ipath/ipath_intr.c
drivers/infiniband/hw/ipath/ipath_intr.c
+2
-2
drivers/infiniband/hw/ipath/ipath_verbs.c
drivers/infiniband/hw/ipath/ipath_verbs.c
+55
-55
No files found.
drivers/infiniband/hw/ipath/ipath_intr.c
View file @
5494c22b
...
@@ -172,8 +172,8 @@ static void handle_e_ibstatuschanged(struct ipath_devdata *dd,
...
@@ -172,8 +172,8 @@ static void handle_e_ibstatuschanged(struct ipath_devdata *dd,
"was %s
\n
"
,
dd
->
ipath_unit
,
"was %s
\n
"
,
dd
->
ipath_unit
,
ib_linkstate
(
lstate
),
ib_linkstate
(
lstate
),
ib_linkstate
((
unsigned
)
ib_linkstate
((
unsigned
)
dd
->
ipath_lastibcstat
dd
->
ipath_lastibcstat
&
IPATH_IBSTATE_MASK
));
&
IPATH_IBSTATE_MASK
));
}
}
else
{
else
{
lstate
=
dd
->
ipath_lastibcstat
&
IPATH_IBSTATE_MASK
;
lstate
=
dd
->
ipath_lastibcstat
&
IPATH_IBSTATE_MASK
;
...
...
drivers/infiniband/hw/ipath/ipath_verbs.c
View file @
5494c22b
...
@@ -1125,26 +1125,26 @@ static void __exit ipath_verbs_cleanup(void)
...
@@ -1125,26 +1125,26 @@ static void __exit ipath_verbs_cleanup(void)
static
ssize_t
show_rev
(
struct
class_device
*
cdev
,
char
*
buf
)
static
ssize_t
show_rev
(
struct
class_device
*
cdev
,
char
*
buf
)
{
{
struct
ipath_ibdev
*
dev
=
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
vendor
,
boardrev
,
majrev
,
minrev
;
int
vendor
,
boardrev
,
majrev
,
minrev
;
ipath_layer_query_device
(
dev
->
dd
,
&
vendor
,
&
boardrev
,
ipath_layer_query_device
(
dev
->
dd
,
&
vendor
,
&
boardrev
,
&
majrev
,
&
minrev
);
&
majrev
,
&
minrev
);
return
sprintf
(
buf
,
"%d.%d
\n
"
,
majrev
,
minrev
);
return
sprintf
(
buf
,
"%d.%d
\n
"
,
majrev
,
minrev
);
}
}
static
ssize_t
show_hca
(
struct
class_device
*
cdev
,
char
*
buf
)
static
ssize_t
show_hca
(
struct
class_device
*
cdev
,
char
*
buf
)
{
{
struct
ipath_ibdev
*
dev
=
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
ret
;
int
ret
;
ret
=
ipath_layer_get_boardname
(
dev
->
dd
,
buf
,
128
);
ret
=
ipath_layer_get_boardname
(
dev
->
dd
,
buf
,
128
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
bail
;
goto
bail
;
strcat
(
buf
,
"
\n
"
);
strcat
(
buf
,
"
\n
"
);
ret
=
strlen
(
buf
);
ret
=
strlen
(
buf
);
bail:
bail:
return
ret
;
return
ret
;
...
@@ -1152,40 +1152,40 @@ static ssize_t show_hca(struct class_device *cdev, char *buf)
...
@@ -1152,40 +1152,40 @@ static ssize_t show_hca(struct class_device *cdev, char *buf)
static
ssize_t
show_stats
(
struct
class_device
*
cdev
,
char
*
buf
)
static
ssize_t
show_stats
(
struct
class_device
*
cdev
,
char
*
buf
)
{
{
struct
ipath_ibdev
*
dev
=
struct
ipath_ibdev
*
dev
=
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
container_of
(
cdev
,
struct
ipath_ibdev
,
ibdev
.
class_dev
);
int
i
;
int
i
;
int
len
;
int
len
;
len
=
sprintf
(
buf
,
len
=
sprintf
(
buf
,
"RC resends %d
\n
"
"RC resends %d
\n
"
"RC QACKs %d
\n
"
"RC QACKs %d
\n
"
"RC ACKs %d
\n
"
"RC ACKs %d
\n
"
"RC SEQ NAKs %d
\n
"
"RC SEQ NAKs %d
\n
"
"RC RDMA seq %d
\n
"
"RC RDMA seq %d
\n
"
"RC RNR NAKs %d
\n
"
"RC RNR NAKs %d
\n
"
"RC OTH NAKs %d
\n
"
"RC OTH NAKs %d
\n
"
"RC timeouts %d
\n
"
"RC timeouts %d
\n
"
"RC RDMA dup %d
\n
"
"RC RDMA dup %d
\n
"
"piobuf wait %d
\n
"
"piobuf wait %d
\n
"
"no piobuf %d
\n
"
"no piobuf %d
\n
"
"PKT drops %d
\n
"
"PKT drops %d
\n
"
"WQE errs %d
\n
"
,
"WQE errs %d
\n
"
,
dev
->
n_rc_resends
,
dev
->
n_rc_qacks
,
dev
->
n_rc_acks
,
dev
->
n_rc_resends
,
dev
->
n_rc_qacks
,
dev
->
n_rc_acks
,
dev
->
n_seq_naks
,
dev
->
n_rdma_seq
,
dev
->
n_rnr_naks
,
dev
->
n_seq_naks
,
dev
->
n_rdma_seq
,
dev
->
n_rnr_naks
,
dev
->
n_other_naks
,
dev
->
n_timeouts
,
dev
->
n_other_naks
,
dev
->
n_timeouts
,
dev
->
n_rdma_dup_busy
,
dev
->
n_piowait
,
dev
->
n_rdma_dup_busy
,
dev
->
n_piowait
,
dev
->
n_no_piobuf
,
dev
->
n_pkt_drops
,
dev
->
n_wqe_errs
);
dev
->
n_no_piobuf
,
dev
->
n_pkt_drops
,
dev
->
n_wqe_errs
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
dev
->
opstats
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
dev
->
opstats
);
i
++
)
{
const
struct
ipath_opcode_stats
*
si
=
&
dev
->
opstats
[
i
];
const
struct
ipath_opcode_stats
*
si
=
&
dev
->
opstats
[
i
];
if
(
!
si
->
n_packets
&&
!
si
->
n_bytes
)
if
(
!
si
->
n_packets
&&
!
si
->
n_bytes
)
continue
;
continue
;
len
+=
sprintf
(
buf
+
len
,
"%02x %llu/%llu
\n
"
,
i
,
len
+=
sprintf
(
buf
+
len
,
"%02x %llu/%llu
\n
"
,
i
,
(
unsigned
long
long
)
si
->
n_packets
,
(
unsigned
long
long
)
si
->
n_packets
,
(
unsigned
long
long
)
si
->
n_bytes
);
(
unsigned
long
long
)
si
->
n_bytes
);
}
}
return
len
;
return
len
;
}
}
static
CLASS_DEVICE_ATTR
(
hw_rev
,
S_IRUGO
,
show_rev
,
NULL
);
static
CLASS_DEVICE_ATTR
(
hw_rev
,
S_IRUGO
,
show_rev
,
NULL
);
...
@@ -1194,25 +1194,25 @@ static CLASS_DEVICE_ATTR(board_id, S_IRUGO, show_hca, NULL);
...
@@ -1194,25 +1194,25 @@ static CLASS_DEVICE_ATTR(board_id, S_IRUGO, show_hca, NULL);
static
CLASS_DEVICE_ATTR
(
stats
,
S_IRUGO
,
show_stats
,
NULL
);
static
CLASS_DEVICE_ATTR
(
stats
,
S_IRUGO
,
show_stats
,
NULL
);
static
struct
class_device_attribute
*
ipath_class_attributes
[]
=
{
static
struct
class_device_attribute
*
ipath_class_attributes
[]
=
{
&
class_device_attr_hw_rev
,
&
class_device_attr_hw_rev
,
&
class_device_attr_hca_type
,
&
class_device_attr_hca_type
,
&
class_device_attr_board_id
,
&
class_device_attr_board_id
,
&
class_device_attr_stats
&
class_device_attr_stats
};
};
static
int
ipath_verbs_register_sysfs
(
struct
ib_device
*
dev
)
static
int
ipath_verbs_register_sysfs
(
struct
ib_device
*
dev
)
{
{
int
i
;
int
i
;
int
ret
;
int
ret
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
ipath_class_attributes
);
++
i
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
ipath_class_attributes
);
++
i
)
if
(
class_device_create_file
(
&
dev
->
class_dev
,
if
(
class_device_create_file
(
&
dev
->
class_dev
,
ipath_class_attributes
[
i
]))
{
ipath_class_attributes
[
i
]))
{
ret
=
1
;
ret
=
1
;
goto
bail
;
goto
bail
;
}
}
ret
=
0
;
ret
=
0
;
bail:
bail:
return
ret
;
return
ret
;
...
...
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