tty_port.c (b300fb26c59a749bf49559932fa8a85eb916b5a7) tty_port.c (5d420399073770134d2b03e004b2c0201c7fa26f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Tty port functions
4 */
5
6#include <linux/types.h>
7#include <linux/errno.h>
8#include <linux/tty.h>

--- 449 unchanged lines hidden (view full) ---

458 *
459 * Wrapper for the DTR/RTS raise logic. For the moment this is used to hide
460 * some internal details. This will eventually become entirely internal to the
461 * tty port.
462 */
463void tty_port_raise_dtr_rts(struct tty_port *port)
464{
465 if (port->ops->dtr_rts)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Tty port functions
4 */
5
6#include <linux/types.h>
7#include <linux/errno.h>
8#include <linux/tty.h>

--- 449 unchanged lines hidden (view full) ---

458 *
459 * Wrapper for the DTR/RTS raise logic. For the moment this is used to hide
460 * some internal details. This will eventually become entirely internal to the
461 * tty port.
462 */
463void tty_port_raise_dtr_rts(struct tty_port *port)
464{
465 if (port->ops->dtr_rts)
466 port->ops->dtr_rts(port, 1);
466 port->ops->dtr_rts(port, true);
467}
468EXPORT_SYMBOL(tty_port_raise_dtr_rts);
469
470/**
471 * tty_port_lower_dtr_rts - Lower DTR/RTS
472 * @port: tty port
473 *
474 * Wrapper for the DTR/RTS raise logic. For the moment this is used to hide
475 * some internal details. This will eventually become entirely internal to the
476 * tty port.
477 */
478void tty_port_lower_dtr_rts(struct tty_port *port)
479{
480 if (port->ops->dtr_rts)
467}
468EXPORT_SYMBOL(tty_port_raise_dtr_rts);
469
470/**
471 * tty_port_lower_dtr_rts - Lower DTR/RTS
472 * @port: tty port
473 *
474 * Wrapper for the DTR/RTS raise logic. For the moment this is used to hide
475 * some internal details. This will eventually become entirely internal to the
476 * tty port.
477 */
478void tty_port_lower_dtr_rts(struct tty_port *port)
479{
480 if (port->ops->dtr_rts)
481 port->ops->dtr_rts(port, 0);
481 port->ops->dtr_rts(port, false);
482}
483EXPORT_SYMBOL(tty_port_lower_dtr_rts);
484
485/**
486 * tty_port_block_til_ready - Waiting logic for tty open
487 * @port: the tty port being opened
488 * @tty: the tty device being bound
489 * @filp: the file pointer of the opener or %NULL

--- 307 unchanged lines hidden ---
482}
483EXPORT_SYMBOL(tty_port_lower_dtr_rts);
484
485/**
486 * tty_port_block_til_ready - Waiting logic for tty open
487 * @port: the tty port being opened
488 * @tty: the tty device being bound
489 * @filp: the file pointer of the opener or %NULL

--- 307 unchanged lines hidden ---