Home
last modified time | relevance | path

Searched refs:serial (Results 1 – 25 of 238) sorted by relevance

12345678910

/drivers/net/usb/
Dhso.c245 int (*write_data) (struct hso_serial *serial);
309 static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial);
310 static void hso_kick_transmit(struct hso_serial *serial);
327 static int hso_mux_serial_read(struct hso_serial *serial);
532 static int hso_urb_to_index(struct hso_serial *serial, struct urb *urb) in hso_urb_to_index() argument
536 for (idx = 0; idx < serial->num_rx_urbs; idx++) in hso_urb_to_index()
537 if (serial->rx_urb[idx] == urb) in hso_urb_to_index()
539 dev_err(serial->parent->dev, "hso_urb_to_index failed\n"); in hso_urb_to_index()
618 struct hso_serial *serial = NULL; in get_serial_by_index() local
623 serial = dev2ser(serial_table[index]); in get_serial_by_index()
[all …]
/drivers/usb/serial/
Dusb-serial.c67 struct usb_serial *serial; in usb_serial_port_get_by_minor() local
75 serial = port->serial; in usb_serial_port_get_by_minor()
76 mutex_lock(&serial->disc_mutex); in usb_serial_port_get_by_minor()
77 if (serial->disconnected) { in usb_serial_port_get_by_minor()
78 mutex_unlock(&serial->disc_mutex); in usb_serial_port_get_by_minor()
81 kref_get(&serial->kref); in usb_serial_port_get_by_minor()
88 static int allocate_minors(struct usb_serial *serial, int num_ports) in allocate_minors() argument
94 dev_dbg(&serial->interface->dev, "%s %d\n", __func__, num_ports); in allocate_minors()
98 port = serial->port[i]; in allocate_minors()
106 serial->minors_reserved = 1; in allocate_minors()
[all …]
Dmxuport.c216 static int mxuport_recv_ctrl_urb(struct usb_serial *serial, in mxuport_recv_ctrl_urb() argument
222 status = usb_control_msg(serial->dev, in mxuport_recv_ctrl_urb()
223 usb_rcvctrlpipe(serial->dev, 0), in mxuport_recv_ctrl_urb()
230 dev_err(&serial->interface->dev, in mxuport_recv_ctrl_urb()
237 dev_err(&serial->interface->dev, in mxuport_recv_ctrl_urb()
247 static int mxuport_send_ctrl_data_urb(struct usb_serial *serial, in mxuport_send_ctrl_data_urb() argument
254 status = usb_control_msg(serial->dev, in mxuport_send_ctrl_data_urb()
255 usb_sndctrlpipe(serial->dev, 0), in mxuport_send_ctrl_data_urb()
262 dev_err(&serial->interface->dev, in mxuport_send_ctrl_data_urb()
269 dev_err(&serial->interface->dev, in mxuport_send_ctrl_data_urb()
[all …]
Dmos7720.c108 struct usb_serial *serial; /* back to containing struct */ member
197 static int write_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, in write_mos_reg() argument
200 struct usb_device *usbdev = serial->dev; in write_mos_reg()
219 static int read_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, in read_mos_reg() argument
222 struct usb_device *usbdev = serial->dev; in read_mos_reg()
258 write_mos_reg(mos_parport->serial, dummy, MOS7720_ECR, in mos7715_change_mode()
298 if (unlikely(mos_parport->serial == NULL)) in send_deferred_urbs()
301 dev = &mos_parport->serial->dev->dev; in send_deferred_urbs()
304 if (!mutex_trylock(&mos_parport->serial->disc_mutex)) { in send_deferred_urbs()
311 if (unlikely(mos_parport->serial->disconnected)) { in send_deferred_urbs()
[all …]
Dark3116.c54 static int is_irda(struct usb_serial *serial) in is_irda() argument
56 struct usb_device *dev = serial->dev; in is_irda()
81 static int ark3116_write_reg(struct usb_serial *serial, in ark3116_write_reg() argument
86 result = usb_control_msg(serial->dev, in ark3116_write_reg()
87 usb_sndctrlpipe(serial->dev, 0), in ark3116_write_reg()
93 static int ark3116_read_reg(struct usb_serial *serial, in ark3116_read_reg() argument
98 result = usb_control_msg(serial->dev, in ark3116_read_reg()
99 usb_rcvctrlpipe(serial->dev, 0), in ark3116_read_reg()
103 dev_err(&serial->interface->dev, in ark3116_read_reg()
125 static int ark3116_attach(struct usb_serial *serial) in ark3116_attach() argument
[all …]
Dvisor.c41 static int visor_probe(struct usb_serial *serial,
43 static int visor_calc_num_ports(struct usb_serial *serial);
45 static int clie_3_5_startup(struct usb_serial *serial);
46 static int treo_attach(struct usb_serial *serial);
47 static int clie_5_attach(struct usb_serial *serial);
48 static int palm_os_3_probe(struct usb_serial *serial,
50 static int palm_os_4_probe(struct usb_serial *serial,
265 usb_control_msg(port->serial->dev, in visor_close()
266 usb_rcvctrlpipe(port->serial->dev, 0), in visor_close()
314 static int palm_os_3_probe(struct usb_serial *serial, in palm_os_3_probe() argument
[all …]
Dkeyspan_pda.c52 struct usb_serial *serial; member
117 struct usb_serial *serial = priv->serial; in keyspan_pda_request_unthrottle() local
122 result = usb_control_msg(serial->dev, in keyspan_pda_request_unthrottle()
123 usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_request_unthrottle()
133 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n", in keyspan_pda_request_unthrottle()
233 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument
276 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud()
295 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local
303 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_break_ctl()
320 struct usb_serial *serial = port->serial; in keyspan_pda_set_termios() local
[all …]
Dsierra.c88 static int sierra_calc_num_ports(struct usb_serial *serial) in sierra_calc_num_ports() argument
93 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_calc_num_ports()
94 numendpoints = serial->interface->cur_altsetting->desc.bNumEndpoints; in sierra_calc_num_ports()
140 static int sierra_calc_interface(struct usb_serial *serial) in sierra_calc_interface() argument
147 p_interface = serial->interface; in sierra_calc_interface()
160 static int sierra_probe(struct usb_serial *serial, in sierra_probe() argument
167 udev = serial->dev; in sierra_probe()
168 ifnum = sierra_calc_interface(serial); in sierra_probe()
174 if (serial->interface->num_altsetting == 2) { in sierra_probe()
182 ifnum = sierra_calc_interface(serial); in sierra_probe()
[all …]
Dconsole.c67 struct usb_serial *serial; in usb_console_setup() local
119 serial = port->serial; in usb_console_setup()
121 retval = usb_autopm_get_interface(serial->interface); in usb_console_setup()
131 if (serial->type->set_termios) { in usb_console_setup()
157 retval = serial->type->open(NULL, port); in usb_console_setup()
163 if (serial->type->set_termios) { in usb_console_setup()
167 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 usb_serial_put(serial); in usb_console_setup()
[all …]
Dio_ti.c128 struct usb_serial *serial; member
232 static int do_download_mode(struct edgeport_serial *serial,
234 static int do_boot_mode(struct edgeport_serial *serial,
313 return send_cmd(port->serial->dev, in purge_port()
386 static int read_boot_mem(struct edgeport_serial *serial, in read_boot_mem() argument
393 status = ti_vread_sync(serial->serial->dev, in read_boot_mem()
394 UMPC_MEMORY_READ, serial->TI_I2C_Type, in read_boot_mem()
397 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem()
402 dev_dbg(&serial->serial->dev->dev, "%s - start_address = %x, length = %d\n", in read_boot_mem()
404 usb_serial_debug_data(&serial->serial->dev->dev, __func__, length, buffer); in read_boot_mem()
[all …]
Dpl2303.c173 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument
176 struct device *dev = &serial->interface->dev; in pl2303_vendor_read()
179 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in pl2303_vendor_read()
196 static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index) in pl2303_vendor_write() argument
198 struct device *dev = &serial->interface->dev; in pl2303_vendor_write()
203 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in pl2303_vendor_write()
215 static int pl2303_probe(struct usb_serial *serial, in pl2303_probe() argument
218 usb_set_serial_data(serial, (void *)id->driver_info); in pl2303_probe()
223 static int pl2303_startup(struct usb_serial *serial) in pl2303_startup() argument
226 unsigned char num_ports = serial->num_ports; in pl2303_startup()
[all …]
Dwhiteheat.c78 static int whiteheat_firmware_download(struct usb_serial *serial,
80 static int whiteheat_firmware_attach(struct usb_serial *serial);
83 static int whiteheat_probe(struct usb_serial *serial,
85 static int whiteheat_attach(struct usb_serial *serial);
86 static void whiteheat_release(struct usb_serial *serial);
157 static int start_command_port(struct usb_serial *serial);
158 static void stop_command_port(struct usb_serial *serial);
198 static int whiteheat_firmware_download(struct usb_serial *serial, in whiteheat_firmware_download() argument
203 response = ezusb_fx1_ihex_firmware_download(serial->dev, "whiteheat_loader.fw"); in whiteheat_firmware_download()
205 response = ezusb_fx1_ihex_firmware_download(serial->dev, "whiteheat.fw"); in whiteheat_firmware_download()
[all …]
Dquatech2.c138 static void qt2_release(struct usb_serial *serial) in qt2_release() argument
142 serial_priv = usb_get_serial_data(serial); in qt2_release()
223 struct usb_device *dev = port->serial->dev; in update_mctrl()
249 static int qt2_calc_num_ports(struct usb_serial *serial) in qt2_calc_num_ports() argument
255 if (d.product_id == le16_to_cpu(serial->dev->descriptor.idProduct)) in qt2_calc_num_ports()
260 dev_err(&serial->dev->dev, in qt2_calc_num_ports()
270 struct usb_device *dev = port->serial->dev; in qt2_set_termios()
341 struct usb_serial *serial; in qt2_open() local
350 serial = port->serial; in qt2_open()
355 status = qt2_control_msg(serial->dev, QT2_GET_SET_QMCR, in qt2_open()
[all …]
Dusb_wwan.c45 struct usb_serial *serial = port->serial; in usb_wwan_send_setup() local
58 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in usb_wwan_send_setup()
60 res = usb_autopm_get_interface(serial->interface); in usb_wwan_send_setup()
64 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in usb_wwan_send_setup()
68 usb_autopm_put_interface(port->serial->interface); in usb_wwan_send_setup()
78 intfdata = usb_get_serial_data(port->serial); in usb_wwan_dtr_rts()
119 intfdata = usb_get_serial_data(port->serial); in usb_wwan_tiocmset()
227 intfdata = usb_get_serial_data(port->serial); in usb_wwan_write()
249 err = usb_autopm_get_interface_async(port->serial->interface); in usb_wwan_write()
276 usb_autopm_put_interface_async(port->serial->interface); in usb_wwan_write()
[all …]
Dmos7840.c259 struct usb_device *dev = port->serial->dev; in mos7840_set_reg_sync()
277 struct usb_device *dev = port->serial->dev; in mos7840_get_reg_sync()
311 struct usb_device *dev = port->serial->dev; in mos7840_set_uart_reg()
315 if (port->serial->num_ports == 4) { in mos7840_set_uart_reg()
339 struct usb_device *dev = port->serial->dev; in mos7840_get_uart_reg()
349 if (port->serial->num_ports == 4) { in mos7840_get_uart_reg()
501 struct usb_device *dev = mcs->port->serial->dev; in mos7840_get_reg()
548 struct usb_device *dev = mcs->port->serial->dev; in mos7840_set_led_async()
566 struct usb_device *dev = port->serial->dev; in mos7840_set_led_sync()
612 struct usb_serial *serial; in mos7840_interrupt_callback() local
[all …]
Dkobil_sct.c54 static int kobil_attach(struct usb_serial *serial);
118 static int kobil_attach(struct usb_serial *serial) in kobil_attach() argument
120 if (serial->num_interrupt_out < serial->num_ports) { in kobil_attach()
121 dev_err(&serial->interface->dev, "missing interrupt-out endpoint\n"); in kobil_attach()
130 struct usb_serial *serial = port->serial; in kobil_port_probe() local
139 priv->device_type = le16_to_cpu(serial->dev->descriptor.idProduct); in kobil_port_probe()
143 dev_dbg(&serial->dev->dev, "KOBIL B1 PRO / KAAN PRO detected\n"); in kobil_port_probe()
146 dev_dbg(&serial->dev->dev, "KOBIL KAAN Standard Plus / SecOVID Reader Plus detected\n"); in kobil_port_probe()
149 dev_dbg(&serial->dev->dev, "KOBIL USBTWIN detected\n"); in kobil_port_probe()
152 dev_dbg(&serial->dev->dev, "KOBIL KAAN SIM detected\n"); in kobil_port_probe()
[all …]
Dkeyspan.c378 keyspan_usa26_send_setup(port->serial, port, in usa26_outcont_callback()
387 struct usb_serial *serial; in usa26_instat_callback() local
393 serial = urb->context; in usa26_instat_callback()
408 if (msg->port >= serial->num_ports) { in usa26_instat_callback()
412 port = serial->port[msg->port]; in usa26_instat_callback()
496 keyspan_usa28_send_setup(port->serial, port, in usa28_outcont_callback()
506 struct usb_serial *serial; in usa28_instat_callback() local
512 serial = urb->context; in usa28_instat_callback()
528 if (msg->port >= serial->num_ports) { in usa28_instat_callback()
532 port = serial->port[msg->port]; in usa28_instat_callback()
[all …]
Dipaq.c36 static int ipaq_calc_num_ports(struct usb_serial *serial);
37 static int ipaq_startup(struct usb_serial *serial);
521 struct usb_serial *serial = port->serial; in ipaq_open() local
536 result = usb_control_msg(serial->dev, in ipaq_open()
537 usb_sndctrlpipe(serial->dev, 0), 0x22, 0x21, in ipaq_open()
553 static int ipaq_calc_num_ports(struct usb_serial *serial) in ipaq_calc_num_ports() argument
562 dev_dbg(&serial->dev->dev, "%s - numberofendpoints: %d\n", __func__, in ipaq_calc_num_ports()
563 (int)serial->interface->cur_altsetting->desc.bNumEndpoints); in ipaq_calc_num_ports()
571 if (serial->interface->cur_altsetting->desc.bNumEndpoints > 3) { in ipaq_calc_num_ports()
579 static int ipaq_startup(struct usb_serial *serial) in ipaq_startup() argument
[all …]
Dmetro-usb.c60 port->serial->dev->descriptor.idProduct); in metrousb_is_unidirectional_mode()
80 ret = usb_interrupt_msg(port->serial->dev, in metrousb_send_unidirectional_cmd()
81 usb_sndintpipe(port->serial->dev, port->interrupt_out_endpointAddress), in metrousb_send_unidirectional_cmd()
141 usb_fill_int_urb(port->interrupt_in_urb, port->serial->dev, in metrousb_read_int_callback()
142 usb_rcvintpipe(port->serial->dev, port->interrupt_in_endpointAddress), in metrousb_read_int_callback()
185 struct usb_serial *serial = port->serial; in metrousb_open() local
206 usb_clear_halt(serial->dev, port->interrupt_in_urb->pipe); in metrousb_open()
209 usb_fill_int_urb(port->interrupt_in_urb, serial->dev, in metrousb_open()
210 usb_rcvintpipe(serial->dev, port->interrupt_in_endpointAddress), in metrousb_open()
237 static int metrousb_set_modem_ctrl(struct usb_serial *serial, unsigned int control_state) in metrousb_set_modem_ctrl() argument
[all …]
Dspcp8x5.c149 static int spcp8x5_probe(struct usb_serial *serial, in spcp8x5_probe() argument
152 usb_set_serial_data(serial, (void *)id); in spcp8x5_probe()
157 static int spcp8x5_attach(struct usb_serial *serial) in spcp8x5_attach() argument
159 unsigned char num_ports = serial->num_ports; in spcp8x5_attach()
161 if (serial->num_bulk_in < num_ports || in spcp8x5_attach()
162 serial->num_bulk_out < num_ports) { in spcp8x5_attach()
163 dev_err(&serial->interface->dev, "missing endpoints\n"); in spcp8x5_attach()
172 const struct usb_device_id *id = usb_get_serial_data(port->serial); in spcp8x5_port_probe()
202 struct usb_device *dev = port->serial->dev; in spcp8x5_set_ctrl_line()
221 struct usb_device *dev = port->serial->dev; in spcp8x5_get_msr()
[all …]
Dqcserial.c224 static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) in qcprobe() argument
226 struct usb_host_interface *intf = serial->interface->cur_altsetting; in qcprobe()
227 struct device *dev = &serial->dev->dev; in qcprobe()
238 nintf = serial->dev->actconfig->desc.bNumInterfaces; in qcprobe()
246 if (serial->interface->num_altsetting == 2) in qcprobe()
247 intf = &serial->interface->altsetting[1]; in qcprobe()
248 else if (serial->interface->num_altsetting > 2) in qcprobe()
256 if (serial->interface->num_altsetting == 1) in qcprobe()
408 retval = usb_set_interface(serial->dev, ifnum, altsetting); in qcprobe()
418 usb_set_serial_data(serial, (void *)(unsigned long)sendsetup); in qcprobe()
[all …]
Domninet.c40 static void omninet_disconnect(struct usb_serial *serial);
41 static int omninet_attach(struct usb_serial *serial);
109 static int omninet_attach(struct usb_serial *serial) in omninet_attach() argument
112 if (serial->num_bulk_out < 2) { in omninet_attach()
113 dev_err(&serial->interface->dev, "missing endpoints\n"); in omninet_attach()
172 struct usb_serial *serial = port->serial; in omninet_write() local
173 struct usb_serial_port *wport = serial->port[1]; in omninet_write()
223 struct usb_serial *serial = port->serial; in omninet_write_room() local
224 struct usb_serial_port *wport = serial->port[1]; in omninet_write_room()
254 static void omninet_disconnect(struct usb_serial *serial) in omninet_disconnect() argument
[all …]
Dmct_u232.c123 static int mct_u232_calculate_baud_rate(struct usb_serial *serial, in mct_u232_calculate_baud_rate() argument
128 if (le16_to_cpu(serial->dev->descriptor.idProduct) == MCT_U232_SITECOM_PID in mct_u232_calculate_baud_rate()
129 || le16_to_cpu(serial->dev->descriptor.idProduct) == MCT_U232_BELKIN_F5U109_PID) { in mct_u232_calculate_baud_rate()
179 struct usb_serial *serial, struct usb_serial_port *port, speed_t value) in mct_u232_set_baud_rate() argument
191 divisor = mct_u232_calculate_baud_rate(serial, value, &speed); in mct_u232_set_baud_rate()
193 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate()
223 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate()
239 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate()
263 rc = usb_control_msg(port->serial->dev, usb_sndctrlpipe(port->serial->dev, 0), in mct_u232_set_line_ctrl()
293 rc = usb_control_msg(port->serial->dev, usb_sndctrlpipe(port->serial->dev, 0), in mct_u232_set_modem_ctrl()
[all …]
/drivers/tty/serial/
DKconfig14 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 the console before standard serial driver is probed. This is enabled
89 tristate "BCM1xxx on-chip DUART serial support"
94 Support for the asynchronous serial interface (DUART) included in
[all …]
/drivers/tty/serial/8250/
DKconfig2 # The 8250/16550 serial drivers. You shouldn't be in this list unless
7 tristate "8250/16550 and compatible serial support"
11 serial ports. The standard answer is Y. People who might say N
14 serial mouse and don't intend to use their machine's standard serial
15 port for anything. (Note that the Cyclades multi serial port driver
21 non-standard serial ports, since the configuration information will
25 BTW1: If you have a mouseman serial mouse which is not recognized by
32 Most people will say Y or M here, so that they can use serial mice,
33 modems and similar devices connecting to the standard serial ports.
57 This builds standard PNP serial support. You may be able to
[all …]

12345678910