Home
last modified time | relevance | path

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

12345678910>>...46

/OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dsrio.c4 * SPDX-License-Identifier: GPL-2.0+
21 #define SRIO_RW_WIN_SIZE 0x100000 /* 1M */
45 (&((immap_t *)CONFIG_SYS_IMMR)->im_gur)
52 * Erratum A-004034
54 * Description: During port initialization, the SRIO port performs
59 * the configured port width.
60 * An SRIO port configured as a 4x port may see one of these scenarios:
61 * 1. One or more lanes fails to achieve lane synchronization. Depending
62 * on which lanes fail, this may result in downtraining from 4x to 1x
63 * on lane 0, 4x to 1x on lane R (redundant lane).
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/smipcie/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wan/
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/qcom/qdsp6/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/cortina/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpio/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/arm/mach-ebsa110/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/tty/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/typec/mux/
H A 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
91 /* activity type: Display Port */
93 /* activity type: Display Port Multi Function Device */
99 /* Upstream Facing Port Information */
101 /* Display Port Hot Plug Detect status */
[all …]
/OK3568_Linux_fs/u-boot/drivers/ata/
H A Dsata_sil3114.c5 * SPDX-License-Identifier: GPL-2.0+
40 static struct sata_port port[CONFIG_SYS_SATA_MAX_DEVICE]; variable
44 while (words--) { in output_data()
45 __raw_writew (*sect_buf++, (void *)ioaddr->data_addr); in output_data()
51 while (words--) { in input_data()
52 *sect_buf++ = __raw_readw ((void *)ioaddr->data_addr); in input_data()
61 port[num].dev_mask = 1; in sata_bus_softreset()
63 port[num].ctl_reg = 0x08; /*Default value of control reg */ in sata_bus_softreset()
64 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset()
66 writeb (port[num].ctl_reg | ATA_SRST, port[num].ioaddr.ctl_addr); in sata_bus_softreset()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/serial/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/thunderbolt/
H A 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()
130 nbytes -= offset; in usb4_do_read_data()
133 size -= nbytes; in usb4_do_read_data()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/ibm/ehea/
H A Dehea_main.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Jan-Bernd Themann <themann@de.ibm.com>
46 static int msg_level = -1;
51 static int use_mcs = 1;
64 "port to stack. 1:yes, 0:no. Default = 0 ");
66 "[2^x - 1], x = [7..14]. Default = "
69 "[2^x - 1], x = [7..14]. Default = "
71 MODULE_PARM_DESC(rq1_entries, "Number of entries for Receive Queue 1 "
72 "[2^x - 1], x = [7..14]. Default = "
75 "[2^x - 1], x = [7..14]. Default = "
[all …]
/OK3568_Linux_fs/kernel/drivers/pci/controller/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/um/drivers/
H A 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 …]
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx27/
H A Dgeneric.c5 * SPDX-License-Identifier: GPL-2.0+
12 #include <asm/arch/imx-regs.h>
15 #include <asm/mach-imx/sys_proto.h>
23 * mfi + mfn / (mfd +1)
24 * f = 2 * f_ref * --------------------
25 * pd + 1
36 return lldiv(2 * (u64)f_ref * (mfi * (mfd + 1) + mfn), in imx_decode_pll()
37 (mfd + 1) * (pd + 1)); in imx_decode_pll()
49 if (readl(&pll->cscr) & CSCR_OSC26M_DIV1P5) { in clk_in_26m()
60 ulong cscr = readl(&pll->cscr); in imx_get_mpllclk()
[all …]

12345678910>>...46