Home
last modified time | relevance | path

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

1234567891011

/drivers/net/usb/
Dhso.c230 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);
517 static int hso_urb_to_index(struct hso_serial *serial, struct urb *urb) in hso_urb_to_index() argument
521 for (idx = 0; idx < serial->num_rx_urbs; idx++) in hso_urb_to_index()
522 if (serial->rx_urb[idx] == urb) in hso_urb_to_index()
524 dev_err(serial->parent->dev, "hso_urb_to_index failed\n"); in hso_urb_to_index()
603 struct hso_serial *serial = NULL; in get_serial_by_index() local
608 serial = dev2ser(serial_table[index]); in get_serial_by_index()
[all …]
/drivers/usb/serial/
Dusb-serial.c63 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 …]
Dmxuport.c212 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()
265 dev_err(&serial->interface->dev, in mxuport_send_ctrl_data_urb()
[all …]
Dmos7720.c105 struct usb_serial *serial; /* back to containing struct */ member
194 static int write_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, in write_mos_reg() argument
197 struct usb_device *usbdev = serial->dev; in write_mos_reg()
216 static int read_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, in read_mos_reg() argument
219 struct usb_device *usbdev = serial->dev; in read_mos_reg()
257 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 …]
Dkeyspan_pda.c49 struct usb_serial *serial; member
105 struct usb_serial *serial = priv->serial; in keyspan_pda_request_unthrottle() local
110 result = usb_control_msg(serial->dev, in keyspan_pda_request_unthrottle()
111 usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_request_unthrottle()
121 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n", in keyspan_pda_request_unthrottle()
226 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument
269 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud()
288 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local
296 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_break_ctl()
313 struct usb_serial *serial = port->serial; in keyspan_pda_set_termios() local
[all …]
Dark3116.c50 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 …]
Dsierra.c84 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 …]
Dvisor.c38 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 …]
Dpl2303.c220 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument
223 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_read()
224 struct device *dev = &serial->interface->dev; in pl2303_vendor_read()
233 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in pl2303_vendor_read()
250 static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index) in pl2303_vendor_write() argument
252 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_write()
253 struct device *dev = &serial->interface->dev; in pl2303_vendor_write()
264 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in pl2303_vendor_write()
276 static int pl2303_update_reg(struct usb_serial *serial, u8 reg, u8 mask, u8 val) in pl2303_update_reg() argument
278 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_update_reg()
[all …]
Dio_ti.c124 struct usb_serial *serial; member
230 static int do_download_mode(struct edgeport_serial *serial,
232 static int do_boot_mode(struct edgeport_serial *serial,
311 return send_cmd(port->serial->dev, in purge_port()
384 static int read_boot_mem(struct edgeport_serial *serial, in read_boot_mem() argument
391 status = ti_vread_sync(serial->serial->dev, in read_boot_mem()
392 UMPC_MEMORY_READ, serial->TI_I2C_Type, in read_boot_mem()
395 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem()
400 dev_dbg(&serial->serial->dev->dev, "%s - start_address = %x, length = %d\n", in read_boot_mem()
402 usb_serial_debug_data(&serial->serial->dev->dev, __func__, length, buffer); in read_boot_mem()
[all …]
Dwhiteheat.c74 static int whiteheat_firmware_download(struct usb_serial *serial,
76 static int whiteheat_firmware_attach(struct usb_serial *serial);
79 static int whiteheat_attach(struct usb_serial *serial);
80 static void whiteheat_release(struct usb_serial *serial);
152 static int start_command_port(struct usb_serial *serial);
153 static void stop_command_port(struct usb_serial *serial);
193 static int whiteheat_firmware_download(struct usb_serial *serial, in whiteheat_firmware_download() argument
198 response = ezusb_fx1_ihex_firmware_download(serial->dev, "whiteheat_loader.fw"); in whiteheat_firmware_download()
200 response = ezusb_fx1_ihex_firmware_download(serial->dev, "whiteheat.fw"); in whiteheat_firmware_download()
208 static int whiteheat_firmware_attach(struct usb_serial *serial) in whiteheat_firmware_attach() argument
[all …]
Df81534.c193 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()
255 static int f81534_get_register(struct usb_serial *serial, u16 reg, u8 *data) in f81534_get_register() argument
257 struct usb_interface *interface = serial->interface; in f81534_get_register()
258 struct usb_device *dev = serial->dev; in f81534_get_register()
298 static int f81534_set_mask_register(struct usb_serial *serial, u16 reg, in f81534_set_mask_register() argument
304 status = f81534_get_register(serial, reg, &tmp); in f81534_set_mask_register()
[all …]
Dconsole.c64 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 usb_serial_put(serial); in usb_console_setup()
[all …]
Dusb_wwan.c42 struct usb_serial *serial = port->serial; in usb_wwan_send_setup() local
55 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in usb_wwan_send_setup()
57 res = usb_autopm_get_interface(serial->interface); in usb_wwan_send_setup()
61 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in usb_wwan_send_setup()
65 usb_autopm_put_interface(port->serial->interface); in usb_wwan_send_setup()
75 intfdata = usb_get_serial_data(port->serial); in usb_wwan_dtr_rts()
116 intfdata = usb_get_serial_data(port->serial); in usb_wwan_tiocmset()
193 intfdata = usb_get_serial_data(port->serial); in usb_wwan_write()
215 err = usb_autopm_get_interface_async(port->serial->interface); in usb_wwan_write()
242 usb_autopm_put_interface_async(port->serial->interface); in usb_wwan_write()
[all …]
Dcp210x.c564 static u8 cp210x_interface_num(struct usb_serial *serial) in cp210x_interface_num() argument
568 cur_altsetting = serial->interface->cur_altsetting; in cp210x_interface_num()
580 struct usb_serial *serial = port->serial; in cp210x_read_reg_block() local
595 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp210x_read_reg_block()
672 static int cp210x_read_vendor_block(struct usb_serial *serial, u8 type, u16 val, in cp210x_read_vendor_block() argument
682 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp210x_read_vendor_block()
684 cp210x_interface_num(serial), dmabuf, bufsize, in cp210x_read_vendor_block()
690 dev_err(&serial->interface->dev, in cp210x_read_vendor_block()
708 struct usb_serial *serial = port->serial; in cp210x_write_u16_reg() local
712 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in cp210x_write_u16_reg()
[all …]
Dquatech2.c134 static void qt2_release(struct usb_serial *serial) in qt2_release() argument
138 serial_priv = usb_get_serial_data(serial); in qt2_release()
219 struct usb_device *dev = port->serial->dev; in update_mctrl()
245 static int qt2_calc_num_ports(struct usb_serial *serial, in qt2_calc_num_ports() argument
252 if (d.product_id == le16_to_cpu(serial->dev->descriptor.idProduct)) in qt2_calc_num_ports()
257 dev_err(&serial->dev->dev, in qt2_calc_num_ports()
267 struct usb_device *dev = port->serial->dev; in qt2_set_termios()
338 struct usb_serial *serial; in qt2_open() local
347 serial = port->serial; in qt2_open()
352 status = qt2_control_msg(serial->dev, QT2_GET_SET_QMCR, in qt2_open()
[all …]
Dmetro-usb.c58 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 …]
Dkeyspan.c48 static int keyspan_startup(struct usb_serial *serial);
49 static void keyspan_disconnect(struct usb_serial *serial);
50 static void keyspan_release(struct usb_serial *serial);
64 static int keyspan_fake_startup(struct usb_serial *serial);
83 static int keyspan_usa28_send_setup(struct usb_serial *serial,
86 static int keyspan_usa26_send_setup(struct usb_serial *serial,
89 static int keyspan_usa49_send_setup(struct usb_serial *serial,
92 static int keyspan_usa90_send_setup(struct usb_serial *serial,
95 static int keyspan_usa67_send_setup(struct usb_serial *serial,
869 keyspan_usa26_send_setup(port->serial, port, in usa26_outcont_callback()
[all …]
Dqcserial.c229 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 …]
Dkobil_sct.c115 struct usb_serial *serial = port->serial; in kobil_port_probe() local
124 priv->device_type = le16_to_cpu(serial->dev->descriptor.idProduct); in kobil_port_probe()
128 dev_dbg(&serial->dev->dev, "KOBIL B1 PRO / KAAN PRO detected\n"); in kobil_port_probe()
131 dev_dbg(&serial->dev->dev, "KOBIL KAAN Standard Plus / SecOVID Reader Plus detected\n"); in kobil_port_probe()
134 dev_dbg(&serial->dev->dev, "KOBIL USBTWIN detected\n"); in kobil_port_probe()
137 dev_dbg(&serial->dev->dev, "KOBIL KAAN SIM detected\n"); in kobil_port_probe()
182 result = usb_control_msg(port->serial->dev, in kobil_open()
183 usb_rcvctrlpipe(port->serial->dev, 0), in kobil_open()
199 result = usb_control_msg(port->serial->dev, in kobil_open()
200 usb_rcvctrlpipe(port->serial->dev, 0), in kobil_open()
[all …]
Dmct_u232.c119 static int mct_u232_calculate_baud_rate(struct usb_serial *serial, in mct_u232_calculate_baud_rate() argument
124 if (le16_to_cpu(serial->dev->descriptor.idProduct) == MCT_U232_SITECOM_PID in mct_u232_calculate_baud_rate()
125 || le16_to_cpu(serial->dev->descriptor.idProduct) == MCT_U232_BELKIN_F5U109_PID) { in mct_u232_calculate_baud_rate()
175 struct usb_serial *serial, struct usb_serial_port *port, speed_t value) in mct_u232_set_baud_rate() argument
187 divisor = mct_u232_calculate_baud_rate(serial, value, &speed); in mct_u232_set_baud_rate()
189 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate()
219 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate()
235 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mct_u232_set_baud_rate()
259 rc = usb_control_msg(port->serial->dev, usb_sndctrlpipe(port->serial->dev, 0), in mct_u232_set_line_ctrl()
289 rc = usb_control_msg(port->serial->dev, usb_sndctrlpipe(port->serial->dev, 0), in mct_u232_set_modem_ctrl()
[all …]
/drivers/tty/serial/8250/
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
18 port for anything. (Note that the Cyclades multi serial port driver
24 non-standard serial ports, since the configuration information will
28 BTW1: If you have a mouseman serial mouse which is not recognized by
35 Most people will say Y or M here, so that they can use serial mice,
36 modems and similar devices connecting to the standard serial ports.
60 This builds standard PNP serial support. You may be able to
[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
96 the console before standard serial driver is probed. This is enabled
101 tristate "BCM1xxx on-chip DUART serial support"
[all …]
/drivers/staging/fwserial/
Dfwserial.c244 fw_send_request(peer->serial->card, &txn->fw_txn, tcode, in fwtty_send_data_async()
263 fw_send_request(peer->serial->card, &txn->fw_txn, tcode, in fwtty_send_txn_async()
829 kref_get(&port->serial->kref); in fwtty_port_get()
834 static int fwtty_ports_add(struct fw_serial *serial) in fwtty_ports_add() argument
846 serial->ports[j]->index = i; in fwtty_ports_add()
847 port_table[i] = serial->ports[j]; in fwtty_ports_add()
859 struct fw_serial *serial = to_serial(kref, kref); in fwserial_destroy() local
860 struct fwtty_port **ports = serial->ports; in fwserial_destroy()
880 kfree(serial); in fwserial_destroy()
885 kref_put(&port->serial->kref, fwserial_destroy); in fwtty_port_put()
[all …]
DKconfig6 This enables TTY over IEEE 1394, providing high-speed serial
12 be called firewire-serial.
17 int "Maximum number of serial ports supported"
20 Set this to the maximum number of serial ports you want the
21 firewire-serial driver to support.
24 int "Maximum number of serial ports supported per adapter"
28 Set this to the maximum number of serial ports each firewire
29 adapter supports. The actual number of serial ports registered

1234567891011