n_gsm.c (b300fb26c59a749bf49559932fa8a85eb916b5a7) | n_gsm.c (5d420399073770134d2b03e004b2c0201c7fa26f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * n_gsm.c GSM 0710 tty multiplexor 4 * Copyright (c) 2009/10 Intel Corporation 5 * 6 * * THIS IS A DEVELOPMENT SNAPSHOT IT IS NOT A FINAL RELEASE * 7 * 8 * Outgoing path: --- 3778 unchanged lines hidden (view full) --- 3787 */ 3788 if (gsm->encoding == GSM_BASIC_OPT && 3789 gsm->dlci[0]->mode == DLCI_MODE_ADM && !dlci->modem_rx) 3790 return true; 3791 3792 return dlci->modem_rx & TIOCM_CD; 3793} 3794 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * n_gsm.c GSM 0710 tty multiplexor 4 * Copyright (c) 2009/10 Intel Corporation 5 * 6 * * THIS IS A DEVELOPMENT SNAPSHOT IT IS NOT A FINAL RELEASE * 7 * 8 * Outgoing path: --- 3778 unchanged lines hidden (view full) --- 3787 */ 3788 if (gsm->encoding == GSM_BASIC_OPT && 3789 gsm->dlci[0]->mode == DLCI_MODE_ADM && !dlci->modem_rx) 3790 return true; 3791 3792 return dlci->modem_rx & TIOCM_CD; 3793} 3794 |
3795static void gsm_dtr_rts(struct tty_port *port, int onoff) | 3795static void gsm_dtr_rts(struct tty_port *port, bool onoff) |
3796{ 3797 struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port); 3798 unsigned int modem_tx = dlci->modem_tx; 3799 if (onoff) 3800 modem_tx |= TIOCM_DTR | TIOCM_RTS; 3801 else 3802 modem_tx &= ~(TIOCM_DTR | TIOCM_RTS); 3803 if (modem_tx != dlci->modem_tx) { --- 378 unchanged lines hidden --- | 3796{ 3797 struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port); 3798 unsigned int modem_tx = dlci->modem_tx; 3799 if (onoff) 3800 modem_tx |= TIOCM_DTR | TIOCM_RTS; 3801 else 3802 modem_tx &= ~(TIOCM_DTR | TIOCM_RTS); 3803 if (modem_tx != dlci->modem_tx) { --- 378 unchanged lines hidden --- |