con3270.c (dcaafbe6ee3b39f2df11a1352f85172f8ade17a5) con3270.c (95713967ba52389f7cea75704d0cf048080ec218)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * IBM/3270 Driver - tty functions.
4 *
5 * Author(s):
6 * Original 3270 Code for 2.4 written by Richard Hitt (UTS Global)
7 * Rewritten for 2.5 by Martin Schwidefsky <schwidefsky@de.ibm.com>
8 * -- Copyright IBM Corp. 2003

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

1798 tty3270_set_timer(tp, msecs_to_jiffies(100));
1799
1800 spin_unlock_irq(&tp->view.lock);
1801}
1802
1803/*
1804 * String write routine for 3270 ttys
1805 */
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * IBM/3270 Driver - tty functions.
4 *
5 * Author(s):
6 * Original 3270 Code for 2.4 written by Richard Hitt (UTS Global)
7 * Rewritten for 2.5 by Martin Schwidefsky <schwidefsky@de.ibm.com>
8 * -- Copyright IBM Corp. 2003

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

1798 tty3270_set_timer(tp, msecs_to_jiffies(100));
1799
1800 spin_unlock_irq(&tp->view.lock);
1801}
1802
1803/*
1804 * String write routine for 3270 ttys
1805 */
1806static int tty3270_write(struct tty_struct *tty, const u8 *buf, int count)
1806static ssize_t tty3270_write(struct tty_struct *tty, const u8 *buf,
1807 size_t count)
1807{
1808 struct tty3270 *tp;
1809
1810 tp = tty->driver_data;
1811 if (!tp)
1812 return 0;
1813 if (tp->char_count > 0) {
1814 tty3270_do_write(tp, tty, tp->char_buf, tp->char_count);

--- 377 unchanged lines hidden ---
1808{
1809 struct tty3270 *tp;
1810
1811 tp = tty->driver_data;
1812 if (!tp)
1813 return 0;
1814 if (tp->char_count > 0) {
1815 tty3270_do_write(tp, tty, tp->char_buf, tp->char_count);

--- 377 unchanged lines hidden ---