Lines Matching defs:_mb_id
491 #define virtio_mem_sbm_for_each_mb(_vm, _mb_id, _state) \
492 for (_mb_id = _vm->sbm.first_mb_id; \
493 _mb_id < _vm->sbm.next_mb_id && _vm->sbm.mb_count[_state]; \
494 _mb_id++) \
495 if (virtio_mem_sbm_get_mb_state(_vm, _mb_id) == _state)
497 #define virtio_mem_sbm_for_each_mb_rev(_vm, _mb_id, _state) \
498 for (_mb_id = _vm->sbm.next_mb_id - 1; \
499 _mb_id >= _vm->sbm.first_mb_id && _vm->sbm.mb_count[_state]; \
500 _mb_id--) \
501 if (virtio_mem_sbm_get_mb_state(_vm, _mb_id) == _state)