Home
last modified time | relevance | path

Searched refs:pk (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.10/drivers/hid/
Dhid-prodikeys.c53 struct pk_device *pk; member
103 struct pk_device *pk = hid_get_drvdata(hdev); in show_channel() local
105 dbg_hid("pcmidi sysfs read channel=%u\n", pk->pm->midi_channel); in show_channel()
107 return sprintf(buf, "%u (min:%u, max:%u)\n", pk->pm->midi_channel, in show_channel()
116 struct pk_device *pk = hid_get_drvdata(hdev); in store_channel() local
122 pk->pm->midi_channel = channel; in store_channel()
140 struct pk_device *pk = hid_get_drvdata(hdev); in show_sustain() local
142 dbg_hid("pcmidi sysfs read sustain=%u\n", pk->pm->midi_sustain); in show_sustain()
144 return sprintf(buf, "%u (off:%u, max:%u (ms))\n", pk->pm->midi_sustain, in show_sustain()
153 struct pk_device *pk = hid_get_drvdata(hdev); in store_sustain() local
[all …]
/Linux-v5.10/arch/s390/crypto/
Dpaes_s390.c112 struct pkey_protkey pk; member
119 struct pkey_protkey pk[2]; member
125 struct pkey_protkey *pk) in __paes_keyblob2pkey() argument
131 ret = pkey_keyblob2pkey(kb->key, kb->keylen, pk); in __paes_keyblob2pkey()
147 memcpy(&ctx->pk, &pkey, sizeof(pkey)); in __paes_convert_key()
178 fc = (ctx->pk.type == PKEY_KEYTYPE_AES_128) ? CPACF_KM_PAES_128 : in __ecb_paes_set_key()
179 (ctx->pk.type == PKEY_KEYTYPE_AES_192) ? CPACF_KM_PAES_192 : in __ecb_paes_set_key()
180 (ctx->pk.type == PKEY_KEYTYPE_AES_256) ? CPACF_KM_PAES_256 : 0; in __ecb_paes_set_key()
218 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
232 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
[all …]
/Linux-v5.10/crypto/
Decc.c1389 struct ecc_point *pk; in ecc_make_pub_key() local
1400 pk = ecc_alloc_point(ndigits); in ecc_make_pub_key()
1401 if (!pk) { in ecc_make_pub_key()
1406 ecc_point_mult(pk, &curve->g, priv, NULL, curve, ndigits); in ecc_make_pub_key()
1409 if (ecc_is_pubkey_valid_full(curve, pk)) { in ecc_make_pub_key()
1414 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key()
1415 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key()
1418 ecc_free_point(pk); in ecc_make_pub_key()
1426 struct ecc_point *pk) in ecc_is_pubkey_valid_partial() argument
1430 if (WARN_ON(pk->ndigits != curve->g.ndigits)) in ecc_is_pubkey_valid_partial()
[all …]
Decc.h148 struct ecc_point *pk);
162 struct ecc_point *pk);
/Linux-v5.10/arch/x86/mm/
Dpkeys.c157 struct pkru_state *pk; in init_pkru_write_file() local
180 pk = get_xsave_addr(&init_fpstate.xsave, XFEATURE_PKRU); in init_pkru_write_file()
181 if (!pk) in init_pkru_write_file()
183 pk->pkru = new_init_pkru; in init_pkru_write_file()
/Linux-v5.10/arch/x86/include/asm/fpu/
Dinternal.h567 struct pkru_state *pk; in switch_fpu_finish() local
582 pk = get_xsave_addr(&new_fpu->state.xsave, XFEATURE_PKRU); in switch_fpu_finish()
583 if (pk) in switch_fpu_finish()
584 pkru_val = pk->pkru; in switch_fpu_finish()
/Linux-v5.10/fs/btrfs/
Dfile-item.c751 struct btrfs_key pk; in btrfs_del_csums() local
753 btrfs_item_key_to_cpu(leaf, &pk, slot); in btrfs_del_csums()
754 if (pk.offset < bytenr || in btrfs_del_csums()
755 pk.type != BTRFS_EXTENT_CSUM_KEY || in btrfs_del_csums()
756 pk.objectid != in btrfs_del_csums()
761 key.offset = pk.offset; in btrfs_del_csums()
/Linux-v5.10/crypto/asymmetric_keys/
Dpublic_key.c392 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2() local
393 return public_key_verify_signature(pk, sig); in public_key_verify_signature_2()
/Linux-v5.10/arch/x86/include/asm/
Dpgtable.h139 struct pkru_state *pk; in write_pkru() local
144 pk = get_xsave_addr(&current->thread.fpu.state.xsave, XFEATURE_PKRU); in write_pkru()
152 if (pk) in write_pkru()
153 pk->pkru = pkru; in write_pkru()
/Linux-v5.10/arch/x86/kernel/cpu/
Dcommon.c469 struct pkru_state *pk; in setup_pku() local
481 pk = get_xsave_addr(&init_fpstate.xsave, XFEATURE_PKRU); in setup_pku()
482 if (pk) in setup_pku()
483 pk->pkru = init_pkru_value; in setup_pku()
/Linux-v5.10/arch/ia64/include/asm/
Dprocessor.h95 __u64 pk : 1; member
/Linux-v5.10/Documentation/ia64/
Dfsys.rst207 PSR.pk Unchanged.
/Linux-v5.10/net/bluetooth/
Dsmp.c3493 u8 pk[64]; in test_debug_key() local
3500 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key()
3504 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key()
/Linux-v5.10/
DMAINTAINERS11867 M: Mark-PK Tsai <mark-pk.tsai@mediatek.com>