Searched refs:mb_id (Results 1 – 1 of 1) sorted by relevance
333 static unsigned long virtio_mem_mb_id_to_phys(unsigned long mb_id) in virtio_mem_mb_id_to_phys() argument335 return mb_id * memory_block_size_bytes(); in virtio_mem_mb_id_to_phys()362 const unsigned long mb_id = virtio_mem_phys_to_mb_id(addr); in virtio_mem_phys_to_sb_id() local363 const unsigned long mb_addr = virtio_mem_mb_id_to_phys(mb_id); in virtio_mem_phys_to_sb_id()439 unsigned long mb_id, uint8_t state) in virtio_mem_sbm_set_mb_state() argument441 const unsigned long idx = mb_id - vm->sbm.first_mb_id; in virtio_mem_sbm_set_mb_state()456 unsigned long mb_id) in virtio_mem_sbm_get_mb_state() argument458 const unsigned long idx = mb_id - vm->sbm.first_mb_id; in virtio_mem_sbm_get_mb_state()506 unsigned long mb_id, int sb_id) in virtio_mem_sbm_sb_state_bit_nr() argument508 return (mb_id - vm->sbm.first_mb_id) * vm->sbm.sbs_per_mb + sb_id; in virtio_mem_sbm_sb_state_bit_nr()[all …]