Lines Matching refs:mb_states
188 uint8_t *mb_states;
192 * sbm.mb_states.
214 /* One byte state per big block. See sbm.mb_states. */
223 * Mutex that protects the sbm.mb_count, sbm.mb_states,
439 old_state = vm->sbm.mb_states[idx];
440 vm->sbm.mb_states[idx] = state;
455 return vm->sbm.mb_states[idx];
467 if (vm->sbm.mb_states && old_pages == new_pages)
475 if (vm->sbm.mb_states)
476 memcpy(new_array, vm->sbm.mb_states, old_pages * PAGE_SIZE);
477 vfree(vm->sbm.mb_states);
478 vm->sbm.mb_states = new_array;
1737 const int mb_states[] = {
1752 for (i = 0; i < ARRAY_SIZE(mb_states); i++) {
1753 virtio_mem_sbm_for_each_mb(vm, mb_id, mb_states[i]) {
2075 const int mb_states[] = {
2104 for (i = 0; i < ARRAY_SIZE(mb_states); i++) {
2105 virtio_mem_sbm_for_each_mb_rev(vm, mb_id, mb_states[i]) {
2918 vfree(vm->sbm.mb_states);