Lines Matching refs:window
35 pfc->window = devm_kzalloc(pfc->dev, pdev->num_resources * in sh_pfc_ioremap()
36 sizeof(*pfc->window), GFP_NOWAIT); in sh_pfc_ioremap()
37 if (!pfc->window) in sh_pfc_ioremap()
44 pfc->window[k].phys = res->start; in sh_pfc_ioremap()
45 pfc->window[k].size = resource_size(res); in sh_pfc_ioremap()
46 pfc->window[k].virt = devm_ioremap_nocache(pfc->dev, res->start, in sh_pfc_ioremap()
48 if (!pfc->window[k].virt) in sh_pfc_ioremap()
58 struct sh_pfc_window *window; in sh_pfc_phys_to_virt() local
63 window = pfc->window + i; in sh_pfc_phys_to_virt()
65 if (address < window->phys) in sh_pfc_phys_to_virt()
68 if (address >= (window->phys + window->size)) in sh_pfc_phys_to_virt()
71 return window->virt + (address - window->phys); in sh_pfc_phys_to_virt()