Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-5.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
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 …]
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 …]
/kernel/linux/linux-4.19/drivers/parport/
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.
41 struct parport *port; member
49 /* Forward-declaration of lower-level functions. */
50 static int mux_present(struct parport *port);
[all …]
/kernel/linux/linux-4.19/drivers/gpio/
Dgpio-gpio-mm.c2 * GPIO driver for the Diamond Systems GPIO-MM
6 * it under the terms of the GNU General Public License, version 2, as
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
51 unsigned char control[2];
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()
[all …]
Dgpio-ws16c48.c6 * it under the terms of the GNU General Public License, version 2, as
42 * struct ws16c48_gpio - GPIO device private data structure
49 * @base: base port address of the GPIO device
64 const unsigned port = offset / 8; in ws16c48_gpio_get_direction() local
67 return !!(ws16c48gpio->io_state[port] & mask); in ws16c48_gpio_get_direction()
73 const unsigned port = offset / 8; in ws16c48_gpio_direction_input() local
77 raw_spin_lock_irqsave(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_input()
79 ws16c48gpio->io_state[port] |= mask; in ws16c48_gpio_direction_input()
80 ws16c48gpio->out_state[port] &= ~mask; in ws16c48_gpio_direction_input()
81 outb(ws16c48gpio->out_state[port], ws16c48gpio->base + port); in ws16c48_gpio_direction_input()
[all …]
Dgpio-104-dio-48e.c2 * GPIO driver for the ACCES 104-DIO-48E series
6 * it under the terms of the GNU General Public License, version 2, as
14 * This driver supports the following ACCES devices: 104-DIO-48E and
15 * 104-DIO-24E.
38 MODULE_PARM_DESC(base, "ACCES 104-DIO-48E base addresses");
42 MODULE_PARM_DESC(irq, "ACCES 104-DIO-48E interrupt line numbers");
45 * struct dio48e_gpio - GPIO device private data structure
51 * @base: base port address of the GPIO device
58 unsigned char control[2];
67 const unsigned port = offset / 8; in dio48e_gpio_get_direction() local
[all …]
/kernel/linux/linux-5.10/drivers/parport/
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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/drivers/input/joystick/
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 …]
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 …]
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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/netdevsim/
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 …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
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 …]
/kernel/linux/linux-4.19/drivers/input/joystick/
Dtmdc.c2 * Copyright (c) 1998-2001 Vojtech Pavlik
5 * Trystan Larey-Williams
15 * the Free Software Foundation; either version 2 of the License, or
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
61 static const unsigned char tmdc_byte_d[16] = { 2, 5, 8, 9 };
68 { ABS_X, ABS_Y, ABS_RUDDER, -1, ABS_THROTTLE };
86 } tmdc_hat_to_axis[] = {{ 0, 0}, { 1, 0}, { 0,-1}, {-1, 0}, { 0, 1}};
98 { 1, "ThrustMaster Millenium 3D Inceptor", 6, 2, { 4, 2 }, { 4, 6 }, tmdc_abs, tmdc_btn_joy },
99 { 3, "ThrustMaster Rage 3D Gamepad", 2, 0, { 8, 2 }, { 0, 0 }, tmdc_abs, tmdc_btn_pad },
100 { 4, "ThrustMaster Attack Throttle", 5, 2, { 4, 6 }, { 4, 2 }, tmdc_abs_at, tmdc_btn_at },
[all …]
Danalog.c2 * Copyright (c) 1996-2001 Vojtech Pavlik
12 * the Free Software Foundation; either version 2 of the License, or
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
88 #define ANALOG_LOOP_TIME 2000 /* 2 * loop */
91 #define ANALOG_AXIS_TIME 2 /* 2 * refresh */
93 #define ANALOG_FUZZ_BITS 2 /* 2 bit more */
119 struct analog analog[2];
143 #define DELTA(x,y) (boot_cpu_has(X86_FEATURE_TSC) ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? PIT_TIC…
160 #define DELTA(x,y) ((y)-(x))
164 #define DELTA(x,y) ((y)-(x))
[all …]
/kernel/linux/linux-4.19/drivers/usb/serial/
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.
32 #define DRIVER_DESC "Digi AccelePort USB-2/USB-4 Serial Converter driver"
34 /* port output buffer length -- must be <= transfer buffer length - 2 */
38 /* port input buffer length -- must be >= transfer buffer length - 3 */
55 #define DIGI_2_ID 0x0002 /* USB-2 */
56 #define DIGI_4_ID 0x0004 /* USB-4 */
59 * "INB": can be used on the in-band endpoint
[all …]
/kernel/linux/linux-4.19/arch/arm/mach-s3c24xx/include/mach/
Dio.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arch/arm/mach-s3c2410/include/mach/io.h
4 * from arch/arm/mach-rpc/include/mach/io.h
18 * We use two different types of addressing - PC style addresses, and ARM
32 * Dynamic IO functions - let the compiler
37 static inline void __out##fnsuffix (unsigned int val, unsigned int port) \
41 "cmp %2, #(1<<28)\n\t" \
42 "mov %0, %2\n\t" \
46 : "r" (val), "r" (port), "Ir" (PCIO_BASE_##fnsuffix) \
52 static inline unsigned sz __in##fnsuffix (unsigned int port) \
[all …]
/kernel/linux/linux-5.10/drivers/tty/serial/
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 …]
/kernel/linux/linux-5.10/drivers/usb/serial/
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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/net/dsa/
Ddsa.txt2 ----------------------------------------------------
8 ---------------
18 - ports : A container for child nodes representing switch ports.
22 - dsa,member : A two element list indicates which DSA cluster, and position
26 hanging off a CPU port) must not specify this property
32 - #address-cells : Must be 1
33 - #size-cells : Must be 0
35 Each port children node must have the following mandatory properties:
36 - reg : Describes the port address in the switch
38 An uplink/downlink port between switches in the cluster has the following
[all …]
/kernel/linux/linux-4.19/drivers/tty/serial/
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)
58 #define NUM_CHANNELS (NUM_IP22ZILOG * 2)
64 * We wrap our port structure around the generic uart_port.
67 struct uart_port port; member
91 #define ZILOG_CHANNEL_FROM_PORT(PORT) ((struct zilog_channel *)((PORT)->membase)) argument
92 #define UART_ZILOG(PORT) ((struct uart_ip22zilog_port *)(PORT)) argument
93 #define IP22ZILOG_GET_CURR_REG(PORT, REGNUM) \ argument
94 (UART_ZILOG(PORT)->curregs[REGNUM])
[all …]
/kernel/linux/linux-4.19/arch/parisc/lib/
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 …]
/kernel/linux/linux-5.10/arch/parisc/lib/
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 …]

12345678910>>...44