| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | bitfield.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 15 * wide. Since there is no native 128-bit datatype on most systems, 16 * and since 64-bit datatypes are inefficient on 32-bit systems and 20 * The NICs are PCI devices and therefore little-endian. Since most 23 * ef4_dword_t) to be little-endian. 26 /* Lowest bit numbers and widths */ 46 /* Low bit number of the specified field */ 48 /* Bit width of the specified field */ [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | bitfield.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 15 * wide. Since there is no native 128-bit datatype on most systems, 16 * and since 64-bit datatypes are inefficient on 32-bit systems and 20 * The NICs are PCI devices and therefore little-endian. Since most 23 * efx_dword_t) to be little-endian. 26 /* Lowest bit numbers and widths */ 48 /* Low bit number of the specified field */ 50 /* Bit width of the specified field */ [all …]
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | bitfield.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 15 * wide. Since there is no native 128-bit datatype on most systems, 16 * and since 64-bit datatypes are inefficient on 32-bit systems and 20 * The NICs are PCI devices and therefore little-endian. Since most 23 * efx_dword_t) to be little-endian. 26 /* Lowest bit numbers and widths */ 46 /* Low bit number of the specified field */ 48 /* Bit width of the specified field */ [all …]
|
| /linux/drivers/gpu/drm/bridge/analogix/ |
| H A D | analogix-i2c-txcommon.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 19 /* Device ID High Byte Register */ 27 #define SP_REGISTER_PD BIT(7) 28 #define SP_HDCP_PD BIT(5) 29 #define SP_AUDIO_PD BIT(4) 30 #define SP_VIDEO_PD BIT(3) 31 #define SP_LINK_PD BIT(2) 32 #define SP_TOTAL_PD BIT(1) 36 #define SP_MISC_RST BIT(7) 37 #define SP_VIDCAP_RST BIT(6) [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | pixfmt-z16.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _V4L2-PIX-FMT-Z16: 11 16-bit depth data with distance values at each pixel 17 This is a 16-bit format, representing depth data. Each pixel is a 20 is stored in a 16-bit word in the little endian byte order. 28 .. flat-table:: 29 :header-rows: 0 30 :stub-columns: 0 32 * - start + 0: 33 - Z\ :sub:`00low` [all …]
|
| H A D | pixfmt-tch-tu16.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _V4L2-TCH-FMT-TU16: 12 16-bit unsigned little endian raw touch data 18 This format represents unsigned 16-bit data from a touch controller. 27 .. flat-table:: 28 :header-rows: 0 29 :stub-columns: 0 32 * - start + 0: 33 - R'\ :sub:`00low` 34 - R'\ :sub:`00high` [all …]
|
| H A D | pixfmt-srggb10.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _V4L2-PIX-FMT-SRGGB10: 5 .. _v4l2-pix-fmt-sbggr10: 6 .. _v4l2-pix-fmt-sgbrg10: 7 .. _v4l2-pix-fmt-sgrbg10: 17 10-bit Bayer formats expanded to 16 bits 24 sample. Each sample is stored in a 16-bit word, with 6 unused 25 high bits filled with zeros. Each n-pixel row contains n/2 green samples and 32 Each cell is one byte, the 6 most significant bits in the high bytes 38 .. flat-table:: [all …]
|
| H A D | pixfmt-srggb12.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _V4L2-PIX-FMT-SRGGB12: 5 .. _v4l2-pix-fmt-sbggr12: 6 .. _v4l2-pix-fmt-sgbrg12: 7 .. _v4l2-pix-fmt-sgrbg12: 18 12-bit Bayer formats expanded to 16 bits 25 colour. Each colour component is stored in a 16-bit word, with 4 unused 26 high bits filled with zeros. Each n-pixel row contains n/2 green samples 33 Each cell is one byte, the 4 most significant bits in the high bytes are 39 .. flat-table:: [all …]
|
| H A D | pixfmt-srggb16.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _V4L2-PIX-FMT-SRGGB16: 5 .. _v4l2-pix-fmt-sbggr16: 6 .. _v4l2-pix-fmt-sgbrg16: 7 .. _v4l2-pix-fmt-sgrbg16: 16 16-bit Bayer formats 24 sample. Each sample is stored in a 16-bit word. Each n-pixel row contains 33 .. flat-table:: 34 :header-rows: 0 35 :stub-columns: 0 [all …]
|
| H A D | pixfmt-srggb14.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _V4L2-PIX-FMT-SRGGB14: 5 .. _v4l2-pix-fmt-sbggr14: 6 .. _v4l2-pix-fmt-sgbrg14: 7 .. _v4l2-pix-fmt-sgrbg14: 16 14-bit Bayer formats expanded to 16 bits 24 colour. Each sample is stored in a 16-bit word, with two unused high 25 bits filled with zeros. Each n-pixel row contains n/2 green samples 32 Each cell is one byte, the two most significant bits in the high bytes are 37 .. flat-table:: [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | adm9240.rst | 10 Addresses scanned: I2C 0x2c - 0x2f 20 Addresses scanned: I2C 0x2c - 0x2f 24 http://pdfserv.maxim-ic.com/en/ds/DS1780.pdf 30 Addresses scanned: I2C 0x2c - 0x2f 37 - Frodo Looijaard <frodol@dds.nl>, 38 - Philip Edelbrock <phil@netroedge.com>, 39 - Michiel Rook <michiel@grendelproject.nl>, 40 - Grant Coady <gcoady.lk@gmail.com> with guidance 44 --------- 46 chip MSB 5-bit address. Each chip reports a unique manufacturer [all …]
|
| /linux/arch/mips/lib/ |
| H A D | multi3.c | 1 // SPDX-License-Identifier: GPL-2.0 14 /* multiply 64-bit values, low 64-bits returned */ 23 /* multiply 64-bit unsigned values, high 64-bits of 128-bit result returned */ 32 /* multiply 128-bit values, low 128-bits returned */ 46 res.s.high = dmuhu(aa.s.low, bb.s.low); in __multi3() 47 res.s.high += dmulu(aa.s.high, bb.s.low); in __multi3() 48 res.s.high += dmulu(aa.s.low, bb.s.high); in __multi3() 54 #endif /* 64BIT && CPU_MIPSR6 && GCC9 */
|
| /linux/include/dt-bindings/pinctrl/ |
| H A D | k210-fpioa.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 11 * kendryte-standalone-sdk/lib/drivers/include/fpioa.h 32 #define K210_PCF_UARTHS_RX 18 /* UART High speed Receiver */ 33 #define K210_PCF_UARTHS_TX 19 /* UART High speed Transmitter */ 38 #define K210_PCF_GPIOHS0 24 /* GPIO High speed 0 */ 39 #define K210_PCF_GPIOHS1 25 /* GPIO High speed 1 */ 40 #define K210_PCF_GPIOHS2 26 /* GPIO High speed 2 */ 41 #define K210_PCF_GPIOHS3 27 /* GPIO High speed 3 */ 42 #define K210_PCF_GPIOHS4 28 /* GPIO High speed 4 */ 43 #define K210_PCF_GPIOHS5 29 /* GPIO High speed 5 */ [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | ctlreg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #define CR0_TRANSACTIONAL_EXECUTION_BIT (63 - 8) 14 #define CR0_CLOCK_COMPARATOR_SIGN_BIT (63 - 10) 15 #define CR0_CRYPTOGRAPHY_COUNTER_BIT (63 - 13) 16 #define CR0_PAI_EXTENSION_BIT (63 - 14) 17 #define CR0_CPUMF_EXTRACTION_AUTH_BIT (63 - 15) 18 #define CR0_WARNING_TRACK_BIT (63 - 30) 19 #define CR0_LOW_ADDRESS_PROTECTION_BIT (63 - 35) 20 #define CR0_FETCH_PROTECTION_OVERRIDE_BIT (63 - 38) 21 #define CR0_STORAGE_PROTECTION_OVERRIDE_BIT (63 - 39) [all …]
|
| /linux/Documentation/virt/kvm/x86/ |
| H A D | timekeeping.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Timekeeping Virtualization for X86-Based Architectures 32 information relevant to KVM and hardware-based virtualization. 41 2.1. i8254 - PIT 42 ---------------- 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 57 controlled by port 61h, bit 0, as illustrated in the following diagram:: 59 -------------- ---------------- 61 | 1.1932 MHz|---------->| CLOCK OUT | ---------> IRQ 0 [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | div64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * - modifies the 64-bit dividend _in_place_ 17 * - returns the 32-bit remainder 27 __mod = n & (__base - 71 u32 high, low; mul_u32_u32() local 82 u32 high = a >> 32, low = a; add_u64_u32() local [all...] |
| H A D | asm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 /* 32 bit */ 27 /* 64 bit */ 60 /* 32 bit */ 79 /* 64 bit */ 130 #include <asm/asm-offsets.h> 141 .long (from) - . ; \ 142 .long (to) - . ; \ 189 " .long (" #from ") - .\n" \ 190 " .long (" #to ") - .\n" \ [all …]
|
| /linux/arch/powerpc/lib/ |
| H A D | strlen_32.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 * by subtracting 0x01010101, and seeing if any of the high bits of each 22 * significant), so it is 0x00 - 0x01 == 0xff. For all other 23 * byte values, either they have the high bit set initially, or when 24 * 1 is subtracted you get a value in the range 0x00-0x7f, none of which 25 * have their high bit set. The expression here is 26 * (x - 0x01010101) & ~x & 0x80808080), which gives 0x00000000 when 29 * byte to a true match due to carries. For little-endian this is 31 * we're interested in, but big-endian needs method 2 to find which 34 * calculating ~(((x & ~0x80808080) - 0x80808080 - 1) | x | ~0x80808080). [all …]
|
| /linux/tools/testing/selftests/powerpc/stringloops/ |
| H A D | strlen_32.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 * by subtracting 0x01010101, and seeing if any of the high bits of each 22 * significant), so it is 0x00 - 0x01 == 0xff. For all other 23 * byte values, either they have the high bit set initially, or when 24 * 1 is subtracted you get a value in the range 0x00-0x7f, none of which 25 * have their high bit set. The expression here is 26 * (x - 0x01010101) & ~x & 0x80808080), which gives 0x00000000 when 29 * byte to a true match due to carries. For little-endian this is 31 * we're interested in, but big-endian needs method 2 to find which 34 * calculating ~(((x & ~0x80808080) - 0x80808080 - 1) | x | ~0x80808080). [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_bit.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * XFS bit manipulation routines. 14 * masks with n high/low bits set, 64-bit values 18 return (uint64_t)-1 << (64 - (n)); in xfs_mask64hi() 22 return ((uint32_t)1 << (n)) - 1; in xfs_mask32lo() 26 return ((uint64_t)1 << (n)) - 1; in xfs_mask64lo() 29 /* Get high bit set out of 32-bit argument, -1 if none set */ 32 return fls(v) - 1; in xfs_highbit32() 35 /* Get high bit set out of 64-bit argument, -1 if none set */ 38 return fls64(v) - 1; in xfs_highbit64() [all …]
|
| /linux/sound/soc/ti/ |
| H A D | davinci-mcasp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 * Author: Nirmal Pandey <n-pandey@ti.com>, 100 * DAVINCI_MCASP_PWREMUMGT_REG - Power Down and Emulation Management 103 #define MCASP_FREE BIT(0) 104 #define MCASP_SOFT BIT(1) 107 * DAVINCI_MCASP_PFUNC_REG - Pin Function / GPIO Enable Register Bits 108 * DAVINCI_MCASP_PDIR_REG - Pi [all...] |
| /linux/Documentation/devicetree/bindings/bus/ |
| H A D | nvidia,tegra20-gmi.txt | 4 external memory. Can be used to attach various high speed devices such as 10 - compatible : Should contain one of the following: 11 For Tegra20 must contain "nvidia,tegra20-gmi". 12 For Tegra30 must contain "nvidia,tegra30-gmi". 13 - reg: Should contain GMI controller registers location and length. 14 - clocks: Must contain an entry for each entry in clock-names. 15 - clock-names: Must include the following entries: "gmi" 16 - resets : Must contain an entry for each entry in reset-names. 17 - reset-names : Must include the following entries: "gmi" 18 - #address-cells: The number of cells used to represent physical base [all …]
|
| /linux/drivers/thermal/broadcom/ |
| H A D | brcmstb_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2015-2017 Broadcom 26 #define AVS_TMON_STATUS_valid_msk BIT(11) 31 #define AVS_TMON_EN_OVERTEMP_RESET_msk BIT(0) 40 #define AVS_TMON_EN_TEMP_INT_SRCS_high BIT(1) 41 #define AVS_TMON_EN_TEMP_INT_SRCS_low BIT(0) 58 #define AVS_TMON_TEMP_MIN -88161 69 /* HW bit to enable the trip */ 124 int offset = priv->temp_params->offset; in avs_tmon_code_to_temp() 125 int mult = priv->temp_params->mult; in avs_tmon_code_to_temp() [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-lpc32xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2015-2016 Vladimir Zapolskiy <vz@mleia.com> 37 return readl_relaxed(ic->base + reg); in lpc32xx_ic_read() 43 writel_relaxed(val, ic->base + reg); in lpc32xx_ic_write() 49 u32 val, mask = BIT(d->hwirq); in lpc32xx_irq_mask() 58 u32 val, mask = BIT(d->hwirq); in lpc32xx_irq_unmask() 67 u32 mask = BIT(d->hwirq); in lpc32xx_irq_ack() 75 u32 val, mask = BIT(d->hwirq); in lpc32xx_irq_set_type() 76 bool high, edge; in lpc32xx_irq_set_type() local 81 high = true; in lpc32xx_irq_set_type() [all …]
|
| /linux/include/sound/ac97/ |
| H A D | regs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ 33 /* range 0x28-0x3a - AUDIO AC'97 2.0 extensions */ 44 /* range 0x3c-0x58 - MODEM */ 54 #define AC97_GPIO_POLARITY 0x4e /* GPIO Pin Polarity/Type, 0=low, 1=high active */ 59 /* range 0x5a-0x7b - Vendor Specific */ 62 /* range 0x60-0x6f (page 1) - extended codec registers */ 108 #define AC97_BC_16BIT_DAC 0x0000 /* 16-bit DAC resolution */ 109 #define AC97_BC_18BIT_DAC 0x0040 /* 18-bit DAC resolution */ 110 #define AC97_BC_20BIT_DAC 0x0080 /* 20-bit DAC resolution */ 112 #define AC97_BC_16BIT_ADC 0x0000 /* 16-bit ADC resolution */ [all …]
|