Home
last modified time | relevance | path

Searched refs:sdcp (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/crypto/
Dmxs-dcp.c174 struct dcp *sdcp = global_sdcp; in mxs_dcp_start_dma() local
178 struct dcp_dma_desc *desc = &sdcp->coh->desc[actx->chan]; in mxs_dcp_start_dma()
179 dma_addr_t desc_phys = dma_map_single(sdcp->dev, desc, sizeof(*desc), in mxs_dcp_start_dma()
182 dma_err = dma_mapping_error(sdcp->dev, desc_phys); in mxs_dcp_start_dma()
186 reinit_completion(&sdcp->completion[chan]); in mxs_dcp_start_dma()
189 writel(0xffffffff, sdcp->base + MXS_DCP_CH_N_STAT_CLR(chan)); in mxs_dcp_start_dma()
192 writel(desc_phys, sdcp->base + MXS_DCP_CH_N_CMDPTR(chan)); in mxs_dcp_start_dma()
195 writel(1, sdcp->base + MXS_DCP_CH_N_SEMA(chan)); in mxs_dcp_start_dma()
197 ret = wait_for_completion_timeout(&sdcp->completion[chan], in mxs_dcp_start_dma()
200 dev_err(sdcp->dev, "Channel %i timeout (DCP_STAT=0x%08x)\n", in mxs_dcp_start_dma()
[all …]