/openbmc/linux/arch/arm64/crypto/ |
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 15 .irp b,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 17 .set .Lv\b\().2d, \b 37 * The SHA-512 round constants 85 ld1 {v\rc1\().2d}, [x4], #16 87 add v5.2d, v\rc0\().2d, v\in0\().2d 91 add v\i3\().2d, v\i3\().2d, v5.2d 94 sha512su0 v\in0\().2d, v\in1\().2d 96 sha512h q\i3, q6, v7.2d [all …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | sha1_ssse3_asm.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… 62 /* we keep window of 64 w[i]+K pre-calculated values in a circular buffer */ 67 * This macro implements the SHA-1 function's body for single 64-byte block 109 * This macro implements 80 rounds of SHA-1 for one 64-byte block 117 mov 12(HASH_PTR), D 128 RR F1,A,B,C,D,E,0 129 RR F1,D,E,A,B,C,2 130 RR F1,B,C,D,E,A,4 [all …]
|
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 …]
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | tlbex.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 14 #define PTRS_PER_PGD_BITS (PAGE_SHIFT - 3) 15 #define PTRS_PER_PUD_BITS (PAGE_SHIFT - 3) 16 #define PTRS_PER_PMD_BITS (PAGE_SHIFT - 3) 17 #define PTRS_PER_PTE_BITS (PAGE_SHIFT - 3) 60 bstrpick.d ra, t0, PTRS_PER_PGD_BITS + PGDIR_SHIFT - 1, PGDIR_SHIFT 61 alsl.d t1, ra, t1, 3 62 #if CONFIG_PGTABLE_LEVELS > 3 63 ld.d t1, t1, 0 [all …]
|
/openbmc/qemu/hw/display/ |
H A D | vga-helpers.h | 25 static inline void vga_draw_glyph_line(uint8_t *d, uint32_t font_data, in vga_draw_glyph_line() argument 28 ((uint32_t *)d)[0] = (-((font_data >> 7)) & xorcol) ^ bgcol; in vga_draw_glyph_line() 29 ((uint32_t *)d)[1] = (-((font_data >> 6) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 30 ((uint32_t *)d)[2] = (-((font_data >> 5) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 31 ((uint32_t *)d)[3] = (-((font_data >> 4) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 32 ((uint32_t *)d)[4] = (-((font_data >> 3) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 33 ((uint32_t *)d)[5] = (-((font_data >> 2) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 34 ((uint32_t *)d)[6] = (-((font_data >> 1) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 35 ((uint32_t *)d)[7] = (-((font_data >> 0) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 38 static void vga_draw_glyph8(uint8_t *d, int linesize, in vga_draw_glyph8() argument [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | crypto_helper.c | 2 * crypto_helper.c - emulate v8 Crypto Extensions instructions 4 * Copyright (C) 2013 - 2018 Linaro Ltd <ard.biesheuvel@linaro.org> 15 #include "exec/helper-proto.h" 16 #include "tcg/tcg-gvec-desc.h" 17 #include "crypto/aes-round.h" 28 #define CR_ST_BYTE(state, i) ((state).bytes[(15 - (i)) ^ 8]) 29 #define CR_ST_WORD(state, i) ((state).words[(3 - (i)) ^ 2]) 61 * Our uint64_t are in the wrong order for big-endian. in HELPER() 66 t.d[0] = st->d[1] ^ rk->d[1]; in HELPER() 67 t.d[1] = st->d[0] ^ rk->d[0]; in HELPER() [all …]
|
/openbmc/qemu/disas/ |
H A D | sparc.c | 3 * include/opcode/sparc.h, opcodes/sparc-opc.c, opcodes/sparc-dis.c 30 #include "disas/dis-asm.h" 33 the opcodes library in sparc-opc.c. If you change anything here, make 36 /* FIXME-someday: perhaps the ,a's and such should be embedded in the 43 returns non-zero. 44 The values are indices into `sparc_opcode_archs' defined in sparc-opc.c. 45 Don't change this without updating sparc-opc.c. */ 62 #define SPARC_OPCODE_ARCH_MAX (SPARC_OPCODE_ARCH_BAD - 1) 68 /* Given a valid sparc_opcode_arch_val, return non-zero if it's v9. */ 118 d rd register. [all …]
|
/openbmc/u-boot/drivers/ddr/fsl/ |
H A D | interactive.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2010-2016 Freescale Semiconductor, Inc. 4 * Copyright 2017-2018 NXP Semiconductor 140 pspd = &(pinfo->spd_installed_dimms[ctrl_num][dimm_num]); in fsl_ddr_spd_edit() 145 sizeof((common_timing_params_t *)0)->x, 0} 152 common_timing_params_t *p = &pinfo->common_timing_params[ctrl_num]; in lowest_common_dimm_parameters_edit() 210 sizeof((dimm_params_t *)0)->x, 0} 212 sizeof((dimm_params_t *)0)->x, 1} 220 dimm_params_t *p = &(pinfo->dimm_params[ctrl_num][dimm_num]); in fsl_ddr_dimm_parameters_edit() 289 DIMM_PARM_HEX(dq_mapping[3]), in fsl_ddr_dimm_parameters_edit() [all …]
|
/openbmc/linux/fs/smb/common/ |
H A D | cifs_md4.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright (c) Andrew Tridgell 1997-1998. 32 return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s)); in lshift() 50 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 51 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 52 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 56 u32 a, b, c, d; in md4_transform() local 61 d = hash[3]; in md4_transform() 63 ROUND1(a, b, c, d, in[0], 3); in md4_transform() 64 ROUND1(d, a, b, c, in[1], 7); in md4_transform() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/crypto/ |
H A D | md4.c | 11 * Copyright (c) Andrew Tridgell 1997-1998. 45 return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s)); in lshift() 63 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 64 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 65 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 69 u32 a, b, c, d; in md4_transform() local 74 d = hash[3]; in md4_transform() 76 ROUND1(a, b, c, d, in[0], 3); in md4_transform() 77 ROUND1(d, a, b, c, in[1], 7); in md4_transform() 78 ROUND1(c, d, a, b, in[2], 11); in md4_transform() [all …]
|
/openbmc/openbmc/poky/meta/recipes-connectivity/openssl/ |
H A D | openssl_3.4.0.bb | 7 LICENSE = "Apache-2.0" 10 SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \ 11 file://run-ptest \ 12 file://0001-buildinfo-strip-sysroot-and-debug-prefix-map-from-co.patch \ 13 file://0001-Configure-do-not-tweak-mips-cflags.patch \ 14 file://0001-Added-handshake-history-reporting-when-test-fails.patch \ 15 file://0001-Fix-builds-on-riscv64-using-musl.patch \ 18 SRC_URI:append:class-nativesdk = " \ 19 file://environment.d-openssl.sh \ 25 MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash" [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/oelib/ |
H A D | utils.py | 4 # SPDX-License-Identifier: MIT 23 d = bb.data_smart.DataSmart() 24 d.setVar("PN", "foo") 26 d.setVar("PACKAGES", "foo foo-doc foo-dev") 27 pkgs = packages_filter_out_system(d) 30 d.setVar("PACKAGES", "foo foo-doc foo-data foo-dev") 31 pkgs = packages_filter_out_system(d) 32 self.assertEqual(pkgs, ["foo-data"]) 34 d.setVar("PACKAGES", "foo foo-locale-en-gb") 35 pkgs = packages_filter_out_system(d) [all …]
|
/openbmc/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 …]
|
/openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ |
H A D | ntfs-3g-ntfsprogs_2022.10.3.bb | 1 DESCRIPTION = "The NTFS-3G driver is an open source, freely available NTFS driver for Linux with re… 2 HOMEPAGE = "http://www.ntfs-3g.org/" 4 PROVIDES = "ntfsprogs ntfs-3g" 5 LICENSE = "GPL-2.0-only & LGPL-2.0-only" 9 SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \ 10 file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \ 11 file://0001-unistr.c-Fix-use-after-free-in-ntfs_uppercase_mbs.patch \ 13 S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}" 16 UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/" 17 UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz" [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/target/sparc/ |
H A D | vis_helper.c | 4 * Copyright (c) 2003-2005 Fabrice Bellard 22 #include "exec/helper-proto.h" 31 * past implementations of these instructions have ignored R[rs2]{63:3} in helper_array8() 40 target_ulong lower_x = x_int & 3; in helper_array8() 41 target_ulong lower_y = y_int & 3; in helper_array8() 48 target_ulong upper_x = (x_int >> 6) & ((1 << n) - 1); in helper_array8() 49 target_ulong upper_y = (y_int >> 6) & ((1 << n) - 1); in helper_array8() 64 #define VIS_B64(n) b[7 - (n)] 65 #define VIS_SB64(n) sb[7 - (n)] 66 #define VIS_W64(n) w[3 - (n)] [all …]
|
/openbmc/linux/arch/ia64/lib/ |
H A D | copy_page_mck.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * McKinley-optimized version of copy_page(). 5 * Copyright (C) 2002 Hewlett-Packard Co 15 * - use regular loads and stores to prefetch data to avoid consuming M-slot just for 16 * lfetches => good for in-cache performance 17 * - avoid l2 bank-conflicts by not storing into the same 16-byte bank within a single 21 * First, note that L1 has a line-size of 64 bytes and L2 a line-size of 128 bytes. 22 * To avoid secondary misses in L2, we prefetch both source and destination with a line-size 28 * We use a software-pipelined loop to control the overall operation. The pipeline 30 * source cache-lines. The second PREFETCH_DIST stages are used for prefetching destination [all …]
|
/openbmc/linux/tools/testing/selftests/hid/tests/ |
H A D | test_tablet.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 23 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states 37 def from_evdev(cls, evdev) -> "PenState": 58 def apply(self, events) -> "PenState": 91 def valid_transitions(self) -> Tuple["PenState", ...]: 93 for skipping the in-range state, due to historical reasons. 236 def legal_transitions() -> Dict[str, Tuple[PenState, ...]]: 238 we don't have Invert nor Erase bits, so just move in/out-of-range or proximity. 239 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states [all …]
|
/openbmc/linux/scripts/mod/ |
H A D | sumversion.c | 23 * Copyright (c) Andrew Tridgell 1997-1998. 49 return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s)); in lshift() 67 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 68 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (uint32_t)0x5A827999,s)) argument 69 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (uint32_t)0x6ED9EBA1,s)) argument 74 while (words--) { in le32_to_cpu_array() 82 while (words--) { in cpu_to_le32_array() 90 uint32_t a, b, c, d; in md4_transform() local 95 d = hash[3]; in md4_transform() 97 ROUND1(a, b, c, d, in[0], 3); in md4_transform() [all …]
|
/openbmc/linux/tools/perf/arch/x86/tests/ |
H A D | intel-pt-test.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include "intel-pt-decoder/intel-pt-pkt-decoder.h" 13 #include "arch-tests.h" 17 * struct test_data - Test data. 42 {8, {0x02, 0xa3, 3}, 0, {INTEL_PT_TNT, 1, 0x1a302ULL << 47}, 0, 0 }, 47 {3, {0x2d, 1, 2}, 0, {INTEL_PT_TIP, 1, 0x201}, 0, 0 }, 48 {5, {0x4d, 1, 2, 3, 4}, 0, {INTEL_PT_TIP, 2, 0x4030201}, 0, 0 }, 49 {7, {0x6d, 1, 2, 3, 4, 5, 6}, 0, {INTEL_PT_TIP, 3, 0x60504030201}, 0, 0 }, 50 {7, {0x8d, 1, 2, 3, 4, 5, 6}, 0, {INTEL_PT_TIP, 4, 0x60504030201}, 0, 0 }, 51 {9, {0xcd, 1, 2, 3, 4, 5, 6, 7, 8}, 0, {INTEL_PT_TIP, 6, 0x807060504030201}, 0, 0 }, [all …]
|
/openbmc/linux/drivers/net/wireless/ath/carl9170/ |
H A D | debug.c | 25 * Copyright (c) 2008-2009 Atheros Communications, Inc. 48 off += scnprintf(&buf[off], max - off, fmt, ##args) 74 ar = file->private_data; in carl9170_debugfs_read() 77 return -ENODEV; in carl9170_debugfs_read() 81 if (!dfops->read) in carl9170_debugfs_read() 82 return -ENOSYS; in carl9170_debugfs_read() 84 if (dfops->read_bufsize) { in carl9170_debugfs_read() 85 buf = vmalloc(dfops->read_bufsize); in carl9170_debugfs_read() 87 return -ENOMEM; in carl9170_debugfs_read() 90 mutex_lock(&ar->mutex); in carl9170_debugfs_read() [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/target/i386/ |
H A D | ops_sse.h | 2 * MMX/3DNow!/SSE/SSE2/SSE3/SSSE3/SSE4/PNI support 22 #include "crypto/aes-round.h" 57 void glue(helper_psrlw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 60 if (c->Q(0) > 15) { in glue() 62 d->Q(i) = 0; in glue() 65 shift = c->B(0); in glue() 67 d->W(i) = FPSRL(s->W(i), shift); in glue() 72 void glue(helper_psllw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 75 if (c->Q(0) > 15) { in glue() 77 d->Q(i) = 0; in glue() [all …]
|