| /kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/ |
| D | dpsw-cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright 2014-2016 Freescale Semiconductor Inc. 4 * Copyright 2017-2018 NXP 78 GENMASK(DPSW_##field##_SHIFT + DPSW_##field##_SIZE - 1, \ 99 /* from LSB: only the first 4 bits */ 119 /* from LSB: enable:1 */ 184 /* from LSB only the first 4 bits */ 193 /* from LSB: enable:1 */ 199 /* from LSB: enable:1 */ 212 /* from LSB: VLAN_ID:12 DEI:1 PCP:3 */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
| D | dpsw-cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright 2014-2016 Freescale Semiconductor Inc. 4 * Copyright 2017-2021 NXP 102 GENMASK(DPSW_##field##_SHIFT + DPSW_##field##_SIZE - 1, \ 124 /* from LSB: only the first 4 bits */ 144 /* from LSB: enable:1 */ 215 /* from LSB only the first 4 bits */ 217 /* [0:3] - flooding configuration 218 * [4:7] - broadcast configuration 235 /* from LSB: VLAN_ID:12 DEI:1 PCP:3 */ [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | fsl-sai.txt | 10 - compatible : Compatible list, contains "fsl,vf610-sai", 11 "fsl,imx6sx-sai", "fsl,imx6ul-sai", 12 "fsl,imx7ulp-sai", "fsl,imx8mq-sai" or 13 "fsl,imx8qm-sai". 15 - reg : Offset and length of the register set for the device. 17 - clocks : Must contain an entry for each entry in clock-names. 19 - clock-names : Must include the "bus" for register access and 22 - dmas : Generic dma devicetree binding as described in 25 - dma-names : Two dmas have to be defined, "tx" and "rx". 27 - pinctrl-names : Must contain a "default" entry. [all …]
|
| D | tdm-slot.txt | 6 dai-tdm-slot-num : Number of slots in use. 7 dai-tdm-slot-width : Width in bits for each slot. 8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional 9 dai-tdm-slot-rx-mask : Receive direction slot mask, optional 12 dai-tdm-slot-num = <2>; 13 dai-tdm-slot-width = <8>; 14 dai-tdm-slot-tx-mask = <0 1>; 15 dai-tdm-slot-rx-mask = <1 0>; 23 for an active slot as default, and the default active bits are at the LSB of 26 The explicit masks are given as array of integers, where the first [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | crc8.h | 40 * crc8_populate_lsb - fill crc table for given polynomial in regular bit order. 46 * regular bit order (lsb first). Polynomials in CRC algorithms are typically 51 * For lsb first direction x^7 maps to the lsb. So the polynomial is as below. 53 * - lsb first: poly = 10101011(1) = 0xAB 58 * crc8_populate_msb - fill crc table for given polynomial in reverse bit order. 64 * reverse bit order (msb first). Polynomials in CRC algorithms are typically 69 * For msb first direction x^7 maps to the msb. So the polynomial is as below. 71 * - msb first: poly = (1)11010101 = 0xD5 76 * crc8() - calculate a crc8 over the given input data.
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | crc8.h | 40 * crc8_populate_lsb - fill crc table for given polynomial in regular bit order. 46 * regular bit order (lsb first). Polynomials in CRC algorithms are typically 51 * For lsb first direction x^7 maps to the lsb. So the polynomial is as below. 53 * - lsb first: poly = 10101011(1) = 0xAB 58 * crc8_populate_msb - fill crc table for given polynomial in reverse bit order. 64 * reverse bit order (msb first). Polynomials in CRC algorithms are typically 69 * For msb first direction x^7 maps to the msb. So the polynomial is as below. 71 * - msb first: poly = (1)11010101 = 0xD5 76 * crc8() - calculate a crc8 over the given input data.
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | vidioc-g-sliced-vbi-cap.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_G_SLICED_VBI_CAP - Query sliced VBI capabilities 43 The ``type`` field was added, and the ioctl changed from read-only 44 to write-read, in Linux 2.6.19. 50 .. flat-table:: struct v4l2_sliced_vbi_cap 51 :header-rows: 0 52 :stub-columns: 0 55 * - __u16 56 - ``service_set`` 57 - :cspan:`2` A set of all data services supported by the driver. [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| D | fsl,sai.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shengjiu Wang <shengjiu.wang@nxp.com> 21 - items: 22 - enum: 23 - fsl,imx6ul-sai 24 - fsl,imx7d-sai 25 - const: fsl,imx6sx-sai 27 - items: [all …]
|
| D | tdm-slot.txt | 6 dai-tdm-slot-num : Number of slots in use. 7 dai-tdm-slot-width : Width in bits for each slot. 8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional 9 dai-tdm-slot-rx-mask : Receive direction slot mask, optional 12 dai-tdm-slot-num = <2>; 13 dai-tdm-slot-width = <8>; 14 dai-tdm-slot-tx-mask = <0 1>; 15 dai-tdm-slot-rx-mask = <1 0>; 23 for an active slot as default, and the default active bits are at the LSB of 26 The explicit masks are given as array of integers, where the first [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/ |
| D | vidioc-g-sliced-vbi-cap.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_G_SLICED_VBI_CAP - Query sliced VBI capabilities 43 The ``type`` field was added, and the ioctl changed from read-only 44 to write-read, in Linux 2.6.19. 50 .. flat-table:: struct v4l2_sliced_vbi_cap 51 :header-rows: 0 52 :stub-columns: 0 55 * - __u16 56 - ``service_set`` 57 - :cspan:`2` A set of all data services supported by the driver. [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/rtc/ |
| D | maxim-ds1302.txt | 1 * Maxim/Dallas Semiconductor DS-1302 RTC 5 The device uses the standard MicroWire half-duplex transfer timing. 12 - compatible : Should be "maxim,ds1302" 16 - reg : Should be address of the device chip select within 19 - spi-max-frequency : DS-1302 has 500 kHz if powered at 2.2V, 22 - spi-3wire : The device has a shared signal IN/OUT line. 24 - spi-lsb-first : DS-1302 requires least significant bit first 27 - spi-cs-high: DS-1302 has active high chip select line. This is 33 #address-cells = <1>; 34 #size-cells = <0>; [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/ |
| D | maxim-ds1302.txt | 1 * Maxim/Dallas Semiconductor DS-1302 RTC 5 The device uses the standard MicroWire half-duplex transfer timing. 12 - compatible : Should be "maxim,ds1302" 16 - reg : Should be address of the device chip select within 19 - spi-max-frequency : DS-1302 has 500 kHz if powered at 2.2V, 22 - spi-3wire : The device has a shared signal IN/OUT line. 24 - spi-lsb-first : DS-1302 requires least significant bit first 27 - spi-cs-high: DS-1302 has active high chip select line. This is 33 #address-cells = <1>; 34 #size-cells = <0>; [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/spi/ |
| D | icpdas-lp8841-spi-rtc.txt | 1 * ICP DAS LP-8841 SPI Controller for RTC 3 ICP DAS LP-8841 contains a DS-1302 RTC. RTC is connected to an IO 6 The device uses the standard MicroWire half-duplex transfer timing. 13 - #address-cells: should be 1 15 - #size-cells: should be 0 17 - compatible: should be "icpdas,lp8841-spi-rtc" 19 - reg: should provide IO memory address 23 - There can be only one slave device. 25 - The spi slave node should claim the following flags which are 28 - spi-3wire: The master itself has only 3 wire. It cannor work in [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/spi/ |
| D | icpdas-lp8841-spi-rtc.txt | 1 * ICP DAS LP-8841 SPI Controller for RTC 3 ICP DAS LP-8841 contains a DS-1302 RTC. RTC is connected to an IO 6 The device uses the standard MicroWire half-duplex transfer timing. 13 - #address-cells: should be 1 15 - #size-cells: should be 0 17 - compatible: should be "icpdas,lp8841-spi-rtc" 19 - reg: should provide IO memory address 23 - There can be only one slave device. 25 - The spi slave node should claim the following flags which are 28 - spi-3wire: The master itself has only 3 wire. It cannor work in [all …]
|
| /kernel/linux/linux-6.6/drivers/hwmon/ |
| D | sch56xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com> * 20 #include "sch56xx-common.h" 29 #define SIO_UNLOCK_KEY 0x55 /* Key to enable Super-I/O */ 30 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */ 76 return -EBUSY; in superio_enter() 103 * responds within 15-32 reads, so we first busy poll, and if in sch56xx_send_cmd() 110 /* (Optional) Write-Clear the EC to Host Mailbox Register */ in sch56xx_send_cmd() 114 /* Set Mailbox Address Pointer to first location in Region 1 */ in sch56xx_send_cmd() 120 outb(0x01, addr + 5); /* # of Entries: 1 Byte (8-bit) */ in sch56xx_send_cmd() [all …]
|
| /kernel/linux/linux-6.6/drivers/crypto/ccp/ |
| D | ccp-dev-v5.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/dma-mapping.h> 17 #include "ccp-dev.h" 19 /* Allocate the requested number of contiguous LSB slots 20 * from the LSB bitmap. Look in the private range for this 21 * queue first; failing that, check the public area. 23 * Return: first slot number 30 /* First look at the map for the queue */ in ccp_lsb_alloc() 31 if (cmd_q->lsb >= 0) { in ccp_lsb_alloc() 32 start = (u32)bitmap_find_next_zero_area(cmd_q->lsbmap, in ccp_lsb_alloc() [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/ccp/ |
| D | ccp-dev-v5.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/dma-mapping.h> 17 #include "ccp-dev.h" 19 /* Allocate the requested number of contiguous LSB slots 20 * from the LSB bitmap. Look in the private range for this 21 * queue first; failing that, check the public area. 23 * Return: first slot number 30 /* First look at the map for the queue */ in ccp_lsb_alloc() 31 if (cmd_q->lsb >= 0) { in ccp_lsb_alloc() 32 start = (u32)bitmap_find_next_zero_area(cmd_q->lsbmap, in ccp_lsb_alloc() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/accel/ |
| D | bma400.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 * Read-Only Registers 58 * Read-write configuration registers 87 * BMA400_SCALE_MIN macro value represents m/s^2 for 1 LSB before 88 * converting to micro values for +-2g range. 90 * For +-2g - 1 LSB = 0.976562 milli g = 0.009576 m/s^2 91 * For +-4g - 1 LSB = 1.953125 milli g = 0.019153 m/s^2 92 * For +-16g - 1 LSB = 7.8125 milli g = 0.076614 m/s^2 95 * by the first bit set position from the scale value, so BMA400_SCALE_MIN 98 * Scale values for +-2g, +-4g, +-8g and +-16g are populated into bma400_scales [all …]
|
| /kernel/linux/linux-5.10/drivers/hwmon/ |
| D | sch56xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com> * 20 #include "sch56xx-common.h" 29 #define SIO_UNLOCK_KEY 0x55 /* Key to enable Super-I/O */ 30 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */ 76 return -EBUSY; in superio_enter() 103 * responds within 15-32 reads, so we first busy poll, and if in sch56xx_send_cmd() 110 /* (Optional) Write-Clear the EC to Host Mailbox Register */ in sch56xx_send_cmd() 114 /* Set Mailbox Address Pointer to first location in Region 1 */ in sch56xx_send_cmd() 120 outb(0x01, addr + 5); /* # of Entries: 1 Byte (8-bit) */ in sch56xx_send_cmd() [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/c2port/ |
| D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 63 struct c2port_ops *ops = dev->ops; in c2port_reset() 69 ops->c2ck_set(dev, 0); in c2port_reset() 71 ops->c2ck_set(dev, 1); in c2port_reset() 79 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck() 81 /* During hi-low-hi transition we disable local IRQs to avoid in c2port_strobe_ck() 87 ops->c2ck_set(dev, 0); in c2port_strobe_ck() 89 ops->c2ck_set(dev, 1); in c2port_strobe_ck() 101 struct c2port_ops *ops = dev->ops; in c2port_write_ar() 107 /* INS field (11b, LSB first) */ in c2port_write_ar() [all …]
|
| /kernel/linux/linux-6.6/drivers/misc/c2port/ |
| D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 63 struct c2port_ops *ops = dev->ops; in c2port_reset() 69 ops->c2ck_set(dev, 0); in c2port_reset() 71 ops->c2ck_set(dev, 1); in c2port_reset() 79 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck() 81 /* During hi-low-hi transition we disable local IRQs to avoid in c2port_strobe_ck() 87 ops->c2ck_set(dev, 0); in c2port_strobe_ck() 89 ops->c2ck_set(dev, 1); in c2port_strobe_ck() 101 struct c2port_ops *ops = dev->ops; in c2port_write_ar() 107 /* INS field (11b, LSB first) */ in c2port_write_ar() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/ |
| D | armada-thermal.txt | 5 - compatible: Should be set to one of the following: 6 * marvell,armada370-thermal 7 * marvell,armada375-thermal 8 * marvell,armada380-thermal 9 * marvell,armadaxp-thermal 10 * marvell,armada-ap806-thermal 11 * marvell,armada-cp110-thermal 15 Documentation/devicetree/bindings/arm/marvell/ap80x-system-controller.txt 16 Documentation/devicetree/bindings/arm/marvell/cp110-system-controller.txt 18 - reg: Device's register space. [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | max11100.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2016-17 Renesas Electronics Corporation 7 * Copyright (C) 2016-17 Jacopo Mondi 20 * LSB is the ADC single digital step 21 * 1 LSB = (vref_mv / 2 ^ 16) 23 * LSB is used to calculate analog voltage value 26 * Ain = (count * LSB) 54 ret = spi_read(state->spi, state->buffer, sizeof(state->buffer)); in max11100_read_single() 56 dev_err(&indio_dev->dev, "SPI transfer failed\n"); in max11100_read_single() 60 /* the first 8 bits sent out from ADC must be 0s */ in max11100_read_single() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/adc/ |
| D | max11100.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2016-17 Renesas Electronics Corporation 7 * Copyright (C) 2016-17 Jacopo Mondi 21 * LSB is the ADC single digital step 22 * 1 LSB = (vref_mv / 2 ^ 16) 24 * LSB is used to calculate analog voltage value 27 * Ain = (count * LSB) 55 ret = spi_read(state->spi, state->buffer, sizeof(state->buffer)); in max11100_read_single() 57 dev_err(&indio_dev->dev, "SPI transfer failed\n"); in max11100_read_single() 61 /* the first 8 bits sent out from ADC must be 0s */ in max11100_read_single() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/accel/ |
| D | bma400.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 * Read-Only Registers 63 * Read-write configuration registers 123 * BMA400_SCALE_MIN macro value represents m/s^2 for 1 LSB before 124 * converting to micro values for +-2g range. 126 * For +-2g - 1 LSB = 0.976562 milli g = 0.009576 m/s^2 127 * For +-4g - 1 LSB = 1.953125 milli g = 0.019153 m/s^2 128 * For +-16g - 1 LSB = 7.8125 milli g = 0.076614 m/s^2 131 * by the first bit set position from the scale value, so BMA400_SCALE_MIN 134 * Scale values for +-2g, +-4g, +-8g and +-16g are populated into bma400_scales [all …]
|