/linux-6.12.1/drivers/usb/typec/tcpm/ |
D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 210 VDM_STATE_ERR_BUSY = -3, 211 VDM_STATE_ERR_SEND = -2, 212 VDM_STATE_ERR_TMOUT = -1, 240 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 280 * @min_volt: Actual min voltage at the local port 281 * @req_min_volt: Requested min voltage to the port partner 282 * @max_volt: Actual max voltage at the local port 283 * @req_max_volt: Requested max voltage to the port partner [all …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/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 …]
|
D | vcc.c | 1 // SPDX-License-Identifier: GPL-2.0 46 /* Microseconds that thread will delay waiting for a vcc port ref */ 53 #define VCC_CTL_BREAK -1 54 #define VCC_CTL_HUP -2 108 * vcc_table_add() - Add VCC port to the VCC table 109 * @port: pointer to the VCC port 111 * Return: index of the port in the VCC table on success, 112 * -1 on failure 114 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument 122 vcc_table[i] = port; in vcc_table_add() [all …]
|
/linux-6.12.1/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 11 * userspace-configurable "phantom" ports 63 * line has been de-asserted. 76 spin_lock(&i->lock); in serial8250_interrupt() 78 l = i->head; in serial8250_interrupt() 81 struct uart_port *port; in serial8250_interrupt() local 84 port = &up->port; in serial8250_interrupt() 86 if (port->handle_irq(port)) { in serial8250_interrupt() 92 l = l->next; in serial8250_interrupt() [all …]
|
/linux-6.12.1/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 tty_port *tport = &port->state->port; 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 | meson_uart.c | 1 // SPDX-License-Identifier: GPL-2.0 89 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() [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 …]
|
D | altera_uart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * altera_uart.c -- Altera UART driver 5 * Based on mcf.c -- Freescale ColdFire UART driver 7 * (C) Copyright 2003-2007, Greg Ungerer <gerg@snapgear.com> 54 #define ALTERA_UART_STATUS_DCTS_MSK 0x0400 /* CTS logic-level change */ 75 * Local per-uart structure. 78 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 [all …]
|
D | esp32_acm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #define DRIVER_NAME "esp32s3-acm" 41 .compatible = "esp,esp32s3-acm", 48 static void esp32s3_acm_write(struct uart_port *port, unsigned long reg, u32 v) in esp32s3_acm_write() argument 50 writel(v, port->membase + reg); in esp32s3_acm_write() 53 static u32 esp32s3_acm_read(struct uart_port *port, unsigned long reg) in esp32s3_acm_read() argument 55 return readl(port->membase + reg); in esp32s3_acm_read() 58 static u32 esp32s3_acm_tx_fifo_free(struct uart_port *port) in esp32s3_acm_tx_fifo_free() argument 60 u32 status = esp32s3_acm_read(port, USB_SERIAL_JTAG_EP1_CONF_REG); in esp32s3_acm_tx_fifo_free() 65 static u32 esp32s3_acm_tx_fifo_cnt(struct uart_port *port) in esp32s3_acm_tx_fifo_cnt() argument [all …]
|
D | rda-uart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 117 struct uart_port port; member 121 #define to_rda_uart_port(port) container_of(port, struct rda_uart_port, port) argument 125 static inline void rda_uart_write(struct uart_port *port, u32 val, in rda_uart_write() argument 128 writel(val, port->membase + off); in rda_uart_write() 131 static inline u32 rda_uart_read(struct uart_port *port, unsigned int off) in rda_uart_read() argument 133 return readl(port->membase + off); in rda_uart_read() 136 static unsigned int rda_uart_tx_empty(struct uart_port *port) in rda_uart_tx_empty() argument 142 uart_port_lock_irqsave(port, &flags); in rda_uart_tx_empty() 144 val = rda_uart_read(port, RDA_UART_STATUS); in rda_uart_tx_empty() [all …]
|
D | sprd_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2012-2015 Spreadtrum Communications Inc. 10 #include <linux/dma-mapping.h> 11 #include <linux/dma/sprd-dma.h> 122 struct uart_port port; member 134 static int sprd_start_dma_rx(struct uart_port *port); 135 static int sprd_tx_dma_config(struct uart_port *port); 137 static inline unsigned int serial_in(struct uart_port *port, in serial_in() argument 140 return readl_relaxed(port->membase + offset); in serial_in() 143 static inline void serial_out(struct uart_port *port, unsigned int offset, in serial_out() argument [all …]
|
D | amba-pl010.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * This is a generic driver for ARM AMBA-type serial ports. They 11 * have a lot of 16550-like features, but are not register compatible. 49 * We wrap our port structure around the generic uart_port. 52 struct uart_port port; member 59 static void pl010_stop_tx(struct uart_port *port) in pl010_stop_tx() argument 62 container_of(port, struct uart_amba_port, port); in pl010_stop_tx() 65 cr = readb(uap->port.membase + UART010_CR); in pl010_stop_tx() 67 writel(cr, uap->port.membase + UART010_CR); in pl010_stop_tx() 70 static void pl010_start_tx(struct uart_port *port) in pl010_start_tx() argument [all …]
|
/linux-6.12.1/drivers/char/ |
D | virtio_console.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 #include <linux/dma-mapping.h> 43 /* Used for exporting per-port information to debugfs */ 56 .name = "virtio-ports", 67 /* The hvc device associated with this console port */ 113 * This is a per-device struct that stores data common to all the 114 * ports for that device (vdev->priv). 144 * guest->host transfers, one for host->guest transfers 149 * A control packet buffer for guest->host requests, protected 154 /* Array of per-port IO virtqueues */ [all …]
|
/linux-6.12.1/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() 105 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument [all …]
|
/linux-6.12.1/drivers/scsi/bfa/ |
D | bfa_port.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 4 * Copyright (c) 2014- QLogic Corporation. 8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. 18 BFA_TRC_FILE(CNA, PORT); 21 bfa_port_stats_swap(struct bfa_port_s *port, union bfa_port_stats_u *stats) in bfa_port_stats_swap() argument 45 * @param[in] port - Pointer to the port module 46 * status - Return status from the f/w 51 bfa_port_enable_isr(struct bfa_port_s *port, bfa_status_t status) in bfa_port_enable_isr() argument 53 bfa_trc(port, status); in bfa_port_enable_isr() [all …]
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-mxc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 // Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. 86 .edge_sel_reg = -EINVAL, 101 .edge_sel_reg = -EINVAL, 123 #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) [all …]
|
/linux-6.12.1/drivers/usb/gadget/function/ |
D | u_serial.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * u_serial.c - utilities for USB gadget "serial port"/TTY support 10 * Copyright (C) 1999 - 2002 Greg Kroah-Hartman (greg@kroah.com) 38 * "serial port" functionality through the USB gadget stack. Each such 39 * port is exposed through a /dev/ttyGS* node. 41 * After this module has been loaded, the individual TTY port can be requested 45 * host issues a config change event. Data can only flow when the port is 48 * A given TTY port can be made available in multiple configurations. 55 * Configurations may expose more than one TTY port. For example, if 66 * gserial <---> gs_port ... links will be null when the USB link is [all …]
|
/linux-6.12.1/drivers/net/wan/ |
D | hd64572.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Hitachi (now Renesas) SCA-II HD64572 driver for Linux 5 * Copyright (C) 1998-2008 Krzysztof Halasa <khc@pm.waw.pl> 7 * Source of information: HD64572 SCA-II User's Manual 11 * Packet buffer descriptor rings - starting from card->rambase: 17 * Packet data buffers - starting from card->rambase + buff_offset: 44 #define get_msci(port) ((port)->chan ? MSCI1_OFFSET : MSCI0_OFFSET) argument 45 #define get_dmac_rx(port) ((port)->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument 46 #define get_dmac_tx(port) ((port)->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument 48 #define sca_in(reg, card) readb((card)->scabase + (reg)) [all …]
|
/linux-6.12.1/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 1 // SPDX-License-Identifier: GPL-2.0 61 static void mvpp2_acpi_start(struct mvpp2_port *port); 76 writel(data, priv->swth_base[0] + offset); in mvpp2_write() 81 return readl(priv->swth_base[0] + offset); in mvpp2_read() 86 return readl_relaxed(priv->swth_base[0] + offset); in mvpp2_read_relaxed() 91 return cpu % priv->nthreads; in mvpp2_cpu_to_thread() 96 writel(data, priv->cm3_base + offset); in mvpp2_cm3_write() 101 return readl(priv->cm3_base + offset); in mvpp2_cm3_read() 124 * - per-thread registers, where each thread has its own copy of the 140 * - global registers that must be accessed through a specific thread [all …]
|