Home
last modified time | relevance | path

Searched +full:pk +full:- +full:pk (Results 1 – 25 of 170) sorted by relevance

1234567

/linux/arch/s390/crypto/
H A Dpaes_s390.c1 // SPDX-License-Identifier: GPL-2.0
76 memset(kb->keybuf, 0, sizeof(kb->keybuf)); in _key_to_kb()
77 h = (struct clearkey_header *) kb->keybuf; in _key_to_kb()
78 h->version = 0x02; /* TOKVER_CLEAR_KEY */ in _key_to_kb()
79 h->keytype = (keylen - 8) >> 3; in _key_to_kb()
80 h->len = keylen; in _key_to_kb()
81 memcpy(kb->keybuf + sizeof(*h), key, keylen); in _key_to_kb()
82 kb->keylen = sizeof(*h) + keylen; in _key_to_kb()
83 kb->key = kb->keybuf; in _key_to_kb()
87 if (keylen <= sizeof(kb->keybuf)) in _key_to_kb()
[all …]
/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2019-2021 Intel Corporation
32 #define DRV_NAME "keembay-ocs-ecc"
76 * struct ocs_ecc_dev - ECC device context
94 * struct ocs_ecc_ctx - Transformation context.
137 return readl_poll_timeout((dev->base_reg + HW_OFFS_OCS_ECC_STATUS), in ocs_ecc_wait_idle()
146 ecc_dev->base_reg + HW_OFFS_OCS_ECC_COMMAND); in ocs_ecc_cmd_start()
156 iowrite32(op_size | inst, dev->base_reg + HW_OFFS_OCS_ECC_COMMAND); in ocs_ecc_write_cmd_and_data()
159 memcpy_toio(dev->base_reg + HW_OFFS_OCS_ECC_DATA_IN, data_in, in ocs_ecc_write_cmd_and_data()
167 reinit_completion(&ecc_dev->irq_done); in ocs_ecc_trigger_op()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_trace.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 /* Modeled on trace-events-sample.h */
17 /* See trace-events-sample.h for a detailed description of why this
68 __string(devname, q_vector->rx.rx_ring->netdev->name)),
70 TP_fast_assign(__entry->q_vector = q_vector;
71 __entry->dim = dim;
74 …TP_printk("netdev: %s Rx-Q: %d dim-state: %d dim-profile: %d dim-tune: %d dim-st-right: %d dim-st-
76 __entry->q_vector->rx.rx_ring->q_index,
77 __entry->dim->state,
78 __entry->dim->profile_ix,
[all …]
/linux/security/integrity/
H A Ddigsig_asymmetric.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/key-type.h>
14 #include <keys/asymmetric-type.h>
39 return ERR_PTR(-EKEYREJECTED); in request_asymmetric_key()
60 name, keyring->description, in request_asymmetric_key()
68 case -EACCES: in request_asymmetric_key()
69 case -ENOTDIR: in request_asymmetric_key()
70 case -EAGAIN: in request_asymmetric_key()
71 return ERR_PTR(-ENOKEY); in request_asymmetric_key()
87 const struct public_key *pk; in asymmetric_verify() local
[all …]
/linux/drivers/crypto/ccree/
H A Dcc_buffer_mgr.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
8 #include <linux/dma-mapping.h>
46 * cc_copy_mac() - Copy MAC to temporary location
56 u32 skip = req->assoclen + req->cryptlen; in cc_copy_mac()
58 cc_copy_sg_portion(dev, areq_ctx->backup_mac, req->src, in cc_copy_mac()
59 (skip - areq_ctx->req_authsize), skip, dir); in cc_copy_mac()
63 * cc_get_sgl_nents() - Get scatterlist number of entries.
85 nbytes -= (sg_list->length > nbytes) ? in cc_get_sgl_nents()
86 nbytes : sg_list->length; in cc_get_sgl_nents()
[all …]
/linux/crypto/
H A Decc.c74 int diff = ndigits - DIV_ROUND_UP(nbytes, sizeof(u64)); in ecc_digits_from_bytes()
80 ndigits -= diff; in ecc_digits_from_bytes()
85 memcpy((u8 *)&msd + sizeof(msd) - o, in, o); in ecc_digits_from_bytes()
86 out[--ndigits] = be64_to_cpu(msd); in ecc_digits_from_bytes()
115 p->x = ecc_alloc_digits_space(ndigits); in ecc_alloc_point()
116 if (!p->x) in ecc_alloc_point()
119 p->y = ecc_alloc_digits_space(ndigits); in ecc_alloc_point()
120 if (!p->y) in ecc_alloc_point()
123 p->ndigits = ndigits; in ecc_alloc_point()
128 ecc_free_digits_space(p->x); in ecc_alloc_point()
[all …]
/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_ipp.c35 * exynos_drm_ipp_register - Register a new picture processor hardware module
59 spin_lock_init(&ipp->lock); in exynos_drm_ipp_register()
60 INIT_LIST_HEAD(&ipp->todo_list); in exynos_drm_ipp_register()
61 init_waitqueue_head(&ipp->done_wq); in exynos_drm_ipp_register()
62 ipp->dev = dev; in exynos_drm_ipp_register()
63 ipp->funcs = funcs; in exynos_drm_ipp_register()
64 ipp->capabilities = caps; in exynos_drm_ipp_register()
65 ipp->name = name; in exynos_drm_ipp_register()
66 ipp->formats = formats; in exynos_drm_ipp_register()
67 ipp->num_formats = num_formats; in exynos_drm_ipp_register()
[all …]
/linux/drivers/virt/acrn/
H A Dmm.c1 // SPDX-License-Identifier: GPL-2.0
26 return -ENOMEM; in modify_region()
28 regions->vmid = vm->vmid; in modify_region()
29 regions->regions_num = 1; in modify_region()
30 regions->regions_gpa = virt_to_phys(region); in modify_region()
35 "Failed to set memory region for VM[%u]!\n", vm->vmid); in modify_region()
42 * acrn_mm_region_add() - Set up the EPT mapping of a memory region.
60 return -ENOMEM; in acrn_mm_region_add()
62 region->type = ACRN_MEM_REGION_ADD; in acrn_mm_region_add()
63 region->user_vm_pa = user_gpa; in acrn_mm_region_add()
[all …]
/linux/arch/m68k/68000/
H A Ddragen2.c1 // SPDX-License-Identifier: GPL-2.0
54 PKSEL |= PK(3); /* select pin as I/O */ in init_dragen2()
55 PKDIR |= PK(3); /* select pin as output */ in init_dragen2()
56 PKDATA |= PK(3); /* set pin high */ in init_dragen2()
/linux/Documentation/devicetree/bindings/interrupt-controller/
H A Dmstar,mst-intc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/interrupt-controller/mstar,mst-intc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Mark-PK Tsai <mark-pk.tsai@mediatek.com>
21 const: mstar,mst-intc
23 interrupt-controller: true
25 "#interrupt-cells":
33 mstar,irqs-map-range:
37 $ref: /schemas/types.yaml#/definitions/uint32-matrix
[all …]
/linux/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_core.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright (c) 2010-2012 Broadcom. All rights reserved. */
21 #define VCHIQ_MSG_PADDING 0 /* - */
22 #define VCHIQ_MSG_CONNECT 1 /* - */
23 #define VCHIQ_MSG_OPEN 2 /* + (srcport, -), fourcc, client_id */
31 #define VCHIQ_MSG_PAUSE 10 /* - */
32 #define VCHIQ_MSG_RESUME 11 /* - */
33 #define VCHIQ_MSG_REMOTE_USE 12 /* - */
34 #define VCHIQ_MSG_REMOTE_RELEASE 13 /* - */
35 #define VCHIQ_MSG_REMOTE_USE_ACTIVE 14 /* - */
[all …]
/linux/kernel/cgroup/
H A Ddebug.c1 // SPDX-License-Identifier: GPL-2.0
12 #include "cgroup-internal.h"
20 return ERR_PTR(-ENOMEM); in debug_css_alloc()
31 * debug_taskcount_read - return the number of tasks in a cgroup.
37 return cgroup_task_count(css->cgroup); in debug_taskcount_read()
42 struct kernfs_open_file *of = seq->private; in current_css_set_read()
48 if (!cgroup_kn_lock_live(of->kn, false)) in current_css_set_read()
49 return -ENODEV; in current_css_set_read()
54 refcnt = refcount_read(&cset->refcount); in current_css_set_read()
55 seq_printf(seq, "css_set %pK %d", cset, refcnt); in current_css_set_read()
[all …]
/linux/drivers/spi/
H A Dspi-loopback-test.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * linux/drivers/spi/spi-loopback-test.c
23 #include "spi-test.h"
37 /* the device is jumpered for loopback - enabling some rx_buf tests */
57 static int run_only_iter_len = -1;
63 static int run_only_test = -1;
66 "only run the test with this number (0-based !)");
88 .description = "tx/rx-transfer - start of page",
102 .description = "tx/rx-transfer - crossing PAGE_SIZE",
110 .tx_buf = TX(PAGE_SIZE - 4),
[all …]
/linux/arch/mips/kernel/
H A Drelocate.c38 * This function may be defined for a platform to perform any post-relocation
40 * Return non-zero to abort relocation
90 return -ENOEXEC; in apply_r_mips_26_rel()
102 return -ENOEXEC; in apply_r_mips_26_rel()
105 target_addr -= (unsigned long)loc_new & 0xf0000000; in apply_r_mips_26_rel()
141 pr_err("Unhandled relocation type %d at 0x%pK\n", type, in reloc_handler()
143 return -ENOEXEC; in reloc_handler()
200 diff = (void *)ptr - area; in rotate_xor()
204 size = ALIGN_DOWN(size - diff, sizeof(hash)); in rotate_xor()
208 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor()
[all …]
/linux/include/crypto/internal/
H A Decc.h46 * ecc_swap_digits() - Copy ndigits from big endian array to native array
57 out[i] = get_unaligned_be64(&src[ndigits - 1 - i]); in ecc_swap_digits()
61 * ecc_digits_from_bytes() - Create ndigits-sized digits array from byte array
74 * ecc_is_key_valid() - Validate a given ECDH private key
87 * ecc_gen_privkey() - Generates an ECC private key.
102 * ecc_make_pub_key() - Compute an ECC public key
116 * crypto_ecdh_shared_secret() - Compute a shared secret
135 * ecc_is_pubkey_valid_partial() - Partial public key validation
138 * @pk: public key as a point
140 * Valdiate public key according to SP800-56A section 5.6.2.3.4 ECC Partial
[all …]
/linux/Documentation/devicetree/bindings/phy/
H A Dfsl,imx8mq-usb-phy.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Li Jun <jun.li@nxp.com>
15 - fsl,imx8mq-usb-phy
16 - fsl,imx8mp-usb-phy
21 "#phy-cells":
27 clock-names:
29 - const: phy
[all …]
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_dspp.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
34 DRM_ERROR("invalid ctx %pK\n", ctx); in dpu_setup_dspp_pcc()
38 base = ctx->cap->sblk->pcc.base; in dpu_setup_dspp_pcc()
41 DRM_ERROR("invalid ctx %pK pcc base 0x%x\n", ctx, base); in dpu_setup_dspp_pcc()
47 DPU_REG_WRITE(&ctx->hw, base, PCC_DIS); in dpu_setup_dspp_pcc()
51 DPU_REG_WRITE(&ctx->hw, base + PCC_RED_R_OFF, cfg->r.r); in dpu_setup_dspp_pcc()
52 DPU_REG_WRITE(&ctx->hw, base + PCC_RED_G_OFF, cfg->r.g); in dpu_setup_dspp_pcc()
53 DPU_REG_WRITE(&ctx->hw, base + PCC_RED_B_OFF, cfg->r.b); in dpu_setup_dspp_pcc()
55 DPU_REG_WRITE(&ctx->hw, base + PCC_GREEN_R_OFF, cfg->g.r); in dpu_setup_dspp_pcc()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_tcp4.c1 // SPDX-License-Identifier: GPL-2.0
12 return !(h->pprev); in hlist_unhashed_lockless()
17 return !hlist_unhashed_lockless(&timer->entry); in timer_pending()
51 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino()
58 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
59 bpf_probe_read_kernel(&ino, sizeof(ino), &inode->i_ino); in sock_i_ino()
66 return icsk->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
71 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH; in tcp_in_initial_slowstart()
88 icsk = &tp->inet_conn; in dump_tcp_sock()
89 inet = &icsk->icsk_inet; in dump_tcp_sock()
[all …]
H A Dbpf_iter_tcp6.c1 // SPDX-License-Identifier: GPL-2.0
12 return !(h->pprev); in hlist_unhashed_lockless()
17 return !hlist_unhashed_lockless(&timer->entry); in timer_pending()
51 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino()
58 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
59 bpf_probe_read_kernel(&ino, sizeof(ino), &inode->i_ino); in sock_i_ino()
66 return icsk->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
71 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH; in tcp_in_initial_slowstart()
88 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock()
89 inet = &icsk->icsk_inet; in dump_tcp6_sock()
[all …]
/linux/net/sctp/
H A Dproc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * lksctp developers <linux-sctp@vger.kernel.org>
62 struct net *net = seq->private; in sctp_snmp_seq_show()
68 net->sctp.sctp_statistics); in sctp_snmp_seq_show()
70 seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name, in sctp_snmp_seq_show()
85 if (epb->type == SCTP_EP_TYPE_ASSOCIATION) { in sctp_seq_dump_local_addrs()
88 peer = asoc->peer.primary_path; in sctp_seq_dump_local_addrs()
94 primary = &peer->saddr; in sctp_seq_dump_local_addrs()
98 list_for_each_entry_rcu(laddr, &epb->bind_addr.address_list, list) { in sctp_seq_dump_local_addrs()
99 if (!laddr->valid) in sctp_seq_dump_local_addrs()
[all …]
/linux/lib/
H A Dref_tracker.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 struct list_head head; /* anchor into dir->list or dir->quarantine */
40 return ERR_PTR(-ENOMEM); in ref_tracker_get_stats()
41 stats->total = 0; in ref_tracker_get_stats()
42 stats->count = 0; in ref_tracker_get_stats()
44 list_for_each_entry(tracker, &dir->list, head) { in ref_tracker_get_stats()
45 depot_stack_handle_t stack = tracker->alloc_stack_handle; in ref_tracker_get_stats()
48 ++stats->total; in ref_tracker_get_stats()
49 for (i = 0; i < stats->count; ++i) in ref_tracker_get_stats()
50 if (stats->stacks[i].stack_handle == stack) in ref_tracker_get_stats()
[all …]
/linux/drivers/infiniband/sw/siw/
H A Dsiw_mem.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
4 /* Copyright (c) 2008-2019, IBM Corporation */
9 #include <linux/dma-mapping.h>
32 if (xa_alloc_cyclic(&sdev->mem_xa, &id, m, limit, &next, in siw_mem_add()
34 return -ENOMEM; in siw_mem_add()
37 m->stag = id << 8; in siw_mem_add()
56 mem = xa_load(&sdev->mem_xa, stag_index); in siw_mem_id2obj()
57 if (likely(mem && kref_get_unless_zero(&mem->ref))) { in siw_mem_id2obj()
68 int i, num_pages = umem->num_pages; in siw_umem_release()
70 if (umem->base_mem) in siw_umem_release()
[all …]
/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-vpu.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
9 #include "mtk-mdp3-vpu.h"
10 #include "mtk-mdp3-core.h"
26 dev = scp_get_device(vpu->scp); in mdp_vpu_shared_mem_alloc()
28 if (!vpu->param) { in mdp_vpu_shared_mem_alloc()
29 vpu->param = dma_alloc_wc(dev, vpu->param_size, in mdp_vpu_shared_mem_alloc()
30 &vpu->param_addr, GFP_KERNEL); in mdp_vpu_shared_mem_alloc()
31 if (!vpu->param) in mdp_vpu_shared_mem_alloc()
35 if (!vpu->work) { in mdp_vpu_shared_mem_alloc()
[all …]
/linux/arch/s390/kvm/
H A Dtrace-s390.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 #define TRACE_SYSTEM kvm-s390
11 #define TRACE_INCLUDE_FILE trace-s390
32 __entry->type = type;
36 __entry->type & KVM_VM_S390_UCONTROL ? " (UCONTROL)" : "")
54 __entry->id = id;
55 __entry->vcpu = vcpu;
56 __entry->sie_block = sie_block;
59 TP_printk("create cpu %d at 0x%pK, sie block at 0x%pK",
60 __entry->id, __entry->vcpu, __entry->sie_block)
[all …]
/linux/arch/m68k/include/asm/
H A DMC68VZ328.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* include/asm-m68knommu/MC68VZ328.h: 'VZ328 control registers
5 * Copyright (c) 2000-2001 Lineo Inc. <www.lineo.com>
6 * Copyright (c) 2000-2001 Lineo Canada Corp. <www.lineo.ca>
9 * Based on include/asm-m68knommu/MC68332.h
29 * 0xFFFFF0xx -- System Control
39 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */
42 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */
45 #define SCR_BETO 0x80 /* Bus-Error TimeOut */
55 * 0xFFFFF1xx -- Chip-Select logic
[all …]

1234567