Lines Matching refs:RAMBlock
815 static RAMBlock *qemu_get_ram_block(ram_addr_t addr) in qemu_get_ram_block()
817 RAMBlock *block; in qemu_get_ram_block()
857 RAMBlock *block; in tlb_reset_dirty_range_all()
881 RAMBlock *ramblock; in cpu_physical_memory_test_and_clear_dirty()
1158 RAMBlock *block; in ram_block_format()
1404 static void *file_ram_alloc(RAMBlock *block, in file_ram_alloc()
1487 RAMBlock *block, *next_block; in find_ram_offset()
1552 const char *qemu_ram_get_idstr(RAMBlock *rb) in qemu_ram_get_idstr()
1557 void *qemu_ram_get_host_addr(RAMBlock *rb) in qemu_ram_get_host_addr()
1562 ram_addr_t qemu_ram_get_offset(RAMBlock *rb) in qemu_ram_get_offset()
1567 ram_addr_t qemu_ram_get_used_length(RAMBlock *rb) in qemu_ram_get_used_length()
1572 ram_addr_t qemu_ram_get_max_length(RAMBlock *rb) in qemu_ram_get_max_length()
1577 bool qemu_ram_is_shared(RAMBlock *rb) in qemu_ram_is_shared()
1582 bool qemu_ram_is_noreserve(RAMBlock *rb) in qemu_ram_is_noreserve()
1588 bool qemu_ram_is_uf_zeroable(RAMBlock *rb) in qemu_ram_is_uf_zeroable()
1593 void qemu_ram_set_uf_zeroable(RAMBlock *rb) in qemu_ram_set_uf_zeroable()
1598 bool qemu_ram_is_migratable(RAMBlock *rb) in qemu_ram_is_migratable()
1603 void qemu_ram_set_migratable(RAMBlock *rb) in qemu_ram_set_migratable()
1608 void qemu_ram_unset_migratable(RAMBlock *rb) in qemu_ram_unset_migratable()
1613 bool qemu_ram_is_named_file(RAMBlock *rb) in qemu_ram_is_named_file()
1618 int qemu_ram_get_fd(RAMBlock *rb) in qemu_ram_get_fd()
1624 void qemu_ram_set_idstr(RAMBlock *new_block, const char *name, DeviceState *dev) in qemu_ram_set_idstr()
1626 RAMBlock *block; in qemu_ram_set_idstr()
1652 void qemu_ram_unset_idstr(RAMBlock *block) in qemu_ram_unset_idstr()
1663 size_t qemu_ram_pagesize(RAMBlock *rb) in qemu_ram_pagesize()
1671 RAMBlock *block; in qemu_ram_pagesize_largest()
1699 int qemu_ram_resize(RAMBlock *block, ram_addr_t newsize, Error **errp) in qemu_ram_resize()
1761 void qemu_ram_msync(RAMBlock *block, ram_addr_t start, ram_addr_t length) in qemu_ram_msync()
1830 static void ram_block_add(RAMBlock *new_block, Error **errp) in ram_block_add()
1834 RAMBlock *block; in ram_block_add()
1835 RAMBlock *last_block = NULL; in ram_block_add()
1949 RAMBlock *qemu_ram_alloc_from_fd(ram_addr_t size, MemoryRegion *mr, in qemu_ram_alloc_from_fd()
1953 RAMBlock *new_block; in qemu_ram_alloc_from_fd()
2018 RAMBlock *qemu_ram_alloc_from_file(ram_addr_t size, MemoryRegion *mr, in qemu_ram_alloc_from_file()
2024 RAMBlock *block; in qemu_ram_alloc_from_file()
2067 RAMBlock *qemu_ram_alloc_internal(ram_addr_t size, ram_addr_t max_size, in qemu_ram_alloc_internal()
2074 RAMBlock *new_block; in qemu_ram_alloc_internal()
2107 RAMBlock *qemu_ram_alloc_from_ptr(ram_addr_t size, void *host, in qemu_ram_alloc_from_ptr()
2114 RAMBlock *qemu_ram_alloc(ram_addr_t size, uint32_t ram_flags, in qemu_ram_alloc()
2121 RAMBlock *qemu_ram_alloc_resizeable(ram_addr_t size, ram_addr_t maxsz, in qemu_ram_alloc_resizeable()
2131 static void reclaim_ramblock(RAMBlock *block) in reclaim_ramblock()
2154 void qemu_ram_free(RAMBlock *block) in qemu_ram_free()
2178 RAMBlock *block; in qemu_ram_remap()
2235 static void *qemu_ram_ptr_length(RAMBlock *block, ram_addr_t addr, in qemu_ram_ptr_length()
2282 void *qemu_map_ram_ptr(RAMBlock *ram_block, ram_addr_t addr) in qemu_map_ram_ptr()
2288 ram_addr_t qemu_ram_block_host_offset(RAMBlock *rb, void *host) in qemu_ram_block_host_offset()
2297 RAMBlock *qemu_ram_block_from_host(void *ptr, bool round_offset, in qemu_ram_block_from_host()
2300 RAMBlock *block; in qemu_ram_block_from_host()
2351 RAMBlock *qemu_ram_block_by_name(const char *name) in qemu_ram_block_by_name()
2353 RAMBlock *block; in qemu_ram_block_by_name()
2370 RAMBlock *block; in qemu_ram_addr_from_host()
3614 RAMBlock *block; in qemu_ram_foreach_block()
3635 int ram_block_discard_range(RAMBlock *rb, uint64_t start, size_t length) in ram_block_discard_range()
3750 int ram_block_discard_guest_memfd_range(RAMBlock *rb, uint64_t start, in ram_block_discard_guest_memfd_range()
3773 bool ramblock_is_pmem(RAMBlock *rb) in ramblock_is_pmem()