| /kernel/linux/linux-5.10/arch/arm64/crypto/ |
| D | aes-ce-ccm-core.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * aesce-ccm-core.S - AES-CCM transform for ARMv8 with Crypto Extensions 5 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> 12 .arch armv8-a+crypto 20 ld1 {v0.16b}, [x0] /* load mac */ 21 cbz w8, 1f 24 0: ldrb w7, [x1], #1 /* get 1 byte of input */ 25 subs w2, w2, #1 26 add w8, w8, #1 28 ext v1.16b, v1.16b, v1.16b, #1 /* rotate in the input bytes */ [all …]
|
| D | aes-ce-core.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> 9 .arch armv8-a+crypto 13 ld1 {v0.16b}, [x2] 22 1: aese v0.16b, v2.16b 23 aesmc v0.16b, v0.16b 25 aese v0.16b, v3.16b 26 aesmc v0.16b, v0.16b 29 aese v0.16b, v1.16b 30 aesmc v0.16b, v0.16b [all …]
|
| D | aes-modes.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm64/crypto/aes-modes.S - chaining mode wrappers for AES 5 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> 8 /* included by aes-ce.S and aes-neon.S */ 26 encrypt_block4x v0, v1, v2, v3, w3, x2, x8, w7 31 decrypt_block4x v0, v1, v2, v3, w3, x2, x8, w7 37 encrypt_block5x v0, v1, v2, v3, v4, w3, x2, x8, w7 42 decrypt_block5x v0, v1, v2, v3, v4, w3, x2, x8, w7 55 stp x29, x30, [sp, #-16]! 63 ld1 {v0.16b-v3.16b}, [x1], #64 /* get 4 pt blocks */ [all …]
|
| /kernel/linux/linux-4.19/arch/arm64/crypto/ |
| D | aes-ce-ccm-core.S | 2 * aesce-ccm-core.S - AES-CCM transform for ARMv8 with Crypto Extensions 4 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> 15 .arch armv8-a+crypto 23 ld1 {v0.16b}, [x0] /* load mac */ 24 cbz w8, 1f 27 0: ldrb w7, [x1], #1 /* get 1 byte of input */ 28 subs w2, w2, #1 29 add w8, w8, #1 31 ext v1.16b, v1.16b, v1.16b, #1 /* rotate in the input bytes */ 34 eor v0.16b, v0.16b, v1.16b [all …]
|
| D | aes-modes.S | 2 * linux/arch/arm64/crypto/aes-modes.S - chaining mode wrappers for AES 4 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> 11 /* included by aes-ce.S and aes-neon.S */ 17 encrypt_block4x v0, v1, v2, v3, w22, x21, x8, w7 22 decrypt_block4x v0, v1, v2, v3, w22, x21, x8, w7 48 ld1 {v0.16b-v3.16b}, [x20], #64 /* get 4 pt blocks */ 50 st1 {v0.16b-v3.16b}, [x19], #64 57 ld1 {v0.16b}, [x20], #16 /* get next pt block */ 58 encrypt_block v0, w22, x21, x5, w6 59 st1 {v0.16b}, [x19], #16 [all …]
|
| D | aes-ce-core.S | 2 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> 12 .arch armv8-a+crypto 16 ld1 {v0.16b}, [x2] 25 1: aese v0.16b, v2.16b 26 aesmc v0.16b, v0.16b 28 aese v0.16b, v3.16b 29 aesmc v0.16b, v0.16b 32 aese v0.16b, v1.16b 33 aesmc v0.16b, v0.16b 35 bpl 1b [all …]
|
| D | crct10dif-ce-core.S | 2 // Accelerated CRC-T10DIF using arm64 NEON and Crypto Extensions instructions 12 // Implement fast CRC-T10DIF computation with SSE and PCLMULQDQ instructions 61 // UINT64 len //buffer length in bytes (64-bit data) 67 // /white-papers/fast-crc-computation-generic-polynomials-pclmulqdq-paper.pdf 92 // adjust the 16-bit initial_crc value, scale it to 32 bits 102 // crc value does not need to be byte-reflected, but it needs 104 // because data will be byte-reflected and will align with 116 CPU_LE( rev64 v0.16b, v0.16b ) 125 CPU_LE( ext v0.16b, v0.16b, v0.16b, #8 ) 135 eor v0.16b, v0.16b, v10.16b [all …]
|
| /kernel/linux/linux-4.19/arch/mips/include/asm/mach-cavium-octeon/ |
| D | kernel-entry-init.h | 6 * Copyright (C) 2005-2008 Cavium Networks, Inc 14 #define CP0_DCACHE_ERR_REG $27, 1 25 # a2 = 1 if init core, zero otherwise 30 dmfc0 v0, CP0_CVMMEMCTL_REG 32 dins v0, $0, 0, 6 33 ori v0, CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE 34 dmtc0 v0, CP0_CVMMEMCTL_REG # Write the cavium mem control register 35 dmfc0 v0, CP0_CVMCTL_REG # Read the cavium control register 38 or v0, v0, 0x5001 39 xor v0, v0, 0x1001 [all …]
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/mach-cavium-octeon/ |
| D | kernel-entry-init.h | 6 * Copyright (C) 2005-2008 Cavium Networks, Inc 14 #define CP0_DCACHE_ERR_REG $27, 1 25 # a2 = 1 if init core, zero otherwise 30 dmfc0 v0, CP0_CVMMEMCTL_REG 32 dins v0, $0, 0, 6 33 ori v0, CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE 34 dmtc0 v0, CP0_CVMMEMCTL_REG # Write the cavium mem control register 35 dmfc0 v0, CP0_CVMCTL_REG # Read the cavium control register 38 or v0, v0, 0x5001 39 xor v0, v0, 0x1001 [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/math/ |
| D | vmx_asm.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 9 # Should be safe from C, only touches r4, r5 and v0,v1,v2 13 li r3,1 # assume a bad result 15 lvx v0,r5,r4 16 vcmpequd. v1,v0,v20 20 lvx v0,r5,r4 21 vcmpequd. v1,v0,v21 25 lvx v0,r5,r4 26 vcmpequd. v1,v0,v22 30 lvx v0,r5,r4 [all …]
|
| /kernel/linux/linux-4.19/tools/testing/selftests/powerpc/math/ |
| D | vmx_asm.S | 13 # Should be safe from C, only touches r4, r5 and v0,v1,v2 17 li r3,1 # assume a bad result 19 lvx v0,r5,r4 20 vcmpequd. v1,v0,v20 24 lvx v0,r5,r4 25 vcmpequd. v1,v0,v21 29 lvx v0,r5,r4 30 vcmpequd. v1,v0,v22 34 lvx v0,r5,r4 35 vcmpequd. v1,v0,v23 [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/crypto/ |
| D | crc32-vpmsum_core.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 16 * 32 bits of 0s to the end - this matches what a CRC does. We just 28 #include <asm/ppc-opcode.h> 66 std r31,-8(r1) 67 std r30,-16(r1) 68 std r29,-24(r1) 69 std r28,-32(r1) 70 std r27,-40(r1) 71 std r26,-48(r1) 72 std r25,-56(r1) [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
| D | cwsr_trap_handler_gfx10.asm | 26 * cpp -DASIC_TARGET_NAVI1X=1 cwsr_trap_handler_gfx10.asm -P -o nv1x.sp3 27 * sp3-nv1x nv1x.sp3 -hex nv1x.hex 30 * cpp -DASIC_TARGET_NAVI1X=0 cwsr_trap_handler_gfx10.asm -P -o gfx10.sp3 31 * sp3-gfx10 gfx10.sp3 -hex gfx10.hex 36 var SINGLE_STEP_MISSED_WORKAROUND = 1 //workaround for lost MODE.DEBUG_EN exception when SAVECTX r… 52 var SQ_WAVE_IB_STS2_WAVE64_SIZE = 1 70 var SQ_WAVE_IB_STS_REPLAY_W64H_SIZE = 1 72 var SQ_WAVE_IB_STS_FIRST_REPLAY_SIZE = 1 190 // Second-level trap already handled exception if STATUS.HALT=1. 194 // Second-level trap will halt wave and RFE, re-entering for SAVECTX. [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
| D | ctrl.c | 38 struct nvif_control_pstate_info_v0 v0; in nvkm_control_mthd_pstate_info() member 40 struct nvkm_clk *clk = ctrl->device->clk; in nvkm_control_mthd_pstate_info() 41 int ret = -ENOSYS; in nvkm_control_mthd_pstate_info() 43 nvif_ioctl(&ctrl->object, "control pstate info size %d\n", size); in nvkm_control_mthd_pstate_info() 44 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_control_mthd_pstate_info() 45 nvif_ioctl(&ctrl->object, "control pstate info vers %d\n", in nvkm_control_mthd_pstate_info() 46 args->v0.version); in nvkm_control_mthd_pstate_info() 51 args->v0.count = clk->state_nr; in nvkm_control_mthd_pstate_info() 52 args->v0.ustate_ac = clk->ustate_ac; in nvkm_control_mthd_pstate_info() 53 args->v0.ustate_dc = clk->ustate_dc; in nvkm_control_mthd_pstate_info() [all …]
|
| D | user.c | 51 return -EINVAL; in nvkm_udevice_info_subdev() 57 return -ENODEV; in nvkm_udevice_info_subdev() 64 if (args->mthd & NV_DEVICE_INFO_UNIT) { in nvkm_udevice_info_v1() 65 if (nvkm_udevice_info_subdev(device, args->mthd, &args->data)) in nvkm_udevice_info_v1() 66 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1() 70 switch (args->mthd) { in nvkm_udevice_info_v1() 72 for (_i = (B), args->data = 0ULL; _i <= (C); _i++) { \ in nvkm_udevice_info_v1() 74 args->data |= BIT_ULL(_i); \ in nvkm_udevice_info_v1() 97 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1() 105 struct nvkm_object *object = &udev->object; in nvkm_udevice_info() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
| D | ctrl.c | 38 struct nvif_control_pstate_info_v0 v0; in nvkm_control_mthd_pstate_info() member 40 struct nvkm_clk *clk = ctrl->device->clk; in nvkm_control_mthd_pstate_info() 41 int ret = -ENOSYS; in nvkm_control_mthd_pstate_info() 43 nvif_ioctl(&ctrl->object, "control pstate info size %d\n", size); in nvkm_control_mthd_pstate_info() 44 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_control_mthd_pstate_info() 45 nvif_ioctl(&ctrl->object, "control pstate info vers %d\n", in nvkm_control_mthd_pstate_info() 46 args->v0.version); in nvkm_control_mthd_pstate_info() 51 args->v0.count = clk->state_nr; in nvkm_control_mthd_pstate_info() 52 args->v0.ustate_ac = clk->ustate_ac; in nvkm_control_mthd_pstate_info() 53 args->v0.ustate_dc = clk->ustate_dc; in nvkm_control_mthd_pstate_info() [all …]
|
| D | user.c | 51 return -EINVAL; in nvkm_udevice_info_subdev() 57 return -ENODEV; in nvkm_udevice_info_subdev() 64 if (args->mthd & NV_DEVICE_INFO_UNIT) { in nvkm_udevice_info_v1() 65 if (nvkm_udevice_info_subdev(device, args->mthd, &args->data)) in nvkm_udevice_info_v1() 66 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1() 70 switch (args->mthd) { in nvkm_udevice_info_v1() 72 for (_i = (B), args->data = 0ULL; _i <= (C); _i++) { \ in nvkm_udevice_info_v1() 74 args->data |= BIT_ULL(_i); \ in nvkm_udevice_info_v1() 97 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1() 105 struct nvkm_object *object = &udev->object; in nvkm_udevice_info() [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/crypto/ |
| D | crc32-vpmsum_core.S | 15 * 32 bits of 0s to the end - this matches what a CRC does. We just 32 #include <asm/ppc-opcode.h> 70 std r31,-8(r1) 71 std r30,-16(r1) 72 std r29,-24(r1) 73 std r28,-32(r1) 74 std r27,-40(r1) 75 std r26,-48(r1) 76 std r25,-56(r1) 105 vspltisw v0,-1 [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| D | rootnv50.c | 40 struct nv50_disp_mthd_v0 v0; in nv50_disp_root_mthd_() member 44 struct nv50_disp *disp = root->disp; in nv50_disp_root_mthd_() 48 int hidx, ret = -ENOSYS; in nv50_disp_root_mthd_() 51 return -EINVAL; in nv50_disp_root_mthd_() 54 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nv50_disp_root_mthd_() 56 args->v0.version, args->v0.method, args->v0.head); in nv50_disp_root_mthd_() 57 mthd = args->v0.method; in nv50_disp_root_mthd_() 58 hidx = args->v0.head; in nv50_disp_root_mthd_() 60 if (!(ret = nvif_unpack(ret, &data, &size, args->v1, 1, 1, true))) { in nv50_disp_root_mthd_() 63 args->v1.version, args->v1.method, in nv50_disp_root_mthd_() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/core/ |
| D | ioctl.c | 36 struct nvif_ioctl_nop_v0 v0; in nvkm_ioctl_nop() member 38 int ret = -ENOSYS; in nvkm_ioctl_nop() 41 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_ioctl_nop() 42 nvif_ioctl(object, "nop vers %lld\n", args->v0.version); in nvkm_ioctl_nop() 43 args->v0.version = NVIF_VERSION_LATEST; in nvkm_ioctl_nop() 54 struct nvif_ioctl_sclass_v0 v0; in nvkm_ioctl_sclass() member 57 int ret = -ENOSYS, i = 0; in nvkm_ioctl_sclass() 60 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nvkm_ioctl_sclass() 62 args->v0.version, args->v0.count); in nvkm_ioctl_sclass() 63 if (size != args->v0.count * sizeof(args->v0.oclass[0])) in nvkm_ioctl_sclass() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/ |
| D | ioctl.c | 36 struct nvif_ioctl_nop_v0 v0; in nvkm_ioctl_nop() member 38 int ret = -ENOSYS; in nvkm_ioctl_nop() 41 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_ioctl_nop() 42 nvif_ioctl(object, "nop vers %lld\n", args->v0.version); in nvkm_ioctl_nop() 43 args->v0.version = NVIF_VERSION_LATEST; in nvkm_ioctl_nop() 54 struct nvif_ioctl_sclass_v0 v0; in nvkm_ioctl_sclass() member 57 int ret = -ENOSYS, i = 0; in nvkm_ioctl_sclass() 60 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nvkm_ioctl_sclass() 62 args->v0.version, args->v0.count); in nvkm_ioctl_sclass() 63 if (size != args->v0.count * sizeof(args->v0.oclass[0])) in nvkm_ioctl_sclass() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | siphash.c | 5 * SipHash: a fast short-input PRF 8 * This implementation is specifically for SipHash2-4 for a secure PRF 9 * and HalfSipHash1-3/SipHash1-3 for an insecure PRF only suitable for 18 #include <asm/word-at-a-time.h> 23 v0 += v1; v1 = rol64(v1, 13); v1 ^= v0; v0 = rol64(v0, 32); \ 25 v0 += v3; v3 = rol64(v3, 21); v3 ^= v0; \ 30 u64 v0 = 0x736f6d6570736575ULL; \ 35 v3 ^= key->key[1]; \ 36 v2 ^= key->key[0]; \ 37 v1 ^= key->key[1]; \ [all …]
|
| /kernel/linux/linux-4.19/lib/ |
| D | siphash.c | 5 * SipHash: a fast short-input PRF 8 * This implementation is specifically for SipHash2-4 for a secure PRF 9 * and HalfSipHash1-3/SipHash1-3 for an insecure PRF only suitable for 18 #include <asm/word-at-a-time.h> 23 v0 += v1; v1 = rol64(v1, 13); v1 ^= v0; v0 = rol64(v0, 32); \ 25 v0 += v3; v3 = rol64(v3, 21); v3 ^= v0; \ 30 u64 v0 = 0x736f6d6570736575ULL; \ 35 v3 ^= key->key[1]; \ 36 v2 ^= key->key[0]; \ 37 v1 ^= key->key[1]; \ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| D | rootnv50.c | 40 struct nv50_disp_mthd_v0 v0; in nv50_disp_root_mthd_() member 44 struct nv50_disp *disp = root->disp; in nv50_disp_root_mthd_() 48 int hidx, ret = -ENOSYS; in nv50_disp_root_mthd_() 51 return -EINVAL; in nv50_disp_root_mthd_() 54 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nv50_disp_root_mthd_() 56 args->v0.version, args->v0.method, args->v0.head); in nv50_disp_root_mthd_() 57 mthd = args->v0.method; in nv50_disp_root_mthd_() 58 hidx = args->v0.head; in nv50_disp_root_mthd_() 60 if (!(ret = nvif_unpack(ret, &data, &size, args->v1, 1, 1, true))) { in nv50_disp_root_mthd_() 63 args->v1.version, args->v1.method, in nv50_disp_root_mthd_() [all …]
|
| /kernel/linux/linux-4.19/arch/mips/lib/ |
| D | strncpy_user.S | 11 #include <asm/asm-offsets.h> 22 * Returns: -EFAULT if exception before terminator, N if the entire 34 LONG_L v0, TI_ADDR_LIMIT($28) # pointer ok? 35 and v0, a1 36 bnez v0, .Lfault\@ 41 1: EX(lbu, v0, (v1), .Lfault\@) 43 1: EX(lbue, v0, (v1), .Lfault\@) 45 PTR_ADDIU v1, 1 47 sb v0, (a0) 48 beqz v0, 2f [all …]
|