Lines Matching refs:sb_size

172 			uint64_t sb_size;  member
358 return (addr - mb_addr) / vm->sbm.sb_size; in virtio_mem_phys_to_sb_id()
889 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline()
897 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline()
905 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline()
913 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline()
1267 order = ilog2(vm->sbm.sb_size) - PAGE_SHIFT; in virtio_mem_online_page()
1459 sb_id * vm->sbm.sb_size; in virtio_mem_sbm_plug_sb()
1460 const uint64_t size = count * vm->sbm.sb_size; in virtio_mem_sbm_plug_sb()
1477 sb_id * vm->sbm.sb_size; in virtio_mem_sbm_unplug_sb()
1478 const uint64_t size = count * vm->sbm.sb_size; in virtio_mem_sbm_unplug_sb()
1681 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_plug_any_sb()
1682 nr_pages = PFN_DOWN(count * vm->sbm.sb_size); in virtio_mem_sbm_plug_any_sb()
1699 uint64_t nb_sb = diff / vm->sbm.sb_size; in virtio_mem_sbm_plug_request()
1912 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size) * count; in virtio_mem_sbm_unplug_sb_online()
1918 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_unplug_sb_online()
2050 uint64_t nb_sb = diff / vm->sbm.sb_size; in virtio_mem_sbm_unplug_request()
2457 uint64_t unit_pages, sb_size, addr; in virtio_mem_init_hotplug() local
2480 sb_size = PAGE_SIZE * pageblock_nr_pages; in virtio_mem_init_hotplug()
2481 sb_size = max_t(uint64_t, vm->device_block_size, sb_size); in virtio_mem_init_hotplug()
2483 if (sb_size < memory_block_size_bytes() && !force_bbm) { in virtio_mem_init_hotplug()
2486 vm->sbm.sb_size = sb_size; in virtio_mem_init_hotplug()
2488 vm->sbm.sb_size; in virtio_mem_init_hotplug()
2527 (unsigned long long)vm->sbm.sb_size); in virtio_mem_init_hotplug()