Home
last modified time | relevance | path

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

12345678910>>...47

/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
43 unsigned char control[2];
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()
[all …]
H A Dgpio-ws16c48.c1 // SPDX-License-Identifier: GPL-2.0-only
34 * struct ws16c48_gpio - GPIO device private data structure
41 * @base: base port address of the GPIO device
56 const unsigned port = offset / 8; in ws16c48_gpio_get_direction() local
59 if (ws16c48gpio->io_state[port] & mask) in ws16c48_gpio_get_direction()
68 const unsigned port = offset / 8; in ws16c48_gpio_direction_input() local
72 raw_spin_lock_irqsave(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_input()
74 ws16c48gpio->io_state[port] |= mask; in ws16c48_gpio_direction_input()
75 ws16c48gpio->out_state[port] &= ~mask; in ws16c48_gpio_direction_input()
76 outb(ws16c48gpio->out_state[port], ws16c48gpio->base + port); in ws16c48_gpio_direction_input()
[all …]
H A 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
50 unsigned char control[2];
59 const unsigned port = offset / 8; in dio48e_gpio_get_direction() local
[all …]
/OK3568_Linux_fs/kernel/drivers/parport/
H A Ddaisy.c2 * IEEE 1284.3 Parallel port daisy chain and multiplexor code
9 * 2 of the License, or (at your option) any later version.
11 * ??-12-1998: Initial implementation.
12 * 31-01-1999: Make port-cloning transparent.
13 * 13-02-1999: Move DeviceID technique from parport_probe.
14 * 13-03-1999: Get DeviceID from non-IEEE 1284.3 devices too.
15 * 22-02-2000: Count devices that are actually detected.
35 struct parport *port; member
44 /* Forward-declaration of lower-level functions. */
45 static int mux_present(struct parport *port);
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/dsa/
H A 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 …]
H A Docelot.txt5 -----
9 - VSC9959 (Felix)
10 - VSC9953 (Seville)
13 larger ENETC root complex. As a result, the ethernet-switch node is a sub-node
25 For the external switch ports, depending on board configuration, "phy-mode" and
26 "phy-handle" are populated by board specific device tree instances. Ports 4 and
29 The CPU port property ("ethernet") configures the feature called "NPI port" in
30 the Ocelot hardware core. The CPU port in Ocelot is a set of queues, which are
31 connected, in the Node Processor Interface (NPI) mode, to an Ethernet port.
32 By default, in fsl-ls1028a.dtsi, the NPI port is assigned to the internal
[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/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>
24 * f = 2 * f_ref * --------------------
36 return lldiv(2 * (u64)f_ref * (mfi * (mfd + 1) + mfn), in imx_decode_pll()
49 if (readl(&pll->cscr) & CSCR_OSC26M_DIV1P5) { in clk_in_26m()
51 return 26000000 * 2 / 3; in clk_in_26m()
60 ulong cscr = readl(&pll->cscr); in imx_get_mpllclk()
68 return imx_decode_pll(readl(&pll->mpctl0), fref); in imx_get_mpllclk()
74 ulong cscr = readl(&pll->cscr); in imx_get_armclk()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/net/netdevsim/
H A Dudp_tunnel_nic.sh2 # SPDX-License-Identifier: GPL-2.0-only
30 [ -e /sys/class/net/$dev ] && ip link del dev $dev
36 if [ -e $NSIM_DEV_SYS ]; then
50 local dstport=$2
58 [ "$ipver" != '6' ] || ipfl="-6"
77 local dstport=$2
83 [ "$ipver" != '6' ] && remote=1.1.1.2 || group=::2
84 [ "$ipver" != '6' ] || ipfl="-6"
107 # Helpers for netdevsim port/type encoding
109 local port=$1
[all …]
/OK3568_Linux_fs/kernel/drivers/input/joystick/
H A Dtmdc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 1998-2001 Vojtech Pavlik
6 * Trystan Larey-Williams
49 static const unsigned char tmdc_byte_d[16] = { 2, 5, 8, 9 };
56 { ABS_X, ABS_Y, ABS_RUDDER, -1, ABS_THROTTLE };
74 } tmdc_hat_to_axis[] = {{ 0, 0}, { 1, 0}, { 0,-1}, {-1, 0}, { 0, 1}};
86 { 1, "ThrustMaster Millenium 3D Inceptor", 6, 2, { 4, 2 }, { 4, 6 }, tmdc_abs, tmdc_btn_joy },
87 { 3, "ThrustMaster Rage 3D Gamepad", 2, 0, { 8, 2 }, { 0, 0 }, tmdc_abs, tmdc_btn_pad },
88 { 4, "ThrustMaster Attack Throttle", 5, 2, { 4, 6 }, { 4, 2 }, tmdc_abs_at, tmdc_btn_at },
89 { 8, "ThrustMaster FragMaster", 4, 0, { 8, 2 }, { 0, 0 }, tmdc_abs_fm, tmdc_btn_fm },
[all …]
H A Danalog.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 1996-2001 Vojtech Pavlik
76 #define ANALOG_LOOP_TIME 2000 /* 2 * loop */
79 #define ANALOG_AXIS_TIME 2 /* 2 * refresh */
81 #define ANALOG_FUZZ_BITS 2 /* 2 bit more */
107 struct analog analog[2];
131 #define DELTA(x,y) (boot_cpu_has(X86_FEATURE_TSC) ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? PIT_TIC…
148 #define DELTA(x,y) ((y)-(x))
152 #define DELTA(x,y) ((y)-(x))
158 #define DELTA(x,y) ((y)-(x))
[all …]
H A Ddb9.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 1999-2001 Vojtech Pavlik
30 int args[2];
41 module_param_array_named(dev3, db9_cfg[2].args, int, &db9_cfg[2].nargs, 0);
75 #define DB9_MAX_DEVICES 2
107 { "Multisystem joystick", db9_multi_btn, 1, 1, 2, 1, 1 },
108 { "Multisystem joystick (2 fire)", db9_multi_btn, 2, 1, 2, 1, 1 },
109 { "Genesis pad", db9_genesis_btn, 4, 1, 2, 1, 1 },
111 { "Genesis 5 pad", db9_genesis_btn, 6, 1, 2, 1, 1 },
112 { "Genesis 6 pad", db9_genesis_btn, 8, 1, 2, 1, 1 },
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/
H A Dsh_css_mipi.c1 // SPDX-License-Identifier: GPL-2.0
8 * version 2, as published by the Free Software Foundation.
48 * Check if a source port or TPG/PRBS ID is valid
54 unsigned int port = 0; in ia_css_mipi_is_source_port_valid() local
57 switch (pipe->stream->config.mode) { in ia_css_mipi_is_source_port_valid()
59 port = (unsigned int)pipe->stream->config.source.port.port; in ia_css_mipi_is_source_port_valid()
63 port = (unsigned int)pipe->stream->config.source.tpg.id; in ia_css_mipi_is_source_port_valid()
67 port = (unsigned int)pipe->stream->config.source.prbs.id; in ia_css_mipi_is_source_port_valid()
77 assert(port < max_ports); in ia_css_mipi_is_source_port_valid()
79 if (port >= max_ports) in ia_css_mipi_is_source_port_valid()
[all …]
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Dip22zilog.c1 // SPDX-License-Identifier: GPL-2.0
6 * This is based on the drivers/serial/sunzilog.c code as of 2.6.0-test7 and the
13 * Copyright (C) 2002 Ralf Baechle (ralf@linux-mips.org)
54 #define NUM_CHANNELS (NUM_IP22ZILOG * 2)
60 * We wrap our port structure around the generic uart_port.
63 struct uart_port port; member
87 #define ZILOG_CHANNEL_FROM_PORT(PORT) ((struct zilog_channel *)((PORT)->membase)) argument
88 #define UART_ZILOG(PORT) ((struct uart_ip22zilog_port *)(PORT)) argument
89 #define IP22ZILOG_GET_CURR_REG(PORT, REGNUM) \ argument
90 (UART_ZILOG(PORT)->curregs[REGNUM])
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/serial/
H A Ddigi_acceleport.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Digi AccelePort USB-4 and USB-2 Serial Converters
7 * Shamelessly based on Brian Warner's keyspan_pda.c and Greg Kroah-Hartman's
8 * usb-serial driver.
31 #define DRIVER_DESC "Digi AccelePort USB-2/USB-4 Serial Converter driver"
33 /* port output buffer length -- must be <= transfer buffer length - 2 */
37 /* port input buffer length -- must be >= transfer buffer length - 3 */
54 #define DIGI_2_ID 0x0002 /* USB-2 */
55 #define DIGI_4_ID 0x0004 /* USB-4 */
58 * "INB": can be used on the in-band endpoint
[all …]
H A Diuu_phoenix.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2010 James Courtier-Dutton (James@superbug.co.uk)
46 static int iuu_create_sysfs_attrs(struct usb_serial_port *port);
47 static int iuu_remove_sysfs_attrs(struct usb_serial_port *port);
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()
75 if (!priv->buf) { in iuu_port_probe()
77 return -ENOMEM; in iuu_port_probe()
80 priv->writebuf = kzalloc(256, GFP_KERNEL); in iuu_port_probe()
[all …]
H A Dquatech2.c1 // SPDX-License-Identifier: GPL-2.0
3 * usb-serial driver for Quatech USB 2 devices
51 #define QT2_XMIT_HOLD 0x02 /* following 2 bytes are ?? */
52 #define QT2_CHANGE_PORT 0x03 /* following 1 byte is port to change to */
55 #define QT2_CONTROL_ESCAPE 0xff /* pass through previous 2 control bytes */
64 #define DRIVER_DESC "Quatech 2nd gen USB to Serial Driver"
67 #define QUATECH_SSU2_100 0xC120 /* RS232 single port */
68 #define QUATECH_DSU2_100 0xC140 /* RS232 dual port */
69 #define QUATECH_DSU2_400 0xC150 /* RS232/422/485 dual port */
70 #define QUATECH_QSU2_100 0xC160 /* RS232 four port */
[all …]
/OK3568_Linux_fs/u-boot/drivers/net/fm/
H A Dinit.c2 * Copyright 2011-2015 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
23 #if (CONFIG_SYS_NUM_FM1_DTSEC >= 2)
24 FM_DTSEC_INFO_INITIALIZER(1, 2),
45 FM_DTSEC_INFO_INITIALIZER(2, 1),
47 #if (CONFIG_SYS_NUM_FM2_DTSEC >= 2)
48 FM_DTSEC_INFO_INITIALIZER(2, 2),
51 FM_DTSEC_INFO_INITIALIZER(2, 3),
54 FM_DTSEC_INFO_INITIALIZER(2, 4),
57 FM_DTSEC_INFO_INITIALIZER(2, 5),
[all …]
/OK3568_Linux_fs/kernel/arch/parisc/lib/
H A Dio.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) Matthew Wilcox 2001 for Hewlett-Packard
16 * Assumes the device can cope with 32-bit transfers. If it can't,
26 count--; in memcpy_toio()
32 count -= 4; in memcpy_toio()
35 while (count--) { in memcpy_toio()
43 ** Assumes the device can cope with 32-bit transfers. If it can't,
57 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) in memcpy_fromio()
60 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) in memcpy_fromio()
68 count--; in memcpy_fromio()
[all …]
/OK3568_Linux_fs/kernel/arch/alpha/kernel/
H A Dio.c1 // SPDX-License-Identifier: GPL-2.0
12 /* Out-of-line versions of the i/o routines that redirect into the
13 platform-specific version. Note that "platform-specific" may mean
69 u8 inb(unsigned long port) in inb() argument
71 return ioread8(ioport_map(port, 1)); in inb()
74 u16 inw(unsigned long port) in inw() argument
76 return ioread16(ioport_map(port, 2)); in inw()
79 u32 inl(unsigned long port) in inl() argument
81 return ioread32(ioport_map(port, 4)); in inl()
84 void outb(u8 b, unsigned long port) in outb() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/dsa/microchip/
H A Dksz9477.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2017-2019 Microchip Technology Inc.
11 #include <linux/platform_data/microchip-ksz.h>
23 #define IS_9893 BIT(2)
69 regmap_update_bits(dev->regmap[0], addr, bits, set ? bits : 0); in ksz_cfg()
72 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg() argument
75 regmap_update_bits(dev->regmap[0], PORT_CTRL_ADDR(port, offset), in ksz_port_cfg()
81 regmap_update_bits(dev->regmap[2], addr, bits, set ? bits : 0); in ksz9477_cfg32()
84 static void ksz9477_port_cfg32(struct ksz_device *dev, int port, int offset, in ksz9477_port_cfg32() argument
87 regmap_update_bits(dev->regmap[2], PORT_CTRL_ADDR(port, offset), in ksz9477_port_cfg32()
[all …]
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A Draw_io.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * linux/include/asm-m68k/raw_io.h
5 * 10/20/00 RZ: - created from bits of io.h and ide.h to cleanup namespace
43 #define raw_outb(val,port) out_8((port),(val)) argument
44 #define raw_outw(val,port) out_be16((port),(val)) argument
45 #define raw_outl(val,port) out_be32((port),(val)) argument
51 * Atari ROM port (cartridge port) ISA adapter, used for the EtherNEC NE2000
53 * The ISA adapter connects address lines A9-A13 to ISA address lines A0-A4,
56 * Data lines D8-D15 are connected to ISA data lines D0-D7 for reading.
57 * For writes, address lines A1-A8 are latched to ISA data lines D0-D7
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dvlv_dsi.c76 void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port) in vlv_dsi_wait_for_fifo_empty() argument
78 struct drm_encoder *encoder = &intel_dsi->base.base; in vlv_dsi_wait_for_fifo_empty()
79 struct drm_device *dev = encoder->dev; in vlv_dsi_wait_for_fifo_empty()
86 if (intel_de_wait_for_set(dev_priv, MIPI_GEN_FIFO_STAT(port), in vlv_dsi_wait_for_fifo_empty()
88 drm_err(&dev_priv->drm, "DPI FIFOs are not empty\n"); in vlv_dsi_wait_for_fifo_empty()
100 for (j = 0; j < min_t(u32, len - i, 4); j++) in write_data()
116 for (j = 0; j < min_t(u32, len - i, 4); j++) in read_data()
125 struct drm_device *dev = intel_dsi_host->intel_dsi->base.base.dev; in intel_dsi_host_transfer()
127 enum port port = intel_dsi_host->port; in intel_dsi_host_transfer() local
141 if (msg->flags & MIPI_DSI_MSG_USE_LPM) { in intel_dsi_host_transfer()
[all …]
/OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dsrio.c4 * SPDX-License-Identifier: GPL-2.0+
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:
64 * 2. The link may fail to achieve lane alignment as a 4x, even though
66 * An SRIO port configured as a 1x port may fail to complete port
68 * Impact: SRIO port may downtrain to 1x, or may fail to complete
69 * link initialization. Once a port completes link initialization
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/ddbridge/
H A Dddbridge-max.c1 // SPDX-License-Identifier: GPL-2.0
3 * ddbridge-max.c: Digital Devices bridge MAX card support
5 * Copyright (C) 2010-2017 Digital Devices GmbH
11 * version 2 only, as published by the Free Software Foundation.
34 #include "ddbridge-regs.h"
35 #include "ddbridge-io.h"
36 #include "ddbridge-mci.h"
38 #include "ddbridge-max.h"
48 static int fmode_sat = -1;
62 v = LNB_TONE & (dev->link[link].lnb.tone << (15 - lnb)); in lnb_command()
[all …]

12345678910>>...47