/linux/lib/crypto/ |
H A D | blake2s-generic.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 20 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, 21 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }, 22 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 }, 23 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 }, 24 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 }, 25 { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 }, 26 { 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11 }, 27 { 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10 }, [all …]
|
/linux/Documentation/hwmon/ |
H A D | ltc4245.rst | 10 Addresses scanned: 0x20-0x3f 20 ----------- 28 ----------- 38 $ echo ltc4245 0x23 > /sys/bus/i2c/devices/i2c-1/new_device 42 ------------- 44 The LTC4245 has built-in limits for over and under current warnings. This 48 into the values specified in the sysfs-interface document. The current readings 52 in1_input 12v input voltage (mV) 53 in2_input 5v input voltage (mV) 54 in3_input 3v input voltage (mV) [all …]
|
H A D | corsair-psu.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 3 Kernel driver corsair-psu 37 ----------- 41 These power supplies provide access to a micro-controller with 2 attached 43 power usage and 4 sensors for current levels and additional non-sensor information 47 ------------- 51 curr2_input Current on the 12v psu rail 52 curr2_crit Current max critical value on the 12v psu rail 53 curr3_input Current on the 5v psu rail 54 curr3_crit Current max critical value on the 5v psu rail [all …]
|
H A D | mc13783-adc.rst | 1 Kernel driver mc13783-adc 10 Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13783.pdf 16 Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13892.pdf 22 - Sascha Hauer <s.hauer@pengutronix.de> 23 - Luotao Fu <l.fu@pengutronix.de> 26 ----------- 29 Among other things they contain a 10-bit A/D converter. The converter has 16 30 (MC13783) resp. 12 (MC13892) channels which can be used in different modes. The 42 - MC13783: 47 0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V [all …]
|
H A D | intel-m10-bmc-hwmon.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Kernel driver intel-m10-bmc-hwmon 10 Prefix: 'n3000bmc-hwmon' 16 ----------- 34 ---------------- 38 - Intel MAX 10 BMC for Intel PAC N3000: 60 in3_label "12V Backplane Voltage" 61 in4_label "1.2V Voltage" 62 in5_label "12V AUX Voltage" 63 in6_label "1.8V Voltage" [all …]
|
/linux/crypto/ |
H A D | blake2b_generic.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR Apache-2.0) 11 * - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0 12 * - OpenSSL license : https://www.openssl.org/source/license.html 13 * - Apache 2.0 : https://www.apache.org/licenses/LICENSE-2.0 25 static const u8 blake2b_sigma[12][16] = { 26 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, 27 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }, 28 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 }, 29 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 }, 30 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 }, [all …]
|
/linux/arch/arm/crypto/ |
H A D | blake2s-core.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 // load the words on-demand. 59 // Execute a quarter-round of BLAKE2s by mixing two columns or two diagonals. 61 // columns/diagonals. s0-s1 are the word offsets to the message words the first 62 // column/diagonal needs, and likewise s2-s3 for the second column/diagonal. 87 // b = ror32(b ^ c, 12); 95 add \a0, \a0, \b0, ror #12 96 add \a1, \a1, \b1, ror #12 109 eor \b0, \c0, \b0, ror#12 110 eor \b1, \c1, \b1, ror#12 [all …]
|
H A D | blake2b-neon-core.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 29 // M_0-M_3 are occasionally used for other purposes too. 50 // rotation amounts with NEON. (On Cortex-A53 it's the same speed as 51 // vshr.u64 + vsli.u64, while on Cortex-A7 it's faster.) 63 // Execute one round of BLAKE2b by updating the state matrix v[0..15] in the 64 // NEON registers q0-q7. The message block is in q8..q15 (M_0-M_15). The stack 65 // pointer points to a 32-byte aligned buffer containing a copy of q8 and q9 66 // (M_0-M_3), so that they can be reloaded if they are used as temporary 67 // registers. The macro arguments s0-s15 give the order in which the message 73 // (v[0], v[4], v[8], v[12]), (v[1], v[5], v[9], v[13]), [all …]
|
/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 37 * The SHA-512 round constants 85 ld1 {v\rc1\().2d}, [x4], #16 87 add v5.2d, v\rc0\().2d, v\in0\().2d 88 ext v6.16b, v\i2\().16b, v\i3\().16b, #8 90 ext v7.16b, v\i1\().16b, v\i2\().16b, #8 91 add v\i3\().2d, v\i3\().2d, v5.2d 93 ext v5.16b, v\in3\().16b, v\in4\().16b, #8 [all …]
|
/linux/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_reg.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright 2021-2022 Bootlin 21 #define SUN6I_ISP_FE_CFG_SRC0_MODE(v) (((v) << 8) & GENMASK(9, 8)) argument 22 #define SUN6I_ISP_FE_CFG_SRC1_MODE(v) (((v) << 16) & GENMASK(17, 16)) argument 33 #define SUN6I_ISP_FE_CTRL_OUTPUT_SPEED_CTRL(v) (((v) << 16) & GENMASK(17, 16)) argument 57 /* Only since sun9i-a80-isp. */ 89 #define SUN6I_ISP_MODULE_EN_RGB2RGB BIT(12) 104 #define SUN6I_ISP_MODE_INPUT_FMT(v) ((v) & GENMASK(2, 0)) argument 105 #define SUN6I_ISP_MODE_INPUT_YUV_SEQ(v) (((v) << 3) & GENMASK(4, 3)) argument 106 #define SUN6I_ISP_MODE_OTF_DPC(v) (((v) << 16) & BIT(16)) argument [all …]
|
/linux/arch/microblaze/lib/ |
H A D | fastcopy.S | 2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 3 * Copyright (C) 2008-2009 PetaLogix 4 * Copyright (C) 2008 Jim Law - Iris LP All rights reserved. 21 * Input : Operand1 in Reg r5 - destination address 22 * Operand2 in Reg r6 - source address 23 * Operand3 in Reg r7 - number of bytes to transfer 24 * Output: Result in Reg r3 - starting destinaition address 44 cmpu r4, r4, r7 /* n = c - n (unsigned) */ 51 /* n = 4 - n (yields 3, 2, 1 transfers for 1, 2, 3 addr offset) */ 53 rsub r7, r4, r7 /* c = c - n adjust c */ [all …]
|
/linux/drivers/media/platform/sunxi/sun6i-csi/ |
H A D | sun6i_csi_reg.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (c) 2011-2018 Magewell Electronics Co., Ltd. (Nanjing) 5 * Copyright 2021-2022 Bootlin 18 #define SUN6I_CSI_EN_PTN_CYCLE(v) (((v) << 16) & GENMASK(23, 16)) argument 29 #define SUN6I_CSI_IF_CFG_FIELD_DT_PCLK_SHIFT(v) (((v) << 24) & GENMASK(27, 24)) argument 57 #define SUN6I_CSI_CAP_MASK(v) (((v) << 2) & GENMASK(5, 2)) argument 70 #define SUN6I_CSI_CH_CFG_PAD_VAL(v) (((v) << 24) & GENMASK(31, 24)) argument 71 #define SUN6I_CSI_CH_CFG_INPUT_FMT(v) (((v) << 20) & GENMASK(23, 20)) argument 72 #define SUN6I_CSI_CH_CFG_OUTPUT_FMT(v) (((v) << 16) & GENMASK(19, 16)) argument 74 #define SUN6I_CSI_CH_CFG_HFLIP_EN BIT(12) [all …]
|
/linux/drivers/net/ethernet/altera/ |
H A D | altera_tse.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Altera Triple-Speed Ethernet MAC driver 3 * Copyright (C) 2008-2014 Altera Corporation. All rights reserved 49 #define ALTERA_TSE_TX_IPG_LENGTH 12 53 #define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1) argument 69 #define MAC_CMDCFG_LATE_COL BIT(12) 73 #define MAC_CMDCFG_TX_ADDR_SEL(v) (((v) & 0x7) << 16) argument 85 #define MAC_CMDCFG_TX_ENA_GET(v) GET_BIT_VALUE(v, 0) argument 86 #define MAC_CMDCFG_RX_ENA_GET(v) GET_BIT_VALUE(v, 1) argument 87 #define MAC_CMDCFG_XON_GEN_GET(v) GET_BIT_VALUE(v, 2) argument [all …]
|
/linux/arch/alpha/kernel/ |
H A D | entry.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Kernel entry-points. 8 #include <asm/asm-offsets.h> 35 .size \func, . - \func 39 * This defines the normal kernel pt-regs layout. 41 * regs 9-15 preserved by C code 42 * regs 16-18 saved by PAL-code 43 * regs 29-30 saved and set up by PAL-code 44 * JRP - Save regs 16-18 in a special area of the stack, so that 45 * the palcode-provided values are available to the signal handler. [all …]
|
/linux/drivers/media/platform/nxp/ |
H A D | imx-pxp.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 7 * Copyright 2014-2015 Freescale Semiconductor, Inc. All Rights Reserved. 19 #define BF_PXP_CTRL_SFTRST(v) \ argument 20 (((v) << 31) & BM_PXP_CTRL_SFTRST) 22 #define BF_PXP_CTRL_CLKGATE(v) \ argument 23 (((v) << 30) & BM_PXP_CTRL_CLKGATE) 25 #define BF_PXP_CTRL_RSVD4(v) \ argument 26 (((v) << 29) & BM_PXP_CTRL_RSVD4) 28 #define BF_PXP_CTRL_EN_REPEAT(v) \ argument 29 (((v) << 28) & BM_PXP_CTRL_EN_REPEAT) [all …]
|
/linux/include/linux/ |
H A D | inet.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 * $Id: Space.c,v 0.8.4.5 1992/12/12 19:25:04 bir7 Exp $ 13 * $Id: arp.c,v 0.8.4.6 1993/01/28 22:30:00 bir7 Exp $ 14 * $Id: arp.h,v 0.8.4.6 1993/01/28 22:30:00 bir7 Exp $ 15 * $Id: dev.c,v 0.8.4.13 1993/01/23 18:00:11 bir7 Exp $ 16 * $Id: dev.h,v 0.8.4.7 1993/01/23 18:00:11 bir7 Exp $ 17 * $Id: eth.c,v 0.8.4.4 1993/01/22 23:21:38 bir7 Exp $ 18 * $Id: eth.h,v 0.8.4.1 1992/11/10 00:17:18 bir7 Exp $ 19 * $Id: icmp.c,v 0.8.4.9 1993/01/23 18:00:11 bir7 Exp $ 20 * $Id: icmp.h,v 0.8.4.2 1992/11/15 14:55:30 bir7 Exp $ [all …]
|
/linux/drivers/hwmon/ |
H A D | intel-m10-bmc-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2018-2020 Intel Corporation. All rights reserved. 10 #include <linux/mfd/intel-m10-bmc.h> 53 { 0x144, 0x0, 0x0, 0x0, 0x0, 1, "12V Backplane Voltage" }, 54 { 0x14c, 0x0, 0x0, 0x0, 0x0, 1, "1.2V Voltage" }, 55 { 0x150, 0x0, 0x0, 0x0, 0x0, 1, "12V AUX Voltage" }, 56 { 0x158, 0x0, 0x0, 0x0, 0x0, 1, "1.8V Voltage" }, 57 { 0x15c, 0x0, 0x0, 0x0, 0x0, 1, "3.3V Voltage" }, 62 { 0x148, 0x0, 0x0, 0x0, 0x0, 1, "12V Backplane Current" }, 63 { 0x154, 0x0, 0x0, 0x0, 0x0, 1, "12V AUX Current" }, [all …]
|
/linux/arch/riscv/crypto/ |
H A D | chacha-riscv64-zvkb.S | 1 /* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ 3 // This file is dual-licensed, meaning that you can use it under your 39 // The generated code of this file depends on the following RISC-V extensions: 40 // - RV64I 41 // - RISC-V Vector ('V') with VLEN >= 128 42 // - RISC-V Vector Cryptography Bit-manipulation extension ('Zvkb') 87 vror.vi \d0, \d0, 32 - 16 88 vror.vi \d1, \d1, 32 - 16 89 vror.vi \d2, \d2, 32 - 16 90 vror.vi \d3, \d3, 32 - 16 [all …]
|
/linux/include/video/ |
H A D | gbe.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * include/video/gbe.h -- SGI GBE (Graphics Back End) 20 uint32_t _pad0[0x010000/4 - 8]; 82 ( (((u32)1<<((msb)-(lsb)+1))-1) << (lsb) ) 83 #define GET(v, msb, lsb) \ argument 84 ( ((u32)(v) & MASK(msb,lsb)) >> (lsb) ) 85 #define SET(v, f, msb, lsb) \ argument 86 ( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)) ) 88 #define GET_GBE_FIELD(reg, field, v) \ argument 89 GET((v), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB) [all …]
|
/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (c) 2013-2016 Jens Kuske <jenskuske@gmail.com> 6 * Copyright (C) 2016 Florent Revest <florent.revest@free-electrons.com> 13 #define SHIFT_AND_MASK_BITS(v, h, l) \ argument 14 (((unsigned long)(v) << (l)) & GENMASK(h, l)) 18 * * VLD : Variable-Length Decoder 96 #define VE_DEC_MPEG_MP12HDR_F_CODE_SHIFT(x, y) (24 - 4 * (y) - 8 * (x)) 104 #define VE_DEC_MPEG_MP12HDR_TOP_FIELD_FIRST(v) \ argument 105 ((v) ? BIT(7) : 0) 106 #define VE_DEC_MPEG_MP12HDR_FRAME_PRED_FRAME_DCT(v) \ argument [all …]
|
/linux/arch/x86/include/asm/ |
H A D | perf_event_p4.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * perf-MSRs are not shared and every thread has its 17 * own perf-MSRs set) 21 #define ARCH_P4_MAX_ESCR (ARCH_P4_TOTAL_ESCR - ARCH_P4_RESERVED_ESCR) 25 #define ARCH_P4_CNTRVAL_MASK ((1ULL << ARCH_P4_CNTRVAL_BITS) - 1) 26 #define ARCH_P4_UNFLAGGED_BIT ((1ULL) << (ARCH_P4_CNTRVAL_BITS - 1)) 40 #define P4_ESCR_EVENT(v) ((v) << P4_ESCR_EVENT_SHIFT) argument 41 #define P4_ESCR_EMASK(v) ((v) << P4_ESCR_EVENTMASK_SHIFT) argument 42 #define P4_ESCR_TAG(v) ((v) << P4_ESCR_TAG_SHIFT) argument 62 #define P4_CCCR_THRESHOLD(v) ((v) << P4_CCCR_THRESHOLD_SHIFT) argument [all …]
|
/linux/arch/powerpc/boot/ |
H A D | addnote.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 25 0xffffffff, /* real-mode = true */ 26 0x02000000, /* real-base, i.e. where we expect OF to be */ 27 0xffffffff, /* real-size */ 28 0xffffffff, /* virt-base */ 29 0xffffffff, /* virt-size */ 30 0x4000, /* load-base */ 34 static const char rpaname[] = "IBM,RPA-Client-Config"; 49 -1, /* min_load */ 68 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ argument [all …]
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | mediatek,mt6358-regulator.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6358-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Zhiyong Tao <zhiyong.tao@mediatek.com> 14 All voltage regulators provided by the PMIC are described as sub-nodes of 20 - const: mediatek,mt6358-regulator 21 - items: 22 - const: mediatek,mt6366-regulator 23 - const: mediatek,mt6358-regulator [all …]
|
/linux/arch/s390/include/asm/ |
H A D | fpu-insn-asm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 #error only <asm/fpu-insn.h> can be included directly 23 /* GR_NUM - Retrieve general-purpose register number 67 \opd = 12 83 /* VX_NUM - Retrieve vector register number 131 \opd = 12 195 /* RXB - Compute most significant bit used vector registers 200 * are stored in instruction bits 8-11. 203 * are stored in instruction bits 12-15. 206 * are stored in instruction bits 16-19. [all …]
|
/linux/arch/riscv/include/asm/ |
H A D | insn-def.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #define INSN_R_FUNC3_SHIFT 12 17 #define INSN_I_FUNC3_SHIFT 12 35 #include <asm/gpr-num.h> 72 #include <asm/gpr-num.h> 123 #define RV_OPCODE(v) __ASM_STR(v) argument 124 #define RV_FUNC3(v) __ASM_STR(v) argument 125 #define RV_FUNC7(v) __ASM_STR(v) argument 126 #define RV_SIMM12(v) __ASM_STR(v) argument 127 #define RV_RD(v) __ASM_STR(v) argument [all …]
|