Lines Matching refs:mem_regions
128 struct pruss_mem_region mem_regions[PRU_IOMEM_MAX]; member
140 return readl_relaxed(pru->mem_regions[PRU_IOMEM_CTRL].va + reg); in pru_control_read_reg()
146 writel_relaxed(val, pru->mem_regions[PRU_IOMEM_CTRL].va + reg); in pru_control_write_reg()
151 return readl_relaxed(pru->mem_regions[PRU_IOMEM_DEBUG].va + reg); in pru_debug_read_reg()
438 dram0 = pruss->mem_regions[PRUSS_MEM_DRAM0]; in pru_d_da_to_va()
439 dram1 = pruss->mem_regions[PRUSS_MEM_DRAM1]; in pru_d_da_to_va()
443 shrd_ram = pruss->mem_regions[PRUSS_MEM_SHRD_RAM2]; in pru_d_da_to_va()
495 da + len <= PRU_IRAM_DA + pru->mem_regions[PRU_IOMEM_IRAM].size) { in pru_i_da_to_va()
497 va = (__force void *)(pru->mem_regions[PRU_IOMEM_IRAM].va + in pru_i_da_to_va()
744 switch (pru->mem_regions[PRU_IOMEM_IRAM].pa & PRU_IRAM_ADDR_MASK) { in pru_rproc_set_id()
823 pru->mem_regions[i].va = devm_ioremap_resource(dev, res); in pru_rproc_probe()
824 if (IS_ERR(pru->mem_regions[i].va)) { in pru_rproc_probe()
827 ret = PTR_ERR(pru->mem_regions[i].va); in pru_rproc_probe()
830 pru->mem_regions[i].pa = res->start; in pru_rproc_probe()
831 pru->mem_regions[i].size = resource_size(res); in pru_rproc_probe()
834 mem_names[i], &pru->mem_regions[i].pa, in pru_rproc_probe()
835 pru->mem_regions[i].size, pru->mem_regions[i].va); in pru_rproc_probe()