Searched refs:sdcp (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/crypto/ |
D | mxs-dcp.c | 179 struct dcp *sdcp = global_sdcp; in mxs_dcp_start_dma() local 183 struct dcp_dma_desc *desc = &sdcp->coh->desc[actx->chan]; in mxs_dcp_start_dma() 184 dma_addr_t desc_phys = dma_map_single(sdcp->dev, desc, sizeof(*desc), in mxs_dcp_start_dma() 187 dma_err = dma_mapping_error(sdcp->dev, desc_phys); in mxs_dcp_start_dma() 191 reinit_completion(&sdcp->completion[chan]); in mxs_dcp_start_dma() 194 writel(0xffffffff, sdcp->base + MXS_DCP_CH_N_STAT_CLR(chan)); in mxs_dcp_start_dma() 197 writel(desc_phys, sdcp->base + MXS_DCP_CH_N_CMDPTR(chan)); in mxs_dcp_start_dma() 200 writel(1, sdcp->base + MXS_DCP_CH_N_SEMA(chan)); in mxs_dcp_start_dma() 202 ret = wait_for_completion_timeout(&sdcp->completion[chan], in mxs_dcp_start_dma() 205 dev_err(sdcp->dev, "Channel %i timeout (DCP_STAT=0x%08x)\n", in mxs_dcp_start_dma() [all …]
|