/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A 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 …]
|
/openbmc/phosphor-host-ipmid/test/message/ |
H A D | pack.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 30 // check that the bytes were correctly packed (LSB first) in TEST() 42 // check that the bytes were correctly packed (LSB first) in TEST() 54 // check that the bytes were correctly packed (LSB first) in TEST() 66 // check that the bytes were correctly packed (LSB first) in TEST() 78 // check that the bytes were correctly packed (LSB first) in TEST() 85 // individual bytes are packed low-order-bits first in TEST() 95 // check that the bytes were correctly packed (LSB first) in TEST() 102 // individual bytes are packed low-order-bits first in TEST() 110 // check that the bytes were correctly packed (LSB first) in TEST() [all …]
|
H A D | unpack.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 31 // check that the bytes were correctly unpacked (LSB first) in TEST() 45 // check that the bytes were correctly unpacked (LSB first) in TEST() 72 // check that the bytes were correctly unpacked (LSB first) in TEST() 86 // check that the bytes were correctly unpacked (LSB first) in TEST() 113 // check that the bytes were correctly unpacked (LSB first) in TEST() 127 // check that the bytes were correctly unpacked (LSB first) in TEST() 154 // check that the bytes were correctly unpacked (LSB first) in TEST() 169 // check that the bytes were correctly unpacked (LSB first) in TEST() 196 // check that the bytes were correctly unpacked (LSB first) in TEST() [all …]
|
/openbmc/linux/include/linux/ |
H A 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.
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A 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 …]
|
/openbmc/openbmc/poky/documentation/ref-manual/ |
H A D | images.rst | 1 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK 9 "top-level" recipe that essentially begins the build for the type of 16 the GNU Affero General Public License Version 3 (AGPL-3.0) components 17 is only tested for core-image-minimal image. Furthermore, if you would like to 22 INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0*" 27 INCOMPATIBLE_LICENSE:pn-your-image-name = "GPL-3.0* LGPL-3.0*" 37 - ``build-appliance-image``: An example virtual machine that contains 45 Appliance </software-item/build-appliance>` page 48 - ``core-image-base``: A console-only image that fully supports the 51 - ``core-image-full-cmdline``: A console-only image with more [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A 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 …]
|
H A D | spi-peripheral-props.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-peripheral-props.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Peripheral-specific properties for a SPI bus. 11 be common properties like spi-max-frequency, spi-cpha, etc. or they could be 13 need to be defined in the peripheral node because they are per-peripheral and 19 - Mark Brown <broonie@kernel.org> 27 - minimum: 0 32 spi-cs-high: [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A 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 …]
|
/openbmc/linux/drivers/crypto/ccp/ |
H A 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 …]
|
/openbmc/ipmitool/contrib/ |
H A D | oem_ibm_sel_map | 1 …,"XX","XX","XX","0x01","0x00","Chassis Number","R","R","0x00","CPU shutdown - Potential cause "tri… 2 … Memory Card","Spare Memory Card","0x00","Memory Mirrored Failover Occurred - System running from … 13 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 14 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 15 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 16 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 17 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 18 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 19 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 20 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… [all …]
|
/openbmc/linux/drivers/misc/c2port/ |
H A 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 …]
|
/openbmc/linux/drivers/iio/adc/ |
H A 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 …]
|
H A D | max9611.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * 12-bit ADC interface. 12 * This driver supports input common-mode voltage, current-sense 16 * Op-amp, analog comparator, and watchdog functionalities are not 51 * LSB and offset values depends on selected gain (1x, 4x, 8x) 53 * GAIN LSB (nV) OFFSET (LSB steps) 59 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3) 70 * max9611 common input mode (CIM): LSB is 14mV, with 14mV offset at 25 C 73 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000) 79 * max9611 temperature reading: LSB is 480 milli degrees Celsius [all …]
|
/openbmc/linux/drivers/iio/accel/ |
H A 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 …]
|
/openbmc/linux/tools/spi/ |
H A D | spidev_fdx.c | 1 // SPDX-License-Identifier: GPL-2.0 42 status -= 2; in do_read() 44 while (status-- > 0) in do_read() 75 for (bp = buf; len; len--) in do_msg() 82 __u8 lsb, bits; in dumpstat() local 89 if (ioctl(fd, SPI_IOC_RD_LSB_FIRST, &lsb) < 0) { in dumpstat() 103 name, mode, bits, lsb ? "(lsb first) " : "", speed); in dumpstat() 133 "usage: %s [-h] [-m N] [-r N] /dev/spidevB.D\n", in main()
|
/openbmc/linux/drivers/media/radio/si4713/ |
H A D | si4713.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/media/radio/si4713-i2c.c 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-ioctl.h> 21 #include <media/v4l2-common.h> 28 MODULE_PARM_DESC(debug, "Debug level (0 - 2)"); 46 #define DEFAULT_ACOMP_THRESHOLD (-0x28) 84 #define lsb(x) ((u8)((u16) x & 0x00FF)) macro 85 #define compose_u16(msb, lsb) (((u16)msb << 8) | lsb) argument 160 int rval = -EINVAL; in usecs_to_dev() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/thermal/ |
H A 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-ap807-thermal 12 * marvell,armada-cp110-thermal 16 Documentation/devicetree/bindings/arm/marvell/ap80x-system-controller.txt 17 Documentation/devicetree/bindings/arm/marvell/cp110-system-controller.txt [all …]
|
/openbmc/phosphor-host-ipmid/docs/ |
H A D | testing.md | 21 `sudo docker run hello-world`. 29 mkdir openbmc-ci-tests 30 cd openbmc-ci-tests 31 git clone https://github.com/openbmc/openbmc-build-scripts.git 34 ## Add `phosphor-host-ipmid` 39 basic idea is that it's like having a second copy of your repo - but the second 46 `run-unit-test-docker.sh`, you can't run the CI with untracked changes anyways, 54 cd /my/dir/for/phosphor-host-ipmid 55 git worktree add /path/to/openbmc-ci-tests/phosphor-host-ipmid 58 Now, if you `cd /path/to/openbmc-ci-tests`, you should see a directory [all …]
|
/openbmc/linux/include/linux/input/ |
H A D | adxl34x.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 22 * form with a scale factor of 15.6 mg/LSB (i.e. 0x7F = +2 g) 35 * tap_latency period, i.e. after the first tap but before the 49 * The data format is unsigned. The scale factor is 62.5 mg/LSB 60 * to qualify as a tap event. The scale factor is 625 us/LSB. A zero 71 * factor is 1.25 ms/LSB. A zero value will disable the Double Tap 81 * tap can begin. The scale factor is 1.25 ms/LSB. A zero value will 127 * 62.5 mg/LSB. A zero value may result in undesirable behavior if 137 * factor is 62.5 mg/LSB. A zero value may result in undesirable 148 * is 1 second/LSB. Unlike the other interrupt functions, which [all …]
|
/openbmc/u-boot/arch/riscv/include/asm/ |
H A D | bitops.h | 9 * bit 0 is the LSB of addr; bit 32 is the LSB of (addr+1). 24 #include <asm-generic/bitops/fls.h> 25 #include <asm-generic/bitops/__fls.h> 26 #include <asm-generic/bitops/fls64.h> 27 #include <asm-generic/bitops/__ffs.h> 33 * Function prototypes to keep gcc -Wall happy. 114 * ffz = Find First Zero in word. Undefined if no zero exists, 115 * so code should check against ~0UL first.. 124 k -= 16; word <<= 16; in ffz() 127 k -= 8; word <<= 8; in ffz() [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | smsc47b397.rst | 6 * SMSC LPC47B397-NC 8 * SMSC SCH5307-NS 20 - Mark M. Hoffman <mhoffman@lightlink.com> 21 - Utilitek Systems, Inc. 25 The following specification describes the SMSC LPC47B397-NC [1]_ sensor chip 27 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected 30 .. [1] And SMSC SCH5307-NS and SCH5317, which have different device IDs but are 33 ------------------------------------------------------------------------- 36 ------------------------------------------------------------------------- 42 and 0x61 (LSB). Currently we are using 0x480 for the HWM Base Address and [all …]
|