Home
last modified time | relevance | path

Searched full:serial (Results 1 – 25 of 4029) sorted by relevance

12345678910>>...162

/openbmc/libmctp/
H A Dserial.c26 #define pr_fmt(x) "serial: " x
33 #include "libmctp-serial.h"
149 struct mctp_binding_serial *serial = binding_to_serial(b); in mctp_binding_serial_tx() local
156 /* the length field in the header excludes serial framing in mctp_binding_serial_tx()
160 hdr = (void *)serial->txbuf; in mctp_binding_serial_tx()
172 if (len + sizeof(*hdr) + sizeof(*tlr) > sizeof(serial->txbuf)) in mctp_binding_serial_tx()
186 if (!serial->tx_fn) in mctp_binding_serial_tx()
187 return mctp_write_all(mctp_serial_write, &serial->fd, in mctp_binding_serial_tx()
188 &serial->txbuf[0], len); in mctp_binding_serial_tx()
190 return mctp_write_all(serial->tx_fn, serial->tx_fn_data, in mctp_binding_serial_tx()
[all …]
/openbmc/linux/drivers/usb/serial/
H A Dusb-serial.c3 * USB Serial Converter driver
13 * See Documentation/usb/usb-serial.rst for more information on using this
33 #include <linux/serial.h>
35 #include <linux/usb/serial.h>
40 #define DRIVER_DESC "USB Serial Driver core"
46 the MODULE_DEVICE_TABLE declarations in each serial driver
48 via modprobe, and modprobe will load usbserial because the serial
57 * Look up the serial port structure. If it is found and it hasn't been
63 struct usb_serial *serial; in usb_serial_port_get_by_minor() local
71 serial = port->serial; in usb_serial_port_get_by_minor()
[all …]
H A DKconfig3 # USB Serial device configuration
7 tristate "USB Serial Converter support"
10 Say Y here if you have a USB device that provides normal serial
11 ports, or acts like a serial device, and you want to connect it to
14 Please read <file:Documentation/usb/usb-serial.rst> for more
24 bool "USB Serial Console device support"
27 If you say Y here, it will be possible to use a USB to serial
31 terminal or printer is connected to that serial port.
41 kernel will automatically use the first USB to serial converter
47 bool "USB Generic Serial Driver"
[all …]
H A Dmos7720.c4 * Controls the Moschip 7720 usb to dual port serial converter
16 * Originally based on drivers/usb/serial/io_edgeport.c which is:
28 #include <linux/serial.h>
31 #include <linux/usb/serial.h>
36 #define DRIVER_DESC "Moschip USB Serial Driver"
55 /* This structure holds all of the local serial port information */
94 struct usb_serial *serial; /* back to containing struct */ member
108 MOS7720_THR, /* serial port regs */
125 MOS7720_SP2_REG, /* serial port 2 (7720 only) */
174 else /* serial port reg */ in get_reg_value()
[all …]
H A Dmxuport.c8 * Supports the following Moxa USB to serial converters:
19 #include <linux/serial.h>
27 #include <linux/usb/serial.h>
105 /* Definitions for serial event type */
212 static int mxuport_recv_ctrl_urb(struct usb_serial *serial, in mxuport_recv_ctrl_urb() argument
218 status = usb_control_msg(serial->dev, in mxuport_recv_ctrl_urb()
219 usb_rcvctrlpipe(serial->dev, 0), in mxuport_recv_ctrl_urb()
226 dev_err(&serial->interface->dev, in mxuport_recv_ctrl_urb()
233 dev_err(&serial->interface->dev, in mxuport_recv_ctrl_urb()
243 static int mxuport_send_ctrl_data_urb(struct usb_serial *serial, in mxuport_send_ctrl_data_urb() argument
[all …]
H A Dconsole.c3 * USB Serial Console driver
18 #include <linux/serial.h>
20 #include <linux/usb/serial.h>
33 * USB Serial console driver
35 * Much of the code here is copied from drivers/char/serial.c
36 * and implements a phony serial console in the same way that
37 * serial.c does so that in case some software queries it,
40 * Things that are different from the way the serial port code
41 * does things, is that we call the lower level usb-serial
52 * serial.c code, except that the specifier is "ttyUSB" instead
[all …]
H A Dusb_wwan.c13 This driver exists because the "normal" serial driver doesn't work too well
33 #include <linux/usb/serial.h>
34 #include <linux/serial.h>
43 struct usb_serial *serial = port->serial; in usb_wwan_send_setup() local
56 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in usb_wwan_send_setup()
58 res = usb_autopm_get_interface(serial->interface); in usb_wwan_send_setup()
62 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in usb_wwan_send_setup()
67 usb_autopm_put_interface(port->serial->interface); in usb_wwan_send_setup()
77 intfdata = usb_get_serial_data(port->serial); in usb_wwan_dtr_rts()
118 intfdata = usb_get_serial_data(port->serial); in usb_wwan_tiocmset()
[all …]
H A Dpl2303.c3 * Prolific PL2303 USB to serial adaptor driver
10 * See Documentation/usb/usb-serial.rst for more information on using this
20 #include <linux/serial.h>
26 #include <linux/usb/serial.h>
243 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument
246 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_read()
247 struct device *dev = &serial->interface->dev; in pl2303_vendor_read()
256 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in pl2303_vendor_read()
273 static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index) in pl2303_vendor_write() argument
275 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_write()
[all …]
H A Df81534.c3 * F81532/F81534 USB to Serial Ports Bridge
5 * F81532 => 2 Serial Ports
6 * F81534 => 4 Serial Ports
13 * for all serial port TX and 1 endpoint bulk-in for all serial port read in
16 * Write URB is fixed with 512bytes, per serial port used 128Bytes.
19 * Read URB is 512Bytes max, per serial port used 128Bytes.
28 #include <linux/usb/serial.h>
33 /* Serial Port register Address */
193 static int f81534_logic_to_phy_port(struct usb_serial *serial, in f81534_logic_to_phy_port() argument
197 usb_get_serial_data(port->serial); in f81534_logic_to_phy_port()
[all …]
H A Dquatech2.c3 * usb-serial driver for Quatech USB 2 devices
8 * for all serial ports.
19 #include <linux/serial.h>
21 #include <linux/usb/serial.h>
64 #define DRIVER_DESC "Quatech 2nd gen USB to Serial Driver"
134 static void qt2_release(struct usb_serial *serial) in qt2_release() argument
138 serial_priv = usb_get_serial_data(serial); in qt2_release()
211 struct usb_device *dev = port->serial->dev; in update_mctrl()
237 static int qt2_calc_num_ports(struct usb_serial *serial, in qt2_calc_num_ports() argument
244 if (d.product_id == le16_to_cpu(serial->dev->descriptor.idProduct)) in qt2_calc_num_ports()
[all …]
/openbmc/linux/drivers/net/usb/
H A Dhso.c22 * The multiplexed serial ports are using the interrupt and
60 #include <linux/serial.h>
203 on which serial port it is used on. */
230 int (*write_data) (struct hso_serial *serial);
233 * working on the serial receive buffers
290 /* Serial driver functions */
294 static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial);
295 static void hso_kick_transmit(struct hso_serial *serial);
312 static int hso_mux_serial_read(struct hso_serial *serial);
369 /* serial structures */
[all …]
/openbmc/linux/drivers/tty/serial/
H A DKconfig3 # Serial device configuration
6 menu "Serial drivers"
14 the console before standard serial driver is probed. The console is
17 source "drivers/tty/serial/8250/Kconfig"
19 comment "Non-8250 serial port support"
22 tristate "ARM AMBA PL010 serial port support"
33 bool "Support for console on AMBA serial port"
49 tristate "ARM AMBA PL011 serial port support"
60 bool "Support for console on AMBA serial port"
84 This enables the console before standard serial driver is probed.
[all …]
H A Dsh-sci.h15 SCSMR, /* Serial Mode Register */
17 SCSCR, /* Serial Control Register */
18 SCxSR, /* Serial Status Register */
26 SCSPTR, /* Serial Port Register */
28 SCPCR, /* Serial Port Control Register */
29 SCPDR, /* Serial Port Data Register */
34 SEMR, /* Serial extended mode register */
40 /* SCSMR (Serial Mode Register) */
50 /* Serial Mode Register, SCIFA/SCIFB only bits */
62 /* Serial Control Register, SCI only bits */
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A DKconfig3 # The 8250/16550 serial drivers. You shouldn't be in this list unless
8 tristate "8250/16550 and compatible serial support"
14 serial ports. The standard answer is Y. People who might say N
17 serial mouse and don't intend to use their machine's standard serial
23 non-standard serial ports, since the configuration information will
27 BTW1: If you have a mouseman serial mouse which is not recognized by
34 Most people will say Y or M here, so that they can use serial mice,
35 modems and similar devices connecting to the standard serial ports.
59 This builds standard PNP serial support. You may be able to
60 disable this feature if you only need legacy serial support.
[all …]
/openbmc/u-boot/drivers/serial/
H A DKconfig2 # Serial device configuration
5 menu "Serial drivers"
17 bool "Require a serial port for console"
18 # Running without a serial console is not supported by the
19 # non-dm serial code
23 Require a serial port for the console, and panic if none is found
24 during serial port initialization (default y). Set this to n on
25 boards which have no debug serial port whatsoever.
37 bool "Provide a serial driver"
47 bool "Provide a serial driver in SPL"
[all …]
H A Dserial.c9 #include <serial.h>
25 * serial_null() - Void registration routine of a serial driver
27 * This routine implements a void registration routine of a serial
129 * serial_register() - Register serial driver with serial driver core
130 * @dev: Pointer to the serial driver structure
132 * This function registers the serial driver supplied via @dev with
133 * serial driver core, thus making U-Boot aware of it and making it
162 * serial_initialize() - Register all compiled-in serial port drivers
164 * This function registers all serial port drivers that are compiled
165 * into the U-Boot binary with the serial core, thus making them
[all …]
/openbmc/linux/Documentation/usb/
H A Dgadget_serial.rst2 Linux Gadget Serial Driver v2.0
27 This document and the gadget serial driver itself are
36 Versions of the gadget serial driver are available for the
38 version 2.3 or later of the gadget serial driver in a 2.6
44 USB and serial devices. It also assumes you configure the Linux
56 The gadget serial driver is a Linux USB gadget driver, a USB device
61 The gadget serial driver talks over USB to either a CDC ACM driver
62 or a generic USB serial driver running on a host PC::
69 | (Linux or | Serial | and | |
79 | Linux | Serial | Driver |--------
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio-serial.c23 #include "virtio-serial.h"
28 if (!g_strcmp0(interface, "virtio-serial")) { in qvirtio_serial_get_driver()
35 fprintf(stderr, "%s not present in virtio-serial-device\n", interface); in qvirtio_serial_get_driver()
43 return qvirtio_serial_get_driver(&v_serial->serial, interface); in qvirtio_serial_device_get_driver()
51 QVirtioSerial *interface = &virtio_device->serial; in virtio_serial_device_create()
60 /* virtio-serial-pci */
67 return qvirtio_serial_get_driver(&v_serial->serial, interface); in qvirtio_serial_pci_get_driver()
74 QVirtioSerial *interface = &virtio_spci->serial; in virtio_serial_pci_create()
93 /* virtio-serial-device */ in virtio_serial_register_nodes()
95 qos_node_create_driver("virtio-serial-device", in virtio_serial_register_nodes()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-driver-hid-srws11 What: /sys/class/leds/SRWS1::<serial>::RPM1
2 What: /sys/class/leds/SRWS1::<serial>::RPM2
3 What: /sys/class/leds/SRWS1::<serial>::RPM3
4 What: /sys/class/leds/SRWS1::<serial>::RPM4
5 What: /sys/class/leds/SRWS1::<serial>::RPM5
6 What: /sys/class/leds/SRWS1::<serial>::RPM6
7 What: /sys/class/leds/SRWS1::<serial>::RPM7
8 What: /sys/class/leds/SRWS1::<serial>::RPM8
9 What: /sys/class/leds/SRWS1::<serial>::RPM9
10 What: /sys/class/leds/SRWS1::<serial>::RPM10
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dadau1372.c284 "Serial Input 0",
285 "Serial Input 1",
286 "Serial Input 2",
287 "Serial Input 3",
288 "Serial Input 4",
289 "Serial Input 5",
290 "Serial Input 6",
291 "Serial Input 7",
312 SOC_DAPM_ENUM("Serial Output 0 Capture Mux", adau1372_sout0_mux_enum);
314 SOC_DAPM_ENUM("Serial Output 1 Capture Mux", adau1372_sout1_mux_enum);
[all …]
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dserial-midi.yaml5 $id: http://devicetree.org/schemas/sound/serial-midi.yaml#
8 title: Generic Serial MIDI Interface
14 Generic MIDI interface using a serial device. This denotes that a serial device is
17 child node of a serial node.
20 parent serial device. If the standard MIDI baud of 31.25 kBaud is needed
22 configure the clocks of the parent serial device so that a requested baud of 38.4 kBaud
27 const: serial-midi
30 description: Baudrate to set the serial port to when this MIDI device is opened.
40 serial {
42 compatible = "serial-midi";
[all …]
/openbmc/linux/include/dt-bindings/pinctrl/
H A Dk210-fpioa.h31 #define K210_PCF_SPI0_SCLK 17 /* SPI0 Serial Clock */
97 #define K210_PCF_SPI1_SCLK 83 /* SPI1 Serial Clock */
100 #define K210_PCF_SPI2_SCLK 86 /* SPI2 Serial Clock */
102 #define K210_PCF_I2S0_SCLK 88 /* I2S0 Serial Clock(BCLK) */
104 #define K210_PCF_I2S0_IN_D0 90 /* I2S0 Serial Data Input 0 */
105 #define K210_PCF_I2S0_IN_D1 91 /* I2S0 Serial Data Input 1 */
106 #define K210_PCF_I2S0_IN_D2 92 /* I2S0 Serial Data Input 2 */
107 #define K210_PCF_I2S0_IN_D3 93 /* I2S0 Serial Data Input 3 */
108 #define K210_PCF_I2S0_OUT_D0 94 /* I2S0 Serial Data Output 0 */
109 #define K210_PCF_I2S0_OUT_D1 95 /* I2S0 Serial Data Output 1 */
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-pyserial_3.5.bb1 SUMMARY = "Serial Port Support for Python"
19 ${PYTHON_SITEPACKAGES_DIR}/serial/*java* \
20 ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*java* \
24 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/*osx* \
25 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*osx* \
29 ${PYTHON_SITEPACKAGES_DIR}/serial/*serialcli* \
30 ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*serialcli* \
31 ${PYTHON_SITEPACKAGES_DIR}/serial/*win32* \
32 ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*win32* \
33 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/miniterm* \
[all …]
/openbmc/u-boot/doc/
H A DREADME.iomux24 and stderr. For example: "setenv stdin serial,nc". NOTE: No spaces
31 finds acceptable, but the code has only been tested with serial and
35 stdin nc,nc,serial" will discard the second nc. iomux_doenv() is
37 shows "nc,nc,serial".
57 example, if stdin=serial,nc and stdout=serial,nc then all output
58 for serial, e.g. echos of input on serial, will appear on serial and nc.
76 work, even when stdin=stdout=stderr=serial.
78 characters) lines works fine when serial is the only device used.
81 is quite slow. Even on a sequoia cut&paste does not work on the serial
83 the ethernet interface for input. In this test case stdin=serial,nc and
[all …]
/openbmc/linux/include/linux/usb/
H A Dserial.h3 * USB Serial Converter stuff
14 #include <linux/serial.h>
20 /* USB serial flags */
26 * @serial: pointer back to the struct usb_serial owner of this port.
59 * @flags: usb serial port flags
61 * @dev: pointer to the serial device
63 * This structure is used by the usb-serial core and drivers for the specific
67 struct usb_serial *serial; member
124 * usb_serial - structure used by the usb-serial core for a device
137 * usb-serial driver is required to manage this data, the usb-serial core
[all …]

12345678910>>...162