Lines Matching refs:sb_size
167 uint64_t sb_size; member
360 return (addr - mb_addr) / vm->sbm.sb_size; in virtio_mem_phys_to_sb_id()
923 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline()
931 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline()
939 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline()
947 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline()
1310 order = ilog2(vm->sbm.sb_size) - PAGE_SHIFT; in virtio_mem_online_page()
1502 sb_id * vm->sbm.sb_size; in virtio_mem_sbm_plug_sb()
1503 const uint64_t size = count * vm->sbm.sb_size; in virtio_mem_sbm_plug_sb()
1520 sb_id * vm->sbm.sb_size; in virtio_mem_sbm_unplug_sb()
1521 const uint64_t size = count * vm->sbm.sb_size; in virtio_mem_sbm_unplug_sb()
1724 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_plug_any_sb()
1725 nr_pages = PFN_DOWN(count * vm->sbm.sb_size); in virtio_mem_sbm_plug_any_sb()
1742 uint64_t nb_sb = diff / vm->sbm.sb_size; in virtio_mem_sbm_plug_request()
1955 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size) * count; in virtio_mem_sbm_unplug_sb_online()
1961 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_unplug_sb_online()
2083 uint64_t nb_sb = diff / vm->sbm.sb_size; in virtio_mem_sbm_unplug_request()
2513 uint64_t unit_pages, sb_size, addr; in virtio_mem_init_hotplug() local
2536 sb_size = PAGE_SIZE * pageblock_nr_pages; in virtio_mem_init_hotplug()
2537 sb_size = max_t(uint64_t, vm->device_block_size, sb_size); in virtio_mem_init_hotplug()
2539 if (sb_size < memory_block_size_bytes() && !force_bbm) { in virtio_mem_init_hotplug()
2542 vm->sbm.sb_size = sb_size; in virtio_mem_init_hotplug()
2544 vm->sbm.sb_size; in virtio_mem_init_hotplug()
2583 (unsigned long long)vm->sbm.sb_size); in virtio_mem_init_hotplug()