/kernel/linux/linux-5.10/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); 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-5.10/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() 265 dev_err(&serial->interface->dev, in mxuport_send_ctrl_data_urb() [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 | keyspan_pda.c | 49 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 …]
|
D | mos7720.c | 105 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 …]
|
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 | 218 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 …]
|
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 | 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 usb_serial_put(serial); in usb_console_setup() [all …]
|
D | io_ti.c | 124 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 …]
|
D | whiteheat.c | 74 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 …]
|
D | usb_wwan.c | 42 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 …]
|
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() 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 …]
|
D | cp210x.c | 554 static u8 cp210x_interface_num(struct usb_serial *serial) in cp210x_interface_num() argument 558 cur_altsetting = serial->interface->cur_altsetting; in cp210x_interface_num() 570 struct usb_serial *serial = port->serial; in cp210x_read_reg_block() local 585 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp210x_read_reg_block() 662 static int cp210x_read_vendor_block(struct usb_serial *serial, u8 type, u16 val, in cp210x_read_vendor_block() argument 672 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp210x_read_vendor_block() 674 cp210x_interface_num(serial), dmabuf, bufsize, in cp210x_read_vendor_block() 680 dev_err(&serial->interface->dev, in cp210x_read_vendor_block() 698 struct usb_serial *serial = port->serial; in cp210x_write_u16_reg() local 702 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in cp210x_write_u16_reg() [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() 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 …]
|
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 | qcserial.c | 224 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 = usb_altnum_to_altsetting(serial->interface, 1); in qcprobe() 248 else if (serial->interface->num_altsetting > 2) in qcprobe() 256 if (serial->interface->num_altsetting == 1) in qcprobe() 407 retval = usb_set_interface(serial->dev, ifnum, altsetting); in qcprobe() 417 usb_set_serial_data(serial, (void *)(unsigned long)sendsetup); in qcprobe() [all …]
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
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 …]
|
/kernel/linux/linux-5.10/net/rxrpc/ |
D | output.c | 76 rxrpc_serial_t serial; in rxrpc_fill_out_ack() local 83 serial = call->ackr_serial; in rxrpc_fill_out_ack() 93 pkt->ack.serial = htonl(serial); in rxrpc_fill_out_ack() 129 static int rxrpc_begin_rtt_probe(struct rxrpc_call *call, rxrpc_serial_t serial, in rxrpc_begin_rtt_probe() argument 142 call->rtt_serial[rtt_slot] = serial; in rxrpc_begin_rtt_probe() 147 trace_rxrpc_rtt_tx(call, why, rtt_slot, serial); in rxrpc_begin_rtt_probe() 151 trace_rxrpc_rtt_tx(call, rxrpc_rtt_tx_no_slot, rtt_slot, serial); in rxrpc_begin_rtt_probe() 159 rxrpc_serial_t serial, int rtt_slot) in rxrpc_cancel_rtt_probe() argument 165 trace_rxrpc_rtt_tx(call, rxrpc_rtt_tx_cancel, rtt_slot, serial); in rxrpc_cancel_rtt_probe() 179 rxrpc_serial_t serial; in rxrpc_send_ack_packet() local [all …]
|
D | conn_event.c | 40 u32 serial, mtu, call_id, padding; in rxrpc_conn_retransmit_call() local 95 pkt.ack.serial = htonl(skb ? sp->hdr.serial : 0); in rxrpc_conn_retransmit_call() 120 serial = atomic_inc_return(&conn->serial); in rxrpc_conn_retransmit_call() 121 pkt.whdr.serial = htonl(serial); in rxrpc_conn_retransmit_call() 125 _proto("Tx ABORT %%%u { %d } [re]", serial, conn->abort_code); in rxrpc_conn_retransmit_call() 128 trace_rxrpc_tx_ack(chan->call_debug_id, serial, in rxrpc_conn_retransmit_call() 130 ntohl(pkt.ack.serial), in rxrpc_conn_retransmit_call() 132 _proto("Tx ACK %%%u [re]", serial); in rxrpc_conn_retransmit_call() 139 trace_rxrpc_tx_fail(chan->call_debug_id, serial, ret, in rxrpc_conn_retransmit_call() 153 rxrpc_serial_t serial) in rxrpc_abort_calls() argument [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | rxrpc.h | 672 __entry->hdr.serial, __entry->hdr.seq, 785 rxrpc_serial_t serial, u8 flags, u8 anno), 787 TP_ARGS(call, seq, serial, flags, anno), 792 __field(rxrpc_serial_t, serial ) 800 __entry->serial = serial; 807 __entry->serial, 815 rxrpc_serial_t serial, rxrpc_serial_t ack_serial, 818 TP_ARGS(call, serial, ack_serial, first, prev, reason, n_acks), 822 __field(rxrpc_serial_t, serial ) 832 __entry->serial = serial; [all …]
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh3/ |
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
|
/kernel/linux/linux-5.10/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 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 …]
|
/kernel/linux/linux-5.10/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 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 …]
|