Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 4593) sorted by relevance

12345678910>>...184

/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c506 struct tcpm_port *port; member
520 #define tcpm_port_is_sink(port) \ argument
521 ((tcpm_cc_is_sink((port)->cc1) && !tcpm_cc_is_sink((port)->cc2)) || \
522 (tcpm_cc_is_sink((port)->cc2) && !tcpm_cc_is_sink((port)->cc1)))
528 #define tcpm_port_is_source(port) \ argument
529 ((tcpm_cc_is_source((port)->cc1) && \
530 !tcpm_cc_is_source((port)->cc2)) || \
531 (tcpm_cc_is_source((port)->cc2) && \
532 !tcpm_cc_is_source((port)->cc1)))
534 #define tcpm_port_is_debug(port) \ argument
[all …]
/openbmc/linux/drivers/mmc/core/
H A Dsdio_uart.c65 struct tty_port port; member
87 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
91 mutex_init(&port->func_lock); in sdio_uart_add_port()
92 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
93 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
99 port->index = index; in sdio_uart_add_port()
100 sdio_uart_table[index] = port; in sdio_uart_add_port()
112 struct sdio_uart_port *port; in sdio_uart_port_get() local
118 port = sdio_uart_table[index]; in sdio_uart_port_get()
119 if (port) in sdio_uart_port_get()
[all …]
/openbmc/linux/drivers/tty/
H A Dtty_port.c23 static size_t tty_port_default_receive_buf(struct tty_port *port, const u8 *p, in tty_port_default_receive_buf() argument
29 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf()
44 static void tty_port_default_lookahead_buf(struct tty_port *port, const u8 *p, in tty_port_default_lookahead_buf() argument
50 tty = READ_ONCE(port->itty); in tty_port_default_lookahead_buf()
64 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() argument
66 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup()
90 void tty_port_init(struct tty_port *port) in tty_port_init() argument
92 memset(port, 0, sizeof(*port)); in tty_port_init()
93 tty_buffer_init(port); in tty_port_init()
94 init_waitqueue_head(&port->open_wait); in tty_port_init()
[all …]
H A Dvcc.c114 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument
122 vcc_table[i] = port; in vcc_table_add()
160 struct vcc_port *port; in vcc_get() local
166 port = vcc_table[index]; in vcc_get()
167 if (!port) { in vcc_get()
173 if (port->excl_locked) { in vcc_get()
178 port->refcnt++; in vcc_get()
180 return port; in vcc_get()
183 if (port->refcnt) { in vcc_get()
193 port->refcnt++; in vcc_get()
[all …]
/openbmc/linux/drivers/net/bonding/
H A Dbond_3ad.c97 static int ad_lacpdu_send(struct port *port);
98 static int ad_marker_send(struct port *port, struct bond_marker *marker);
99 static void ad_mux_machine(struct port *port, bool *update_slave_arr);
100 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port);
101 static void ad_tx_machine(struct port *port);
102 static void ad_periodic_machine(struct port *port, struct bond_params *bond_params);
103 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr);
108 static void ad_initialize_port(struct port *port, int lacp_fast);
109 static void ad_enable_collecting_distributing(struct port *port,
111 static void ad_disable_collecting_distributing(struct port *port,
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dmpc52xx_uart.c75 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument
80 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port);
87 void (*fifo_init)(struct uart_port *port);
88 unsigned int (*raw_rx_rdy)(struct uart_port *port);
89 unsigned int (*raw_tx_rdy)(struct uart_port *port);
90 unsigned int (*rx_rdy)(struct uart_port *port);
91 unsigned int (*tx_rdy)(struct uart_port *port);
92 unsigned int (*tx_empty)(struct uart_port *port);
93 void (*stop_rx)(struct uart_port *port);
94 void (*start_tx)(struct uart_port *port);
[all …]
H A Dbcm63xx_uart.c73 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() argument
76 return __raw_readl(port->membase + offset); in bcm_uart_readl()
79 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() argument
82 __raw_writel(value, port->membase + offset); in bcm_uart_writel()
88 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() argument
92 val = bcm_uart_readl(port, UART_IR_REG); in bcm_uart_tx_empty()
99 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument
103 val = bcm_uart_readl(port, UART_MCTL_REG); in bcm_uart_set_mctrl()
110 bcm_uart_writel(port, val, UART_MCTL_REG); in bcm_uart_set_mctrl()
112 val = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_mctrl()
[all …]
H A Dmcf.c53 struct uart_port port; member
60 static unsigned int mcf_tx_empty(struct uart_port *port) in mcf_tx_empty() argument
62 return (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXEMPTY) ? in mcf_tx_empty()
68 static unsigned int mcf_get_mctrl(struct uart_port *port) in mcf_get_mctrl() argument
70 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_get_mctrl()
73 sigs = (readb(port->membase + MCFUART_UIPR) & MCFUART_UIPR_CTS) ? in mcf_get_mctrl()
76 sigs |= (mcf_getppdcd(port->line) ? TIOCM_CD : 0); in mcf_get_mctrl()
77 sigs |= (mcf_getppdtr(port->line) ? TIOCM_DTR : 0); in mcf_get_mctrl()
84 static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs) in mcf_set_mctrl() argument
86 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_set_mctrl()
[all …]
H A Dtimbuart.c25 struct uart_port port; member
35 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
39 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() argument
42 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; in timbuart_stop_rx()
43 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_rx()
46 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() argument
49 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; in timbuart_stop_tx()
50 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_tx()
53 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() argument
56 container_of(port, struct timbuart_port, port); in timbuart_start_tx()
[all …]
H A Dapbuart.c36 static void apbuart_tx_chars(struct uart_port *port);
38 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() argument
42 cr = UART_GET_CTRL(port); in apbuart_stop_tx()
44 UART_PUT_CTRL(port, cr); in apbuart_stop_tx()
47 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() argument
51 cr = UART_GET_CTRL(port); in apbuart_start_tx()
53 UART_PUT_CTRL(port, cr); in apbuart_start_tx()
55 if (UART_GET_STATUS(port) & UART_STATUS_THE) in apbuart_start_tx()
56 apbuart_tx_chars(port); in apbuart_start_tx()
59 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() argument
[all …]
H A Daltera_uart.c78 struct uart_port port; member
84 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() argument
86 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl()
89 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() argument
91 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel()
94 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() argument
96 return (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_tx_empty()
100 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() argument
102 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_get_mctrl()
105 sigs = (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_get_mctrl()
[all …]
H A Datmel_serial.c57 static void atmel_start_rx(struct uart_port *port);
58 static void atmel_stop_rx(struct uart_port *port);
182 int (*prepare_rx)(struct uart_port *port);
183 int (*prepare_tx)(struct uart_port *port);
184 void (*schedule_rx)(struct uart_port *port);
185 void (*schedule_tx)(struct uart_port *port);
186 void (*release_rx)(struct uart_port *port);
187 void (*release_tx)(struct uart_port *port);
206 static inline u32 atmel_uart_readl(struct uart_port *port, u32 reg) in atmel_uart_readl() argument
208 return __raw_readl(port->membase + reg); in atmel_uart_readl()
[all …]
H A Daltera_jtaguart.c53 static unsigned int altera_jtaguart_tx_space(struct uart_port *port, u32 *ctlp) in altera_jtaguart_tx_space() argument
55 u32 ctl = readl(port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_tx_space()
63 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() argument
65 return altera_jtaguart_tx_space(port, NULL) ? TIOCSER_TEMT : 0; in altera_jtaguart_tx_empty()
68 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() argument
73 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() argument
77 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() argument
79 port->read_status_mask |= ALTERA_JTAGUART_CONTROL_WE_MSK; in altera_jtaguart_start_tx()
80 writel(port->read_status_mask, in altera_jtaguart_start_tx()
81 port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_start_tx()
[all …]
H A Dst-asc.c36 struct uart_port port; member
146 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port() argument
148 return container_of(port, struct asc_port, port); in to_asc_port()
151 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in() argument
154 return readl_relaxed(port->membase + offset); in asc_in()
156 return readl(port->membase + offset); in asc_in()
160 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out() argument
163 writel_relaxed(value, port->membase + offset); in asc_out()
165 writel(value, port->membase + offset); in asc_out()
173 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts() argument
[all …]
H A Dmeson_uart.c89 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() argument
93 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() argument
98 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() argument
102 val = readl(port->membase + AML_UART_STATUS); in meson_uart_tx_empty()
107 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() argument
111 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
113 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
116 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() argument
120 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
122 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
[all …]
/openbmc/linux/drivers/parport/
H A Dieee1284_ops.c35 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() argument
43 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat()
47 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat()
48 parport_enable_irq (port); in parport_ieee1284_write_compat()
52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat()
53 parport_write_control (port, ctl); in parport_ieee1284_write_compat()
54 parport_data_forward (port); in parport_ieee1284_write_compat()
66 if (!parport_wait_peripheral (port, mask, val)) in parport_ieee1284_write_compat()
71 if ((parport_read_status (port) & in parport_ieee1284_write_compat()
99 parport_wait_event (port, wait); in parport_ieee1284_write_compat()
[all …]
H A Dieee1284.c36 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup() argument
38 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup()
43 struct parport *port = from_timer(port, t, timer); in timeout_waiting_on_port() local
45 parport_ieee1284_wakeup (port); in timeout_waiting_on_port()
64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument
68 if (!port->physport->cad->timeout) in parport_wait_event()
73 timer_setup(&port->timer, timeout_waiting_on_port, 0); in parport_wait_event()
74 mod_timer(&port->timer, jiffies + timeout); in parport_wait_event()
75 ret = down_interruptible (&port->physport->ieee1284.irq); in parport_wait_event()
76 if (!del_timer_sync(&port->timer) && !ret) in parport_wait_event()
[all …]
/openbmc/linux/drivers/scsi/libsas/
H A Dsas_port.c15 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument
19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member()
21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
29 struct asd_sas_port *port = phy->port; in sas_resume_port() local
36 if (port->suspended) in sas_resume_port()
37 port->suspended = 0; in sas_resume_port()
47 list_for_each_entry_safe(dev, n, &port->dev_list, dev_list_node) { in sas_resume_port()
52 sas_unregister_dev(port, dev); in sas_resume_port()
53 sas_destruct_devices(port); in sas_resume_port()
67 sas_discover_event(port, DISCE_RESUME); in sas_resume_port()
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Du_serial.c3 * u_serial.c - utilities for USB gadget "serial port"/TTY support
37 * "serial port" functionality through the USB gadget stack. Each such
38 * port is exposed through a /dev/ttyGS* node.
40 * After this module has been loaded, the individual TTY port can be requested
44 * host issues a config change event. Data can only flow when the port is
47 * A given TTY port can be made available in multiple configurations.
54 * Configurations may expose more than one TTY port. For example, if
99 * The port structure holds info for each port, one for each minor number
103 struct tty_port port; member
136 struct gs_port *port; global() member
207 gs_send_packet(struct gs_port * port,char * packet,unsigned size) gs_send_packet() argument
230 gs_start_tx(struct gs_port * port) gs_start_tx() argument
302 gs_start_rx(struct gs_port * port) gs_start_rx() argument
363 struct gs_port *port = container_of(w, struct gs_port, push); gs_rx_push() local
455 struct gs_port *port = ep->driver_data; gs_read_complete() local
466 struct gs_port *port = ep->driver_data; gs_write_complete() local
539 gs_start_io(struct gs_port * port) gs_start_io() argument
602 struct gs_port *port; gs_open() local
683 struct gs_port *port = tty->driver_data; gs_close() local
742 struct gs_port *port = tty->driver_data; gs_write() local
761 struct gs_port *port = tty->driver_data; gs_put_char() local
777 struct gs_port *port = tty->driver_data; gs_flush_chars() local
790 struct gs_port *port = tty->driver_data; gs_write_room() local
807 struct gs_port *port = tty->driver_data; gs_chars_in_buffer() local
824 struct gs_port *port = tty->driver_data; gs_unthrottle() local
841 struct gs_port *port = tty->driver_data; gs_break_ctl() local
969 gs_console_connect(struct gs_port * port) gs_console_connect() argument
998 gs_console_disconnect(struct gs_port * port) gs_console_disconnect() argument
1022 gs_console_init(struct gs_port * port) gs_console_init() argument
1061 gs_console_exit(struct gs_port * port) gs_console_exit() argument
1083 struct gs_port *port; gserial_set_console() local
1112 struct gs_port *port; gserial_get_console() local
1131 gs_console_connect(struct gs_port * port) gs_console_connect() argument
1136 gs_console_disconnect(struct gs_port * port) gs_console_disconnect() argument
1140 gs_console_init(struct gs_port * port) gs_console_init() argument
1145 gs_console_exit(struct gs_port * port) gs_console_exit() argument
1154 struct gs_port *port; gs_port_alloc() local
1189 gs_closed(struct gs_port * port) gs_closed() argument
1200 gserial_free_port(struct gs_port * port) gserial_free_port() argument
1212 struct gs_port *port; gserial_free_line() local
1232 struct gs_port *port; gserial_alloc_line_no_console() local
1309 struct gs_port *port; gserial_connect() local
1385 struct gs_port *port = gser->ioport; gserial_disconnect() local
1433 struct gs_port *port; gserial_suspend() local
1454 struct gs_port *port; gserial_resume() local
[all...]
/openbmc/linux/drivers/usb/host/
H A Dxhci-dbgtty.c28 dbc_kfifo_to_req(struct dbc_port *port, char *packet) in dbc_kfifo_to_req() argument
32 len = kfifo_len(&port->port.xmit_fifo); in dbc_kfifo_to_req()
39 if (port->tx_boundary) in dbc_kfifo_to_req()
40 len = min(port->tx_boundary, len); in dbc_kfifo_to_req()
42 len = kfifo_out(&port->port.xmit_fifo, packet, len); in dbc_kfifo_to_req()
44 if (port->tx_boundary) in dbc_kfifo_to_req()
45 port->tx_boundary -= len; in dbc_kfifo_to_req()
50 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx() argument
51 __releases(&port->port_lock) in dbc_start_tx()
52 __acquires(&port->port_lock) in dbc_start_tx()
[all …]
/openbmc/qemu/hw/net/rocker/
H A Drocker_fp.c44 char *fp_port_get_name(FpPort *port) in fp_port_get_name() argument
46 return port->name; in fp_port_get_name()
49 bool fp_port_get_link_up(FpPort *port) in fp_port_get_link_up() argument
51 return !qemu_get_queue(port->nic)->link_down; in fp_port_get_link_up()
54 RockerPort *fp_port_get_info(FpPort *port) in fp_port_get_info() argument
58 value->name = g_strdup(port->name); in fp_port_get_info()
59 value->enabled = port->enabled; in fp_port_get_info()
60 value->link_up = fp_port_get_link_up(port); in fp_port_get_info()
61 value->speed = port->speed; in fp_port_get_info()
62 value->duplex = port->duplex; in fp_port_get_info()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-mxc.c123 #define GPIO_DR (port->hwdata->dr_reg)
124 #define GPIO_GDIR (port->hwdata->gdir_reg)
125 #define GPIO_PSR (port->hwdata->psr_reg)
126 #define GPIO_ICR1 (port->hwdata->icr1_reg)
127 #define GPIO_ICR2 (port->hwdata->icr2_reg)
128 #define GPIO_IMR (port->hwdata->imr_reg)
129 #define GPIO_ISR (port->hwdata->isr_reg)
130 #define GPIO_EDGE_SEL (port->hwdata->edge_sel_reg)
132 #define GPIO_INT_LOW_LEV (port->hwdata->low_level)
133 #define GPIO_INT_HIGH_LEV (port->hwdata->high_level)
[all …]
/openbmc/linux/drivers/char/
H A Dvirtio_console.c166 struct port { struct
236 static struct port *find_port_by_vtermno(u32 vtermno) in find_port_by_vtermno() argument
238 struct port *port; in find_port_by_vtermno() local
245 port = container_of(cons, struct port, cons); in find_port_by_vtermno()
249 port = NULL; in find_port_by_vtermno()
252 return port; in find_port_by_vtermno()
255 static struct port *find_port_by_devt_in_portdev(struct ports_device *portdev, in find_port_by_devt_in_portdev()
258 struct port *port; in find_port_by_devt_in_portdev() local
262 list_for_each_entry(port, &portdev->ports, list) { in find_port_by_devt_in_portdev()
263 if (port->cdev->dev == dev) { in find_port_by_devt_in_portdev()
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_core.c122 struct uart_port *port; in serial8250_interrupt() local
125 port = &up->port; in serial8250_interrupt()
127 if (port->handle_irq(port)) { in serial8250_interrupt()
181 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain()
184 if (i->irq == up->port.irq) in serial_link_irq_chain()
194 i->irq = up->port.irq; in serial_link_irq_chain()
210 ret = request_irq(up->port.irq, serial8250_interrupt, in serial_link_irq_chain()
211 up->port in serial_link_irq_chain()
304 struct uart_port *port = &up->port; univ8250_setup_timer() local
329 struct uart_port *port = &up->port; univ8250_setup_irq() local
339 struct uart_port *port = &up->port; univ8250_release_irq() local
352 struct uart_port *port = &up->port; serial8250_request_rsa_resource() local
373 struct uart_port *port = &up->port; serial8250_release_rsa_resource() local
417 serial8250_set_isa_configurator(void (* v)(int port,struct uart_port * up,u32 * capabilities)) serial8250_set_isa_configurator() argument
425 univ8250_config_port(struct uart_port * port,int flags) univ8250_config_port() argument
451 univ8250_request_port(struct uart_port * port) univ8250_request_port() argument
466 univ8250_release_port(struct uart_port * port) univ8250_release_port() argument
551 struct uart_port *port = &up->port; serial8250_isa_init_ports() local
606 struct uart_port *port; univ8250_console_setup() local
640 struct uart_port *port; univ8250_console_exit() local
680 struct uart_port *port = &serial8250_ports[i].port; univ8250_console_match() local
742 early_serial_setup(struct uart_port * port) early_serial_setup() argument
787 struct uart_port *port = &up->port; serial8250_suspend_port() local
811 struct uart_port *port = &up->port; serial8250_resume_port() local
950 serial8250_find_match_or_unused(const struct uart_port * port) serial8250_find_match_or_unused() argument
992 struct uart_port *port = &up->port; serial_8250_overrun_backoff_work() local
[all...]
/openbmc/linux/drivers/usb/serial/
H A Dgeneric.c106 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument
110 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open()
112 if (port->bulk_in_size) in usb_serial_generic_open()
113 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open()
119 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() argument
124 if (port->bulk_out_size) { in usb_serial_generic_close()
125 for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) in usb_serial_generic_close()
126 usb_kill_urb(port->write_urbs[i]); in usb_serial_generic_close()
128 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_close()
129 kfifo_reset_out(&port->write_fifo); in usb_serial_generic_close()
[all …]

12345678910>>...184