Home
last modified time | relevance | path

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

12345678910>>...112

/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);
368 /* serial structures */
[all …]
/linux/drivers/usb/serial/
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 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 in qt2_calc_num_ports()
316 struct usb_serial *serial; qt2_open() local
386 struct usb_serial *serial; qt2_close() local
427 qt2_disconnect(struct usb_serial * serial) qt2_disconnect() argument
448 struct usb_serial *serial; qt2_process_read_urb() local
564 struct usb_serial *serial = urb->context; qt2_read_bulk_callback() local
583 qt2_setup_urbs(struct usb_serial * serial) qt2_setup_urbs() argument
614 qt2_attach(struct usb_serial * serial) qt2_attach() argument
656 struct usb_serial *serial = port->serial; qt2_port_probe() local
[all...]
H A Dark3116.c28 #include <linux/usb/serial.h>
29 #include <linux/serial.h>
36 #define DRIVER_DESC "USB ARK3116 serial/IrDA driver"
50 static int is_irda(struct usb_serial *serial) in is_irda() argument
52 struct usb_device *dev = serial->dev; in is_irda()
77 static int ark3116_write_reg(struct usb_serial *serial, in ark3116_write_reg() argument
82 result = usb_control_msg(serial->dev, in ark3116_write_reg()
83 usb_sndctrlpipe(serial->dev, 0), in ark3116_write_reg()
92 static int ark3116_read_reg(struct usb_serial *serial, in ark3116_read_reg() argument
97 result = usb_control_msg(serial->dev, in ark3116_read_reg()
[all …]
H A Dio_ti.c3 * Edgeport USB Serial Converter driver
26 #include <linux/serial.h>
33 #include <linux/usb/serial.h>
40 #define DRIVER_DESC "Edgeport USB Serial Driver"
122 struct usb_serial *serial; member
228 static int do_download_mode(struct edgeport_serial *serial,
230 static int do_boot_mode(struct edgeport_serial *serial,
293 return ti_vread_sync(port->serial->dev, command, value, in read_port_cmd()
301 return ti_vsend_sync(port->serial->dev, command, value, in send_port_cmd()
381 static int read_boot_mem(struct edgeport_serial *serial, in read_boot_mem() argument
[all …]
H A Dvisor.c9 * See Documentation/usb/usb-serial.rst for more information on using this
25 #include <linux/usb/serial.h>
38 static int visor_probe(struct usb_serial *serial,
40 static int visor_calc_num_ports(struct usb_serial *serial,
42 static int clie_5_calc_num_ports(struct usb_serial *serial,
45 static int clie_3_5_startup(struct usb_serial *serial);
46 static int palm_os_3_probe(struct usb_serial *serial,
48 static int palm_os_4_probe(struct usb_serial *serial,
259 usb_control_msg(port->serial->dev, in visor_close()
260 usb_rcvctrlpipe(port->serial->dev, 0), in visor_close()
[all …]
H A Dkeyspan_pda.c10 * See Documentation/usb/usb-serial.rst for more information on using this
25 #include <linux/usb/serial.h>
36 struct usb_serial *serial; member
49 #define XIRCOM_FAKE_ID_2 0x8025 /* "PGMFHUB" serial */
79 struct usb_serial *serial = port->serial; in keyspan_pda_get_write_room() local
83 rc = usb_control_msg_recv(serial->dev, in keyspan_pda_get_write_room()
108 struct usb_serial *serial = port->serial; in keyspan_pda_request_unthrottle() local
118 result = usb_control_msg(serial->dev, in keyspan_pda_request_unthrottle()
119 usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_request_unthrottle()
129 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n", in keyspan_pda_request_unthrottle()
[all …]
H A Dwhiteheat.c11 * See Documentation/usb/usb-serial.rst for more information on using this
28 #include <linux/serial.h>
29 #include <linux/usb/serial.h>
70 static int whiteheat_firmware_download(struct usb_serial *serial,
72 static int whiteheat_firmware_attach(struct usb_serial *serial);
74 /* function prototypes for the Connect Tech WhiteHEAT serial converter */
75 static int whiteheat_attach(struct usb_serial *serial);
76 static void whiteheat_release(struct usb_serial *serial);
147 static int start_command_port(struct usb_serial *serial);
148 static void stop_command_port(struct usb_serial *serial);
[all …]
H A Dcp210x.c3 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver
21 #include <linux/usb/serial.h>
26 #define DRIVER_DESC "Silicon Labs CP210x RS232 serial adaptor driver"
65 { USB_DEVICE(0x0908, 0x0070) }, /* Siemens SCALANCE LPE-9000 USB Serial Console */
66 { USB_DEVICE(0x0908, 0x01FF) }, /* Siemens RUGGEDCOM USB Serial Console */
83 { USB_DEVICE(0x10C4, 0x803B) }, /* Pololu USB-serial converter */
198 { USB_DEVICE(0x16D6, 0x0001) }, /* Jablotron serial interface */
220 { USB_DEVICE(0x1901, 0x0197) }, /* GE CS1000 M.2 Key E serial interface */
221 { USB_DEVICE(0x1901, 0x0198) }, /* GE CS1000 Display serial interface */
252 { USB_DEVICE(0x2626, 0xEA60) }, /* Aruba Networks 7xxx USB Serial Console */
[all …]
H A Dmetro-usb.c21 #include <linux/usb/serial.h>
58 static int metrousb_is_unidirectional_mode(struct usb_serial *serial) in metrousb_is_unidirectional_mode() argument
60 u16 product_id = le16_to_cpu(serial->dev->descriptor.idProduct); in metrousb_is_unidirectional_mode()
65 static int metrousb_calc_num_ports(struct usb_serial *serial, in metrousb_calc_num_ports() argument
68 if (metrousb_is_unidirectional_mode(serial)) { in metrousb_calc_num_ports()
70 dev_err(&serial->interface->dev, "interrupt-out endpoint missing\n"); in metrousb_calc_num_ports()
84 if (!metrousb_is_unidirectional_mode(port->serial)) in metrousb_send_unidirectional_cmd()
93 ret = usb_interrupt_msg(port->serial->dev, in metrousb_send_unidirectional_cmd()
94 usb_sndintpipe(port->serial->dev, port->interrupt_out_endpointAddress), in metrousb_send_unidirectional_cmd()
138 /* Set the data read from the usb port into the serial port buffer. */ in metrousb_read_int_callback()
[all …]
/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 …]
/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 …]
/linux/drivers/tty/serial/
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 …]
/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 …]
/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
26 - $ref: /schemas/serial/serial-peripheral-props.yaml#
30 const: serial-midi
33 description: Baudrate to set the serial port to when this MIDI device is opened.
43 serial {
[all …]
/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 …]
/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 …]
/linux/Documentation/admin-guide/
H A Dserial-console.rst3 Linux Serial Console
6 To use a serial port as console you need to compile the support into your
7 kernel - by default it is not compiled in. For PC style serial ports
10 …`Character devices --> Serial drivers --> 8250/16550 and compatible serial support --> Console on …
12 You must compile serial support into the kernel and not as a module.
24 ttySx for a serial port
26 ttyUSB0 for the first USB serial device
28 options: depend on the driver. For the serial port this
46 console and the 2nd serial port (ttyS1 or COM2) at 9600 baud.
69 tries to register graphical consoles before serial ones. It does it
[all …]
/linux/drivers/net/mctp/
H A DKconfig7 tristate "MCTP serial transport"
11 This driver provides an MCTP-over-serial interface, through a
12 serial line-discipline, as defined by DMTF specification "DSP0253 -
13 MCTP Serial Transport Binding". By attaching the ldisc to a serial
17 serial as their transport. It can also be used as an easy way to
19 data between simple virtual serial devices.
21 Say y here if you need to connect to MCTP endpoints over serial. To
22 compile as a module, use m; the module will be called mctp-serial.
25 bool "MCTP serial tests" if !KUNIT_ALL_TESTS
/linux/Documentation/devicetree/bindings/soc/qcom/
H A Dqcom,geni-se.yaml7 title: GENI Serial Engine QUP Wrapper Controller
14 is a programmable module for supporting a wide range of serial interfaces
15 like UART, SPI, I2C, I3C, etc. A single QUP module can provide upto 8 Serial
16 Interfaces, using its internal Serial Engines. The GENI Serial Engine QUP
18 representing a serial engine.
69 description: GENI serial engine based SPI controller. SPI in master mode
77 description: GENI serial engine based I2C controller.
80 "serial@[0-9a-f]+$":
82 description: GENI Serial Engine based UART Controller.
83 $ref: /schemas/serial/qcom,serial-geni-qcom.yaml#
[all …]

12345678910>>...112