| /linux/drivers/pinctrl/sunplus/ |
| H A D | sppctl_sp7021.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #define D(x, y) ((x) * 8 + (y)) macro 15 #define P(x, y) PINCTRL_PIN(D(x, y), D_PIS(x, y)) 18 D_PIS(0, 0), D_PIS(0, 1), D_PIS(0, 2), D_PIS(0, 3), 20 D_PIS(1, 0), D_PIS(1, 1), D_PIS(1, 2), D_PIS(1, 3), 22 D_PIS(2, 0), D_PIS(2, 1), D_PIS(2, 2), D_PIS(2, 3), 24 D_PIS(3, 0), D_PIS(3, 1), D_PIS(3, 2), D_PIS(3, 3), 25 D_PIS(3, 4), D_PIS(3, 5), D_PIS(3, 6), D_PIS(3, 7), 26 D_PIS(4, 0), D_PIS(4, 1), D_PIS(4, 2), D_PIS(4, 3), 28 D_PIS(5, 0), D_PIS(5, 1), D_PIS(5, 2), D_PIS(5, 3), [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_rogue_fwif_sf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 47 * - --- ---- ---- ---- ---- ---- ---- ---- 48 * 0-11: id number 49 * 12-15: group id number 50 * 16-19: number of parameters 51 * 20-27: unused 52 * 28-30: active: identify SF packet, otherwise regular int32 80 "Kick 3D: FWCtx 0x%08.8x @ %d, RTD 0x%08x. Partial render:%d, CSW resume:%d, prio:%d" }, 82 "3D finished, HWRTData0State=%x, HWRTData1State=%x" }, 83 { ROGUE_FW_LOG_CREATESFID(3, ROGUE_FW_GROUP_MAIN, 4), [all …]
|
| /linux/lib/crypto/arm64/ |
| H A D | sha512-ce-core.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * sha512-ce-core.S - core SHA-384/SHA-512 transform using v8 Crypto Extensions 17 * assemblers both consider the SHA-512 instructions to be part of the 20 * versions.) "sha3" doesn't make a lot of sense, since SHA-512 is part 21 * of the SHA-2 family of algorithms, and also the Arm Architecture 25 .arch armv8-a+sha3 28 * The SHA-512 round constants 76 ld1 {v\rc1\().2d}, [x4], #16 78 add v5.2d, v\rc0\().2d, v\in0\().2d 82 add v\i3\().2d, v\i3\().2d, v5.2d [all …]
|
| /linux/lib/crypto/x86/ |
| H A D | sha1-ssse3-and-avx.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * This is a SIMD SHA-1 implementation. It requires the Intel(R) Supplemental 17 …* http://software.intel.com/en-us/articles/improving-the-performance-of-the-secure-hash-algorith… 61 /* we keep window of 64 w[i]+K pre-calculated values in a circular buffer */ 66 * This macro implements the SHA-1 function's body for single 64-byte block 108 * This macro implements 80 rounds of SHA-1 for one 64-byte block 116 mov 12(HASH_PTR), D 127 RR F1,A,B,C,D,E,0 128 RR F1,D,E,A,B,C,2 129 RR F1,B,C,D,E,A,4 [all …]
|
| /linux/fs/smb/common/ |
| H A D | cifs_md4.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright (c) Andrew Tridgell 1997-1998. 33 return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s)); in lshift() 51 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 52 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 53 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 57 u32 a, b, c, d; in md4_transform() local 62 d = hash[3]; in md4_transform() 64 ROUND1(a, b, c, d, in[0], 3); in md4_transform() 65 ROUND1(d, a, b, c, in[1], 7); in md4_transform() [all …]
|
| /linux/Documentation/fb/ |
| H A D | viafb.modes | 10 # 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) 28 mode "640x480-60" 29 # D: 25.175 MHz, H: 31.469 kHz, V: 59.94 Hz 31 timings 39722 48 16 33 10 96 2 endmode mode "480x640-60" 32 # D: 24.823 MHz, H: 39.780 kHz, V: 60.00 Hz 33 geometry 480 640 480 640 32 timings 39722 72 24 19 1 48 3 endmode 35 # 640x480, 75 Hz, Non-Interlaced (31.50 MHz dotclock) 41 # 8 chars 3 lines 52 mode "640x480-75" 53 # D: 31.50 MHz, H: 37.500 kHz, V: 75.00 Hz [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | dbstats.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: dbstats - Generation and display of ACPI table statistics 47 #define CMD_STAT_MISC 3 57 * PARAMETERS: list - Memory list/cache to be displayed 71 acpi_os_printf("\n%s\n", list->list_name); in acpi_db_list_info() 75 if (list->max_depth > 0) { in acpi_db_list_info() 78 "%8.2X %8.2X %8.2X %8.2X\n", list->current_depth, in acpi_db_list_info() 79 list->max_depth, list->max_depth - list->current_depth, in acpi_db_list_info() 80 (list->current_depth * list->object_size)); in acpi_db_list_info() 83 if (list->max_depth > 0) { in acpi_db_list_info() [all …]
|
| /linux/Documentation/staging/ |
| H A D | lzo.rst | 26 - a distance when copying data from the dictionary (past output buffer) 27 - a length (number of bytes to copy from dictionary) 28 - the number of literals to copy, which is retained in variable "state" 45 length = byte & ((1 << #bits) - 1) 47 length = ((1 << #bits) - 1) 49 length += first-non-zero-byte 51 length += constant (generally 2 or 3) 57 forming a little-endian 16-bit quantity (marked LE16 below). 59 After any instruction except the large literal copy, 0, 1, 2 or 3 literals 70 for the distance, thus requiring 3 bytes. [all …]
|
| /linux/scripts/mod/ |
| H A D | sumversion.c | 25 * Copyright (c) Andrew Tridgell 1997-1998. 51 return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s)); in lshift() 69 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 70 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (uint32_t)0x5A827999,s)) argument 71 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (uint32_t)0x6ED9EBA1,s)) argument 76 while (words--) { in le32_to_cpu_array() 92 uint32_t a, b, c, d; md4_transform() local [all...] |
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_multitouch.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 20 KERNEL_MODULE = base.KernelModule("hid-multitouch", "hid_multitouch") 31 "SLOT_IS_CONTACTNUMBER": BIT(3), 224 elif value == 3: 310 Unit Exponent (-1) 335 Unit Exponent (-4) 378 Unit Exponent (-1) 397 Unit Exponent (-4) 442 Unit Exponent (-1) [all …]
|
| H A D | test_tablet.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 44 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states 67 def from_evdev(cls, evdev, test_button) -> "PenState": 100 ) -> "PenState": 147 def valid_transitions(self) -> Tuple["PenState", ...]: 207 def historically_tolerated_transitions(self) -> Tuple["PenState", ...]: 209 for skipping the in-range state, due to historical reasons. 272 def legal_transitions() -> Dict[str, Tuple["PenState", ...]]: 274 we don't have Invert nor Erase bits, so just move in/out-of-range or proximity. [all …]
|
| /linux/drivers/media/usb/pwc/ |
| H A D | pwc-dec23.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Decompression for chipset version 2 et 3 4 (C) 2004-2006 Luc Saillard (luc@saillard.org) 9 The decompression routines have been implemented by reverse-engineering the 15 #include "pwc-timon.h" 16 #include "pwc-kiara.h" 17 #include "pwc-dec23.h" 44 -0x526500, -0x221200, 0x221200, 0x526500, in build_subblock_pattern() 45 -0x3de200, 0x3de200, in build_subblock_pattern() 46 -0x6db480, -0x2d5d00, 0x2d5d00, 0x6db480, in build_subblock_pattern() [all …]
|
| /linux/arch/x86/crypto/ |
| H A D | nh-avx2-x86_64.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * NH - ε-almost-universal hash function, x86_64 AVX2 accelerated 108 // 2 or 3 strides remain; do 2 more. 132 // PASS0_SUMS is (0A 0B 0C 0D) 133 // PASS1_SUMS is (1A 1B 1C 1D) 134 // PASS2_SUMS is (2A 2B 2C 2D) 135 // PASS3_SUMS is (3A 3B 3C 3D) 137 // (0A + 0B + 0C + 0D, 138 // 1A + 1B + 1C + 1D, 139 // 2A + 2B + 2C + 2D, [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-picolcd_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> * 11 #include <linux/hid-debug.h> 20 #include "hid-picolcd.h" 25 if (picolcd_fbinfo((struct picolcd_data *)f->private)) in picolcd_debug_reset_show() 34 return single_open(f, picolcd_debug_reset_show, inode->i_private); in picolcd_debug_reset_open() 40 struct picolcd_data *data = ((struct seq_file *)f->private_data)->private; in picolcd_debug_reset_write() 42 size_t cnt = min(count, sizeof(buf)-1); in picolcd_debug_reset_write() 44 return -EFAULT; in picolcd_debug_reset_write() 46 while (cnt > 0 && (buf[cnt-1] == ' ' || buf[cnt-1] == '\n')) in picolcd_debug_reset_write() [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 25 #define R(a, b, c, d) \ argument 26 0x##a##b##c##d, 0x##d##a##b##c, 0x##c##d##a##b, 0x##b##c##d##a 32 /* encryption table, same as crypto_ft_tab in crypto/aes-generic.c */ 34 .long R(ee, 77, 77, 99), R(f6, 7b, 7b, 8d) 35 .long R(ff, f2, f2, 0d), R(d6, 6b, 6b, bd) 38 .long R(ce, 67, 67, a9), R(56, 2b, 2b, 7d) 40 .long R(4d, ab, ab, e6), R(ec, 76, 76, 9a) 41 .long R(8f, ca, ca, 45), R(1f, 82, 82, 9d) [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | atafb_utils.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 22 * would be faster. I suspect not for simple text system - not much 30 * Unaligned read/write used requires 68020+ - think this is a problem? 55 " lsr.l #1,%1 ; jcc 1f ; move.b %2,-(%0)\n" in fb_memclear_small() 56 "1: lsr.l #1,%1 ; jcc 1f ; move.w %2,-(%0)\n" in fb_memclear_small() 57 "1: lsr.l #1,%1 ; jcc 1f ; move.l %2,-(%0)\n" in fb_memclear_small() 58 "1: lsr.l #1,%1 ; jcc 1f ; move.l %2,-(%0) ; move.l %2,-(%0)\n" in fb_memclear_small() 60 : "=a" (s), "=d" (count) in fb_memclear_small() 61 : "d" (0), "0" ((char *)s + count), "1" (count)); in fb_memclear_small() 64 " jcs 3f\n" in fb_memclear_small() [all …]
|
| /linux/drivers/net/wireless/zydas/zd1211rw/ |
| H A D | zd_rf_rf2959.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* ZD1211 USB-WLAN driver for Linux 4 * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de> 5 * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org> 17 RF_CHANNEL( 3) = { 0x181999, 0x1e6666 }, 48 PDEBUG("rf2959 %#010x reg %d rw %d", rw, reg, rw_flag); 52 PDEBUG("reg0 CFG1 ref_sel %d hibernate %d rf_vco_reg_en %d" 53 " if_vco_reg_en %d if_vga_en %d", 54 bits(rw, 14, 15), bit(rw, 3), bit(rw, 2), bit(rw, 1), 58 PDEBUG("reg1 IFPLL1 pll_en1 %d kv_en1 %d vtc_en1 %d lpf1 %d" [all …]
|
| /linux/kernel/bpf/ |
| H A D | disasm.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com 22 if (!insn->src_reg && in __func_get_name() 23 insn->imm >= 0 && insn->im in __func_get_name() [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | disasm.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com 22 if (!insn->src_reg && in __func_get_name() 23 insn->imm >= 0 && insn->im in __func_get_name() [all...] |
| /linux/fs/ext4/ |
| H A D | hash.c | 1 // SPDX-License-Identifier: GPL-2.0 20 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; in TEA_transform() local 26 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); in TEA_transform() 27 } while (--n); in TEA_transform() 44 #define ROUND(f, a, b, c, d, x, s) \ argument 45 (a += f(b, c, d) + x, a = rol32(a, s)) 51 * Basic cut-down MD4 transform. Returns only 32 bits of result. 55 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local 58 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform() 59 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform() [all …]
|
| /linux/arch/loongarch/lib/ |
| H A D | copy_user.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 7 #include <asm/alternative-asm.h> 10 #include <asm/asm-extable.h> 33 beqz a2, 3f 37 addi.d a0, a0, 1 38 addi.d a1, a1, 1 39 addi.d a2, a2, -1 42 3: move a0, a2 45 _asm_extable 1b, 3b [all …]
|
| /linux/drivers/isdn/mISDN/ |
| H A D | dsp_dtmf.c | 24 /* k << 15 (source: hfc-4s/8s documentation (www.colognechip.de)) */ 31 {'1', '2', '3', 'A'}, 34 {'*', '0', '#', 'D'} 42 dsp->dtmf.size = 0; in dsp_dtmf_goertzel_init() 43 dsp->dtmf.lastwhat = '\0'; in dsp_dtmf_goertzel_init() 44 dsp->dtmf.lastdigit = '\0'; in dsp_dtmf_goertzel_init() 45 dsp->dtmf.count = 0; in dsp_dtmf_goertzel_init() 54 if (!dsp->dtmf.enable) in dsp_dtmf_hardware() 57 if (!dsp->features.hfc_dtmf) in dsp_dtmf_hardware() 61 if (dsp->tx_volume) { in dsp_dtmf_hardware() [all …]
|
| /linux/drivers/gpu/drm/msm/dsi/phy/ |
| H A D | dsi_phy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 10 #include <dt-bindings/phy/phy.h> 14 #define S_DIV_ROUND_UP(n, d) \ argument 15 (((n) >= 0) ? (((n) + (d) - 1) / (d)) : (((n) - (d) + 1) / (d))) 22 v = (tmax - tmin) * percent; in linear_inter() 25 return max_t(s32, min_result, v - 1); in linear_inter() 37 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 38 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc_clk_zero() 48 temp = (timing->hs_rqst + timing->clk_prepare + clk_z) & 0x7; in dsi_dphy_timing_calc_clk_zero() [all …]
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvb_vb2.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * dvb-vb2.c - dvb-vb2 35 ctx->buf_cnt = *nbuffers; in _queue_setup() 37 sizes[0] = ctx->buf_siz; in _queue_setup() 40 * videobuf2-vmalloc allocator is context-less so no need to set in _queue_setup() 44 dprintk(3, "[%s] count=%d, size=%d\n", ctx->name, in _queue_setup() 52 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_prepare() 53 unsigned long size = ctx->buf_siz; in _buffer_prepare() 57 ctx->name, vb2_plane_size(vb, 0), size); in _buffer_prepare() 58 return -EINVAL; in _buffer_prepare() [all …]
|
| /linux/sound/pci/ac97/ |
| H A D | ac97_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 snd_iprintf(buffer, "%-17s: %3d.%d dBV %c %2d/f in snd_ac97_proc_read_functions() [all...] |