Lines Matching refs:da
246 u32 da = phdr->p_paddr; in scp_elf_load_segments() local
253 phdr->p_type, da, memsz, filesz); in scp_elf_load_segments()
275 ptr = (void __iomem *)rproc_da_to_va(rproc, da, memsz, NULL); in scp_elf_load_segments()
277 dev_err(dev, "bad phdr da 0x%x mem 0x%x\n", da, memsz); in scp_elf_load_segments()
492 static void *mt8183_scp_da_to_va(struct mtk_scp *scp, u64 da, size_t len) in mt8183_scp_da_to_va() argument
496 if (da < scp->sram_size) { in mt8183_scp_da_to_va()
497 offset = da; in mt8183_scp_da_to_va()
501 offset = da - scp->dma_addr; in mt8183_scp_da_to_va()
509 static void *mt8192_scp_da_to_va(struct mtk_scp *scp, u64 da, size_t len) in mt8192_scp_da_to_va() argument
513 if (da >= scp->sram_phys && in mt8192_scp_da_to_va()
514 (da + len) <= scp->sram_phys + scp->sram_size) { in mt8192_scp_da_to_va()
515 offset = da - scp->sram_phys; in mt8192_scp_da_to_va()
521 da >= scp->l1tcm_phys && in mt8192_scp_da_to_va()
522 (da + len) <= scp->l1tcm_phys + scp->l1tcm_size) { in mt8192_scp_da_to_va()
523 offset = da - scp->l1tcm_phys; in mt8192_scp_da_to_va()
529 da >= scp->dma_addr && in mt8192_scp_da_to_va()
530 (da + len) <= scp->dma_addr + scp->dram_size) { in mt8192_scp_da_to_va()
531 offset = da - scp->dma_addr; in mt8192_scp_da_to_va()
538 static void *scp_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem) in scp_da_to_va() argument
542 return scp->data->scp_da_to_va(scp, da, len); in scp_da_to_va()