Home
last modified time | relevance | path

Searched +full:serial +full:- +full:shift +full:- +full:bits (Results 1 – 25 of 148) sorted by relevance

123456

/linux/Documentation/devicetree/bindings/leds/
H A Dleds-bcm63138.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-bcm63138.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rafał Miłecki <rafal@milecki.pl>
24 - items:
25 - enum:
26 - brcm,bcm4908-leds
27 - brcm,bcm6848-leds
28 - brcm,bcm6858-leds
[all …]
/linux/drivers/leds/
H A Dleds-bcm6328.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c
59 * struct bcm6328_led - state container for bcm6328 based LEDs
97 * LEDMode 64 bits / 24 LEDs
98 * bits [31:0] -> LEDs 8-23
99 * bits [47:32] -> LEDs 0-7
100 * bits [63:48] -> unused
105 return pin + 16; /* LEDs 0-7 (bits 47:32) */ in bcm6328_pin2shift()
107 return pin - 8; /* LEDs 8-23 (bits 31:0) */ in bcm6328_pin2shift()
113 unsigned long val, shift; in bcm6328_led_mode() local
[all …]
/linux/Documentation/devicetree/bindings/gpio/
H A Dgpio-stp-xway.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/gpio-stp-xway.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Lantiq SoC Serial To Parallel (STP) GPIO controller
10 The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a
11 peripheral controller used to drive external shift register cascades. At most
12 3 groups of 8 bits can be driven. The hardware is able to allow the DSL modem
16 - John Crispin <john@phrozen.org>
20 pattern: "^gpio@[0-9a-f]+$"
[all …]
/linux/Documentation/networking/device_drivers/hamradio/
H A Dbaycom.rst1 .. SPDX-License-Identifier: GPL-2.0
23 serial port. Its devices are called bcsf0 through bcsf3.
26 delta status bits, you may try baycom_ser_hdx.
41 This driver is work-in-progress.
49 for handling the HDLC protocol. The modem connects to a serial port,
50 hence the name. Since the serial port is not used as an async serial
51 port, the kernel driver for serial ports cannot be used, and this
52 driver only supports standard serial hardware (8250, 16450, 16550)
56 Data is transferred from and to the PC via a shift register.
57 The shift register is filled with 16 bits and an interrupt is signalled.
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3562.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/clock/rockchip,rk3562-cru.h>
7 #include <dt-bindings/interrupt-controller/arm-gic.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/phy/phy.h>
10 #include <dt-bindings/power/rockchip,rk3562-power.h>
11 #include <dt-bindings/pinctrl/rockchip.h>
12 #include <dt-bindings/reset/rockchip,rk3562-cru.h>
13 #include <dt-bindings/soc/rockchip,boot-mode.h>
14 #include <dt-bindings/thermal/thermal.h>
[all …]
/linux/arch/mips/
H A DKconfig.debug1 # SPDX-License-Identifier: GPL-2.0
22 "8250/16550 and compatible serial early printk driver"
23 If you say Y here, it will be possible to use a 8250/16550 serial
30 bool "Built-in kernel command line"
41 The built-in options will be concatenated to the default command
43 command line will be ignored and replaced by the built-in string.
46 the command line from the firmware or the second-stage bootloader.
55 the default command line, you can supply some command-line options at
64 bool "Built-in command line overrides firmware arguments"
69 Instead, the built-in command line will be used exclusively.
[all …]
/linux/drivers/pcmcia/
H A Dti113x.h34 /* Register definitions for TI 113X PCI-to-CardBus bridges */
166 #define ti_sysctl(socket) ((socket)->private[0])
167 #define ti_cardctl(socket) ((socket)->private[1])
168 #define ti_devctl(socket) ((socket)->private[2])
169 #define ti_diag(socket) ((socket)->private[3])
170 #define ti_mfunc(socket) ((socket)->private[4])
171 #define ene_test_c9(socket) ((socket)->private[5])
184 if (socket->dev->vendor == PCI_VENDOR_ID_ENE) in ti_save_state()
196 if (socket->dev->vendor == PCI_VENDOR_ID_ENE) in ti_restore_state()
224 * itself about this - do we need to force func0, if so we need
[all …]
/linux/drivers/gpio/
H A Dgpio-74x164.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * 74Hx164 - Generic serial-in/parallel-out 8-bits shift register GPIO driver
28 * the previous byte shift to the next register in the
38 return spi_write(to_spi_device(chip->gpio_chip.parent), chip->buffer, in __gen_74x164_write_config()
39 chip->registers); in __gen_74x164_write_config()
45 u8 bank = chip->registers - 1 - offset / 8; in gen_74x164_get_value()
48 guard(mutex)(&chip->lock); in gen_74x164_get_value()
50 return !!(chip->buffer[bank] & BIT(pin)); in gen_74x164_get_value()
57 u8 bank = chip->registers - 1 - offset / 8; in gen_74x164_set_value()
60 guard(mutex)(&chip->lock); in gen_74x164_set_value()
[all …]
H A Dgpio-stp-xway.c1 // SPDX-License-Identifier: GPL-2.0-only
20 * The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a
21 * peripheral controller used to drive external shift register cascades. At most
22 * 3 groups of 8 bits can be driven. The hardware is able to allow the DSL modem
58 /* 2 groups of 3 bits can be driven by the phys */
65 /* STP has 3 groups of 8 bits */
71 /* Edge configuration bits */
83 u32 edge; /* rising or falling edge triggered shift register */
84 u32 shadow; /* shadow the shift registers state */
85 u8 groups; /* we can drive 1-3 groups of 8bit each */
[all …]
/linux/arch/powerpc/boot/
H A D4xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright 2002-2005 MontaVista Software Inc.
34 memsize -= 4096; in chip_11_errata()
159 #define DDR_GET_VAL(val, mask, shift) (((val) >> (shift)) & (mask)) argument
162 * Some U-Boot versions set the number of chipselects to two
181 model[sizeof(model)-1] = 0; in ibm4xx_denali_get_cs()
226 dpath = 4; /* 32 bits */ in ibm4xx_denali_fixup_memsize()
228 dpath = 8; /* 64 bits */ in ibm4xx_denali_fixup_memsize()
236 row = max_row - row; in ibm4xx_denali_fixup_memsize()
244 col = max_col - col; in ibm4xx_denali_fixup_memsize()
[all …]
/linux/drivers/usb/serial/
H A Dmct_u232.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Definitions for MCT (Magic Control Technology) USB-RS232 Converter Driver
7 * This driver is for the device MCT USB-RS232 Converter (25 pin, Model No.
8 * U232-P25) from Magic Control Technology Corp. (there is also a 9 pin
9 * Model No. U232-P9). See http://www.mct.com.tw/products/product_us232.html
11 * of this file. This device was used in the Dlink DSB-S25.
24 /* U232-P25, Sitecom */
27 /* DU-H3SP USB BAY hub */
28 #define MCT_U232_DU_H3SP_PID 0x0200 /* D-Link DU-H3SP USB BAY */
30 /* Belkin badge the MCT U232-P9 as the F5U109 */
[all …]
/linux/drivers/leds/blink/
H A Dleds-bcm63138.c1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <linux/bits.h>
19 #define BCM63138_LED_BITS 4 /* how many bits control a single LED */
20 #define BCM63138_LED_MASK ((1 << BCM63138_LED_BITS) - 1) /* 0xf */
40 #define BCM63138_POWER_LUT_BASE0 0x34 /* -> b0 */
72 writel(data, leds->base + reg); in bcm63138_leds_write()
78 return readl(leds->base + reg); in bcm63138_leds_read()
97 int reg_offset = (led->pin >> fls((BCM63138_LEDS_PER_REG - 1))) * 4; in bcm63138_leds_set_flash_rate()
98 int shift = (led->pin & (BCM63138_LEDS_PER_REG - 1)) * BCM63138_LED_BITS; in bcm63138_leds_set_flash_rate() local
101 BCM63138_LED_MASK << shift, value << shift); in bcm63138_leds_set_flash_rate()
[all …]
/linux/Documentation/staging/
H A Dcrc32.rst5 A CRC is a long-division remainder. You add the CRC to the message,
11 protocols put the end-of-frame flag after the CRC.
15 - We're working in binary, so the digits are only 0 and 1, and
16 - When dividing polynomials, there are no carries. Rather than add and
21 To produce a 32-bit CRC, the divisor is actually a 33-bit CRC polynomial.
22 Since it's 33 bits long, bit 32 is always going to be set, so usually the
24 familiar with the IEEE 754 floating-point format, it's the same idea.)
26 Note that a CRC is computed over a string of *bits*, so you have
27 to decide on the endianness of the bits within each byte. To get
28 the best error-detecting properties, this should correspond to the
[all …]
/linux/arch/arm/boot/dts/allwinner/
H A Dsun8i-a83t.dtsi6 * This file is dual-licensed: you can use it either under the terms
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/clock/sun8i-a83t-ccu.h>
48 #include <dt-bindings/clock/sun8i-de2.h>
49 #include <dt-bindings/clock/sun8i-r-ccu.h>
50 #include <dt-bindings/reset/sun8i-a83t-ccu.h>
51 #include <dt-bindings/reset/sun8i-de2.h>
52 #include <dt-bindings/reset/sun8i-r-ccu.h>
53 #include <dt-bindings/thermal/thermal.h>
56 interrupt-parent = <&gic>;
[all …]
H A Dsun4i-a10.dtsi5 * This file is dual-licensed: you can use it either under the terms
44 #include <dt-bindings/thermal/thermal.h>
45 #include <dt-bindings/dma/sun4i-a10.h>
46 #include <dt-bindings/clock/sun4i-a10-ccu.h>
47 #include <dt-bindings/reset/sun4i-a10-ccu.h>
50 #address-cells = <1>;
51 #size-cells = <1>;
52 interrupt-parent = <&intc>;
59 #address-cells = <1>;
60 #size-cells = <1>;
[all …]
/linux/arch/mips/include/asm/sibyte/
H A Dsb1250_dma.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
33 * Ethernet and Serial DMA Configuration Register 0 (Table 7-4)
86 * Ethernet and Serial DMA Configuration Register 1 (Table 7-5)
126 * Ethernet and Serial DMA Descriptor base address (Table 7-6)
133 * ASIC Mode Base Address (Table 7-7)
139 * DMA Descriptor Count Registers (Table 7-8)
146 * Current Descriptor Address Register (Table 7-11)
176 * Descriptor doubleword "A" (Table 7-12)
184 /* Note: Don't shift the address over, just mask it with the mask below */
215 * Descriptor doubleword "B" (Table 7-13)
[all …]
/linux/arch/mips/lantiq/xway/
H A Dsysctrl.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2011-2012 John Crispin <john@phrozen.org>
5 * Copyright (C) 2013-2015 Lantiq Beteiligungs-GmbH & Co.KG
124 #define PMU1_PCIE_PHY BIT(0) /* vr9-specific,moved in ar10/grx390 */
165 do {} while (--retry && (pmu_r32(PMU_PWDSR) & module)); in ltq_pmu_enable()
180 do {} while (--retry && (!(pmu_r32(PMU_PWDSR) & module))); in ltq_pmu_disable()
191 ltq_cgu_w32(ltq_cgu_r32(ifccr) | clk->bits, ifccr); in cgu_enable()
198 ltq_cgu_w32(ltq_cgu_r32(ifccr) & ~clk->bits, ifccr); in cgu_disable()
208 pmu_w32(clk->bits, PWDCR_EN_XRX(clk->module)); in pmu_enable()
209 do {} while (--retry && in pmu_enable()
[all …]
/linux/drivers/media/rc/
H A Dserial_ir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * serial_ir - Device driver that records pulse- and pause-lengths
6 * (space-lengths) between DDCD event on a serial port.
8 * Copyright (C) 1996,97 Ralph Metzler <rjkm@thp.uni-koeln.de>
13 * Copyright (C) 2016 Sean Young <sean@mess.org> (port to rc-core)
28 #include <media/rc-core.h>
56 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */
141 /* fetch serial input packet (1 byte) from register offset */
145 /* the register is memory-mapped */ in sinp()
151 /* write serial output packet (1 byte) of value to register offset */
[all …]
/linux/arch/powerpc/boot/dts/
H A Dmicrowatt.dts1 /dts-v1/;
2 #include <dt-bindings/gpio/gpio.h>
5 #size-cells = <0x02>;
6 #address-cells = <0x02>;
8 compatible = "microwatt-soc";
15 reserved-memory {
16 #size-cells = <0x02>;
17 #address-cells = <0x02>;
28 #clock-cells = <0>;
29 compatible = "fixed-clock";
[all …]
/linux/arch/arm/boot/dts/ti/keystone/
H A Dkeystone-k2l.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2014-2017 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/reset/ti-syscon.h>
15 #address-cells = <1>;
16 #size-cells = <0>;
18 interrupt-parent = <&gic>;
21 compatible = "arm,cortex-a15";
27 compatible = "arm,cortex-a15";
42 /include/ "keystone-k2l-clocks.dtsi"
44 uart2: serial@2348400 {
[all …]
/linux/arch/arm/mach-sa1100/include/mach/
H A DSA-1100.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * FILE SA-1100.h
9 * System StrongARM SA-1100
12 * SA-1100 microprocessor (Advanced RISC Machine (ARM)
14 * StrongARM SA-1100 data sheet version 2.2.
21 #error You must include hardware.h not SA-1100.h
77 * Universal Serial Bus (USB) Device Controller (UDC) control registers
80 * Ser0UDCCR Serial port 0 Universal Serial Bus (USB) Device
82 * Ser0UDCAR Serial port 0 Universal Serial Bus (USB) Device
84 * Ser0UDCOMP Serial port 0 Universal Serial Bus (USB) Device
[all …]
/linux/drivers/iio/adc/
H A Dstm32-dfsdm.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
15 * STM32 DFSDM - global register map
18 * ----------------------------------------------------------
20 * ----------------------------------------------------------
22 * ----------------------------------------------------------
24 * ----------------------------------------------------------
26 * ----------------------------------------------------------
28 * ----------------------------------------------------------
30 * ----------------------------------------------------------
[all …]
/linux/sound/isa/cs423x/
H A Dcs4236_lib.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * -----
378 CS4236_SINGLE(xname,xindex,reg,shift,mask,invert) global() argument
384 CS4236_SINGLE_TLV(xname,xindex,reg,shift,mask,invert,xtlv) global() argument
408 int shift = (kcontrol->private_value >> 8) & 0xff; snd_cs4236_get_single() local
425 int shift = (kcontrol->private_value >> 8) & 0xff; snd_cs4236_put_single() local
443 CS4236_SINGLEC(xname,xindex,reg,shift,mask,invert) global() argument
454 int shift = (kcontrol->private_value >> 8) & 0xff; snd_cs4236_get_singlec() local
471 int shift = (kcontrol->private_value >> 8) & 0xff; snd_cs4236_put_singlec() local
[all...]
/linux/drivers/media/tuners/
H A Dmc44s803_priv.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
14 SPI or I2C Address : 0xc0-0xc6
17 -------------------------------------------
22 04 | Reset/Serial Out
33 0F | ID Bits
178 /* First shift, then mask */
182 /* First mask, then shift */
/linux/arch/nios2/boot/dts/
H A D10m50_devboard.dts1 // SPDX-License-Identifier: GPL-2.0-only
6 /dts-v1/;
10 compatible = "altr,niosii-max10";
11 #address-cells = <1>;
12 #size-cells = <1>;
15 #address-cells = <1>;
16 #size-cells = <0>;
20 compatible = "altr,nios2-1.1";
22 interrupt-controller;
23 #interrupt-cells = <1>;
[all …]

123456