Home
last modified time | relevance | path

Searched +full:lsb +full:- +full:first (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/
Ddpsw-cmd.h1 /* 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 …]
/linux-6.12.1/include/linux/
Dcrc8.h40 * 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.
/linux-6.12.1/Documentation/devicetree/bindings/sound/
Dfsl,sai.yaml1 # 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 …]
Dtdm-slot.txt6 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 …]
/linux-6.12.1/Documentation/userspace-api/media/v4l/
Dvidioc-g-sliced-vbi-cap.rst1 .. 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 …]
Ddev-sliced-vbi.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
17 :ref:`raw VBI interface <raw-vbi>`. The data is passed as short
51 .. _sliced-vbi-format-negotitation:
96 :ref:`VIDIOC_STREAMON` ioctl and the first
103 -----------------------------
115 .. flat-table::
116 :header-rows: 0
117 :stub-columns: 0
120 * - __u16
121 - ``service_set``
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/rtc/
Dmaxim-ds1302.txt1 * 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 …]
/linux-6.12.1/Documentation/devicetree/bindings/spi/
Dicpdas-lp8841-spi-rtc.txt1 * 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 …]
Dspi-peripheral-props.yaml1 # 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 …]
/linux-6.12.1/drivers/hwmon/
Dsch56xx-common.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com> *
21 #include "sch56xx-common.h"
30 #define SIO_UNLOCK_KEY 0x55 /* Key to enable Super-I/O */
31 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */
82 return -EBUSY; in superio_enter()
109 * responds within 15-32 reads, so we first busy poll, and if in sch56xx_send_cmd()
116 /* (Optional) Write-Clear the EC to Host Mailbox Register */ in sch56xx_send_cmd()
120 /* Set Mailbox Address Pointer to first location in Region 1 */ in sch56xx_send_cmd()
126 outb(0x01, addr + 5); /* # of Entries: 1 Byte (8-bit) */ in sch56xx_send_cmd()
[all …]
/linux-6.12.1/drivers/crypto/ccp/
Dccp-dev-v5.c1 // 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 …]
/linux-6.12.1/drivers/misc/c2port/
Dcore.c1 // 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 …]
/linux-6.12.1/drivers/media/radio/si4713/
Dsi4713.c1 // 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 …]
/linux-6.12.1/drivers/iio/adc/
Dmax9611.c1 // 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 …]
Dmax11100.c1 // 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 …]
/linux-6.12.1/drivers/iio/accel/
Dbma400.h1 /* 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 …]
/linux-6.12.1/tools/spi/
Dspidev_fdx.c1 // 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()
/linux-6.12.1/Documentation/devicetree/bindings/thermal/
Darmada-thermal.txt5 - 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 …]
/linux-6.12.1/include/linux/input/
Dadxl34x.h1 /* 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 …]
/linux-6.12.1/Documentation/hwmon/
Dsmsc47b397.rst6 * 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 …]
/linux-6.12.1/arch/x86/kernel/cpu/mce/
Dapei.c1 // SPDX-License-Identifier: GPL-2.0-only
32 int lsb; in apei_mce_report_mem_error() local
34 if (!(mem_err->validation_bits & CPER_MEM_VALID_PA)) in apei_mce_report_mem_error()
38 * Even if the ->validation_bits are set for address mask, in apei_mce_report_mem_error()
42 if (mem_err->validation_bits & CPER_MEM_VALID_PA_MASK) in apei_mce_report_mem_error()
43 lsb = find_first_bit((void *)&mem_err->physical_addr_mask, PAGE_SHIFT); in apei_mce_report_mem_error()
45 lsb = PAGE_SHIFT; in apei_mce_report_mem_error()
48 m.bank = -1; in apei_mce_report_mem_error()
51 m.misc = (MCI_MISC_ADDR_PHYS << 6) | lsb; in apei_mce_report_mem_error()
61 m.addr = mem_err->physical_addr; in apei_mce_report_mem_error()
[all …]
/linux-6.12.1/Documentation/input/devices/
Diforce-protocol.rst7 Home page at `<http://web.archive.org/web/*/http://www.esil.univ-mrs.fr>`_
16 specify force effects to I-Force 2.0 devices. None of this information comes
25 send data to your I-Force device based on what you read in this document.
30 All values are hexadecimal with big-endian encoding (msb on the left). Beware,
31 values inside packets are encoded using little-endian. Bytes whose roles are
35 ------------------------
54 First, I describe effects that are sent by the device to the computer
64 00 X-Axis lsb
65 01 X-Axis msb
66 02 Y-Axis lsb, or gas pedal for a wheel
[all …]
/linux-6.12.1/arch/arc/include/asm/
Dbitops.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
23 * This is a pure count, so (1-32) or (0-31) doesn't apply
50 r -= 16; in constant_fls()
54 r -= 8; in constant_fls()
58 r -= 4; in constant_fls()
62 r -= 2; in constant_fls()
65 r -= 1; in constant_fls()
71 * @result: [1-32]
79 return 32 - clz(x); in fls()
[all …]
/linux-6.12.1/Documentation/virt/kvm/x86/
Dtimekeeping.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Timekeeping Virtualization for X86-Based Architectures
26 First, we will describe the various timekeeping hardware available, then
32 information relevant to KVM and hardware-based virtualization.
37 First we discuss the basic hardware devices available. TSC and the related
41 2.1. i8254 - PIT
42 ----------------
44 One of the first timer devices available is the programmable interrupt timer,
46 channels which can be programmed to deliver periodic or one-shot interrupts.
53 The PIT uses I/O ports 0x40 - 0x43. Access to the 16-bit counters is done
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan_flooding.sh2 # SPDX-License-Identifier: GPL-2.0
9 # +--------------------+
13 # +----|---------------+
15 # +----|----------------------------------------------------------------------+
17 # | +--|--------------------------------------------------------------------+ |
24 # | +-----------------------------------------------------------------------+ |
30 # +----|----------------------------------------------------------------------+
32 # +----|--------------------------------------------------------+
37 # +-------------------------------------------------------------+
158 local lsb
[all …]

12345678910>>...21