mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-01 23:53:16 -04:00
Merge 7e2cd21e02
("Merge tag 'tty-6.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty") into tty-next
We need the tty fixes and api additions in this branch. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
commit
a12c689209
650 changed files with 5845 additions and 4213 deletions
|
@ -625,6 +625,23 @@ struct uart_state {
|
|||
/* number of characters left in xmit buffer before we ask for more */
|
||||
#define WAKEUP_CHARS 256
|
||||
|
||||
/**
|
||||
* uart_xmit_advance - Advance xmit buffer and account Tx'ed chars
|
||||
* @up: uart_port structure describing the port
|
||||
* @chars: number of characters sent
|
||||
*
|
||||
* This function advances the tail of circular xmit buffer by the number of
|
||||
* @chars transmitted and handles accounting of transmitted bytes (into
|
||||
* @up's icount.tx).
|
||||
*/
|
||||
static inline void uart_xmit_advance(struct uart_port *up, unsigned int chars)
|
||||
{
|
||||
struct circ_buf *xmit = &up->state->xmit;
|
||||
|
||||
xmit->tail = (xmit->tail + chars) & (UART_XMIT_SIZE - 1);
|
||||
up->icount.tx += chars;
|
||||
}
|
||||
|
||||
struct module;
|
||||
struct tty_driver;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue