tty.c (69851e4ab8feeb369119a44ddca430c0ee15f0d8) | tty.c (95713967ba52389f7cea75704d0cf048080ec218) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * IPWireless 3G PCMCIA Network Driver 4 * 5 * Original code 6 * by Stephen Blackheath <stephen@blacksapphire.com>, 7 * Ben Martel <benm@symmetric.co.nz> 8 * --- 172 unchanged lines hidden (view full) --- 181 182 /* 183 * Packet has been sent, so we subtract the number of bytes from our 184 * tally of outstanding TX bytes. 185 */ 186 tty->tx_bytes_queued -= packet_length; 187} 188 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * IPWireless 3G PCMCIA Network Driver 4 * 5 * Original code 6 * by Stephen Blackheath <stephen@blacksapphire.com>, 7 * Ben Martel <benm@symmetric.co.nz> 8 * --- 172 unchanged lines hidden (view full) --- 181 182 /* 183 * Packet has been sent, so we subtract the number of bytes from our 184 * tally of outstanding TX bytes. 185 */ 186 tty->tx_bytes_queued -= packet_length; 187} 188 |
189static int ipw_write(struct tty_struct *linux_tty, const u8 *buf, int count) | 189static ssize_t ipw_write(struct tty_struct *linux_tty, const u8 *buf, 190 size_t count) |
190{ 191 struct ipw_tty *tty = linux_tty->driver_data; 192 int room, ret; 193 194 if (!tty) 195 return -ENODEV; 196 197 mutex_lock(&tty->ipw_tty_mutex); --- 429 unchanged lines hidden --- | 191{ 192 struct ipw_tty *tty = linux_tty->driver_data; 193 int room, ret; 194 195 if (!tty) 196 return -ENODEV; 197 198 mutex_lock(&tty->ipw_tty_mutex); --- 429 unchanged lines hidden --- |