Home
last modified time | relevance | path

Searched full:port (Results 1 – 25 of 7675) sorted by relevance

12345678910>>...307

/kernel/linux/linux-4.19/drivers/usb/typec/
Dtcpm.c321 /* port belongs to a self powered device */
335 struct tcpm_port *port; member
343 #define tcpm_port_is_sink(port) \ argument
344 ((tcpm_cc_is_sink((port)->cc1) && !tcpm_cc_is_sink((port)->cc2)) || \
345 (tcpm_cc_is_sink((port)->cc2) && !tcpm_cc_is_sink((port)->cc1)))
351 #define tcpm_port_is_source(port) \ argument
352 ((tcpm_cc_is_source((port)->cc1) && \
353 !tcpm_cc_is_source((port)->cc2)) || \
354 (tcpm_cc_is_source((port)->cc2) && \
355 !tcpm_cc_is_source((port)->cc1)))
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
Dtcpm.c222 * @min_volt: Actual min voltage at the local port
223 * @req_min_volt: Requested min voltage to the port partner
224 * @max_volt: Actual max voltage at the local port
225 * @req_max_volt: Requested max voltage to the port partner
226 * @max_curr: Actual max current at the local port
227 * @req_max_curr: Requested max current of the port partner
228 * @req_out_volt: Requested output voltage to the port partner
229 * @req_op_curr: Requested operating current to the port partner
344 /* Requested current / voltage to the port partner */
347 /* Actual current / voltage limit of the local port */
[all …]
/kernel/linux/linux-5.10/drivers/tty/serial/
Dvr41xx_siu.c55 #define siu_read(port, offset) readb((port)->membase + (offset)) argument
56 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) argument
60 struct uart_port *port; in vr41xx_select_siu_interface() local
64 port = &siu_uart_ports[0]; in vr41xx_select_siu_interface()
66 spin_lock_irqsave(&port->lock, flags); in vr41xx_select_siu_interface()
68 irsel = siu_read(port, SIUIRSEL); in vr41xx_select_siu_interface()
73 siu_write(port, SIUIRSEL, irsel); in vr41xx_select_siu_interface()
75 spin_unlock_irqrestore(&port->lock, flags); in vr41xx_select_siu_interface()
81 struct uart_port *port; in vr41xx_use_irda() local
85 port = &siu_uart_ports[0]; in vr41xx_use_irda()
[all …]
Dmvebu-uart.c108 /* Driver data, a structure for each UART port */
128 struct uart_port *port; member
138 static struct mvebu_uart *to_mvuart(struct uart_port *port) in to_mvuart() argument
140 return (struct mvebu_uart *)port->private_data; in to_mvuart()
143 #define IS_EXTENDED(port) (to_mvuart(port)->data->is_ext) argument
145 #define UART_RBR(port) (to_mvuart(port)->data->regs.rbr) argument
146 #define UART_TSH(port) (to_mvuart(port)->data->regs.tsh) argument
147 #define UART_CTRL(port) (to_mvuart(port)->data->regs.ctrl) argument
148 #define UART_INTR(port) (to_mvuart(port)->data->regs.intr) argument
150 #define CTRL_TX_RDY_INT(port) (to_mvuart(port)->data->flags.ctrl_tx_rdy_int) argument
[all …]
Dmeson_uart.c83 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() argument
87 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() argument
92 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() argument
96 val = readl(port->membase + AML_UART_STATUS); in meson_uart_tx_empty()
101 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() argument
105 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
107 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
110 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() argument
114 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
116 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
[all …]
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 …]
Dmilbeaut_usio.c65 static void mlb_usio_stop_tx(struct uart_port *port) in mlb_usio_stop_tx() argument
67 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_stop_tx()
68 port->membase + MLB_USIO_REG_FCR); in mlb_usio_stop_tx()
69 writeb(readb(port->membase + MLB_USIO_REG_SCR) & ~MLB_USIO_SCR_TBIE, in mlb_usio_stop_tx()
70 port->membase + MLB_USIO_REG_SCR); in mlb_usio_stop_tx()
73 static void mlb_usio_tx_chars(struct uart_port *port) in mlb_usio_tx_chars() argument
75 struct circ_buf *xmit = &port->state->xmit; in mlb_usio_tx_chars()
78 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_tx_chars()
79 port->membase + MLB_USIO_REG_FCR); in mlb_usio_tx_chars()
80 writeb(readb(port->membase + MLB_USIO_REG_SCR) & in mlb_usio_tx_chars()
[all …]
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 …]
/kernel/linux/linux-4.19/drivers/tty/serial/
Dvr41xx_siu.c59 #define siu_read(port, offset) readb((port)->membase + (offset)) argument
60 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) argument
64 struct uart_port *port; in vr41xx_select_siu_interface() local
68 port = &siu_uart_ports[0]; in vr41xx_select_siu_interface()
70 spin_lock_irqsave(&port->lock, flags); in vr41xx_select_siu_interface()
72 irsel = siu_read(port, SIUIRSEL); in vr41xx_select_siu_interface()
77 siu_write(port, SIUIRSEL, irsel); in vr41xx_select_siu_interface()
79 spin_unlock_irqrestore(&port->lock, flags); in vr41xx_select_siu_interface()
85 struct uart_port *port; in vr41xx_use_irda() local
89 port = &siu_uart_ports[0]; in vr41xx_use_irda()
[all …]
Dmvebu-uart.c106 /* Driver data, a structure for each UART port */
126 struct uart_port *port; member
136 static struct mvebu_uart *to_mvuart(struct uart_port *port) in to_mvuart() argument
138 return (struct mvebu_uart *)port->private_data; in to_mvuart()
141 #define IS_EXTENDED(port) (to_mvuart(port)->data->is_ext) argument
143 #define UART_RBR(port) (to_mvuart(port)->data->regs.rbr) argument
144 #define UART_TSH(port) (to_mvuart(port)->data->regs.tsh) argument
145 #define UART_CTRL(port) (to_mvuart(port)->data->regs.ctrl) argument
146 #define UART_INTR(port) (to_mvuart(port)->data->regs.intr) argument
148 #define CTRL_TX_RDY_INT(port) (to_mvuart(port)->data->flags.ctrl_tx_rdy_int) argument
[all …]
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 …]
Dbcm63xx_uart.c77 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() argument
80 return __raw_readl(port->membase + offset); in bcm_uart_readl()
83 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() argument
86 __raw_writel(value, port->membase + offset); in bcm_uart_writel()
92 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() argument
96 val = bcm_uart_readl(port, UART_IR_REG); in bcm_uart_tx_empty()
103 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument
107 val = bcm_uart_readl(port, UART_MCTL_REG); in bcm_uart_set_mctrl()
114 bcm_uart_writel(port, val, UART_MCTL_REG); in bcm_uart_set_mctrl()
116 val = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_mctrl()
[all …]
/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_3ad.c34 /* Port Variables definitions used by the State Machines (43.4.7 in the
49 /* Port Key definitions
53 * Port key | User key (10 bits) | Speed (5 bits) | Duplex|
92 static int ad_lacpdu_send(struct port *port);
93 static int ad_marker_send(struct port *port, struct bond_marker *marker);
94 static void ad_mux_machine(struct port *port, bool *update_slave_arr);
95 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port);
96 static void ad_tx_machine(struct port *port);
97 static void ad_periodic_machine(struct port *port);
98 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr);
[all …]
/kernel/linux/linux-5.10/drivers/tty/
Dtty_port.c3 * Tty port functions
22 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf() argument
30 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf()
45 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() argument
47 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup()
61 void tty_port_init(struct tty_port *port) in tty_port_init() argument
63 memset(port, 0, sizeof(*port)); in tty_port_init()
64 tty_buffer_init(port); in tty_port_init()
65 init_waitqueue_head(&port->open_wait); in tty_port_init()
66 init_waitqueue_head(&port->delta_msr_wait); in tty_port_init()
[all …]
Dvcc.c52 /* Microseconds that thread will delay waiting for a vcc port ref */
116 * vcc_table_add() - Add VCC port to the VCC table
117 * @port: pointer to the VCC port
119 * Return: index of the port in the VCC table on success,
122 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument
130 vcc_table[i] = port; in vcc_table_add()
143 * vcc_table_remove() - Removes a VCC port from the VCC table
159 * vcc_get() - Gets a reference to VCC port
163 * Return: reference to the VCC port, if found
164 * NULL, if port not found
[all …]
/kernel/linux/linux-4.19/drivers/tty/
Dtty_port.c3 * Tty port functions
22 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf() argument
30 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf()
45 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() argument
47 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup()
61 void tty_port_init(struct tty_port *port) in tty_port_init() argument
63 memset(port, 0, sizeof(*port)); in tty_port_init()
64 tty_buffer_init(port); in tty_port_init()
65 init_waitqueue_head(&port->open_wait); in tty_port_init()
66 init_waitqueue_head(&port->delta_msr_wait); in tty_port_init()
[all …]
Dvcc.c51 /* Microseconds that thread will delay waiting for a vcc port ref */
115 * vcc_table_add() - Add VCC port to the VCC table
116 * @port: pointer to the VCC port
118 * Return: index of the port in the VCC table on success,
121 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument
129 vcc_table[i] = port; in vcc_table_add()
142 * vcc_table_remove() - Removes a VCC port from the VCC table
158 * vcc_get() - Gets a reference to VCC port
162 * Return: reference to the VCC port, if found
163 * NULL, if port not found
[all …]
/kernel/linux/linux-5.10/drivers/mmc/core/
Dsdio_uart.c22 * concurrent access to the same port.
64 struct tty_port port; member
86 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
90 mutex_init(&port->func_lock); in sdio_uart_add_port()
91 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
92 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
98 port->index = index; in sdio_uart_add_port()
99 sdio_uart_table[index] = port; in sdio_uart_add_port()
111 struct sdio_uart_port *port; in sdio_uart_port_get() local
117 port = sdio_uart_table[index]; in sdio_uart_port_get()
[all …]
/kernel/linux/linux-4.19/drivers/mmc/core/
Dsdio_uart.c26 * concurrent access to the same port.
68 struct tty_port port; member
90 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
94 mutex_init(&port->func_lock); in sdio_uart_add_port()
95 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
96 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
102 port->index = index; in sdio_uart_add_port()
103 sdio_uart_table[index] = port; in sdio_uart_add_port()
115 struct sdio_uart_port *port; in sdio_uart_port_get() local
121 port = sdio_uart_table[index]; in sdio_uart_port_get()
[all …]
/kernel/linux/linux-4.19/drivers/net/bonding/
Dbond_3ad.c50 /* Port state definitions (43.4.2.2 in the 802.3ad standard) */
60 /* Port Variables definitions used by the State Machines (43.4.7 in the
75 /* Port Key definitions
79 * Port key | User key (10 bits) | Speed (5 bits) | Duplex|
118 static int ad_lacpdu_send(struct port *port);
119 static int ad_marker_send(struct port *port, struct bond_marker *marker);
120 static void ad_mux_machine(struct port *port, bool *update_slave_arr);
121 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port);
122 static void ad_tx_machine(struct port *port);
123 static void ad_periodic_machine(struct port *port);
[all …]
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_port.c3 * Serial Attached SCSI (SAS) Port class
15 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()
43 /* if the port came back: 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()
[all …]
/kernel/linux/linux-4.19/drivers/scsi/libsas/
Dsas_port.c2 * Serial Attached SCSI (SAS) Port class
31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument
35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member()
37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
45 struct asd_sas_port *port = phy->port; in sas_resume_port() local
52 if (port->suspended) in sas_resume_port()
53 port->suspended = 0; in sas_resume_port()
59 /* if the port came back: in sas_resume_port()
63 list_for_each_entry(dev, &port->dev_list, dev_list_node) { in sas_resume_port()
68 sas_unregister_dev(port, dev); in sas_resume_port()
[all …]
/kernel/linux/linux-4.19/drivers/usb/host/
Dxhci-dbgtty.c18 dbc_send_packet(struct dbc_port *port, char *packet, unsigned int size) in dbc_send_packet() argument
22 len = kfifo_len(&port->write_fifo); in dbc_send_packet()
26 size = kfifo_out(&port->write_fifo, packet, size); in dbc_send_packet()
30 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx() argument
31 __releases(&port->port_lock) in dbc_start_tx()
32 __acquires(&port->port_lock) in dbc_start_tx()
38 struct list_head *pool = &port->write_pool; in dbc_start_tx()
42 len = dbc_send_packet(port, req->buf, DBC_MAX_PACKET); in dbc_start_tx()
50 spin_unlock(&port->port_lock); in dbc_start_tx()
51 status = dbc_ep_queue(port->out, req, GFP_ATOMIC); in dbc_start_tx()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-dbgtty.c28 dbc_send_packet(struct dbc_port *port, char *packet, unsigned int size) in dbc_send_packet() argument
32 len = kfifo_len(&port->write_fifo); in dbc_send_packet()
36 size = kfifo_out(&port->write_fifo, packet, size); in dbc_send_packet()
40 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx() argument
41 __releases(&port->port_lock) in dbc_start_tx()
42 __acquires(&port->port_lock) in dbc_start_tx()
48 struct list_head *pool = &port->write_pool; in dbc_start_tx()
52 len = dbc_send_packet(port, req->buf, DBC_MAX_PACKET); in dbc_start_tx()
60 spin_unlock(&port->port_lock); in dbc_start_tx()
62 spin_lock(&port->port_lock); in dbc_start_tx()
[all …]
/kernel/linux/linux-4.19/drivers/usb/serial/
Dgeneric.c106 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument
111 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_open()
112 port->throttled = 0; in usb_serial_generic_open()
113 port->throttle_req = 0; in usb_serial_generic_open()
114 spin_unlock_irqrestore(&port->lock, flags); in usb_serial_generic_open()
116 if (port->bulk_in_size) in usb_serial_generic_open()
117 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open()
123 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() argument
128 if (port->bulk_out_size) { in usb_serial_generic_close()
129 for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) in usb_serial_generic_close()
[all …]

12345678910>>...307