/kernel/linux/linux-5.10/drivers/crypto/ccp/ |
D | ccp-dev.c | 135 void ccp_add_device(struct ccp_device *ccp) in ccp_add_device() argument 140 list_add_tail(&ccp->entry, &ccp_units); in ccp_add_device() 145 ccp_rr = ccp; in ccp_add_device() 158 void ccp_del_device(struct ccp_device *ccp) in ccp_del_device() argument 163 if (ccp_rr == ccp) { in ccp_del_device() 174 list_del(&ccp->entry); in ccp_del_device() 182 int ccp_register_rng(struct ccp_device *ccp) in ccp_register_rng() argument 186 dev_dbg(ccp->dev, "Registering RNG...\n"); in ccp_register_rng() 188 ccp->hwrng.name = ccp->rngname; in ccp_register_rng() 189 ccp->hwrng.read = ccp_trng_read; in ccp_register_rng() [all …]
|
D | ccp-dev-v3.c | 22 struct ccp_device *ccp = cmd_q->ccp; in ccp_alloc_ksb() local 25 mutex_lock(&ccp->sb_mutex); in ccp_alloc_ksb() 27 start = (u32)bitmap_find_next_zero_area(ccp->sb, in ccp_alloc_ksb() 28 ccp->sb_count, in ccp_alloc_ksb() 29 ccp->sb_start, in ccp_alloc_ksb() 31 if (start <= ccp->sb_count) { in ccp_alloc_ksb() 32 bitmap_set(ccp->sb, start, count); in ccp_alloc_ksb() 34 mutex_unlock(&ccp->sb_mutex); in ccp_alloc_ksb() 38 ccp->sb_avail = 0; in ccp_alloc_ksb() 40 mutex_unlock(&ccp->sb_mutex); in ccp_alloc_ksb() [all …]
|
D | Makefile | 2 obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o 3 ccp-objs := sp-dev.o sp-platform.o 4 ccp-$(CONFIG_CRYPTO_DEV_SP_CCP) += ccp-dev.o \ 5 ccp-ops.o \ 6 ccp-dev-v3.o \ 7 ccp-dev-v5.o \ 8 ccp-dmaengine.o 9 ccp-$(CONFIG_CRYPTO_DEV_CCP_DEBUGFS) += ccp-debugfs.o 10 ccp-$(CONFIG_PCI) += sp-pci.o 11 ccp-$(CONFIG_CRYPTO_DEV_SP_PSP) += psp-dev.o \ [all …]
|
D | ccp-dmaengine.c | 43 static unsigned int ccp_get_dma_chan_attr(struct ccp_device *ccp) in ccp_get_dma_chan_attr() argument 47 return ccp->vdata->dma_chan_attr; in ccp_get_dma_chan_attr() 56 dev_info_once(ccp->dev, "Invalid value for dma_chan_attr: %d\n", in ccp_get_dma_chan_attr() 58 return ccp->vdata->dma_chan_attr; in ccp_get_dma_chan_attr() 62 static void ccp_free_cmd_resources(struct ccp_device *ccp, in ccp_free_cmd_resources() argument 69 kmem_cache_free(ccp->dma_cmd_cache, cmd); in ccp_free_cmd_resources() 73 static void ccp_free_desc_resources(struct ccp_device *ccp, in ccp_free_desc_resources() argument 79 ccp_free_cmd_resources(ccp, &desc->active); in ccp_free_desc_resources() 80 ccp_free_cmd_resources(ccp, &desc->pending); in ccp_free_desc_resources() 83 kmem_cache_free(ccp->dma_desc_cache, desc); in ccp_free_desc_resources() [all …]
|
D | ccp-dev-v5.c | 27 struct ccp_device *ccp; in ccp_lsb_alloc() local 42 ccp = cmd_q->ccp; in ccp_lsb_alloc() 44 mutex_lock(&ccp->sb_mutex); in ccp_lsb_alloc() 46 start = (u32)bitmap_find_next_zero_area(ccp->lsbmap, in ccp_lsb_alloc() 51 bitmap_set(ccp->lsbmap, start, count); in ccp_lsb_alloc() 53 mutex_unlock(&ccp->sb_mutex); in ccp_lsb_alloc() 57 ccp->sb_avail = 0; in ccp_lsb_alloc() 59 mutex_unlock(&ccp->sb_mutex); in ccp_lsb_alloc() 62 if (wait_event_interruptible(ccp->sb_queue, ccp->sb_avail)) in ccp_lsb_alloc() 81 struct ccp_device *ccp = cmd_q->ccp; in ccp_lsb_free() local [all …]
|
D | ccp-debugfs.c | 45 struct ccp_device *ccp = filp->private_data; in ccp5_debugfs_info_read() local 51 if (!ccp) in ccp5_debugfs_info_read() 58 oboff += OSCNPRINTF("Device name: %s\n", ccp->name); in ccp5_debugfs_info_read() 59 oboff += OSCNPRINTF(" RNG name: %s\n", ccp->rngname); in ccp5_debugfs_info_read() 60 oboff += OSCNPRINTF(" # Queues: %d\n", ccp->cmd_q_count); in ccp5_debugfs_info_read() 61 oboff += OSCNPRINTF(" # Cmds: %d\n", ccp->cmd_count); in ccp5_debugfs_info_read() 63 regval = ioread32(ccp->io_regs + CMD5_PSP_CCP_VERSION); in ccp5_debugfs_info_read() 100 struct ccp_device *ccp = filp->private_data; in ccp5_debugfs_stats_read() local 114 for (i = 0; i < ccp->cmd_q_count; i++) { in ccp5_debugfs_stats_read() 115 struct ccp_cmd_queue *cmd_q = &ccp->cmd_q[i]; in ccp5_debugfs_stats_read() [all …]
|
D | ccp-dev.h | 235 struct ccp_device *ccp; member 246 struct ccp_device *ccp; member 261 struct ccp_device *ccp; member 631 void ccp_add_device(struct ccp_device *ccp); 632 void ccp_del_device(struct ccp_device *ccp); 637 bool ccp_queues_suspended(struct ccp_device *ccp); 643 int ccp_register_rng(struct ccp_device *ccp); 644 void ccp_unregister_rng(struct ccp_device *ccp); 645 int ccp_dmaengine_register(struct ccp_device *ccp); 646 void ccp_dmaengine_unregister(struct ccp_device *ccp); [all …]
|
D | ccp-ops.c | 56 #define CCP_NEW_JOBID(ccp) ((ccp->vdata->version == CCP_VERSION(3, 0)) ? \ argument 57 ccp_gen_jobid(ccp) : 0) 59 static u32 ccp_gen_jobid(struct ccp_device *ccp) in ccp_gen_jobid() argument 61 return atomic_inc_return(&ccp->current_id) & CCP_JOBID_MASK; in ccp_gen_jobid() 162 wa->dev = cmd_q->ccp->dev; in ccp_init_dm_workarea() 277 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len, in ccp_init_data() 455 return cmd_q->ccp->vdata->perform->passthru(&op); in ccp_copy_to_from_sb() 510 op.jobid = CCP_NEW_JOBID(cmd_q->ccp); in ccp_run_aes_cmac_cmd() 593 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_cmac_cmd() 693 jobid = CCP_NEW_JOBID(cmd_q->ccp); in ccp_run_aes_gcm_cmd() [all …]
|
D | Kconfig | 8 If you choose 'M' here, this module will be called ccp.
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | corsair-cpro.c | 90 static int ccp_get_errno(struct ccp_device *ccp) in ccp_get_errno() argument 92 switch (ccp->buffer[0]) { in ccp_get_errno() 103 hid_dbg(ccp->hdev, "unknown device response error: %d", ccp->buffer[0]); in ccp_get_errno() 109 static int send_usb_cmd(struct ccp_device *ccp, u8 command, u8 byte1, u8 byte2, u8 byte3) in send_usb_cmd() argument 114 memset(ccp->buffer, 0x00, OUT_BUFFER_SIZE); in send_usb_cmd() 115 ccp->buffer[0] = command; in send_usb_cmd() 116 ccp->buffer[1] = byte1; in send_usb_cmd() 117 ccp->buffer[2] = byte2; in send_usb_cmd() 118 ccp->buffer[3] = byte3; in send_usb_cmd() 120 reinit_completion(&ccp->wait_input_report); in send_usb_cmd() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/ |
D | amd-ccp.txt | 1 * AMD Cryptographic Coprocessor driver (ccp) 4 - compatible: Should be "amd,ccp-seattle-v1a" 12 ccp@e0100000 { 13 compatible = "amd,ccp-seattle-v1a";
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 2095 static int cc_get_classportinfo(struct ib_cc_mad *ccp, in cc_get_classportinfo() argument 2099 (struct ib_cc_classportinfo_attr *)ccp->mgmt_data; in cc_get_classportinfo() 2110 return reply((struct ib_smp *) ccp); in cc_get_classportinfo() 2113 static int cc_get_congestion_info(struct ib_cc_mad *ccp, in cc_get_congestion_info() argument 2117 (struct ib_cc_info_attr *)ccp->mgmt_data; in cc_get_congestion_info() 2124 return reply((struct ib_smp *) ccp); in cc_get_congestion_info() 2127 static int cc_get_congestion_setting(struct ib_cc_mad *ccp, in cc_get_congestion_setting() argument 2132 (struct ib_cc_congestion_setting_attr *)ccp->mgmt_data; in cc_get_congestion_setting() 2153 return reply((struct ib_smp *) ccp); in cc_get_congestion_setting() 2156 static int cc_get_congestion_control_table(struct ib_cc_mad *ccp, in cc_get_congestion_control_table() argument [all …]
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/amd/ |
D | amd-seattle-soc.dtsi | 198 ccp0: ccp@e0100000 { 200 compatible = "amd,ccp-seattle-v1a";
|
/kernel/linux/linux-5.10/drivers/crypto/ |
D | Makefile | 10 obj-$(CONFIG_CRYPTO_DEV_CCP) += ccp/
|
D | Kconfig | 591 source "drivers/crypto/ccp/Kconfig"
|
/kernel/linux/linux-5.10/include/linux/ |
D | ccp.h | 642 struct ccp_device *ccp; member
|
/kernel/linux/linux-5.10/ |
D | MAINTAINERS | 843 F: drivers/crypto/ccp/ 844 F: include/linux/ccp.h 851 F: drivers/crypto/ccp/sev*
|