/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-prodikeys.c | 53 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 in store_sustain() local 179 struct pk_device *pk = hid_get_drvdata(hdev); show_octave() local 192 struct pk_device *pk = hid_get_drvdata(hdev); store_octave() local 762 struct pk_device *pk = hid_get_drvdata(hdev); pk_input_mapping() local 780 struct pk_device *pk = hid_get_drvdata(hdev); pk_raw_event() local 804 struct pk_device *pk; pk_probe() local 867 struct pk_device *pk = hid_get_drvdata(hdev); pk_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-prodikeys.c | 53 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 in store_sustain() local 179 struct pk_device *pk = hid_get_drvdata(hdev); show_octave() local 192 struct pk_device *pk = hid_get_drvdata(hdev); store_octave() local 762 struct pk_device *pk = hid_get_drvdata(hdev); pk_input_mapping() local 780 struct pk_device *pk = hid_get_drvdata(hdev); pk_raw_event() local 804 struct pk_device *pk; pk_probe() local 867 struct pk_device *pk = hid_get_drvdata(hdev); pk_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-ecc.c | 351 struct ecc_point *pk) in kmb_ocs_ecc_is_pubkey_valid_partial() 358 if (WARN_ON(pk->ndigits != curve->g.ndigits)) in kmb_ocs_ecc_is_pubkey_valid_partial() 362 if (ecc_point_is_zero(pk)) in kmb_ocs_ecc_is_pubkey_valid_partial() 366 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial() 369 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial() 376 rc = kmb_ecc_do_scalar_op(ecc_dev, yy, pk->y, pk->y, curve, pk in kmb_ocs_ecc_is_pubkey_valid_partial() 349 kmb_ocs_ecc_is_pubkey_valid_partial(struct ocs_ecc_dev *ecc_dev, const struct ecc_curve *curve, struct ecc_point *pk) kmb_ocs_ecc_is_pubkey_valid_partial() argument 424 kmb_ocs_ecc_is_pubkey_valid_full(struct ocs_ecc_dev *ecc_dev, const struct ecc_curve *curve, struct ecc_point *pk) kmb_ocs_ecc_is_pubkey_valid_full() argument 583 struct ecc_point *pk, *result; kmb_ecc_do_shared_secret() local 663 struct ecc_point *pk; kmb_ecc_do_public_key() local [all...] |
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | paes_s390.c | 113 struct pkey_protkey pk; member 120 struct pkey_protkey pk[2]; member 126 struct pkey_protkey *pk) in __paes_keyblob2pkey() 136 pk->protkey, &pk->len, &pk->type); in __paes_keyblob2pkey() 155 memcpy(&ctx->pk, &pkey, sizeof(pkey)); in __paes_convert_key() 188 fc = (ctx->pk.type == PKEY_KEYTYPE_AES_128) ? CPACF_KM_PAES_128 : in __ecb_paes_set_key() 189 (ctx->pk.type == PKEY_KEYTYPE_AES_192) ? CPACF_KM_PAES_192 : in __ecb_paes_set_key() 190 (ctx->pk in __ecb_paes_set_key() 125 __paes_keyblob2pkey(struct key_blob *kb, struct pkey_protkey *pk) __paes_keyblob2pkey() argument [all...] |
/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | paes_s390.c | 112 struct pkey_protkey pk; member 119 struct pkey_protkey pk[2]; member 125 struct pkey_protkey *pk) in __paes_keyblob2pkey() 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 in ecb_paes_crypt() 124 __paes_keyblob2pkey(struct key_blob *kb, struct pkey_protkey *pk) __paes_keyblob2pkey() argument [all...] |
/kernel/linux/linux-6.6/security/integrity/ |
H A D | digsig_asymmetric.c | 87 const struct public_key *pk; in asymmetric_verify() local 110 pk = asymmetric_key_public_key(key); in asymmetric_verify() 111 pks.pkey_algo = pk->pkey_algo; in asymmetric_verify() 112 if (!strcmp(pk->pkey_algo, "rsa")) { in asymmetric_verify() 114 } else if (!strncmp(pk->pkey_algo, "ecdsa-", 6)) { in asymmetric_verify() 117 } else if (!strcmp(pk->pkey_algo, "ecrdsa") || in asymmetric_verify() 118 !strcmp(pk->pkey_algo, "sm2")) { in asymmetric_verify()
|
/kernel/linux/linux-5.10/crypto/ |
H A D | ecc.c | 1500 struct ecc_point *pk; in ecc_make_pub_key() local 1511 pk = ecc_alloc_point(ndigits); in ecc_make_pub_key() 1512 if (!pk) { in ecc_make_pub_key() 1517 ecc_point_mult(pk, &curve->g, priv, NULL, curve, ndigits); in ecc_make_pub_key() 1520 if (ecc_is_pubkey_valid_full(curve, pk)) { in ecc_make_pub_key() 1525 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key() 1526 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key() 1529 ecc_free_point(pk); in ecc_make_pub_key() 1537 struct ecc_point *pk) in ecc_is_pubkey_valid_partial() 1541 if (WARN_ON(pk in ecc_is_pubkey_valid_partial() 1536 ecc_is_pubkey_valid_partial(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_partial() argument 1569 ecc_is_pubkey_valid_full(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_full() argument 1600 struct ecc_point *product, *pk; crypto_ecdh_shared_secret() local [all...] |
H A D | ecc.h | 163 * @pk: public key as a point 174 struct ecc_point *pk); 180 * @pk: public key as a point 188 struct ecc_point *pk);
|
/kernel/linux/linux-6.6/crypto/ |
H A D | ecc.c | 1514 struct ecc_point *pk; in ecc_make_pub_key() local 1525 pk = ecc_alloc_point(ndigits); in ecc_make_pub_key() 1526 if (!pk) { in ecc_make_pub_key() 1531 ecc_point_mult(pk, &curve->g, priv, NULL, curve, ndigits); in ecc_make_pub_key() 1534 if (ecc_is_pubkey_valid_full(curve, pk)) { in ecc_make_pub_key() 1539 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key() 1540 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key() 1543 ecc_free_point(pk); in ecc_make_pub_key() 1551 struct ecc_point *pk) in ecc_is_pubkey_valid_partial() 1555 if (WARN_ON(pk in ecc_is_pubkey_valid_partial() 1550 ecc_is_pubkey_valid_partial(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_partial() argument 1583 ecc_is_pubkey_valid_full(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_full() argument 1614 struct ecc_point *product, *pk; crypto_ecdh_shared_secret() local [all...] |
/kernel/linux/linux-6.6/include/crypto/internal/ |
H A D | ecc.h | 123 * @pk: public key as a point 134 struct ecc_point *pk); 140 * @pk: public key as a point 148 struct ecc_point *pk);
|
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/ |
H A D | internal.h | 560 struct pkru_state *pk; in switch_fpu_finish() local 584 pk = get_xsave_addr(&next_fpu->state.xsave, XFEATURE_PKRU); in switch_fpu_finish() 585 pkru_val = pk ? pk->pkru : 0; in switch_fpu_finish()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | file-item.c | 765 struct btrfs_key pk; in btrfs_del_csums() local 767 btrfs_item_key_to_cpu(leaf, &pk, slot); in btrfs_del_csums() 768 if (pk.offset < bytenr || in btrfs_del_csums() 769 pk.type != BTRFS_EXTENT_CSUM_KEY || in btrfs_del_csums() 770 pk.objectid != in btrfs_del_csums() 775 key.offset = pk.offset; in btrfs_del_csums()
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | file-item.c | 931 struct btrfs_key pk; in btrfs_del_csums() local 933 btrfs_item_key_to_cpu(leaf, &pk, slot); in btrfs_del_csums() 934 if (pk.offset < bytenr || in btrfs_del_csums() 935 pk.type != BTRFS_EXTENT_CSUM_KEY || in btrfs_del_csums() 936 pk.objectid != in btrfs_del_csums() 941 key.offset = pk.offset; in btrfs_del_csums()
|
/kernel/linux/linux-5.10/crypto/asymmetric_keys/ |
H A D | public_key.c | 458 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2() local 459 return public_key_verify_signature(pk, sig); in public_key_verify_signature_2()
|
/kernel/linux/linux-6.6/crypto/asymmetric_keys/ |
H A D | public_key.c | 456 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2() local 457 return public_key_verify_signature(pk, sig); in public_key_verify_signature_2()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | pgtable.h | 139 struct pkru_state *pk; in write_pkru() local 144 pk = get_xsave_addr(¤t->thread.fpu.state.xsave, XFEATURE_PKRU); in write_pkru() 152 if (pk) in write_pkru() 153 pk->pkru = pkru; in write_pkru()
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
H A D | processor.h | 95 __u64 pk : 1; member
|
/kernel/linux/linux-6.6/arch/ia64/include/asm/ |
H A D | processor.h | 95 __u64 pk : 1; member
|
/kernel/linux/linux-5.10/net/bluetooth/ |
H A D | smp.c | 3517 u8 pk[64]; in test_debug_key() local 3524 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key() 3528 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key()
|
/kernel/linux/linux-6.6/net/bluetooth/ |
H A D | smp.c | 3483 u8 pk[64]; in test_debug_key() local 3490 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key() 3494 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key()
|