/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 | 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 | 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-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() 280 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len, in ccp_init_data() 458 return cmd_q->ccp->vdata->perform->passthru(&op); in ccp_copy_to_from_sb() 513 op.jobid = CCP_NEW_JOBID(cmd_q->ccp); in ccp_run_aes_cmac_cmd() 596 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_cmac_cmd() 696 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.
|
/drivers/hwmon/ |
D | corsair-cpro.c | 94 static int ccp_get_errno(struct ccp_device *ccp) in ccp_get_errno() argument 96 switch (ccp->buffer[0]) { in ccp_get_errno() 107 hid_dbg(ccp->hdev, "unknown device response error: %d", ccp->buffer[0]); in ccp_get_errno() 113 static int send_usb_cmd(struct ccp_device *ccp, u8 command, u8 byte1, u8 byte2, u8 byte3) in send_usb_cmd() argument 118 memset(ccp->cmd_buffer, 0x00, OUT_BUFFER_SIZE); in send_usb_cmd() 119 ccp->cmd_buffer[0] = command; in send_usb_cmd() 120 ccp->cmd_buffer[1] = byte1; in send_usb_cmd() 121 ccp->cmd_buffer[2] = byte2; in send_usb_cmd() 122 ccp->cmd_buffer[3] = byte3; in send_usb_cmd() 130 spin_lock_bh(&ccp->wait_input_report_lock); in send_usb_cmd() [all …]
|
/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 …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | trap.c | 63 struct mlx5e_create_cq_param ccp = {}; in mlx5e_open_trap_rq() local 71 ccp.node = node; in mlx5e_open_trap_rq() 72 ccp.ch_stats = t->stats; in mlx5e_open_trap_rq() 73 ccp.napi = &t->napi; in mlx5e_open_trap_rq() 74 ccp.ix = 0; in mlx5e_open_trap_rq() 75 err = mlx5e_open_cq(priv, trap_moder, &rq_param->cqp, &ccp, &rq->cq); in mlx5e_open_trap_rq()
|
D | ptp.c | 549 struct mlx5e_create_cq_param ccp = {}; in mlx5e_ptp_open_tx_cqs() local 558 ccp.node = dev_to_node(mlx5_core_dma_dev(c->mdev)); in mlx5e_ptp_open_tx_cqs() 559 ccp.ch_stats = c->stats; in mlx5e_ptp_open_tx_cqs() 560 ccp.napi = &c->napi; in mlx5e_ptp_open_tx_cqs() 561 ccp.ix = MLX5E_PTP_CHANNEL_IX; in mlx5e_ptp_open_tx_cqs() 568 err = mlx5e_open_cq(c->priv, ptp_moder, cq_param, &ccp, cq); in mlx5e_ptp_open_tx_cqs() 577 err = mlx5e_open_cq(c->priv, ptp_moder, cq_param, &ccp, cq); in mlx5e_ptp_open_tx_cqs() 600 struct mlx5e_create_cq_param ccp = {}; in mlx5e_ptp_open_rx_cq() local 605 ccp.node = dev_to_node(mlx5_core_dma_dev(c->mdev)); in mlx5e_ptp_open_rx_cq() 606 ccp.ch_stats = c->stats; in mlx5e_ptp_open_rx_cq() [all …]
|
D | qos.c | 72 struct mlx5e_create_cq_param ccp = {}; in mlx5e_open_qos_sq() local 121 mlx5e_build_create_cq_param(&ccp, c); in mlx5e_open_qos_sq() 127 err = mlx5e_open_cq(priv, params->tx_cq_moderation, ¶m_cq, &ccp, &sq->cq); in mlx5e_open_qos_sq()
|
D | params.h | 129 void mlx5e_build_create_cq_param(struct mlx5e_create_cq_param *ccp, struct mlx5e_channel *c);
|
D | params.c | 669 void mlx5e_build_create_cq_param(struct mlx5e_create_cq_param *ccp, struct mlx5e_channel *c) in mlx5e_build_create_cq_param() argument 671 *ccp = (struct mlx5e_create_cq_param) { in mlx5e_build_create_cq_param()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | setup.c | 118 struct mlx5e_create_cq_param ccp; in mlx5e_open_xsk() local 121 mlx5e_build_create_cq_param(&ccp, c); in mlx5e_open_xsk() 132 err = mlx5e_open_cq(c->priv, params->rx_cq_moderation, &cparam->rq.cqp, &ccp, in mlx5e_open_xsk() 141 err = mlx5e_open_cq(c->priv, params->tx_cq_moderation, &cparam->xdp_sq.cqp, &ccp, in mlx5e_open_xsk()
|
/drivers/scsi/elx/libefc_sli/ |
D | sli4.h | 1126 u8 ccp; member 1174 u8 ccp; member 1231 u8 ccp; member 1275 u8 ccp; member 1328 u8 ccp; member 1375 u8 ccp; member 1427 u8 ccp; member 1466 u8 ccp; member 1512 u8 ccp; member 1550 u8 ccp; member [all …]
|
D | sli4.c | 1928 trecv->ccp = (params->cs_ctl & SLI4_MASK_CCP); in sli_fcp_treceive64_wqe() 2013 trsp->ccp = (params->cs_ctl & SLI4_MASK_CCP); in sli_fcp_trsp64_wqe() 2139 tsend->ccp = (params->cs_ctl & SLI4_MASK_CCP); in sli_fcp_tsend64_wqe()
|
/drivers/crypto/ |
D | Makefile | 12 obj-$(CONFIG_CRYPTO_DEV_CCP) += ccp/
|
D | Kconfig | 459 source "drivers/crypto/ccp/Kconfig"
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_main.c | 1960 struct mlx5e_create_cq_param *ccp, in mlx5e_alloc_cq() argument 1965 param->wq.buf_numa_node = ccp->node; in mlx5e_alloc_cq() 1966 param->wq.db_numa_node = ccp->node; in mlx5e_alloc_cq() 1967 param->eq_ix = ccp->ix; in mlx5e_alloc_cq() 1971 cq->napi = ccp->napi; in mlx5e_alloc_cq() 1972 cq->ch_stats = ccp->ch_stats; in mlx5e_alloc_cq() 2036 struct mlx5e_cq_param *param, struct mlx5e_create_cq_param *ccp, in mlx5e_open_cq() argument 2042 err = mlx5e_alloc_cq(priv, param, ccp, cq); in mlx5e_open_cq() 2068 struct mlx5e_create_cq_param *ccp, in mlx5e_open_tx_cqs() argument 2076 ccp, &c->sq[tc].cq); in mlx5e_open_tx_cqs() [all …]
|
D | en.h | 1039 struct mlx5e_cq_param *param, struct mlx5e_create_cq_param *ccp,
|