Home
last modified time | relevance | path

Searched +full:port +full:- +full:1 (Results 1 – 25 of 1115) sorted by relevance

12345678910>>...45

/Linux-v5.10/drivers/media/pci/smipcie/
Dsmipcie-main.c1 // 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 …]
/Linux-v5.10/drivers/tty/serial/
Dlpc32xx_hs.c1 // 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 …]
Dsunhv.c1 // 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 …]
Dvt8500_serial.c1 // 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 …]
D21285.c1 // 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 …]
Dmax310x.c1 // 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 …]
Dsc16is7xx.c1 // 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 …]
Dsccnxp.c1 // SPDX-License-Identifier: GPL-2.0+
24 #include <linux/platform_data/serial-sccnxp.h>
27 #define SCCNXP_NAME "uart-sccnxp"
33 # define MR0_BAUD_EXT1 (1 << 0)
35 # define MR0_FIFO (1 << 3)
36 # define MR0_TXLVL (1 << 4)
38 # define MR1_BITS_6 (1 << 0)
42 # define MR1_PAR_ODD (1 << 2)
47 # define SR_RXRDY (1 << 0)
48 # define SR_FULL (1 << 1)
[all …]
Dclps711x.c1 // SPDX-License-Identifier: GPL-2.0+
38 #define UARTDR_FRMERR (1 << 8)
39 #define UARTDR_PARERR (1 << 9)
40 #define UARTDR_OVERR (1 << 10)
42 #define UBRLCR_BAUD_MASK ((1 << 12) - 1)
43 #define UBRLCR_BREAK (1 << 12)
44 #define UBRLCR_PRTEN (1 << 13)
45 #define UBRLCR_EVENPRT (1 << 14)
46 #define UBRLCR_XSTOP (1 << 15)
47 #define UBRLCR_FIFOEN (1 << 16)
[all …]
/Linux-v5.10/drivers/net/wan/
Dhd64572.c1 // 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 …]
Dhd64570.c1 // 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 …]
Dixp4xx_hss.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel IXP4xx HSS (synchronous serial port) driver for Linux
5 * Copyright (C) 2007-2008 Krzysztof Hałasa <khc@pm.waw.pl>
13 #include <linux/dma-mapping.h>
34 #define PKT_EXTRA_FLAGS 0 /* orig 1 */
35 #define PKT_NUM_PIPES 1 /* 1, 2 or 4 */
70 #define HSS1_PKT_RXFREE0_QUEUE 1
77 #define NPE_PKT_MODE_RAW 1
83 #define PKT_HDLC_CRC_32 0x2 /* default = CRC-16 */
136 /* 56k data endiannes - which bit unused: high (default) or low */
[all …]
/Linux-v5.10/drivers/gpio/
Dgpio-gpio-mm.c1 // 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 …]
Dgpio-104-dio-48e.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * GPIO driver for the ACCES 104-DIO-48E series
6 * This driver supports the following ACCES devices: 104-DIO-48E and
7 * 104-DIO-24E.
30 MODULE_PARM_DESC(base, "ACCES 104-DIO-48E base addresses");
34 MODULE_PARM_DESC(irq, "ACCES 104-DIO-48E interrupt line numbers");
37 * struct dio48e_gpio - GPIO device private data structure
43 * @base: base port address of the GPIO device
59 const unsigned port = offset / 8; in dio48e_gpio_get_direction() local
62 if (dio48egpio->io_state[port] & mask) in dio48e_gpio_get_direction()
[all …]
/Linux-v5.10/arch/arm/mach-ebsa110/
Dio.c1 // 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 …]
/Linux-v5.10/sound/soc/qcom/qdsp6/
Dq6afe.c1 // 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 …]
/Linux-v5.10/drivers/net/ethernet/cortina/
Dgemini.c1 // 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 …]
/Linux-v5.10/drivers/usb/typec/mux/
Dintel_pmc_mux.c1 // SPDX-License-Identifier: GPL-2.0
25 #define PMC_USB_RESP_STATUS_FATAL BIT(1)
62 #define PMC_USB_ALTMODE_ORI_SHIFT 1
74 #define PMC_USB_ALTMODE_CABLE_USB31 1
77 #define PMC_USB_ALTMODE_TBT_GEN(_g_) (((_g_) & GENMASK(1, 0)) << 28)
84 * Input Output Manager (IOM) PORT STATUS
93 /* activity type: Display Port */
95 /* activity type: Display Port Multi Function Device */
101 /* Upstream Facing Port Information */
103 /* Display Port Hot Plug Detect status */
[all …]
/Linux-v5.10/drivers/tty/
Disicom.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Original driver code supplied by Multi-Tech
6 * 1/9/98 alan@lxorguk.ukuu.org.uk
13 * Rough port to 2.1.x
25 * dumps the Port Count information
32 * when the last port on the card is
52 * ISIHP-4X card
55 * ISI port problem. Now the link
60 * among ISI-PCI cards.
86 * 10/12/03 Ravindra Made to work for Fedora Core 1 of
[all …]
/Linux-v5.10/arch/um/drivers/
Dport_kern.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com)
16 #include "port.h"
23 int port; member
31 struct port_list *port; member
42 struct port_list *port; member
50 fd = os_rcv_fd(conn->socket[0], &conn->helper_pid); in pipe_interrupt()
52 if (fd == -EAGAIN) in pipe_interrupt()
56 -fd); in pipe_interrupt()
57 os_close_file(conn->fd); in pipe_interrupt()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/net/dsa/
Dmt7530.txt6 - compatible: may be compatible = "mediatek,mt7530"
9 - #address-cells: Must be 1.
10 - #size-cells: Must be 0.
11 - mediatek,mcm: Boolean; if defined, indicates that either MT7530 is the part
12 on multi-chip module belong to MT7623A has or the remotely standalone
17 - core-supply: Phandle to the regulator node necessary for the core power.
18 - io-supply: Phandle to the regulator node necessary for the I/O power.
19 See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
24 - reset-gpios: Should be a gpio specifier for a reset line.
28 - resets : Phandle pointing to the system reset controller with
[all …]
/Linux-v5.10/drivers/usb/serial/
Diuu_phoenix.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2010 James Courtier-Dutton (James@superbug.co.uk)
39 static int clockmode = 1;
40 static int cdmode = 1;
46 static int iuu_create_sysfs_attrs(struct usb_serial_port *port);
47 static int iuu_remove_sysfs_attrs(struct usb_serial_port *port);
54 u8 reset; /* if 1 reset is needed */
65 static int iuu_port_probe(struct usb_serial_port *port) in iuu_port_probe() argument
72 return -ENOMEM; in iuu_port_probe()
74 priv->buf = kzalloc(256, GFP_KERNEL); in iuu_port_probe()
[all …]
/Linux-v5.10/drivers/scsi/libsas/
Dsas_port.c1 // 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 …]
/Linux-v5.10/drivers/pci/controller/
Dpci-mvebu.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 #include "../pci-bridge-emul.h"
36 #define PCIE_BAR_CTRL_OFF(n) (0x1804 + (((n) - 1) * 4))
89 u32 port; member
108 static inline void mvebu_writel(struct mvebu_pcie_port *port, u32 val, u32 reg) in mvebu_writel() argument
110 writel(val, port->base + reg); in mvebu_writel()
113 static inline u32 mvebu_readl(struct mvebu_pcie_port *port, u32 reg) in mvebu_readl() argument
115 return readl(port->base + reg); in mvebu_readl()
118 static inline bool mvebu_has_ioport(struct mvebu_pcie_port *port) in mvebu_has_ioport() argument
[all …]
/Linux-v5.10/drivers/thunderbolt/
Dusb4.c1 // SPDX-License-Identifier: GPL-2.0
64 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, offset, 1); in usb4_switch_wait_for_bit()
74 return -ETIMEDOUT; in usb4_switch_wait_for_bit()
81 return -EINVAL; in usb4_switch_op_read_data()
90 return -EINVAL; in usb4_switch_op_write_data()
97 return tb_sw_read(sw, metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1); in usb4_switch_op_read_metadata()
102 return tb_sw_write(sw, &metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1); in usb4_switch_op_write_metadata()
125 if (ret != -ENODEV && retries--) in usb4_do_read_data()
132 size -= nbytes; in usb4_do_read_data()
158 if (ret == -ETIMEDOUT) { in usb4_do_write_data()
[all …]

12345678910>>...45