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
4fd5a114
Commit
4fd5a114
authored
May 20, 2003
by
Duncan Sands
Committed by
Greg Kroah-Hartman
May 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB speedtouch: send path micro optimizations
parent
157ce260
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
drivers/usb/misc/speedtch.c
drivers/usb/misc/speedtch.c
+6
-8
No files found.
drivers/usb/misc/speedtch.c
View file @
4fd5a114
...
...
@@ -167,8 +167,8 @@ struct udsl_control {
struct
atm_skb_data
atm_data
;
unsigned
int
num_cells
;
unsigned
int
num_entire
;
unsigned
char
cell_header
[
ATM_CELL_HEADER
];
unsigned
int
pdu_padding
;
unsigned
char
cell_header
[
ATM_CELL_HEADER
];
unsigned
char
aal5_trailer
[
ATM_AAL5_TRAILER
];
};
...
...
@@ -483,8 +483,7 @@ static unsigned int udsl_write_cells (unsigned int howmany, struct sk_buff *skb,
memset
(
target
,
0
,
ATM_CELL_PAYLOAD
-
ATM_AAL5_TRAILER
);
target
+=
ATM_CELL_PAYLOAD
-
ATM_AAL5_TRAILER
;
if
(
--
ctrl
->
num_cells
)
BUG
();
BUG_ON
(
--
ctrl
->
num_cells
);
}
memcpy
(
target
,
ctrl
->
aal5_trailer
,
ATM_AAL5_TRAILER
);
...
...
@@ -674,11 +673,11 @@ static void udsl_complete_send (struct urb *urb, struct pt_regs *regs)
static
void
udsl_process_send
(
unsigned
long
data
)
{
struct
udsl_send_buffer
*
buf
;
int
err
;
struct
udsl_instance_data
*
instance
=
(
struct
udsl_instance_data
*
)
data
;
unsigned
int
num_written
;
struct
sk_buff
*
skb
;
struct
udsl_sender
*
snd
;
int
err
;
unsigned
int
num_written
;
made_progress:
spin_lock_irq
(
&
instance
->
send_lock
);
...
...
@@ -712,16 +711,15 @@ static void udsl_process_send (unsigned long data)
list_add
(
&
snd
->
list
,
&
instance
->
spare_senders
);
spin_unlock_irq
(
&
instance
->
send_lock
);
list_add
(
&
buf
->
list
,
&
instance
->
filled_send_buffers
);
return
;
return
;
/* bail out */
}
spin_lock_irq
(
&
instance
->
send_lock
);
}
/* while */
spin_unlock_irq
(
&
instance
->
send_lock
);
if
(
!
instance
->
current_skb
&&
!
(
instance
->
current_skb
=
skb_dequeue
(
&
instance
->
sndqueue
)))
{
if
(
!
instance
->
current_skb
&&
!
(
instance
->
current_skb
=
skb_dequeue
(
&
instance
->
sndqueue
)))
return
;
/* done - no more skbs */
}
skb
=
instance
->
current_skb
;
...
...
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