mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
n_tty: Rename process_char_map to char_map
Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
20bafb3d23
commit
1bb9d56285
1 changed files with 20 additions and 23 deletions
|
@ -92,7 +92,7 @@ struct n_tty_data {
|
||||||
size_t canon_head;
|
size_t canon_head;
|
||||||
size_t echo_head;
|
size_t echo_head;
|
||||||
size_t echo_commit;
|
size_t echo_commit;
|
||||||
DECLARE_BITMAP(process_char_map, 256);
|
DECLARE_BITMAP(char_map, 256);
|
||||||
|
|
||||||
/* private to n_tty_receive_overrun (single-threaded) */
|
/* private to n_tty_receive_overrun (single-threaded) */
|
||||||
unsigned long overrun_time;
|
unsigned long overrun_time;
|
||||||
|
@ -1278,7 +1278,7 @@ static inline void n_tty_receive_char(struct tty_struct *tty, unsigned char c)
|
||||||
* handle specially, do shortcut processing to speed things
|
* handle specially, do shortcut processing to speed things
|
||||||
* up.
|
* up.
|
||||||
*/
|
*/
|
||||||
if (!test_bit(c, ldata->process_char_map) || ldata->lnext) {
|
if (!test_bit(c, ldata->char_map) || ldata->lnext) {
|
||||||
ldata->lnext = 0;
|
ldata->lnext = 0;
|
||||||
parmrk = (c == (unsigned char) '\377' && I_PARMRK(tty)) ? 1 : 0;
|
parmrk = (c == (unsigned char) '\377' && I_PARMRK(tty)) ? 1 : 0;
|
||||||
if (read_cnt(ldata) >= (N_TTY_BUF_SIZE - parmrk - 1)) {
|
if (read_cnt(ldata) >= (N_TTY_BUF_SIZE - parmrk - 1)) {
|
||||||
|
@ -1618,41 +1618,38 @@ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
|
||||||
I_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) ||
|
I_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) ||
|
||||||
I_IXON(tty) || L_ISIG(tty) || L_ECHO(tty) ||
|
I_IXON(tty) || L_ISIG(tty) || L_ECHO(tty) ||
|
||||||
I_PARMRK(tty)) {
|
I_PARMRK(tty)) {
|
||||||
bitmap_zero(ldata->process_char_map, 256);
|
bitmap_zero(ldata->char_map, 256);
|
||||||
|
|
||||||
if (I_IGNCR(tty) || I_ICRNL(tty))
|
if (I_IGNCR(tty) || I_ICRNL(tty))
|
||||||
set_bit('\r', ldata->process_char_map);
|
set_bit('\r', ldata->char_map);
|
||||||
if (I_INLCR(tty))
|
if (I_INLCR(tty))
|
||||||
set_bit('\n', ldata->process_char_map);
|
set_bit('\n', ldata->char_map);
|
||||||
|
|
||||||
if (L_ICANON(tty)) {
|
if (L_ICANON(tty)) {
|
||||||
set_bit(ERASE_CHAR(tty), ldata->process_char_map);
|
set_bit(ERASE_CHAR(tty), ldata->char_map);
|
||||||
set_bit(KILL_CHAR(tty), ldata->process_char_map);
|
set_bit(KILL_CHAR(tty), ldata->char_map);
|
||||||
set_bit(EOF_CHAR(tty), ldata->process_char_map);
|
set_bit(EOF_CHAR(tty), ldata->char_map);
|
||||||
set_bit('\n', ldata->process_char_map);
|
set_bit('\n', ldata->char_map);
|
||||||
set_bit(EOL_CHAR(tty), ldata->process_char_map);
|
set_bit(EOL_CHAR(tty), ldata->char_map);
|
||||||
if (L_IEXTEN(tty)) {
|
if (L_IEXTEN(tty)) {
|
||||||
set_bit(WERASE_CHAR(tty),
|
set_bit(WERASE_CHAR(tty), ldata->char_map);
|
||||||
ldata->process_char_map);
|
set_bit(LNEXT_CHAR(tty), ldata->char_map);
|
||||||
set_bit(LNEXT_CHAR(tty),
|
set_bit(EOL2_CHAR(tty), ldata->char_map);
|
||||||
ldata->process_char_map);
|
|
||||||
set_bit(EOL2_CHAR(tty),
|
|
||||||
ldata->process_char_map);
|
|
||||||
if (L_ECHO(tty))
|
if (L_ECHO(tty))
|
||||||
set_bit(REPRINT_CHAR(tty),
|
set_bit(REPRINT_CHAR(tty),
|
||||||
ldata->process_char_map);
|
ldata->char_map);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (I_IXON(tty)) {
|
if (I_IXON(tty)) {
|
||||||
set_bit(START_CHAR(tty), ldata->process_char_map);
|
set_bit(START_CHAR(tty), ldata->char_map);
|
||||||
set_bit(STOP_CHAR(tty), ldata->process_char_map);
|
set_bit(STOP_CHAR(tty), ldata->char_map);
|
||||||
}
|
}
|
||||||
if (L_ISIG(tty)) {
|
if (L_ISIG(tty)) {
|
||||||
set_bit(INTR_CHAR(tty), ldata->process_char_map);
|
set_bit(INTR_CHAR(tty), ldata->char_map);
|
||||||
set_bit(QUIT_CHAR(tty), ldata->process_char_map);
|
set_bit(QUIT_CHAR(tty), ldata->char_map);
|
||||||
set_bit(SUSP_CHAR(tty), ldata->process_char_map);
|
set_bit(SUSP_CHAR(tty), ldata->char_map);
|
||||||
}
|
}
|
||||||
clear_bit(__DISABLED_CHAR, ldata->process_char_map);
|
clear_bit(__DISABLED_CHAR, ldata->char_map);
|
||||||
ldata->raw = 0;
|
ldata->raw = 0;
|
||||||
ldata->real_raw = 0;
|
ldata->real_raw = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue