| /linux/drivers/usb/serial/ |
| H A D | usb-serial.c | 3 * USB Serial Converter driver 13 * See Documentation/usb/usb-serial.rst for more information on using this 30 #include <linux/serial.h> 32 #include <linux/usb/serial.h> 37 #define DRIVER_DESC "USB Serial Driver core" 43 the MODULE_DEVICE_TABLE declarations in each serial driver 45 via modprobe, and modprobe will load usbserial because the serial 54 * Look up the serial port structure. If it is found and it hasn't been 60 struct usb_serial *serial; in usb_serial_port_get_by_minor() local 68 serial = port->serial; in usb_serial_port_get_by_minor() [all …]
|
| H A D | Kconfig | 3 # 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 D | mxuport.c | 8 * Supports the following Moxa USB to serial converters: 29 #include <linux/serial.h> 35 #include <linux/usb/serial.h> 161 /* Definitions for serial event type */ 314 static int mxuport_recv_ctrl_urb(struct usb_serial *serial, 320 status = usb_control_msg(serial->dev, in mxuport_process_read_urb_data() 321 usb_rcvctrlpipe(serial->dev, 0), in mxuport_process_read_urb_data() 328 dev_err(&serial->interface->dev, in mxuport_process_read_urb_data() 335 dev_err(&serial->interface->dev, in mxuport_msr_event() 345 static int mxuport_send_ctrl_data_urb(struct usb_serial *serial, in mxuport_msr_event() 210 mxuport_recv_ctrl_urb(struct usb_serial * serial,u8 request,u16 value,u16 index,u8 * data,size_t size) mxuport_recv_ctrl_urb() argument 241 mxuport_send_ctrl_data_urb(struct usb_serial * serial,u8 request,u16 value,u16 index,u8 * data,size_t size) mxuport_send_ctrl_data_urb() argument 266 mxuport_send_ctrl_urb(struct usb_serial * serial,u8 request,u16 value,u16 index) mxuport_send_ctrl_urb() argument 285 struct usb_serial *serial = port->serial; mxuport_throttle() local 304 struct usb_serial *serial = port->serial; mxuport_unthrottle() local 464 struct usb_serial *serial = port->serial; mxuport_process_read_urb_demux_data() local 511 struct usb_serial *serial = port->serial; mxuport_process_read_urb_demux_event() local 555 struct usb_serial *serial = port->serial; mxuport_process_read_urb() local 570 struct usb_serial *serial = port->serial; mxuport_tx_empty() local 598 struct usb_serial *serial = port->serial; mxuport_set_mcr() local 614 struct usb_serial *serial = port->serial; mxuport_set_dtr() local 636 struct usb_serial *serial = port->serial; mxuport_set_rts() local 763 mxuport_set_termios_flow(struct tty_struct * tty,const struct ktermios * old_termios,struct usb_serial_port * port,struct usb_serial * serial) mxuport_set_termios_flow() argument 837 struct usb_serial *serial = port->serial; mxuport_set_termios() local 936 mxuport_calc_num_ports(struct usb_serial * serial,struct usb_serial_endpoints * epds) mxuport_calc_num_ports() argument 974 mxuport_get_fw_version(struct usb_serial * serial,u32 * version) mxuport_get_fw_version() argument 999 mxuport_download_fw(struct usb_serial * serial,const struct firmware * fw_p) mxuport_download_fw() argument 1047 mxuport_probe(struct usb_serial * serial,const struct usb_device_id * id) mxuport_probe() argument 1127 struct usb_serial *serial = port->serial; mxuport_port_probe() local 1160 mxuport_attach(struct usb_serial * serial) mxuport_attach() argument 1186 mxuport_release(struct usb_serial * serial) mxuport_release() argument 1198 struct usb_serial *serial = port->serial; mxuport_open() local 1230 struct usb_serial *serial = port->serial; mxuport_close() local 1243 struct usb_serial *serial = port->serial; mxuport_break_ctl() local 1258 mxuport_resume(struct usb_serial * serial) mxuport_resume() argument [all...] |
| H A D | console.c | 3 * 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 D | quatech2.c | 3 * usb-serial driver for Quatech USB 2 devices 8 * for all serial ports. 18 #include <linux/serial.h> 20 #include <linux/usb/serial.h> 63 #define DRIVER_DESC "Quatech 2nd gen USB to Serial Driver" 133 static void qt2_release(struct usb_serial *serial) in qt2_release() argument 137 serial_priv = usb_get_serial_data(serial); in qt2_release() 210 struct usb_device *dev = port->serial->dev; in update_mctrl() 236 static int qt2_calc_num_ports(struct usb_serial *serial, in qt2_calc_num_ports() argument 243 if (d.product_id == le16_to_cpu(serial->dev->descriptor.idProduct)) in qt2_calc_num_ports() [all …]
|
| H A D | io_ti.c | 3 * Edgeport USB Serial Converter driver 25 #include <linux/serial.h> 31 #include <linux/usb/serial.h> 38 #define DRIVER_DESC "Edgeport USB Serial Driver" 120 struct usb_serial *serial; member 226 static int do_download_mode(struct edgeport_serial *serial, 228 static int do_boot_mode(struct edgeport_serial *serial, 291 return ti_vread_sync(port->serial->dev, command, value, in read_port_cmd() 299 return ti_vsend_sync(port->serial->dev, command, value, in send_port_cmd() 379 static int read_boot_mem(struct edgeport_serial *serial, in read_boot_mem() argument [all …]
|
| H A D | sierra.c | 30 #include <linux/usb/serial.h> 84 static int sierra_calc_num_ports(struct usb_serial *serial, in sierra_calc_num_ports() argument 90 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_calc_num_ports() 91 numendpoints = serial->interface->cur_altsetting->desc.bNumEndpoints; in sierra_calc_num_ports() 118 static u8 sierra_interface_num(struct usb_serial *serial) in sierra_interface_num() argument 120 return serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_interface_num() 123 static int sierra_probe(struct usb_serial *serial, in sierra_probe() argument 131 udev = serial->dev; in sierra_probe() 132 ifnum = sierra_interface_num(serial); in sierra_probe() 138 if (serial in sierra_probe() 290 struct usb_serial *serial = port->serial; sierra_send_setup() local 420 struct usb_serial *serial = port->serial; sierra_write() local 565 struct usb_serial *serial = port->serial; sierra_instat_callback() local 697 sierra_setup_urb(struct usb_serial * serial,int endpoint,int dir,void * ctx,int len,gfp_t mem_flags,usb_complete_t callback) sierra_setup_urb() argument 729 struct usb_serial *serial = port->serial; sierra_close() local 772 struct usb_serial *serial = port->serial; sierra_open() local 827 sierra_startup(struct usb_serial * serial) sierra_startup() argument 849 sierra_release(struct usb_serial * serial) sierra_release() argument 859 struct usb_serial *serial = port->serial; sierra_port_probe() local 913 stop_read_write_urbs(struct usb_serial * serial) stop_read_write_urbs() argument 930 sierra_suspend(struct usb_serial * serial,pm_message_t message) sierra_suspend() argument 989 sierra_resume(struct usb_serial * serial) sierra_resume() argument [all...] |
| H A D | cp210x.c | 3 * 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 */ 253 { USB_DEVICE(0x2626, 0xEA60) }, /* Aruba Networks 7xxx USB Serial Console */ [all …]
|
| H A D | bus.c | 3 * USB Serial Converter Bus specific functions 14 #include <linux/usb/serial.h> 26 if (driver == port->serial->type) in usb_serial_device_match() 41 retval = usb_autopm_get_interface(port->serial->interface); in usb_serial_device_probe() 45 driver = port->serial->type; in usb_serial_device_probe() 60 usb_autopm_put_interface(port->serial->interface); in usb_serial_device_probe() 62 dev_info(&port->serial->dev->dev, in usb_serial_device_probe() 72 usb_autopm_put_interface(port->serial->interface); in usb_serial_device_probe() 90 autopm_err = usb_autopm_get_interface(port->serial->interface); in usb_serial_device_remove() 95 driver = port->serial->type; in usb_serial_device_remove() [all …]
|
| /linux/drivers/net/usb/ |
| H A D | hso.c | 22 * 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); 310 static int hso_mux_serial_read(struct hso_serial *serial); 366 /* serial structures */ [all …]
|
| /linux/Documentation/usb/ |
| H A D | gadget_serial.rst | 2 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 …]
|
| H A D | usb-serial.rst | 2 USB serial 8 The USB serial driver currently supports a number of different USB to 9 serial converter products, as well as some devices that use a serial 19 Currently the driver can handle up to 256 different serial interfaces at 77 (this is usually /dev/ttyUSB1 if you do not have any other usb-serial 112 The driver presents a serial interface (usually on /dev/ttyUSB0) over 147 Toshiba's $350 serial cable for flashing!! :D 154 Keyspan PDA Serial Adapter 157 Single port DB-9 serial adapter, pushed as a PDA adapter for iMacs (mostly 160 This driver also works for the Xircom/Entrega single port serial adapter. [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | adau1372.c | 284 "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 Outpu [all...] |
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-hid-srws1 | 1 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 D | serial-midi.yaml | 5 $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 D | k210-fpioa.h | 31 #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 D | serial.h | 3 * USB Serial Converter stuff 14 #include <linux/serial.h> 21 /* USB serial flags */ 27 * @serial: pointer back to the struct usb_serial owner of this port. 60 * @flags: usb serial port flags 62 * @dev: pointer to the serial device 64 * This structure is used by the usb-serial core and drivers for the specific 68 struct usb_serial *serial; member 125 * usb_serial - structure used by the usb-serial core for a device 138 * usb-serial drive 165 usb_get_serial_data(struct usb_serial * serial) usb_get_serial_data() argument 170 usb_set_serial_data(struct usb_serial * serial,void * data) usb_set_serial_data() argument 334 usb_serial_console_disconnect(struct usb_serial * serial) usb_serial_console_disconnect() argument [all...] |
| /linux/Documentation/admin-guide/ |
| H A D | serial-console.rst | 3 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/Documentation/devicetree/bindings/soc/qcom/ |
| H A D | qcom,geni-se.yaml | 7 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. 73 description: GENI serial engine based SPI controller. SPI in master mode 81 description: GENI serial engine based I2C controller. 84 "serial@[0-9a-f]+$": 86 description: GENI Serial Engine based UART Controller. 87 $ref: /schemas/serial/qcom,serial-geni-qcom.yaml# [all …]
|
| /linux/include/trace/events/ |
| H A D | rxrpc.h | 893 __entry->hdr.serial, __entry->hdr.seq, 1105 rxrpc_serial_t serial, u8 flags), 1107 TP_ARGS(call, seq, serial, flags), 1112 __field(rxrpc_serial_t, serial) 1119 __entry->serial = serial; 1125 __entry->serial, 1137 __field(rxrpc_serial_t, serial) 1148 __entry->serial = sp->hdr.serial; [all...] |
| /linux/drivers/net/mctp/ |
| H A D | Kconfig | 7 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/arch/sh/include/mach-common/mach/ |
| H A D | highlander.h | 38 #define PA_SCSMR0 (PA_BCR+0x0400) /* SCIF0 Serial mode control */ 40 #define PA_SCSCR0 (PA_BCR+0x0408) /* SCIF0 Serial control */ 42 #define PA_SCFSR0 (PA_BCR+0x0410) /* SCIF0 Serial status control */ 47 #define PA_SCSPTR0 (PA_BCR+0x0424) /* SCIF0 Serial Port control */ 49 #define PA_SCRER0 (PA_BCR+0x042c) /* SCIF0 Serial Error control */ 50 #define PA_SCSMR1 (PA_BCR+0x0500) /* SCIF1 Serial mode control */ 52 #define PA_SCSCR1 (PA_BCR+0x0508) /* SCIF1 Serial control */ 54 #define PA_SCFSR1 (PA_BCR+0x0510) /* SCIF1 Serial status control */ 59 #define PA_SCSPTR1 (PA_BCR+0x0524) /* SCIF1 Serial Port control */ 61 #define PA_SCRER1 (PA_BCR+0x052c) /* SCIF1 Serial Error control */ [all …]
|
| /linux/arch/sh/kernel/cpu/sh3/ |
| H A D | Makefile | 11 obj-$(CONFIG_CPU_SUBTYPE_SH7705) += setup-sh7705.o serial-sh770x.o 12 obj-$(CONFIG_CPU_SUBTYPE_SH7706) += setup-sh770x.o serial-sh770x.o 13 obj-$(CONFIG_CPU_SUBTYPE_SH7707) += setup-sh770x.o serial-sh770x.o 14 obj-$(CONFIG_CPU_SUBTYPE_SH7708) += setup-sh770x.o serial-sh770x.o 15 obj-$(CONFIG_CPU_SUBTYPE_SH7709) += setup-sh770x.o serial-sh770x.o 16 obj-$(CONFIG_CPU_SUBTYPE_SH7710) += setup-sh7710.o serial-sh7710.o 17 obj-$(CONFIG_CPU_SUBTYPE_SH7712) += setup-sh7710.o serial-sh7710.o 18 obj-$(CONFIG_CPU_SUBTYPE_SH7720) += setup-sh7720.o serial-sh7720.o 19 obj-$(CONFIG_CPU_SUBTYPE_SH7721) += setup-sh7720.o serial-sh7720.o
|
| /linux/drivers/acpi/acpica/ |
| H A D | utresdecode.c | 165 /* Serial bus type */ 168 "/* UNKNOWN serial bus type */", 175 /* I2C serial bus access mode */ 182 /* I2C serial bus slave mode */ 189 /* SPI serial bus wire mode */ 196 /* SPI serial clock phase */ 203 /* SPI serial bus clock polarity */ 210 /* SPI serial bus device polarity */ 217 /* UART serial bus endian */ 224 /* UART serial bus bits per byte */ [all …]
|
| /linux/net/rxrpc/ |
| H A D | output.c | 122 static void rxrpc_begin_rtt_probe(struct rxrpc_call *call, rxrpc_serial_t serial, in rxrpc_begin_rtt_probe() argument 135 call->rtt_serial[rtt_slot] = serial; in rxrpc_begin_rtt_probe() 140 trace_rxrpc_rtt_tx(call, why, rtt_slot, serial); in rxrpc_begin_rtt_probe() 144 trace_rxrpc_rtt_tx(call, rxrpc_rtt_tx_no_slot, rtt_slot, serial); in rxrpc_begin_rtt_probe() 175 whdr->serial = htonl(*_ack_serial); in rxrpc_fill_out_ack() 188 ack->serial = htonl(serial_to_ack); in rxrpc_fill_out_ack() 244 rxrpc_serial_t serial, enum rxrpc_propose_ack_trace why) in rxrpc_send_ack_packet() argument 265 trace_rxrpc_tx_ack(call->debug_id, serial, in rxrpc_send_ack_packet() 267 ntohl(ack->serial), ack->reason, ack->nAcks, in rxrpc_send_ack_packet() 278 trace_rxrpc_tx_fail(call->debug_id, serial, ret, in rxrpc_send_ack_packet() [all …]
|