Home
last modified time | relevance | path

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

12345678910>>...107

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/drivers/net/usb/
Dhso.c244 int (*write_data) (struct hso_serial *serial);
308 static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial);
309 static void hso_kick_transmit(struct hso_serial *serial);
326 static int hso_mux_serial_read(struct hso_serial *serial);
531 static int hso_urb_to_index(struct hso_serial *serial, struct urb *urb) in hso_urb_to_index() argument
535 for (idx = 0; idx < serial->num_rx_urbs; idx++) in hso_urb_to_index()
536 if (serial->rx_urb[idx] == urb) in hso_urb_to_index()
538 dev_err(serial->parent->dev, "hso_urb_to_index failed\n"); in hso_urb_to_index()
617 struct hso_serial *serial = NULL; in get_serial_by_index() local
622 serial = dev2ser(serial_table[index]); in get_serial_by_index()
[all …]
/kernel/linux/linux-5.10/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 …]
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 …]
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 …]
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 …]
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 …]
Dpl2303.c218 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument
221 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_read()
222 struct device *dev = &serial->interface->dev; in pl2303_vendor_read()
231 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in pl2303_vendor_read()
248 static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index) in pl2303_vendor_write() argument
250 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_write()
251 struct device *dev = &serial->interface->dev; in pl2303_vendor_write()
262 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in pl2303_vendor_write()
274 static int pl2303_update_reg(struct usb_serial *serial, u8 reg, u8 mask, u8 val) in pl2303_update_reg() argument
276 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_update_reg()
[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 …]
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 …]
Dio_ti.c124 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,
309 return send_cmd(port->serial->dev, in purge_port()
382 static int read_boot_mem(struct edgeport_serial *serial, in read_boot_mem() argument
389 status = ti_vread_sync(serial->serial->dev, in read_boot_mem()
390 UMPC_MEMORY_READ, serial->TI_I2C_Type, in read_boot_mem()
393 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem()
398 dev_dbg(&serial->serial->dev->dev, "%s - start_address = %x, length = %d\n", in read_boot_mem()
400 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 …]
/kernel/linux/linux-4.19/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 …]
Dkeyspan_pda.c48 struct usb_serial *serial; member
113 struct usb_serial *serial = priv->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()
229 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument
272 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud()
291 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local
299 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_break_ctl()
316 struct usb_serial *serial = port->serial; in keyspan_pda_set_termios() local
[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()
255 write_mos_reg(mos_parport->serial, dummy, MOS7720_ECR, in mos7715_change_mode()
295 if (unlikely(mos_parport->serial == NULL)) in send_deferred_urbs()
298 dev = &mos_parport->serial->dev->dev; in send_deferred_urbs()
301 if (!mutex_trylock(&mos_parport->serial->disc_mutex)) { in send_deferred_urbs()
308 if (unlikely(mos_parport->serial->disconnected)) { in send_deferred_urbs()
[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 …]
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 …]
Dconsole.c64 struct usb_serial *serial; in usb_console_setup() local
115 serial = port->serial; in usb_console_setup()
117 retval = usb_autopm_get_interface(serial->interface); in usb_console_setup()
127 if (serial->type->set_termios) { in usb_console_setup()
153 retval = serial->type->open(NULL, port); in usb_console_setup()
159 if (serial->type->set_termios) { in usb_console_setup()
163 serial->type->set_termios(tty, port, &dummy); in usb_console_setup()
178 mutex_unlock(&serial->disc_mutex); in usb_console_setup()
187 usb_autopm_put_interface(serial->interface); in usb_console_setup()
189 usb_serial_put(serial); in usb_console_setup()
[all …]
Dsierra.c85 static int sierra_calc_num_ports(struct usb_serial *serial, in sierra_calc_num_ports() argument
91 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_calc_num_ports()
92 numendpoints = serial->interface->cur_altsetting->desc.bNumEndpoints; in sierra_calc_num_ports()
138 static u8 sierra_interface_num(struct usb_serial *serial) in sierra_interface_num() argument
140 return serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_interface_num()
143 static int sierra_probe(struct usb_serial *serial, in sierra_probe() argument
150 udev = serial->dev; in sierra_probe()
151 ifnum = sierra_interface_num(serial); in sierra_probe()
157 if (serial->interface->num_altsetting == 2) { in sierra_probe()
166 dev_dbg(&serial->dev->dev, in sierra_probe()
[all …]
Dio_ti.c124 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,
309 return send_cmd(port->serial->dev, in purge_port()
382 static int read_boot_mem(struct edgeport_serial *serial, in read_boot_mem() argument
389 status = ti_vread_sync(serial->serial->dev, in read_boot_mem()
390 UMPC_MEMORY_READ, serial->TI_I2C_Type, in read_boot_mem()
393 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem()
398 dev_dbg(&serial->serial->dev->dev, "%s - start_address = %x, length = %d\n", in read_boot_mem()
400 usb_serial_debug_data(&serial->serial->dev->dev, __func__, length, buffer); in read_boot_mem()
[all …]
Dpl2303.c187 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument
190 struct device *dev = &serial->interface->dev; in pl2303_vendor_read()
193 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in pl2303_vendor_read()
210 static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index) in pl2303_vendor_write() argument
212 struct device *dev = &serial->interface->dev; in pl2303_vendor_write()
217 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in pl2303_vendor_write()
229 static int pl2303_probe(struct usb_serial *serial, in pl2303_probe() argument
232 usb_set_serial_data(serial, (void *)id->driver_info); in pl2303_probe()
242 static int pl2303_endpoint_hack(struct usb_serial *serial, in pl2303_endpoint_hack() argument
245 struct usb_interface *interface = serial->interface; in pl2303_endpoint_hack()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
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 …]
/kernel/linux/linux-4.19/Documentation/ABI/testing/
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 …]

12345678910>>...107