Lines Matching refs:mr
218 static void unmap_region(MemoryRegion *mr) in unmap_region() argument
220 if (memory_region_is_mapped(mr)) { in unmap_region()
221 memory_region_del_subregion(get_system_memory(), mr); in unmap_region()
222 object_unparent(OBJECT(mr)); in unmap_region()
226 static void map_pci_region(MemoryRegion *mr, MemoryRegion *parent, in map_pci_region() argument
230 memory_region_init_alias(mr, owner, name, parent, poffs, size); in map_pci_region()
231 memory_region_add_subregion(get_system_memory(), moffs, mr); in map_pci_region()
238 MemoryRegion *mr; in set_mem_windows() local
253 mr = &s->cpu_win[i]; in set_mem_windows()
254 unmap_region(mr); in set_mem_windows()
256 map_pci_region(mr, &p->io, OBJECT(s), "pci0-io-win", in set_mem_windows()
262 mr = &s->cpu_win[i]; in set_mem_windows()
263 unmap_region(mr); in set_mem_windows()
265 map_pci_region(mr, &p->mem, OBJECT(s), "pci0-mem0-win", in set_mem_windows()
271 mr = &s->cpu_win[i]; in set_mem_windows()
272 unmap_region(mr); in set_mem_windows()
274 map_pci_region(mr, &p->mem, OBJECT(s), "pci0-mem1-win", in set_mem_windows()
280 mr = &s->cpu_win[i]; in set_mem_windows()
281 unmap_region(mr); in set_mem_windows()
283 map_pci_region(mr, &p->mem, OBJECT(s), "pci0-mem2-win", in set_mem_windows()
289 mr = &s->cpu_win[i]; in set_mem_windows()
290 unmap_region(mr); in set_mem_windows()
292 map_pci_region(mr, &p->mem, OBJECT(s), "pci0-mem3-win", in set_mem_windows()
298 mr = &s->cpu_win[i]; in set_mem_windows()
299 unmap_region(mr); in set_mem_windows()
301 map_pci_region(mr, &p->io, OBJECT(s), "pci1-io-win", in set_mem_windows()
307 mr = &s->cpu_win[i]; in set_mem_windows()
308 unmap_region(mr); in set_mem_windows()
310 map_pci_region(mr, &p->mem, OBJECT(s), "pci1-mem0-win", in set_mem_windows()
316 mr = &s->cpu_win[i]; in set_mem_windows()
317 unmap_region(mr); in set_mem_windows()
319 map_pci_region(mr, &p->mem, OBJECT(s), "pci1-mem1-win", in set_mem_windows()
325 mr = &s->cpu_win[i]; in set_mem_windows()
326 unmap_region(mr); in set_mem_windows()
328 map_pci_region(mr, &p->mem, OBJECT(s), "pci1-mem2-win", in set_mem_windows()
334 mr = &s->cpu_win[i]; in set_mem_windows()
335 unmap_region(mr); in set_mem_windows()
337 map_pci_region(mr, &p->mem, OBJECT(s), "pci1-mem3-win", in set_mem_windows()
343 mr = &s->regs; in set_mem_windows()
344 unmap_region(mr); in set_mem_windows()
347 (s->regs_base & 0xfffff) << 16, mr); in set_mem_windows()