Home
last modified time | relevance | path

Searched refs:bb_states (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/virtio/
H A Dvirtio_mem.c217 uint8_t *bb_states; member
378 old_state = vm->bbm.bb_states[idx]; in virtio_mem_bbm_set_bb_state()
379 vm->bbm.bb_states[idx] = state; in virtio_mem_bbm_set_bb_state()
392 return vm->bbm.bb_states[bb_id - vm->bbm.first_bb_id]; in virtio_mem_bbm_get_bb_state()
406 if (vm->bbm.bb_states && old_pages == new_pages) in virtio_mem_bbm_bb_states_prepare_next_bb()
414 if (vm->bbm.bb_states) in virtio_mem_bbm_bb_states_prepare_next_bb()
415 memcpy(new_array, vm->bbm.bb_states, old_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb()
416 vfree(vm->bbm.bb_states); in virtio_mem_bbm_bb_states_prepare_next_bb()
417 vm->bbm.bb_states = new_array; in virtio_mem_bbm_bb_states_prepare_next_bb()
2953 vfree(vm->bbm.bb_states); in virtio_mem_deinit_hotplug()