/openbmc/linux/arch/arm64/crypto/ |
H A D | sha3-ce-glue.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * sha3-ce-glue.c - core SHA-3 transform using v8.2 Crypto Extensions 26 MODULE_ALIAS_CRYPTO("sha3-224"); 27 MODULE_ALIAS_CRYPTO("sha3-256"); 28 MODULE_ALIAS_CRYPTO("sha3-384"); 29 MODULE_ALIAS_CRYPTO("sha3-512"); 38 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha3_update() 43 if ((sctx->partial + len) >= sctx->rsiz) { in sha3_update() 46 if (sctx->partial) { in sha3_update() 47 int p = sctx->rsiz - sctx->partial; in sha3_update() local [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-av-audio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Derived from cx25840-audio.c 11 #include "cx18-driver.h" 15 struct cx18_av_state *state = &cx->av_state; in set_audclk_freq() 18 return -EINVAL; in set_audclk_freq() 31 * the NTSC Standards", Proceedings of the I-R-E, January 1954, pp 79-80 in set_audclk_freq() 34 * NTSC Standards", Proceedings of the I-R-E, January 1954, pp 81-83 in set_audclk_freq() 56 if (state->aud_input > CX18_AV_AUDIO_SERIAL2) { in set_audclk_freq() 66 /* xtal * 0xf.15f17f0/4 = 108 MHz: 432 MHz pre-postdiv*/ in set_audclk_freq() 70 /* xtal * 0xd.bb3a060/0x20 = 32000 * 384: 393 MHz p-pd*/ in set_audclk_freq() [all …]
|
/openbmc/u-boot/include/ |
H A D | imx8image.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 40 #define HASH_TYPE_SHA_384 384 43 #define IMAGE_HASH_ALGO_DEFAULT 384 174 CFG_INVALID = -1, 269 #define append(p, s, l) do { \ argument 270 memcpy((p), (uint8_t *)(s), (l)); (p) += (l); \
|
/openbmc/openbmc/meta-phosphor/recipes-core/dropbear/dropbear/ |
H A D | dropbearkey.service | 8 EnvironmentFile=-/etc/default/dropbear 10 ExecStart=@BASE_BINDIR@/sh -c \ 11 "if [[ ! -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key ]]; then \ 12 @BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR}; \ 13 @SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key; \ 15 ExecStart=@BASE_BINDIR@/sh -c \ 16 "if [[ ! -f ${DROPBEAR_RSAKEY_DIR}/dropbear_ecdsa_host_key ]]; then \ 17 @BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR}; \ 18 @SBINDIR@/dropbearkey -t ecdsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_ecdsa_host_key -s 384; \ 20 ExecStart=@BASE_BINDIR@/sh -c \ [all …]
|
/openbmc/linux/drivers/gpu/drm/i2c/ |
H A D | ch7006_mode.c | 31 [TV_NORM_PAL_M] = "PAL-M", 32 [TV_NORM_PAL_N] = "PAL-N", 33 [TV_NORM_PAL_NC] = "PAL-Nc", 34 [TV_NORM_PAL_60] = "PAL-60", 35 [TV_NORM_NTSC_M] = "NTSC-M", 36 [TV_NORM_NTSC_J] = "NTSC-J", 145 MODE(21000, 512, 384, 840, 500, N, N, 181.797557582, 5_4, 0x6, PAL_LIKE), 146 MODE(26250, 512, 384, 840, 625, N, N, 145.438046066, 1_1, 0x1, PAL_LIKE), 147 MODE(20140, 512, 384, 800, 420, N, N, 213.257083791, 5_4, 0x4, NTSC_LIKE), 148 MODE(24671, 512, 384, 784, 525, N, N, 174.0874153, 1_1, 0x3, NTSC_LIKE), [all …]
|
/openbmc/linux/crypto/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 170 bool "Disable run-time self tests" 173 Disable run-time self tests that normally take place at 177 bool "Enable extra run-time crypto self tests" 180 Enable extra run-time self tests of registered crypto algorithms, 246 menu "Public-key cryptography" 249 tristate "RSA (Rivest-Shamir-Adleman)" 255 RSA (Rivest-Shamir-Adleman) public key algorithm (RFC8017) 258 tristate "DH (Diffie-Hellman)" 262 DH (Diffie-Hellman) key exchange algorithm [all …]
|
H A D | ecc_curve_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 /* NIST P-192: a = p - 3 */ 25 .p = nist_p192_p, 31 /* NIST P-256: a = p - 3 */ 51 .p = nist_p256_p, 57 /* NIST P-384 */ 83 .p = nist_p384_p, 102 .p = curve25519_p,
|
/openbmc/linux/Documentation/devicetree/bindings/crypto/ |
H A D | intel,keembay-ocs-ecc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/crypto/intel,keembay-ocs-ecc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Daniele Alessandrelli <daniele.alessandrelli@intel.com> 11 - Prabhjot Khurana <prabhjot.khurana@intel.com> 16 cryptography using the NIST P-256 and NIST P-384 elliptic curves. 20 const: intel,keembay-ocs-ecc 32 - compatible 33 - reg [all …]
|
/openbmc/linux/Documentation/admin-guide/device-mapper/ |
H A D | snapshot.rst | 2 Device-mapper snapshot support 5 Device-mapper allows you, without massive data copying: 7 - To create snapshots of any block device i.e. mountable, saved states of 10 - To create device "forks", i.e. multiple different versions of the 12 - To merge a snapshot of a block device back into the snapshot's origin 16 changed and uses a separate copy-on-write (COW) block device for 24 snapshot, snapshot-origin, and snapshot-merge. 26 - snapshot-origin <origin> 34 - snapshot <origin> <COW device> <persistent?> <chunksize> 45 <persistent?> is P (Persistent) or N (Not persistent - will not survive [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 274 | 31 size_diff = size_long - size_short 33 def create_chain() -> None: 34 iotests.qemu_img_create('-f', iotests.imgfmt, base, str(size_long)) 35 iotests.qemu_img_create('-f', iotests.imgfmt, '-b', base, 36 '-F', iotests.imgfmt, mid, str(size_short)) 37 iotests.qemu_img_create('-f', iotests.imgfmt, '-b', mid, 38 '-F', iotests.imgfmt, top, str(size_long)) 40 iotests.qemu_io_log('-c', 'write -P 1 0 %d' % size_long, base) 42 def create_vm() -> iotests.VM: 44 vm.add_blockdev('file,filename=%s,node-name=base-file' % base) [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | xlnx-versal-trng.c | 2 * Non-crypto strength model of the True Random Number Generator 5 * Copyright (c) 2017-2020 Xilinx Inc. 29 #include "hw/misc/xlnx-versal-trng.h" 33 #include "qemu/error-report.h" 34 #include "qemu/guest-random.h" 38 #include "hw/qdev-properties.h" 128 g_autofree char *p = object_get_canonical_path(OBJECT(D)); \ 129 qemu_log_mask(LOG_GUEST_ERROR, "%s: " FMT, p, ## __VA_ARGS__); \ 134 g_autofree char *p = object_get_canonical_path(OBJECT(D)); \ 135 warn_report("%s: " FMT, p, ## __VA_ARGS__); \ [all …]
|
/openbmc/linux/drivers/s390/char/ |
H A D | keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0 37 255, ARRAY_SIZE(func_table) - 1, NR_FN_HANDLER - 1, 0, 38 NR_DEAD - 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 62 '-', /* dead_stroke */ 83 kbd->key_maps = kzalloc(sizeof(ebc_key_maps), GFP_KERNEL); in kbd_alloc() 84 if (!kbd->key_maps) in kbd_alloc() 88 kbd->key_maps[i] = kmemdup(ebc_key_maps[i], in kbd_alloc() 91 if (!kbd->key_maps[i]) in kbd_alloc() 95 kbd->func_table = kzalloc(sizeof(ebc_func_table), GFP_KERNEL); in kbd_alloc() 96 if (!kbd->func_table) in kbd_alloc() [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | pkey-powerpc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 # define SYS_pkey_alloc 384 23 #define NR_RESERVED_PKEYS_4K 27 /* pkey-0, pkey-1, exec-only-pkey 26 #define NR_RESERVED_PKEYS_64K_3KEYS 3 /* PowerNV and KVM: pkey-0, 27 pkey-1 and exec-only key */ 28 #define NR_RESERVED_PKEYS_64K_4KEYS 4 /* PowerVM: pkey-0, pkey-1, 29 pkey-31 and exec-only key */ 36 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_bit_position() 72 if ((stat("/sys/firmware/devicetree/base/ibm,partition-name", &buf) == 0) && in arch_is_powervm() 73 (stat("/sys/firmware/devicetree/base/hmc-managed?", &buf) == 0) && in arch_is_powervm() [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | Key_v1.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!----> 3 <!--################################################################################ --> 4 <!--# Redfish Schema: Key v1.4.1 --> 5 <!--# --> 6 <!--# For a detailed change log, see the README file contained in the DSP8010 bundle, --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 8 <!--# Copyright 2014-2024 DMTF. --> 9 <!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright --> 10 <!--################################################################################ --> [all …]
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | clock_sun4i.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2007-2012 29 &ccm->cpu_ahb_apb0_cfg); in clock_init_safe() 30 writel(PLL1_CFG_DEFAULT, &ccm->pll1_cfg); in clock_init_safe() 36 &ccm->cpu_ahb_apb0_cfg); in clock_init_safe() 38 setbits_le32(&ccm->ahb_gate0, 0x1 << AHB_GATE_OFFSET_DMA); in clock_init_safe() 40 writel(PLL6_CFG_DEFAULT, &ccm->pll6_cfg); in clock_init_safe() 42 setbits_le32(&ccm->ahb_gate0, 0x1 << AHB_GATE_OFFSET_SATA); in clock_init_safe() 43 setbits_le32(&ccm->pll6_cfg, 0x1 << CCM_PLL6_CTRL_SATA_EN_SHIFT); in clock_init_safe() 57 &ccm->apb1_clk_div_cfg); in clock_init_uart() [all …]
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | emupcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Lee Revell <rlrevell@joe-job.com> 5 * James Courtier-Dutton <James@superbug.co.uk> 25 epcm = voice->epcm; in snd_emu10k1_pcm_interrupt() 28 if (epcm->substream == NULL) in snd_emu10k1_pcm_interrupt() 31 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt() 33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 34 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1_pcm_interrupt() 35 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1_pcm_interrupt() 37 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1_pcm_interrupt() [all …]
|
/openbmc/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.h | 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 29 #define PM_BASE 384 33 PINCTRL_PIN(P ## bank ## _BASE + (pin), "P" #bank #pin) 58 #define IRQ_CFG_IRQ_MASK ((1 << IRQ_CFG_IRQ_BITS) - 1) 62 #define IRQ_CTRL_IRQ_MASK ((1 << IRQ_CTRL_IRQ_BITS) - 1) 66 #define IRQ_STATUS_IRQ_MASK ((1 << IRQ_STATUS_IRQ_BITS) - 1) 228 if (!desc->irq_bank_map) in sunxi_irq_hw_bank_num() 231 return desc->irq_bank_map[bank]; in sunxi_irq_hw_bank_num()
|
/openbmc/u-boot/include/configs/ |
H A D | s5p_goni.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 49 /* USB Composite download gadget - g_dnl */ 63 #define PARTS_CSA "csa-mmc" 64 #define PARTS_BOOTLOADER "u-boot" 72 "u-boot raw 0x80 0x400;" \ 74 "exynos3-goni.dtb ext4 0 2;" \ 86 "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \ 130 "set bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \ 150 #define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */ 171 #define CONFIG_ENV_OFFSET ((32 - 4) << 10) /* 32KiB - 4KiB */ [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-defs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2010-2021 Hans Verkuil <hverkuil-cisco@xs4all.nl> 9 #include <media/v4l2-ctrls.h> 26 "MPEG-1/2 Layer I", in v4l2_ctrl_get_menu() 27 "MPEG-1/2 Layer II", in v4l2_ctrl_get_menu() 28 "MPEG-1/2 Layer III", in v4l2_ctrl_get_menu() 29 "MPEG-2/4 AAC", in v4l2_ctrl_get_menu() 30 "AC-3", in v4l2_ctrl_get_menu() 45 "384 kbps", in v4l2_ctrl_get_menu() 64 "384 kbps", in v4l2_ctrl_get_menu() [all …]
|
/openbmc/linux/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/dma-mapping.h> 33 #define HPRE_INVLD_REQ_ID (-1) 63 /* low address: e--->n */ 67 /* low address: d--->n */ 71 /* low address: dq->dp->q->p->qinv */ 81 * ya = g^xa mod p; [RFC2631 sec 2.1.1] 84 * ZZ = yb^xa mod p; [RFC2631 sec 2.1.1] 85 * low address: d--->n, please refer to Hisilicon HPRE UM 95 /* low address: p->a->k->b */ [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | core-pkey.c | 1 // SPDX-License-Identifier: GPL-2.0+ 21 #define __NR_pkey_alloc 384 38 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) 117 ret = wait_parent(&info->child_sync); in child() 139 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child() 142 info->iamr |= 1ul << pkeyshift(pkey1); in child() 144 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child() 146 info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); in child() 148 info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); in child() 150 printf("%-30s AMR: %016lx pkey1: %d pkey2: %d pkey3: %d\n", in child() [all …]
|
/openbmc/linux/drivers/video/fbdev/via/ |
H A D | hw.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. 4 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. 17 #define viafb_read_reg(p, i) via_read_reg(p, i) argument 18 #define viafb_write_reg(i, p, d) via_write_reg(p, i, d) argument 19 #define viafb_write_reg_mask(i, p, d, m) via_write_reg_mask(p, i, d, m) argument 43 #define IGA2_HOR_TOTAL_SHADOW_FORMULA(x) ((x/8)-5) 44 #define IGA2_HOR_BLANK_END_SHADOW_FORMULA(x, y) (((x+y)/8)-1) 45 #define IGA2_VER_TOTAL_SHADOW_FORMULA(x) ((x)-2) 46 #define IGA2_VER_ADDR_SHADOW_FORMULA(x) ((x)-1) [all …]
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_g1_h264_dec.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Hertz Wong <hertz.wong@rock-chips.com> 7 * Herman Chen <herman.chen@rock-chips.com> 16 #include <media/v4l2-mem2mem.h> 24 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in set_params() 25 const struct v4l2_ctrl_h264_decode_params *dec_param = ctrls->decode; in set_params() 26 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params() 27 const struct v4l2_ctrl_h264_pps *pps = ctrls->pps; in set_params() 28 struct hantro_dev *vpu = ctx->dev; in set_params() 33 if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in set_params() [all …]
|
/openbmc/linux/drivers/media/common/saa7146/ |
H A D | saa7146_fops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 #include <media/drv-intf/saa7146_vv.h> 12 struct saa7146_vv *vv = dev->vv_data; in saa7146_res_get() 14 if (vv->resources & bit) { in saa7146_res_get() 16 bit, vv->resources); in saa7146_res_get() 22 if (vv->resources & bit) { in saa7146_res_get() 23 DEB_D("locked! vv->resources:0x%02x, we want:0x%02x\n", in saa7146_res_get() 24 vv->resources, bit); in saa7146_res_get() 29 vv->resources |= bit; in saa7146_res_get() 30 DEB_D("res: get 0x%02x, cur:0x%02x\n", bit, vv->resources); in saa7146_res_get() [all …]
|
/openbmc/u-boot/drivers/ram/rockchip/ |
H A D | sdram_rk3399.c | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 3 * (C) Copyright 2016-2017 Rockchip Inc. 11 #include <dt-structs.h> 83 u32 *denali_phy = ddr_publ_regs->denali_phy; in phy_dll_bypass_set() 115 &sdram_params->ch[channel]; in set_memory_map() 116 u32 *denali_ctl = chan->pctl->denali_ctl; in set_memory_map() 117 u32 *denali_pi = chan->pi->denali_pi; in set_memory_map() 123 if (sdram_ch->ddrconfig < 2 || sdram_ch->ddrconfig == 4) in set_memory_map() 125 else if (sdram_ch->ddrconfig == 3) in set_memory_map() 130 cs_map = (sdram_ch->rank > 1) ? 3 : 1; in set_memory_map() [all …]
|