Lines Matching refs:bb_size

216 			uint64_t bb_size;  member
337 return addr / vm->bbm.bb_size; in virtio_mem_phys_to_bb_id()
346 return bb_id * vm->bbm.bb_size; in virtio_mem_bb_id_to_phys()
677 const uint64_t size = vm->bbm.bb_size; in virtio_mem_bbm_add_bb()
777 const uint64_t size = vm->bbm.bb_size; in virtio_mem_bbm_offline_and_remove_bb()
1495 const uint64_t size = vm->bbm.bb_size; in virtio_mem_bbm_unplug_bb()
1508 const uint64_t size = vm->bbm.bb_size; in virtio_mem_bbm_plug_bb()
1812 uint64_t nb_bb = diff / vm->bbm.bb_size; in virtio_mem_bbm_plug_request()
1821 if (!virtio_mem_could_add_memory(vm, vm->bbm.bb_size)) in virtio_mem_bbm_plug_request()
1834 if (!virtio_mem_could_add_memory(vm, vm->bbm.bb_size)) in virtio_mem_bbm_plug_request()
2104 const unsigned long nr_pages = PFN_DOWN(vm->bbm.bb_size); in virtio_mem_bbm_offline_remove_and_unplug_bb()
2176 const unsigned long nr_pages = PFN_DOWN(vm->bbm.bb_size); in virtio_mem_bbm_bb_is_offline()
2195 const unsigned long nr_pages = PFN_DOWN(vm->bbm.bb_size); in virtio_mem_bbm_bb_is_movable()
2213 uint64_t nb_bb = diff / vm->bbm.bb_size; in virtio_mem_bbm_unplug_request()
2320 if (!IS_ALIGNED(end_addr + 1, vm->bbm.bb_size)) in virtio_mem_refresh_config()
2497 vm->bbm.bb_size = max_t(uint64_t, vm->device_block_size, in virtio_mem_init_hotplug()
2504 } else if (bbm_block_size < vm->bbm.bb_size) { in virtio_mem_init_hotplug()
2508 vm->bbm.bb_size = bbm_block_size; in virtio_mem_init_hotplug()
2514 vm->bbm.bb_size - 1; in virtio_mem_init_hotplug()
2519 vm->offline_threshold = max_t(uint64_t, 2 * vm->bbm.bb_size, in virtio_mem_init_hotplug()
2530 (unsigned long long)vm->bbm.bb_size); in virtio_mem_init_hotplug()
2541 unit_pages = PHYS_PFN(vm->bbm.bb_size); in virtio_mem_init_hotplug()