hvsi.c (69851e4ab8feeb369119a44ddca430c0ee15f0d8) hvsi.c (95713967ba52389f7cea75704d0cf048080ec218)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2004 Hollis Blanchard <hollisb@us.ibm.com>, IBM
4 */
5
6/* Host Virtual Serial Interface (HVSI) is a protocol between the hosted OS
7 * and the service processor on IBM pSeries servers. On these servers, there
8 * are no serial ports under the OS's control, and sometimes there is no other

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

899
900static unsigned int hvsi_chars_in_buffer(struct tty_struct *tty)
901{
902 struct hvsi_struct *hp = tty->driver_data;
903
904 return hp->n_outbuf;
905}
906
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2004 Hollis Blanchard <hollisb@us.ibm.com>, IBM
4 */
5
6/* Host Virtual Serial Interface (HVSI) is a protocol between the hosted OS
7 * and the service processor on IBM pSeries servers. On these servers, there
8 * are no serial ports under the OS's control, and sometimes there is no other

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

899
900static unsigned int hvsi_chars_in_buffer(struct tty_struct *tty)
901{
902 struct hvsi_struct *hp = tty->driver_data;
903
904 return hp->n_outbuf;
905}
906
907static int hvsi_write(struct tty_struct *tty, const u8 *source, int count)
907static ssize_t hvsi_write(struct tty_struct *tty, const u8 *source,
908 size_t count)
908{
909 struct hvsi_struct *hp = tty->driver_data;
910 unsigned long flags;
911 int total = 0;
912 int origcount = count;
913
914 spin_lock_irqsave(&hp->lock, flags);
915

--- 308 unchanged lines hidden ---
909{
910 struct hvsi_struct *hp = tty->driver_data;
911 unsigned long flags;
912 int total = 0;
913 int origcount = count;
914
915 spin_lock_irqsave(&hp->lock, flags);
916

--- 308 unchanged lines hidden ---