| /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 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 …]
|
| D | gpio-ws16c48.c | 1 // 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 …]
|
| D | gpio-104-dio-48e.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/parport/ |
| D | daisy.c | 2 * 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/ |
| D | mt7530.txt | 6 - 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 …]
|
| D | ocelot.txt | 5 ----- 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 …]
|
| /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-5.10/tools/testing/selftests/drivers/net/netdevsim/ |
| D | udp_tunnel_nic.sh | 2 # 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/input/joystick/ |
| D | tmdc.c | 1 // 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 …]
|
| D | analog.c | 1 // 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 …]
|
| D | db9.c | 1 // 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/drivers/staging/media/atomisp/pci/ |
| D | sh_css_mipi.c | 1 // 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-5.10/drivers/tty/serial/ |
| D | ip22zilog.c | 1 // 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/ |
| D | digi_acceleport.c | 1 // 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 …]
|
| D | quatech2.c | 1 // 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 …]
|
| D | iuu_phoenix.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/arch/parisc/lib/ |
| D | io.c | 1 // 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/Documentation/devicetree/bindings/media/i2c/ |
| D | st,st-mipid02.txt | 1 STMicroelectronics MIPID02 CSI-2 to PARALLEL bridge 3 MIPID02 has two CSI-2 input ports, only one of those ports can be active at a 4 time. Active port input stream will be de-serialized and its content outputted 5 through PARALLEL output port. 6 CSI-2 first input port is a dual lane 800Mbps per lane whereas CSI-2 second 7 input port is a single lane 800Mbps. Both ports support clock and data lane 8 polarity swap. First port also supports data lane swap. 9 PARALLEL output port has a maximum width of 12 bits. 11 YUV420 8-bit, YUV422 8-bit and YUV420 10-bit. 14 - compatible: shall be "st,st-mipid02" [all …]
|
| D | maxim,max9286.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Jacopo Mondi <jacopo+renesas@jmondi.org> 12 - Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> 13 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 14 - Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> 18 Serial Links (GMSL) and outputs them on a CSI-2 D-PHY port using up to 4 data 28 '#address-cells': 31 '#size-cells': [all …]
|
| /kernel/linux/linux-5.10/arch/alpha/kernel/ |
| D | io.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/arch/m68k/include/asm/ |
| D | raw_io.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/dsa/microchip/ |
| D | ksz9477.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/ddbridge/ |
| D | ddbridge-max.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | vlv_dsi.c | 76 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/ |
| D | rcar_du_drv.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * rcar_du_drv.c -- R-Car Display Unit DRM driver 5 * Copyright (C) 2013-2015 Renesas Electronics Corporation 32 /* ----------------------------------------------------------------------------- 37 .gen = 2, 48 .port = 0, 52 .port = 1, 59 .gen = 2, 70 .port = 0, 74 .port = 1, [all …]
|