n_gsm.c (5d420399073770134d2b03e004b2c0201c7fa26f) | n_gsm.c (5701cb8bf50e1c723553344b3f731b308da8ea21) |
---|---|
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, bool onoff) | 3795static void gsm_dtr_rts(struct tty_port *port, bool active) |
3796{ 3797 struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port); 3798 unsigned int modem_tx = dlci->modem_tx; | 3796{ 3797 struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port); 3798 unsigned int modem_tx = dlci->modem_tx; |
3799 if (onoff) | 3799 if (active) |
3800 modem_tx |= TIOCM_DTR | TIOCM_RTS; 3801 else 3802 modem_tx &= ~(TIOCM_DTR | TIOCM_RTS); 3803 if (modem_tx != dlci->modem_tx) { 3804 dlci->modem_tx = modem_tx; 3805 gsm_modem_update(dlci, 0); 3806 } 3807} --- 374 unchanged lines hidden --- | 3800 modem_tx |= TIOCM_DTR | TIOCM_RTS; 3801 else 3802 modem_tx &= ~(TIOCM_DTR | TIOCM_RTS); 3803 if (modem_tx != dlci->modem_tx) { 3804 dlci->modem_tx = modem_tx; 3805 gsm_modem_update(dlci, 0); 3806 } 3807} --- 374 unchanged lines hidden --- |