| /kernel/linux/linux-4.19/drivers/tty/serial/ |
| D | netx-serial.c | 1 // SPDX-License-Identifier: GPL-2.0 25 #include <mach/netx-regs.h> 27 /* We've been assigned a range on the "Low-density serial ports" major */ 50 #define SR_FE (1<<0) 51 #define SR_PE (1<<1) 52 #define SR_BE (1<<2) 53 #define SR_OE (1<<3) 55 #define LINE_CR_BRK (1<<0) 56 #define LINE_CR_PEN (1<<1) 57 #define LINE_CR_EPS (1<<2) [all …]
|
| D | lpc32xx_hs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 40 #define LPC32XX_HSU_BREAK_DATA (1 << 10) 41 #define LPC32XX_HSU_ERROR_DATA (1 << 9) 42 #define LPC32XX_HSU_RX_EMPTY (1 << 8) 47 #define LPC32XX_HSU_TX_INT_SET (1 << 6) 48 #define LPC32XX_HSU_RX_OE_INT (1 << 5) 49 #define LPC32XX_HSU_BRK_INT (1 << 4) 50 #define LPC32XX_HSU_FE_INT (1 << 3) 51 #define LPC32XX_HSU_RX_TIMEOUT_INT (1 << 2) 52 #define LPC32XX_HSU_RX_TRIG_INT (1 << 1) [all …]
|
| D | vt8500_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 54 #define TXDE (1 << 0) /* Tx Data empty */ 55 #define RXDF (1 << 1) /* Rx Data full */ 56 #define TXFAE (1 << 2) /* Tx FIFO almost empty */ 57 #define TXFE (1 << 3) /* Tx FIFO empty */ 58 #define RXFAF (1 << 4) /* Rx FIFO almost full */ 59 #define RXFF (1 << 5) /* Rx FIFO full */ 60 #define TXUDR (1 << 6) /* Tx underrun */ 61 #define RXOVER (1 << 7) /* Rx overrun */ 62 #define PER (1 << 8) /* Parity error */ [all …]
|
| D | sunhv.c | 1 // SPDX-License-Identifier: GPL-2.0 35 #define CON_BREAK ((long)-1) 36 #define CON_HUP ((long)-2) 46 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_putchar() argument 49 long status = sun4v_con_putchar(xmit->buf[xmit->tail]); in transmit_chars_putchar() 54 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars_putchar() 55 port->icount.tx++; in transmit_chars_putchar() 59 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_write() argument 62 unsigned long ra = __pa(xmit->buf + xmit->tail); in transmit_chars_write() 65 len = CIRC_CNT_TO_END(xmit->head, xmit->tail, in transmit_chars_write() [all …]
|
| D | sc16is7xx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * SC16IS7xx tty serial driver - Copyright (C) 2014 GridPoint 46 * - only on 75x/76x 49 * - only on 75x/76x 52 * - only on 75x/76x 55 * - only on 75x/76x 59 /* TCR/TLR Register set: Only if ((MCR[2] == 1) && (EFR[4] == 1)) */ 63 /* Special Register set: Only if ((LCR[7] == 1) && (LCR != 0xBF)) */ 75 #define SC16IS7XX_IER_RDI_BIT (1 << 0) /* Enable RX data interrupt */ 76 #define SC16IS7XX_IER_THRI_BIT (1 << 1) /* Enable TX holding register [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/smipcie/ |
| D | smipcie-main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 /* set port mux.*/ in smi_hw_init() 32 /* Port A */ in smi_hw_init() 40 /* Port B */ in smi_hw_init() 109 udelay(1); in smi_i2c_getsda() 110 return (smi_read(sw_ctl) & SW_I2C_MSK_DAT_IN) ? 1 : 0; in smi_i2c_getsda() 118 udelay(1); in smi_i2c_getscl() 119 return (smi_read(sw_ctl) & SW_I2C_MSK_CLK_IN) ? 1 : 0; in smi_i2c_getscl() 149 /* i2c 1.*/ 184 i2c_set_adapdata(&dev->i2c_bus[0], dev); in smi_i2c_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/serial/ |
| D | lpc32xx_hs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 28 #include <linux/soc/nxp/lpc32xx-misc.h> 39 #define LPC32XX_HSU_BREAK_DATA (1 << 10) 40 #define LPC32XX_HSU_ERROR_DATA (1 << 9) 41 #define LPC32XX_HSU_RX_EMPTY (1 << 8) 46 #define LPC32XX_HSU_TX_INT_SET (1 << 6) 47 #define LPC32XX_HSU_RX_OE_INT (1 << 5) 48 #define LPC32XX_HSU_BRK_INT (1 << 4) 49 #define LPC32XX_HSU_FE_INT (1 << 3) 50 #define LPC32XX_HSU_RX_TIMEOUT_INT (1 << 2) [all …]
|
| D | sunhv.c | 1 // SPDX-License-Identifier: GPL-2.0 31 #define CON_BREAK ((long)-1) 32 #define CON_HUP ((long)-2) 42 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_putchar() argument 45 long status = sun4v_con_putchar(xmit->buf[xmit->tail]); in transmit_chars_putchar() 50 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars_putchar() 51 port->icount.tx++; in transmit_chars_putchar() 55 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_write() argument 58 unsigned long ra = __pa(xmit->buf + xmit->tail); in transmit_chars_write() 61 len = CIRC_CNT_TO_END(xmit->head, xmit->tail, in transmit_chars_write() [all …]
|
| D | vt8500_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 50 #define TXDE (1 << 0) /* Tx Data empty */ 51 #define RXDF (1 << 1) /* Rx Data full */ 52 #define TXFAE (1 << 2) /* Tx FIFO almost empty */ 53 #define TXFE (1 << 3) /* Tx FIFO empty */ 54 #define RXFAF (1 << 4) /* Rx FIFO almost full */ 55 #define RXFF (1 << 5) /* Rx FIFO full */ 56 #define TXUDR (1 << 6) /* Tx underrun */ 57 #define RXOVER (1 << 7) /* Rx overrun */ 58 #define PER (1 << 8) /* Parity error */ [all …]
|
| D | 21285.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the serial port on the 21285 StrongArm-110 core logic chip. 19 #include <asm/mach-types.h> 31 #define RXSTAT_FRAME (1 << 0) 32 #define RXSTAT_PARITY (1 << 1) 33 #define RXSTAT_OVERRUN (1 << 2) 36 #define H_UBRLCR_BREAK (1 << 0) 37 #define H_UBRLCR_PARENB (1 << 1) 38 #define H_UBRLCR_PAREVN (1 << 2) 39 #define H_UBRLCR_STOPB (1 << 3) [all …]
|
| D | sc16is7xx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * SC16IS7xx tty serial driver - Copyright (C) 2014 GridPoint 46 * - only on 75x/76x 49 * - only on 75x/76x 52 * - only on 75x/76x 55 * - only on 75x/76x 59 /* TCR/TLR Register set: Only if ((MCR[2] == 1) && (EFR[4] == 1)) */ 63 /* Special Register set: Only if ((LCR[7] == 1) && (LCR != 0xBF)) */ 75 #define SC16IS7XX_IER_RDI_BIT (1 << 0) /* Enable RX data interrupt */ 76 #define SC16IS7XX_IER_THRI_BIT (1 << 1) /* Enable TX holding register [all …]
|
| D | max310x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2012-2016 Alexander Shiyan <shc_work@mail.ru> 78 #define MAX310X_IRQ_LSR_BIT (1 << 0) /* LSR interrupt */ 79 #define MAX310X_IRQ_SPCHR_BIT (1 << 1) /* Special char interrupt */ 80 #define MAX310X_IRQ_STS_BIT (1 << 2) /* Status interrupt */ 81 #define MAX310X_IRQ_RXFIFO_BIT (1 << 3) /* RX FIFO interrupt */ 82 #define MAX310X_IRQ_TXFIFO_BIT (1 << 4) /* TX FIFO interrupt */ 83 #define MAX310X_IRQ_TXEMPTY_BIT (1 << 5) /* TX FIFO empty interrupt */ 84 #define MAX310X_IRQ_RXEMPTY_BIT (1 << 6) /* RX FIFO empty interrupt */ 85 #define MAX310X_IRQ_CTS_BIT (1 << 7) /* CTS interrupt */ [all …]
|
| /kernel/linux/linux-5.10/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: 14 * rx_ring_buffers * sizeof(pkt_desc) = logical channel #1 RX ring (if used) 15 * tx_ring_buffers * sizeof(pkt_desc) = logical channel #1 TX ring (if used) 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 [all …]
|
| D | hd64570.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1998-2003 Krzysztof Halasa <khc@pm.waw.pl> 11 * Packet buffer descriptor rings - starting from winbase or win0base: 14 * rx_ring_buffers * sizeof(pkt_desc) = logical channel #1 RX ring (if used) 15 * tx_ring_buffers * sizeof(pkt_desc) = logical channel #1 TX ring (if used) 17 * Packet data buffers - starting from winbase + buff_offset: 42 #define get_msci(port) (phy_node(port) ? MSCI1_OFFSET : MSCI0_OFFSET) argument 43 #define get_dmac_rx(port) (phy_node(port) ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument 44 #define get_dmac_tx(port) (phy_node(port) ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument 51 static inline struct net_device *port_to_dev(port_t *port) in port_to_dev() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/net/wan/ |
| D | hd64572.c | 2 * Hitachi (now Renesas) SCA-II HD64572 driver for Linux 4 * Copyright (C) 1998-2008 Krzysztof Halasa <khc@pm.waw.pl> 10 * Source of information: HD64572 SCA-II User's Manual 14 * Packet buffer descriptor rings - starting from card->rambase: 17 * rx_ring_buffers * sizeof(pkt_desc) = logical channel #1 RX ring (if used) 18 * tx_ring_buffers * sizeof(pkt_desc) = logical channel #1 TX ring (if used) 20 * Packet data buffers - starting from card->rambase + buff_offset: 47 #define get_msci(port) (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET) argument 48 #define get_dmac_rx(port) (port->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument 49 #define get_dmac_tx(port) (port->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument [all …]
|
| D | hd64570.c | 4 * Copyright (C) 1998-2003 Krzysztof Halasa <khc@pm.waw.pl> 14 * Packet buffer descriptor rings - starting from winbase or win0base: 17 * rx_ring_buffers * sizeof(pkt_desc) = logical channel #1 RX ring (if used) 18 * tx_ring_buffers * sizeof(pkt_desc) = logical channel #1 TX ring (if used) 20 * Packet data buffers - starting from winbase + buff_offset: 45 #define get_msci(port) (phy_node(port) ? MSCI1_OFFSET : MSCI0_OFFSET) argument 46 #define get_dmac_rx(port) (phy_node(port) ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument 47 #define get_dmac_tx(port) (phy_node(port) ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument 54 static inline struct net_device *port_to_dev(port_t *port) in port_to_dev() argument 56 return port->dev; in port_to_dev() [all …]
|
| /kernel/linux/linux-4.19/drivers/media/pci/smipcie/ |
| D | smipcie-main.c | 30 /* set port mux.*/ in smi_hw_init() 41 /* Port A */ in smi_hw_init() 49 /* Port B */ in smi_hw_init() 118 udelay(1); in smi_i2c_getsda() 119 return (smi_read(sw_ctl) & SW_I2C_MSK_DAT_IN) ? 1 : 0; in smi_i2c_getsda() 127 udelay(1); in smi_i2c_getscl() 128 return (smi_read(sw_ctl) & SW_I2C_MSK_CLK_IN) ? 1 : 0; in smi_i2c_getscl() 158 /* i2c 1.*/ 193 i2c_set_adapdata(&dev->i2c_bus[0], dev); in smi_i2c_init() 194 strcpy(dev->i2c_bus[0].name, "SMI-I2C0"); in smi_i2c_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-gpio-mm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GPIO driver for the Diamond Systems GPIO-MM 6 * This driver supports the following Diamond Systems devices: GPIO-MM and 7 * GPIO-MM-12. 28 MODULE_PARM_DESC(base, "Diamond Systems GPIO-MM base addresses"); 31 * struct gpiomm_gpio - GPIO device private data structure 37 * @base: base port address of the GPIO device 52 const unsigned int port = offset / 8; in gpiomm_gpio_get_direction() local 55 if (gpiommgpio->io_state[port] & mask) in gpiomm_gpio_get_direction() 67 const unsigned int control_addr = gpiommgpio->base + 3 + control_port*4; in gpiomm_gpio_direction_input() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpio/ |
| D | gpio-gpio-mm.c | 2 * GPIO driver for the Diamond Systems GPIO-MM 14 * This driver supports the following Diamond Systems devices: GPIO-MM and 15 * GPIO-MM-12. 36 MODULE_PARM_DESC(base, "Diamond Systems GPIO-MM base addresses"); 39 * struct gpiomm_gpio - GPIO device private data structure 45 * @base: base port address of the GPIO device 60 const unsigned int port = offset / 8; in gpiomm_gpio_get_direction() local 63 return !!(gpiommgpio->io_state[port] & mask); in gpiomm_gpio_get_direction() 72 const unsigned int control_addr = gpiommgpio->base + 3 + control_port*4; in gpiomm_gpio_direction_input() 76 spin_lock_irqsave(&gpiommgpio->lock, flags); in gpiomm_gpio_direction_input() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mach-ebsa110/ |
| D | io.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/arm/mach-ebsa110/isamem.c 8 * in the way it handles accesses to odd IO ports on 16-bit devices. These 9 * devices have their D0-D15 lines connected to the processors D0-D15 lines. 10 * Since they expect all byte IO operations to be performed on D0-D7, and the 11 * StrongARM expects to transfer the byte to these odd addresses on D8-D15, 14 * The trick employed here is to use long word stores to odd address -1. The 16 * peripherals address bus, thereby accessing the odd IO port. Meanwhile, the 17 * StrongARM transfers its data on D0-D7 as expected. 19 * Things get more interesting on the pass-1 EBSA110 - the PCMCIA controller [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-ebsa110/ |
| D | io.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/arm/mach-ebsa110/isamem.c 8 * in the way it handles accesses to odd IO ports on 16-bit devices. These 9 * devices have their D0-D15 lines connected to the processors D0-D15 lines. 10 * Since they expect all byte IO operations to be performed on D0-D7, and the 11 * StrongARM expects to transfer the byte to these odd addresses on D8-D15, 14 * The trick employed here is to use long word stores to odd address -1. The 16 * peripherals address bus, thereby accessing the odd IO port. Meanwhile, the 17 * StrongARM transfers its data on D0-D7 as expected. 19 * Things get more interesting on the pass-1 EBSA110 - the PCMCIA controller [all …]
|
| /kernel/linux/linux-4.19/sound/soc/qcom/qdsp6/ |
| D | q6afe.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. 19 #include <sound/soc-dai.h> 22 #include "q6dsp-errno.h" 56 #define AFE_PORT_I2S_SD0_1_MASK GENMASK(1, 0) 71 /* Port IDs */ 77 #define AFE_API_VERSION_CLOCK_SET 1 82 /* SLIMbus Rx port on channel 0. */ 84 /* SLIMbus Tx port on channel 0. */ 86 /* SLIMbus Rx port on channel 1. */ [all …]
|
| /kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/ |
| D | q6afe.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. 19 #include <sound/soc-dai.h> 22 #include "q6dsp-errno.h" 60 #define AFE_PORT_I2S_SD0_1_MASK GENMASK(1, 0) 75 /* Port IDs */ 82 #define AFE_API_VERSION_CLOCK_SET 1 87 /* SLIMbus Rx port on channel 0. */ 89 /* SLIMbus Tx port on channel 0. */ 91 /* SLIMbus Rx port on channel 1. */ [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/cortina/ |
| D | gemini.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * Michał Mirosław <mirq-linux@rere.qmqm.pl> 22 #include <linux/dma-mapping.h> 46 #define DRV_NAME "gmac-gemini" 50 static int debug = -1; 64 #define HPROT_PRIVILIGED BIT(1) 74 #define TX_QUEUE_NUM 1 /* max: 6 */ 88 * struct gmac_queue_page - page buffer per-page info 105 u8 id; /* 0 or 1 */ 156 spinlock_t irq_lock; /* Locks IRQ-related registers */ [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/cortina/ |
| D | gemini.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * Michał Mirosław <mirq-linux@rere.qmqm.pl> 22 #include <linux/dma-mapping.h> 46 #define DRV_NAME "gmac-gemini" 49 static int debug = -1; 63 #define HPROT_PRIVILIGED BIT(1) 73 #define TX_QUEUE_NUM 1 /* max: 6 */ 87 * struct gmac_queue_page - page buffer per-page info 106 u8 id; /* 0 or 1 */ 157 spinlock_t irq_lock; /* Locks IRQ-related registers */ [all …]
|