Lines Matching refs:mb_states
190 uint8_t *mb_states; member
444 old_state = vm->sbm.mb_states[idx]; in virtio_mem_sbm_set_mb_state()
445 vm->sbm.mb_states[idx] = state; in virtio_mem_sbm_set_mb_state()
460 return vm->sbm.mb_states[idx]; in virtio_mem_sbm_get_mb_state()
472 if (vm->sbm.mb_states && old_pages == new_pages) in virtio_mem_sbm_mb_states_prepare_next_mb()
480 if (vm->sbm.mb_states) in virtio_mem_sbm_mb_states_prepare_next_mb()
481 memcpy(new_array, vm->sbm.mb_states, old_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb()
482 vfree(vm->sbm.mb_states); in virtio_mem_sbm_mb_states_prepare_next_mb()
483 vm->sbm.mb_states = new_array; in virtio_mem_sbm_mb_states_prepare_next_mb()
1760 const int mb_states[] = { in virtio_mem_sbm_plug_request() local
1775 for (i = 0; i < ARRAY_SIZE(mb_states); i++) { in virtio_mem_sbm_plug_request()
1776 virtio_mem_sbm_for_each_mb(vm, mb_id, mb_states[i]) { in virtio_mem_sbm_plug_request()
2098 const int mb_states[] = { in virtio_mem_sbm_unplug_request() local
2127 for (i = 0; i < ARRAY_SIZE(mb_states); i++) { in virtio_mem_sbm_unplug_request()
2128 virtio_mem_sbm_for_each_mb_rev(vm, mb_id, mb_states[i]) { in virtio_mem_sbm_unplug_request()
2950 vfree(vm->sbm.mb_states); in virtio_mem_deinit_hotplug()