/linux/arch/sh/lib/ |
H A D | udivsi3_i4i.S | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0 23 Uses a lookup table for divisors in the range -128 .. +128, and 54 mov.l r4,@-r15 56 mov.l r1,@-r15 67 mov.l r4,@-r15 70 mov.l r5,@-r15 108 mov.l r4,@-r15 110 mov.l r1,@-r15 117 mov.l r1,@-r15 132 mov.l r4,@-r15 [all …]
|
/linux/Documentation/input/devices/ |
H A D | alps.rst | 1 ---------------------- 3 ---------------------- 6 ------------ 8 ALPS touchpads, called versions 1, 2, 3, 4, 5, 6, 7 and 8. 10 Since roughly mid-2010 several new ALPS touchpads have been released and 14 adequate. The design choices were to re-define the alps_model_data 29 --------- 32 E8-E6-E6-E6-E9. An ALPS touchpad should respond with either 00-00-0A or 33 00-00-64 if no buttons are pressed. The bits 0-2 of the first byte will be 1s 37 report" sequence: E8-E7-E7-E7-E9. The response is the model signature and is [all …]
|
H A D | elantech.rst | 4 Copyright (C) 2007-2008 Arjan Opmeer <arjan@opmeer.net> 20 4.2 Native relative mode 4 byte packet format 21 4.3 Native absolute mode 4 byte packet format 22 5. Hardware version 2 24 5.2 Native absolute mode 6 byte packet format 25 5.2.1 Parity checking and packet re-synchronization 30 6.2 Native absolute mode 6 byte packet format 35 7.2 Native absolute mode 6 byte packet format 41 8.2 Native relative mode 6 byte packet format 58 4 allows tracking up to 5 fingers. [all …]
|
H A D | sentelic.rst | 8 :Copyright: |copy| 2002-2011 Sentelic Corporation. 10 :Last update: Dec-07-2011 12 Finger Sensing Pad Intellimouse Mode (scrolling wheel, 4th and 5th buttons) 16 page (5th button) 22 5. FSP will respond 0x04. 27 Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 28 BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 30 |---------------| |---------------| |---------------| |---------------| 32 Byte 1: Bit7 => Y overflow 40 Byte 2: X Movement(9-bit 2's complement integers) [all …]
|
/linux/drivers/scsi/ |
H A D | BusLogic.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 6 Copyright 1995-1998 by Leonard N. Zubkoff <lnz@dandelion.com> 12 Special thanks to Wayne Yen, Jin-Lon Hon, and Alex Win of BusLogic, whose 160 (adapter->adapter_type == BLOGIC_MULTIMASTER) 163 (adapter->adapter_type == BLOGIC_FLASHPOINT) 183 BLOGIC_MCA_BUS = 5 189 BLOGIC_VESA_BUS, /* BT-4xx */ 190 BLOGIC_ISA_BUS, /* BT-5xx */ 191 BLOGIC_MCA_BUS, /* BT-6xx */ 192 BLOGIC_EISA_BUS, /* BT-7xx */ [all …]
|
H A D | myrb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com> 163 unsigned char ldev_count; /* Byte 0 */ 164 unsigned int rsvd1:24; /* Bytes 1-3 */ 165 unsigned int ldev_sizes[32]; /* Bytes 4-131 */ 166 unsigned short flash_age; /* Bytes 132-133 */ 168 unsigned char deferred:1; /* Byte 134 Bit 0 */ 169 unsigned char low_bat:1; /* Byte 134 Bit 1 */ 170 unsigned char rsvd2:6; /* Byte 134 Bits 2-7 */ 172 unsigned char rsvd3:8; /* Byte 135 */ [all …]
|
H A D | myrs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * This driver supports the newer, SCSI-based firmware interface only. 10 * Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com> 109 } __packed mem_type:5; /* Byte 0 Bits 0-4 */ 110 unsigned rsvd:1; /* Byte 0 Bit 5 */ 111 unsigned mem_parity:1; /* Byte 0 Bit 6 */ 112 unsigned mem_ecc:1; /* Byte 0 Bit 7 */ 132 unsigned char rsvd1; /* Byte 0 */ 137 } __packed bus; /* Byte 1 */ 170 } __packed ctlr_type; /* Byte 2 */ [all …]
|
/linux/lib/zstd/compress/ |
H A D | zstd_compress_superblock.c | 5 * This source code is licensed under both the BSD-style license (found in the 8 * You may select, at your option, one of the above-listed licenses. 11 /*-************************************* 23 * Compresses literals section for a sub-block. 32 * hufMetadata->hType has literals block type info. 33 * If it is set_basic, all sub-blocks literals section will be Raw_Literals_Block. 34 * If it is set_rle, all sub-blocks literals section will be RLE_Literals_Block. 35 …* If it is set_compressed, first sub-block's literals section will be Compressed_Literals_Blo… 36 * If it is set_compressed, first sub-block's literals section will be Treeless_Literals_Block 37 * and the following sub-blocks' literals sections will be Treeless_Literals_Block. [all …]
|
H A D | zstd_compress_literals.c | 5 * This source code is licensed under both the BSD-style license (found in the 8 * You may select, at your option, one of the above-listed licenses. 11 /*-************************************* 18 BYTE* const ostart = (BYTE*)dst; in ZSTD_noCompressLiterals() 25 case 1: /* 2 - 1 - 5 */ in ZSTD_noCompressLiterals() 26 ostart[0] = (BYTE)((U32)set_basic + (srcSize<<3)); in ZSTD_noCompressLiterals() 28 case 2: /* 2 - 2 - 12 */ in ZSTD_noCompressLiterals() 31 case 3: /* 2 - 2 - 20 */ in ZSTD_noCompressLiterals() 39 DEBUGLOG(5, "Raw literals: %u -> %u", (U32)srcSize, (U32)(srcSize + flSize)); in ZSTD_noCompressLiterals() 45 BYTE* const ostart = (BYTE*)dst; in ZSTD_compressRleLiteralsBlock() [all …]
|
H A D | zstd_fast.c | 5 * This source code is licensed under both the BSD-style license (found in the 8 * You may select, at your option, one of the above-listed licenses. 19 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_fillHashTable() 20 U32* const hashTable = ms->hashTable; in ZSTD_fillHashTable() 21 U32 const hBits = cParams->hashLog; in ZSTD_fillHashTable() 22 U32 const mls = cParams->minMatch; in ZSTD_fillHashTable() 23 const BYTE* const base = ms->window.base; in ZSTD_fillHashTable() 24 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillHashTable() 25 const BYTE* const iend = ((const BYTE*)end) - HASH_READ_SIZE; in ZSTD_fillHashTable() 32 U32 const curr = (U32)(ip - base); in ZSTD_fillHashTable() [all …]
|
/linux/arch/xtensa/lib/ |
H A D | checksum.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 29 * This function assumes 2- or 4-byte alignment. Other alignments will fail! 32 /* ONES_ADD converts twos-complement math to ones-complement. */ 44 * is aligned on either a 2-byte or 4-byte boundary. 48 bnez a5, 8f /* branch if 2-byte aligned */ 49 /* Fall-through on common case, 4-byte alignment */ 51 srli a5, a3, 5 /* 32-byte chunks */ 56 slli a5, a5, 5 57 add a5, a5, a2 /* a5 = end of last 32-byte chunk */ 81 extui a5, a3, 2, 3 /* remaining 4-byte chunks */ [all …]
|
H A D | modsi3.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0 */ 20 sub a4, a4, a5 /* count = udivisor_shift - udividend_shift */ 24 /* test-subtract-and-shift loop */ 34 addi a4, a4, -1 44 neg a2, a2 /* if (dividend < 0), return -udividend */ 71 .byte 8, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4 72 .byte 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 73 .byte 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 74 .byte 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 75 .byte 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 [all …]
|
/linux/drivers/gpu/drm/bridge/analogix/ |
H A D | analogix-i2c-txcommon.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 /* Device ID Low Byte Register */ 19 /* Device ID High Byte Register */ 28 #define SP_HDCP_PD BIT(5) 38 #define SP_VIDFIF_RST BIT(5) 74 /* Video Control Register 5 */ 78 #define SP_RANGE_Y2R BIT(5) 98 /* Total Line Status Low Byte Register */ 101 /* Total Line Status High Byte Register */ 104 /* Active Line Status Low Byte Register */ [all …]
|
/linux/lib/zstd/decompress/ |
H A D | zstd_decompress_block.c | 5 * This source code is licensed under both the BSD-style license (found in the 8 * You may select, at your option, one of the above-listed licenses. 14 /*-******************************************************* 50 /*-************************************************************* 63 bpPtr->lastBlock = cBlockHeader & 1; in ZSTD_getcBlockSize() 64 bpPtr->blockType = (blockType_e)((cBlockHeader >> 1) & 3); in ZSTD_getcBlockSize() 65 bpPtr->origSize = cSize; /* only useful for RLE */ in ZSTD_getcBlockSize() 66 if (bpPtr->blockType == bt_rle) return 1; in ZSTD_getcBlockSize() 67 RETURN_ERROR_IF(bpPtr->blockType == bt_reserved, corruption_detected, ""); in ZSTD_getcBlockSize() 79 dctx->litBuffer = (BYTE*)dst + ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer() [all …]
|
/linux/drivers/media/tuners/ |
H A D | tda18218_priv.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 #define R00_ID 0x00 /* ID byte */ 14 #define R01_R1 0x01 /* Read byte 1 */ 15 #define R02_R2 0x02 /* Read byte 2 */ 16 #define R03_R3 0x03 /* Read byte 3 */ 17 #define R04_R4 0x04 /* Read byte 4 */ 18 #define R05_R5 0x05 /* Read byte 5 */ 19 #define R06_R6 0x06 /* Read byte 6 */ 20 #define R07_MD1 0x07 /* Main divider byte 1 */ 21 #define R08_PSM1 0x08 /* PSM byte 1 */ [all …]
|
/linux/Documentation/scsi/ |
H A D | arcmsr_spec.rst | 11 ------------ 13 - InitThread message and return code 15 2. Doorbell is used for RS-232 emulation 16 ---------------------------------------- 35 --------------------- 46 4. RS-232 emulation 47 ------------------- 49 Currently 128 byte buffer is used: 52 1st uint32_t Data length (1--124) 53 Byte 4--127 Max 124 bytes of data [all …]
|
/linux/Documentation/core-api/ |
H A D | packing.rst | 6 ----------------- 10 One can memory-map a pointer to a carefully crafted struct over the hardware 23 were performed byte-by-byte. Also the code can easily get cluttered, and the 24 high-level idea might get lost among the many bit shifts required. 25 Many drivers take the bit-shifting approach and then attempt to reduce the 30 ------------ 34 - Packing a CPU-usable number into a memory buffer (with hardware 36 - Unpacking a memory buffer (which has hardware constraints/quirks) 37 into a CPU-usable number. 44 perspective, bit 63 always means bit offset 7 of byte 7, albeit only [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | pixfmt-packed-yuv.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _packed-yuv: 15 - In all the tables that follow, bit 7 is the most significant bit in a byte. 16 - 'Y', 'Cb' and 'Cr' denote bits of the luma, blue chroma (also known as 30 seen in a 16-bit word, which is then stored in memory in little endian byte 32 format stores a pixel in a 16-bit word [15:0] laid out at as [Y'\ :sub:`4-0` 33 Cb\ :sub:`5-0` Cr\ :sub:`4-0`], and stored in memory in two bytes, 34 [Cb\ :sub:`2-0` Cr\ :sub:`4-0`] followed by [Y'\ :sub:`4-0` Cb\ :sub:`5-3`]. 44 .. flat-table:: Packed YUV 4:4:4 Image Formats (less than 8bpc) 45 :header-rows: 2 [all …]
|
H A D | pixfmt-rgb.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _pixfmt-rgb: 12 bits required to store a pixel is not aligned to a byte boundary, the data is 13 padded with additional bits to fill the remaining byte. 22 (including capture queues of mem-to-mem devices) fill the alpha component in 25 but can set the alpha bit to a user-configurable value, the 26 :ref:`V4L2_CID_ALPHA_COMPONENT <v4l2-alpha-component>` control is used to 31 :ref:`Output <output>` devices (including output queues of mem-to-mem devices 44 - In all the tables that follow, bit 7 is the most significant bit in a byte. 45 - 'r', 'g' and 'b' denote bits of the red, green and blue components [all …]
|
H A D | pixfmt-yuv-luma.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _yuv-luma-only: 6 Luma-Only Formats 14 - In all the tables that follow, bit 7 is the most significant bit in a byte. 15 - Formats are described with the minimum number of pixels needed to create a 16 byte-aligned repeating pattern. `...` indicates repetition of the pattern. 17 - Y'\ :sub:`x`\ [9:2] denotes bits 9 to 2 of the Y' value for pixel at column 19 - `0` denotes padding bits set to 0. 28 .. flat-table:: Luma-Only Image Formats 29 :header-rows: 1 [all …]
|
/linux/arch/powerpc/perf/ |
H A D | ppc970-pmu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Performance counter support for PPC970-family processors. 5 * Copyright 2008-2009 Paul Mackerras, IBM Corporation. 17 #define PM_PMC_SH 12 /* PMC number (1-based) for direct events */ 19 #define PM_UNIT_SH 8 /* TTMMUX number and setting - unit select */ 23 #define PM_BYTE_SH 4 /* Byte number of event bus to use */ 33 #define PM_IDU 5 91 * SP - SPCSEL constraint 92 * 48-49: SPCSEL value 0x3_0000_0000_0000 94 * T0 - TTM0 constraint [all …]
|
/linux/drivers/input/joystick/ |
H A D | zhenhua.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2000-2001 Vojtech Pavlik 12 * Driver to use 4CH RC transmitter using Zhen Hua 5-byte protocol (Walkera Lama, 15 * RC transmitters using Zhen Hua 5-byte protocol are cheap four channels 19 * 1. byte = synchronisation byte 20 * 2. byte = X axis 21 * 3. byte = Y axis 22 * 4. byte = RZ axis 23 * 5. byte = Z axis 27 * Martin Kebert <gkmarty@gmail.com> - but I am not a C-programmer nor kernel [all …]
|
/linux/arch/powerpc/crypto/ |
H A D | aes-tab-4k.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 16 * For the safety-conscious it has to be noted that they might be vulnerable 32 /* encryption table, same as crypto_ft_tab in crypto/aes-generic.c */ 46 .long R(5f, a2, a2, fd), R(45, af, af, ea) 48 .long R(e4, 72, 72, 96), R(9b, c0, c0, 5b) 51 .long R(6c, 36, 36, 5a), R(7e, 3f, 3f, 41) 53 .long R(68, 34, 34, 5c), R(51, a5, a5, f4) 58 .long R(46, 23, 23, 65), R(9d, c3, c3, 5e) 68 .long R(b4, 5a, 5a, ee), R(5b, a0, a0, fb) 72 .long R(5e, 2f, 2f, 71), R(13, 84, 84, 97) [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_acpi.h | 71 * WORD - structure size in bytes (includes size field) 72 * WORD - version 73 * DWORD - supported notifications mask 74 * DWORD - supported functions bit vector 82 # define ATIF_DISPLAY_CONF_CHANGE_REQUEST_SUPPORTED (1 << 5) 92 # define ATIF_SET_TV_STANDARD_IN_CMOS_SUPPORTED (1 << 5) 102 * WORD - structure size in bytes (includes size field) 103 * DWORD - valid flags mask 104 * DWORD - flags 108 * WORD - structure size in bytes (includes size field) [all …]
|
/linux/sound/soc/sof/ |
H A D | sof-utils.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 6 // Copyright(c) 2018-2022 Intel Corporation 12 #include <linux/io-64-nonatomic-lo-hi.h> 16 #include "sof-utils.h" 34 dmab->area, size, pages); in snd_sof_create_page_table() 39 * idx determines the byte position within page_table in snd_sof_create_page_table() 44 u32 idx = (5 * i) >> 1; in snd_sof_create_page_table() 52 * byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 in snd_sof_create_page_table() 57 * 2. put pfn[i] at current location in Little Endian byte order in snd_sof_create_page_table() 60 * 4. put x at offset (current location + 2) in LE byte order in snd_sof_create_page_table() [all …]
|