/drivers/net/usb/ |
D | hso.c | 230 int (*write_data) (struct hso_serial *serial); 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); 516 static int hso_urb_to_index(struct hso_serial *serial, struct urb *urb) in hso_urb_to_index() argument 520 for (idx = 0; idx < serial->num_rx_urbs; idx++) in hso_urb_to_index() 521 if (serial->rx_urb[idx] == urb) in hso_urb_to_index() 523 dev_err(serial->parent->dev, "hso_urb_to_index failed\n"); in hso_urb_to_index() 602 struct hso_serial *serial = NULL; in get_serial_by_index() local 607 serial = dev2ser(serial_table[index]); in get_serial_by_index() [all …]
|
/drivers/usb/serial/ |
D | usb-serial.c | 63 struct usb_serial *serial; in usb_serial_port_get_by_minor() local 71 serial = port->serial; in usb_serial_port_get_by_minor() 72 mutex_lock(&serial->disc_mutex); in usb_serial_port_get_by_minor() 73 if (serial->disconnected) { in usb_serial_port_get_by_minor() 74 mutex_unlock(&serial->disc_mutex); in usb_serial_port_get_by_minor() 77 kref_get(&serial->kref); in usb_serial_port_get_by_minor() 84 static int allocate_minors(struct usb_serial *serial, int num_ports) in allocate_minors() argument 90 dev_dbg(&serial->interface->dev, "%s %d\n", __func__, num_ports); in allocate_minors() 94 port = serial->port[i]; in allocate_minors() 102 serial->minors_reserved = 1; in allocate_minors() [all …]
|
D | mxuport.c | 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 250 status = usb_control_msg(serial->dev, in mxuport_send_ctrl_data_urb() 251 usb_sndctrlpipe(serial->dev, 0), in mxuport_send_ctrl_data_urb() 258 dev_err(&serial->interface->dev, in mxuport_send_ctrl_data_urb() 268 static int mxuport_send_ctrl_urb(struct usb_serial *serial, in mxuport_send_ctrl_urb() argument [all …]
|
D | mos7720.c | 94 struct usb_serial *serial; /* back to containing struct */ member 183 static int write_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, in write_mos_reg() argument 186 struct usb_device *usbdev = serial->dev; in write_mos_reg() 205 static int read_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, in read_mos_reg() argument 208 struct usb_device *usbdev = serial->dev; in read_mos_reg() 246 write_mos_reg(mos_parport->serial, dummy, MOS7720_ECR, in mos7715_change_mode() 290 mutex_lock(&mos_parport->serial->disc_mutex); in parport_prologue() 291 if (mos_parport->serial->disconnected) { in parport_prologue() 293 mutex_unlock(&mos_parport->serial->disc_mutex); in parport_prologue() 309 mutex_unlock(&mos_parport->serial->disc_mutex); in parport_epilogue() [all …]
|
D | ark3116.c | 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() 98 usb_rcvctrlpipe(serial->dev, 0), in ark3116_read_reg() 102 dev_err(&serial->interface->dev, in ark3116_read_reg() 126 struct usb_serial *serial = port->serial; in ark3116_port_probe() local [all …]
|
D | sierra.c | 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->interface->num_altsetting == 2) { in sierra_probe() 148 dev_dbg(&serial->dev->dev, "Ignoring interface #%d\n", ifnum); in sierra_probe() [all …]
|
D | pl2303.c | 242 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument 245 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_read() 246 struct device *dev = &serial->interface->dev; in pl2303_vendor_read() 255 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in pl2303_vendor_read() 272 static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index) in pl2303_vendor_write() argument 274 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_write() 275 struct device *dev = &serial->interface->dev; in pl2303_vendor_write() 286 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in pl2303_vendor_write() 298 static int pl2303_update_reg(struct usb_serial *serial, u8 reg, u8 mask, u8 val) in pl2303_update_reg() argument 300 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_update_reg() [all …]
|
D | io_ti.c | 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 388 status = ti_vread_sync(serial->serial->dev, in read_boot_mem() 389 UMPC_MEMORY_READ, serial->TI_I2C_Type, in read_boot_mem() 392 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem() 397 dev_dbg(&serial->serial->dev->dev, "%s - start_address = %x, length = %d\n", in read_boot_mem() [all …]
|
D | cp210x.c | 630 static u8 cp210x_interface_num(struct usb_serial *serial) in cp210x_interface_num() argument 634 cur_altsetting = serial->interface->cur_altsetting; in cp210x_interface_num() 646 struct usb_serial *serial = port->serial; in cp210x_read_reg_block() local 651 result = usb_control_msg_recv(serial->dev, 0, req, in cp210x_read_reg_block() 676 static int cp210x_read_vendor_block(struct usb_serial *serial, u8 type, u16 val, in cp210x_read_vendor_block() argument 681 result = usb_control_msg_recv(serial->dev, 0, CP210X_VENDOR_SPECIFIC, in cp210x_read_vendor_block() 682 type, val, cp210x_interface_num(serial), buf, bufsize, in cp210x_read_vendor_block() 685 dev_err(&serial->interface->dev, in cp210x_read_vendor_block() 700 struct usb_serial *serial = port->serial; in cp210x_write_u16_reg() local 704 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in cp210x_write_u16_reg() [all …]
|
D | visor.c | 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, 262 usb_control_msg(port->serial->dev, in visor_close() 263 usb_rcvctrlpipe(port->serial->dev, 0), in visor_close() 311 static int palm_os_3_probe(struct usb_serial *serial, in palm_os_3_probe() argument 314 struct device *dev = &serial->dev->dev; in palm_os_3_probe() [all …]
|
D | keyspan_pda.c | 36 struct usb_serial *serial; member 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() 245 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument 286 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud() 305 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local [all …]
|
D | whiteheat.c | 70 static int whiteheat_firmware_download(struct usb_serial *serial, 72 static int whiteheat_firmware_attach(struct usb_serial *serial); 75 static int whiteheat_attach(struct usb_serial *serial); 76 static void whiteheat_release(struct usb_serial *serial); 149 static int start_command_port(struct usb_serial *serial); 150 static void stop_command_port(struct usb_serial *serial); 189 static int whiteheat_firmware_download(struct usb_serial *serial, in whiteheat_firmware_download() argument 194 response = ezusb_fx1_ihex_firmware_download(serial->dev, "whiteheat_loader.fw"); in whiteheat_firmware_download() 196 response = ezusb_fx1_ihex_firmware_download(serial->dev, "whiteheat.fw"); in whiteheat_firmware_download() 204 static int whiteheat_firmware_attach(struct usb_serial *serial) in whiteheat_firmware_attach() argument [all …]
|
D | f81534.c | 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() 214 static int f81534_set_register(struct usb_serial *serial, u16 reg, u8 data) in f81534_set_register() argument 216 struct usb_interface *interface = serial->interface; in f81534_set_register() 217 struct usb_device *dev = serial->dev; in f81534_set_register() 253 static int f81534_get_register(struct usb_serial *serial, u16 reg, u8 *data) in f81534_get_register() argument 255 struct usb_interface *interface = serial->interface; in f81534_get_register() 256 struct usb_device *dev = serial->dev; in f81534_get_register() 296 static int f81534_set_mask_register(struct usb_serial *serial, u16 reg, in f81534_set_mask_register() argument 302 status = f81534_get_register(serial, reg, &tmp); in f81534_set_mask_register() [all …]
|
D | usb_wwan.c | 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() 149 intfdata = usb_get_serial_data(port->serial); in usb_wwan_write() 170 err = usb_autopm_get_interface_async(port->serial->interface); in usb_wwan_write() 197 usb_autopm_put_interface_async(port->serial->interface); in usb_wwan_write() [all …]
|
D | console.c | 64 struct usb_serial *serial; in usb_console_setup() local 118 serial = port->serial; in usb_console_setup() 120 retval = usb_autopm_get_interface(serial->interface); in usb_console_setup() 130 if (serial->type->set_termios) { in usb_console_setup() 156 retval = serial->type->open(NULL, port); in usb_console_setup() 162 if (serial->type->set_termios) { in usb_console_setup() 166 serial->type->set_termios(tty, port, &dummy); in usb_console_setup() 181 mutex_unlock(&serial->disc_mutex); in usb_console_setup() 190 usb_autopm_put_interface(serial->interface); in usb_console_setup() 192 mutex_unlock(&serial->disc_mutex); in usb_console_setup() [all …]
|
D | quatech2.c | 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() 249 dev_err(&serial->dev->dev, in qt2_calc_num_ports() 259 struct usb_device *dev = port->serial->dev; in qt2_set_termios() 316 struct usb_serial *serial; in qt2_open() local 325 serial = port->serial; in qt2_open() 330 status = qt2_control_msg(serial->dev, QT2_GET_SET_QMCR, in qt2_open() [all …]
|
D | metro-usb.c | 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() 172 struct usb_serial *serial = port->serial; in metrousb_open() local 184 usb_clear_halt(serial->dev, port->interrupt_in_urb->pipe); in metrousb_open() [all …]
|
D | keyspan.c | 63 static int keyspan_usa28_send_setup(struct usb_serial *serial, 66 static int keyspan_usa26_send_setup(struct usb_serial *serial, 69 static int keyspan_usa49_send_setup(struct usb_serial *serial, 72 static int keyspan_usa90_send_setup(struct usb_serial *serial, 75 static int keyspan_usa67_send_setup(struct usb_serial *serial, 853 keyspan_usa26_send_setup(port->serial, port, in usa26_outcont_callback() 862 struct usb_serial *serial; in usa26_instat_callback() local 868 serial = urb->context; in usa26_instat_callback() 883 if (msg->port >= serial->num_ports) { in usa26_instat_callback() 887 port = serial->port[msg->port]; in usa26_instat_callback() [all …]
|
D | kobil_sct.c | 116 struct usb_serial *serial = port->serial; in kobil_port_probe() local 125 priv->device_type = le16_to_cpu(serial->dev->descriptor.idProduct); in kobil_port_probe() 129 dev_dbg(&serial->dev->dev, "KOBIL B1 PRO / KAAN PRO detected\n"); in kobil_port_probe() 132 dev_dbg(&serial->dev->dev, "KOBIL KAAN Standard Plus / SecOVID Reader Plus detected\n"); in kobil_port_probe() 135 dev_dbg(&serial->dev->dev, "KOBIL USBTWIN detected\n"); in kobil_port_probe() 138 dev_dbg(&serial->dev->dev, "KOBIL KAAN SIM detected\n"); in kobil_port_probe() 181 result = usb_control_msg(port->serial->dev, in kobil_open() 182 usb_rcvctrlpipe(port->serial->dev, 0), in kobil_open() 198 result = usb_control_msg(port->serial->dev, in kobil_open() 199 usb_rcvctrlpipe(port->serial->dev, 0), in kobil_open() [all …]
|
D | qcserial.c | 229 static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) in qcprobe() argument 231 struct usb_host_interface *intf = serial->interface->cur_altsetting; in qcprobe() 232 struct device *dev = &serial->dev->dev; in qcprobe() 243 nintf = serial->dev->actconfig->desc.bNumInterfaces; in qcprobe() 251 if (serial->interface->num_altsetting == 2) in qcprobe() 252 intf = usb_altnum_to_altsetting(serial->interface, 1); in qcprobe() 253 else if (serial->interface->num_altsetting > 2) in qcprobe() 261 if (serial->interface->num_altsetting == 1) in qcprobe() 412 retval = usb_set_interface(serial->dev, ifnum, altsetting); in qcprobe() 422 usb_set_serial_data(serial, (void *)(unsigned long)sendsetup); in qcprobe() [all …]
|
D | mct_u232.c | 120 static int mct_u232_calculate_baud_rate(struct usb_serial *serial, in mct_u232_calculate_baud_rate() argument 125 if (le16_to_cpu(serial->dev->descriptor.idProduct) == MCT_U232_SITECOM_PID in mct_u232_calculate_baud_rate() 126 || le16_to_cpu(serial->dev->descriptor.idProduct) == MCT_U232_BELKIN_F5U109_PID) { in mct_u232_calculate_baud_rate() 176 struct usb_serial *serial, struct usb_serial_port *port, speed_t value) in mct_u232_set_baud_rate() argument 188 divisor = mct_u232_calculate_baud_rate(serial, value, &speed); in mct_u232_set_baud_rate() 190 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate() 220 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate() 236 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate() 260 rc = usb_control_msg(port->serial->dev, usb_sndctrlpipe(port->serial->dev, 0), in mct_u232_set_line_ctrl() 290 rc = usb_control_msg(port->serial->dev, usb_sndctrlpipe(port->serial->dev, 0), in mct_u232_set_modem_ctrl() [all …]
|
D | mos7840.c | 230 struct usb_device *dev = port->serial->dev; in mos7840_set_reg_sync() 248 struct usb_device *dev = port->serial->dev; in mos7840_get_reg_sync() 282 struct usb_device *dev = port->serial->dev; in mos7840_set_uart_reg() 286 if (port->serial->num_ports == 2 && port->port_number != 0) in mos7840_set_uart_reg() 305 struct usb_device *dev = port->serial->dev; in mos7840_get_uart_reg() 315 if (port->serial->num_ports == 2 && port->port_number != 0) in mos7840_get_uart_reg() 373 struct usb_device *dev = mcs->port->serial->dev; in mos7840_set_led_async() 391 struct usb_device *dev = port->serial->dev; in mos7840_set_led_sync() 515 struct usb_serial *serial = port->serial; in mos7840_open() local 522 usb_clear_halt(serial->dev, port->write_urb->pipe); in mos7840_open() [all …]
|
D | io_edgeport.c | 225 struct usb_serial *serial; /* loop back to the owner of this object */ member 292 static int rom_write(struct usb_serial *serial, __u16 extAddr, __u16 addr, 310 struct device *dev = &edge_serial->serial->dev->dev; in update_edgeport_E2PROM() 334 &edge_serial->serial->dev->dev); in update_edgeport_E2PROM() 373 response = rom_write(edge_serial->serial, in update_edgeport_E2PROM() 379 dev_err(&edge_serial->serial->dev->dev, in update_edgeport_E2PROM() 395 struct device *dev = &edge_serial->serial->dev->dev; in dump_product_info() 433 …product_info->ProductId = (__u16)(le16_to_cpu(edge_serial->serial->dev->descriptor.idProduct) & ~I… in get_product_info() 454 if (le16_to_cpu(edge_serial->serial->dev->descriptor.idProduct) in get_product_info() 493 struct usb_serial *serial = ep->serial; in get_epic_descriptor() local [all …]
|
/drivers/tty/serial/ |
D | Kconfig | 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. 96 the console before standard serial driver is probed. This is enabled 101 tristate "BCM1xxx on-chip DUART serial support" [all …]
|
/drivers/tty/serial/8250/ |
D | Kconfig | 3 # 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 …]
|