/drivers/crypto/ccp/ |
D | ccp-dev.c | 130 void ccp_add_device(struct ccp_device *ccp) in ccp_add_device() argument 135 list_add_tail(&ccp->entry, &ccp_units); in ccp_add_device() 140 ccp_rr = ccp; in ccp_add_device() 153 void ccp_del_device(struct ccp_device *ccp) in ccp_del_device() argument 158 if (ccp_rr == ccp) { in ccp_del_device() 169 list_del(&ccp->entry); in ccp_del_device() 177 int ccp_register_rng(struct ccp_device *ccp) in ccp_register_rng() argument 181 dev_dbg(ccp->dev, "Registering RNG...\n"); in ccp_register_rng() 183 ccp->hwrng.name = ccp->rngname; in ccp_register_rng() 184 ccp->hwrng.read = ccp_trng_read; in ccp_register_rng() [all …]
|
D | ccp-pci.c | 41 static int ccp_get_msix_irqs(struct ccp_device *ccp) in ccp_get_msix_irqs() argument 43 struct ccp_pci *ccp_pci = ccp->dev_specific; in ccp_get_msix_irqs() 44 struct device *dev = ccp->dev; in ccp_get_msix_irqs() 61 ccp->name, v); in ccp_get_msix_irqs() 64 ccp->vdata->perform->irqhandler, in ccp_get_msix_irqs() 72 ccp->use_tasklet = true; in ccp_get_msix_irqs() 87 static int ccp_get_msi_irq(struct ccp_device *ccp) in ccp_get_msi_irq() argument 89 struct device *dev = ccp->dev; in ccp_get_msi_irq() 97 ccp->irq = pdev->irq; in ccp_get_msi_irq() 98 ret = request_irq(ccp->irq, ccp->vdata->perform->irqhandler, 0, in ccp_get_msi_irq() [all …]
|
D | ccp-dev-v3.c | 26 struct ccp_device *ccp = cmd_q->ccp; in ccp_alloc_ksb() local 29 mutex_lock(&ccp->sb_mutex); in ccp_alloc_ksb() 31 start = (u32)bitmap_find_next_zero_area(ccp->sb, in ccp_alloc_ksb() 32 ccp->sb_count, in ccp_alloc_ksb() 33 ccp->sb_start, in ccp_alloc_ksb() 35 if (start <= ccp->sb_count) { in ccp_alloc_ksb() 36 bitmap_set(ccp->sb, start, count); in ccp_alloc_ksb() 38 mutex_unlock(&ccp->sb_mutex); in ccp_alloc_ksb() 42 ccp->sb_avail = 0; in ccp_alloc_ksb() 44 mutex_unlock(&ccp->sb_mutex); in ccp_alloc_ksb() [all …]
|
D | ccp-platform.c | 62 static int ccp_get_irq(struct ccp_device *ccp) in ccp_get_irq() argument 64 struct device *dev = ccp->dev; in ccp_get_irq() 72 ccp->irq = ret; in ccp_get_irq() 73 ret = request_irq(ccp->irq, ccp->vdata->perform->irqhandler, 0, in ccp_get_irq() 74 ccp->name, dev); in ccp_get_irq() 83 static int ccp_get_irqs(struct ccp_device *ccp) in ccp_get_irqs() argument 85 struct device *dev = ccp->dev; in ccp_get_irqs() 88 ret = ccp_get_irq(ccp); in ccp_get_irqs() 98 static void ccp_free_irqs(struct ccp_device *ccp) in ccp_free_irqs() argument 100 struct device *dev = ccp->dev; in ccp_free_irqs() [all …]
|
D | ccp-dev-v5.c | 26 struct ccp_device *ccp; in ccp_lsb_alloc() local 41 ccp = cmd_q->ccp; in ccp_lsb_alloc() 43 mutex_lock(&ccp->sb_mutex); in ccp_lsb_alloc() 45 start = (u32)bitmap_find_next_zero_area(ccp->lsbmap, in ccp_lsb_alloc() 50 bitmap_set(ccp->lsbmap, start, count); in ccp_lsb_alloc() 52 mutex_unlock(&ccp->sb_mutex); in ccp_lsb_alloc() 56 ccp->sb_avail = 0; in ccp_lsb_alloc() 58 mutex_unlock(&ccp->sb_mutex); in ccp_lsb_alloc() 61 if (wait_event_interruptible(ccp->sb_queue, ccp->sb_avail)) in ccp_lsb_alloc() 79 struct ccp_device *ccp = cmd_q->ccp; in ccp_lsb_free() local [all …]
|
D | ccp-dmaengine.c | 28 static void ccp_free_cmd_resources(struct ccp_device *ccp, in ccp_free_cmd_resources() argument 35 kmem_cache_free(ccp->dma_cmd_cache, cmd); in ccp_free_cmd_resources() 39 static void ccp_free_desc_resources(struct ccp_device *ccp, in ccp_free_desc_resources() argument 45 ccp_free_cmd_resources(ccp, &desc->active); in ccp_free_desc_resources() 46 ccp_free_cmd_resources(ccp, &desc->pending); in ccp_free_desc_resources() 49 kmem_cache_free(ccp->dma_desc_cache, desc); in ccp_free_desc_resources() 59 dev_dbg(chan->ccp->dev, "%s - chan=%p\n", __func__, chan); in ccp_free_chan_resources() 63 ccp_free_desc_resources(chan->ccp, &chan->complete); in ccp_free_chan_resources() 64 ccp_free_desc_resources(chan->ccp, &chan->active); in ccp_free_chan_resources() 65 ccp_free_desc_resources(chan->ccp, &chan->pending); in ccp_free_chan_resources() [all …]
|
D | Makefile | 1 obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o 2 ccp-objs := ccp-dev.o \ 3 ccp-ops.o \ 4 ccp-dev-v3.o \ 5 ccp-dev-v5.o \ 6 ccp-platform.o \ 7 ccp-dmaengine.o 8 ccp-$(CONFIG_PCI) += ccp-pci.o 10 obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o 11 ccp-crypto-objs := ccp-crypto-main.o \ [all …]
|
D | ccp-dev.h | 227 struct ccp_device *ccp; member 238 struct ccp_device *ccp; member 253 struct ccp_device *ccp; member 334 int (*get_irq)(struct ccp_device *ccp); 335 void (*free_irq)(struct ccp_device *ccp); 607 void ccp_add_device(struct ccp_device *ccp); 608 void ccp_del_device(struct ccp_device *ccp); 613 bool ccp_queues_suspended(struct ccp_device *ccp); 619 int ccp_register_rng(struct ccp_device *ccp); 620 void ccp_unregister_rng(struct ccp_device *ccp); [all …]
|
D | ccp-ops.c | 44 #define CCP_NEW_JOBID(ccp) ((ccp->vdata->version == CCP_VERSION(3, 0)) ? \ argument 45 ccp_gen_jobid(ccp) : 0) 47 static u32 ccp_gen_jobid(struct ccp_device *ccp) in ccp_gen_jobid() argument 49 return atomic_inc_return(&ccp->current_id) & CCP_JOBID_MASK; in ccp_gen_jobid() 135 wa->dev = cmd_q->ccp->dev; in ccp_init_dm_workarea() 260 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len, in ccp_init_data() 438 return cmd_q->ccp->vdata->perform->passthru(&op); in ccp_copy_to_from_sb() 493 op.jobid = CCP_NEW_JOBID(cmd_q->ccp); in ccp_run_aes_cmac_cmd() 570 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_cmac_cmd() 646 op.jobid = CCP_NEW_JOBID(cmd_q->ccp); in ccp_run_aes_cmd() [all …]
|
D | Kconfig | 14 ccp.
|
/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 2099 static int cc_get_classportinfo(struct ib_cc_mad *ccp, in cc_get_classportinfo() argument 2103 (struct ib_cc_classportinfo_attr *)ccp->mgmt_data; in cc_get_classportinfo() 2105 memset(ccp->mgmt_data, 0, sizeof(ccp->mgmt_data)); in cc_get_classportinfo() 2116 return reply((struct ib_smp *) ccp); in cc_get_classportinfo() 2119 static int cc_get_congestion_info(struct ib_cc_mad *ccp, in cc_get_congestion_info() argument 2123 (struct ib_cc_info_attr *)ccp->mgmt_data; in cc_get_congestion_info() 2127 memset(ccp->mgmt_data, 0, sizeof(ccp->mgmt_data)); in cc_get_congestion_info() 2132 return reply((struct ib_smp *) ccp); in cc_get_congestion_info() 2135 static int cc_get_congestion_setting(struct ib_cc_mad *ccp, in cc_get_congestion_setting() argument 2140 (struct ib_cc_congestion_setting_attr *)ccp->mgmt_data; in cc_get_congestion_setting() [all …]
|
/drivers/crypto/ |
D | Makefile | 5 obj-$(CONFIG_CRYPTO_DEV_CCP) += ccp/
|
D | Kconfig | 467 source "drivers/crypto/ccp/Kconfig"
|