Lines Matching refs:wkupm3
58 struct wkup_m3_rproc *wkupm3 = rproc->priv; in wkup_m3_rproc_start() local
59 struct platform_device *pdev = wkupm3->pdev; in wkup_m3_rproc_start()
64 error = reset_control_deassert(wkupm3->rsts); in wkup_m3_rproc_start()
66 if (!wkupm3->rsts && pdata->deassert_reset(pdev, pdata->reset_name)) { in wkup_m3_rproc_start()
76 struct wkup_m3_rproc *wkupm3 = rproc->priv; in wkup_m3_rproc_stop() local
77 struct platform_device *pdev = wkupm3->pdev; in wkup_m3_rproc_stop()
82 error = reset_control_assert(wkupm3->rsts); in wkup_m3_rproc_stop()
84 if (!wkupm3->rsts && pdata->assert_reset(pdev, pdata->reset_name)) { in wkup_m3_rproc_stop()
94 struct wkup_m3_rproc *wkupm3 = rproc->priv; in wkup_m3_rproc_da_to_va() local
103 if (da >= wkupm3->mem[i].dev_addr && da + len <= in wkup_m3_rproc_da_to_va()
104 wkupm3->mem[i].dev_addr + wkupm3->mem[i].size) { in wkup_m3_rproc_da_to_va()
105 offset = da - wkupm3->mem[i].dev_addr; in wkup_m3_rproc_da_to_va()
107 va = (__force void *)(wkupm3->mem[i].cpu_addr + offset); in wkup_m3_rproc_da_to_va()
134 struct wkup_m3_rproc *wkupm3; in wkup_m3_rproc_probe() local
159 fw_name, sizeof(*wkupm3)); in wkup_m3_rproc_probe()
168 wkupm3 = rproc->priv; in wkup_m3_rproc_probe()
169 wkupm3->rproc = rproc; in wkup_m3_rproc_probe()
170 wkupm3->pdev = pdev; in wkup_m3_rproc_probe()
172 wkupm3->rsts = devm_reset_control_get_optional_shared(dev, "rstctrl"); in wkup_m3_rproc_probe()
173 if (IS_ERR(wkupm3->rsts)) in wkup_m3_rproc_probe()
174 return PTR_ERR(wkupm3->rsts); in wkup_m3_rproc_probe()
175 if (!wkupm3->rsts) { in wkup_m3_rproc_probe()
187 wkupm3->mem[i].cpu_addr = devm_ioremap_resource(dev, res); in wkup_m3_rproc_probe()
188 if (IS_ERR(wkupm3->mem[i].cpu_addr)) { in wkup_m3_rproc_probe()
191 ret = PTR_ERR(wkupm3->mem[i].cpu_addr); in wkup_m3_rproc_probe()
194 wkupm3->mem[i].bus_addr = res->start; in wkup_m3_rproc_probe()
195 wkupm3->mem[i].size = resource_size(res); in wkup_m3_rproc_probe()
205 wkupm3->mem[i].dev_addr = be32_to_cpu(*addrp) - l4_offset; in wkup_m3_rproc_probe()