Searched refs:sdcp (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.4/drivers/crypto/ |
D | mxs-dcp.c | 170 struct dcp *sdcp = global_sdcp; in mxs_dcp_start_dma() local 174 struct dcp_dma_desc *desc = &sdcp->coh->desc[actx->chan]; in mxs_dcp_start_dma() 176 dma_addr_t desc_phys = dma_map_single(sdcp->dev, desc, sizeof(*desc), in mxs_dcp_start_dma() 179 reinit_completion(&sdcp->completion[chan]); in mxs_dcp_start_dma() 182 writel(0xffffffff, sdcp->base + MXS_DCP_CH_N_STAT_CLR(chan)); in mxs_dcp_start_dma() 185 writel(desc_phys, sdcp->base + MXS_DCP_CH_N_CMDPTR(chan)); in mxs_dcp_start_dma() 188 writel(1, sdcp->base + MXS_DCP_CH_N_SEMA(chan)); in mxs_dcp_start_dma() 190 ret = wait_for_completion_timeout(&sdcp->completion[chan], in mxs_dcp_start_dma() 193 dev_err(sdcp->dev, "Channel %i timeout (DCP_STAT=0x%08x)\n", in mxs_dcp_start_dma() 194 chan, readl(sdcp->base + MXS_DCP_STAT)); in mxs_dcp_start_dma() [all …]
|