| /kernel/linux/linux-6.6/drivers/usb/typec/tcpm/ |
| D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 206 VDM_STATE_ERR_BUSY = -3, 207 VDM_STATE_ERR_SEND = -2, 208 VDM_STATE_ERR_TMOUT = -1, 236 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 275 * @min_volt: Actual min voltage at the local port 276 * @req_min_volt: Requested min voltage to the port partner 277 * @max_volt: Actual max voltage at the local port 278 * @req_max_volt: Requested max voltage to the port partner [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/typec/tcpm/ |
| D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 156 VDM_STATE_ERR_BUSY = -3, 157 VDM_STATE_ERR_SEND = -2, 158 VDM_STATE_ERR_TMOUT = -1, 185 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 222 * @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 [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/serial/ |
| D | vr41xx_siu.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2004-2008 Yoichi Yuasa <yuasa@linux-mips.org> 45 [0 ... SIU_PORTS_MAX-1] = { 46 .lock = __SPIN_LOCK_UNLOCKED(siu_uart_ports->lock), 55 #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() [all …]
|
| D | mvebu-uart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Marvell Armada-3700 Serial Driver 80 #define MVEBU_UART_TYPE "mvebu-uart" 108 /* 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 [all …]
|
| D | timbuart.c | 1 // SPDX-License-Identifier: GPL-2.0 25 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 [all …]
|
| D | milbeaut_usio.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #define USIO_NAME "mlb-usio-uart" 65 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() [all …]
|
| D | meson_uart.c | 1 // SPDX-License-Identifier: GPL-2.0 83 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() [all …]
|
| D | bcm63xx_uart.c | 1 // SPDX-License-Identifier: GPL-2.0 37 * - rx fifo full 38 * - rx fifo above threshold 39 * - rx fifo not empty for too long 53 * - tx fifo empty 54 * - tx fifo below threshold 73 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/ |
| D | tty_port.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Tty port functions 23 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() 58 if (ld->ops->lookahead_buf) in tty_port_default_lookahead_buf() 59 ld->ops->lookahead_buf(ld->tty, p, f, count); 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/bonding/ |
| D | bond_3ad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved. 34 /* Port Variables definitions used by the State Machines (43.4.7 in the 49 /* Port Key definitions 52 * -------------------------------------------------------------- 53 * Port key | User key (10 bits) | Speed (5 bits) | Duplex| 54 * -------------------------------------------------------------- 93 static int ad_lacpdu_send(struct port *port); 94 static int ad_marker_send(struct port *port, struct bond_marker *marker); 95 static void ad_mux_machine(struct port *port, bool *update_slave_arr); [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/ |
| D | tty_port.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Tty port functions 23 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf() argument 31 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf() 46 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() argument 48 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup() 62 void tty_port_init(struct tty_port *port) in tty_port_init() argument 64 memset(port, 0, sizeof(*port)); in tty_port_init() 65 tty_buffer_init(port); in tty_port_init() 66 init_waitqueue_head(&port->open_wait); in tty_port_init() [all …]
|
| D | vcc.c | 1 // SPDX-License-Identifier: GPL-2.0 52 /* Microseconds that thread will delay waiting for a vcc port ref */ 59 #define VCC_CTL_BREAK -1 60 #define VCC_CTL_HUP -2 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, 120 * -1 on failure 122 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument 130 vcc_table[i] = port; in vcc_table_add() [all …]
|
| /kernel/linux/linux-5.10/drivers/mmc/core/ |
| D | sdio_uart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 * Note: Although this driver assumes a 16550A-like UART implementation, 22 * 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 88 int index, ret = -EBUSY; in sdio_uart_add_port() 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() 93 return -ENOMEM; in sdio_uart_add_port() [all …]
|
| /kernel/linux/linux-6.6/drivers/mmc/core/ |
| D | sdio_uart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 * Note: Although this driver assumes a 16550A-like UART implementation, 22 * concurrent access to the same port. 65 struct tty_port port; member 87 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument 89 int index, ret = -EBUSY; in sdio_uart_add_port() 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() 94 return -ENOMEM; in sdio_uart_add_port() [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/libsas/ |
| D | sas_port.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * 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 17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() 19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member() 20 SAS_ADDR_SIZE) != 0 || (sas_ha->strict_wide_ports && 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 30 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() 31 struct sas_internal *si = to_sas_internal(sas_ha->shost->transportt); in sas_resume_port() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/libsas/ |
| D | sas_port.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * 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 17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() 19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member() 20 SAS_ADDR_SIZE) != 0 || (sas_ha->strict_wide_ports && 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 30 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() 31 struct sas_internal *si = to_sas_internal(sas_ha->core.shost->transportt); in sas_resume_port() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/bonding/ |
| D | bond_3ad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved. 34 /* Port Variables definitions used by the State Machines (43.4.7 in the 49 /* Port Key definitions 52 * -------------------------------------------------------------- 53 * Port key | User key (10 bits) | Speed (5 bits) | Duplex| 54 * -------------------------------------------------------------- 97 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); [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/host/ |
| D | xhci-dbgtty.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * xhci-dbgtty.c - tty glue for xHCI debug capability 16 #include "xhci-dbgcap.h" 24 return dbc->priv; in dbc_to_port() 28 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/host/ |
| D | xhci-dbgtty.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * xhci-dbgtty.c - tty glue for xHCI debug capability 15 #include "xhci-dbgcap.h" 24 return dbc->priv; in dbc_to_port() 28 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/serial/ |
| D | mpc52xx_uart.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * and reading, they may not be updated in-time and a race condition may 25 * Copyright (C) 2004-2006 Sylvain Munaut <tnt@246tNt.com> 52 /* We've been assigned a range on the "Low-density serial ports" major */ 61 /* Rem: - We use the read_status_mask as a shadow of 62 * psc->mpc52xx_psc_imr 63 * - It's important that is array is all zero on start as we 75 #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); [all …]
|
| D | milbeaut_usio.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #define USIO_NAME "mlb-usio-uart" 65 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() [all …]
|
| D | timbuart.c | 1 // SPDX-License-Identifier: GPL-2.0 25 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 [all …]
|
| D | bcm63xx_uart.c | 1 // SPDX-License-Identifier: GPL-2.0 37 * - rx fifo full 38 * - rx fifo above threshold 39 * - rx fifo not empty for too long 53 * - tx fifo empty 54 * - tx fifo below threshold 73 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
| D | 8250_core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Universal/legacy driver for 8250/16550-type serial ports 9 * Supports: ISA-compatible 8250/16550 ports 12 * userspace-configurable "phantom" ports 48 * share_irqs - whether we pass IRQF_SHARED to request_irq(). This option 49 * is unsafe when used on edge-triggered interrupts. 63 * SERIAL_PORT_DFNS tells us about built-in ports that have no 104 * line has been de-asserted. 117 spin_lock(&i->lock); in serial8250_interrupt() 119 l = i->head; in serial8250_interrupt() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/serial/ |
| D | generic.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2010 - 2013 Johan Hovold (jhovold@gmail.com) 6 * Copyright (C) 1999 - 2002 Greg Kroah-Hartman (greg@kroah.com) 40 struct device *dev = &serial->interface->dev; in usb_serial_generic_probe() 42 dev_info(dev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n"); in usb_serial_generic_probe() 43 dev_info(dev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n"); in usb_serial_generic_probe() 51 struct device *dev = &serial->interface->dev; in usb_serial_generic_calc_num_ports() 54 num_ports = max(epds->num_bulk_in, epds->num_bulk_out); in usb_serial_generic_calc_num_ports() 58 return -ENODEV; in usb_serial_generic_calc_num_ports() 106 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument [all …]
|