Searched refs:mb_id (Results 1 – 1 of 1) sorted by relevance
328 static unsigned long virtio_mem_mb_id_to_phys(unsigned long mb_id) in virtio_mem_mb_id_to_phys() argument330 return mb_id * memory_block_size_bytes(); in virtio_mem_mb_id_to_phys()357 const unsigned long mb_id = virtio_mem_phys_to_mb_id(addr); in virtio_mem_phys_to_sb_id() local358 const unsigned long mb_addr = virtio_mem_mb_id_to_phys(mb_id); in virtio_mem_phys_to_sb_id()434 unsigned long mb_id, uint8_t state) in virtio_mem_sbm_set_mb_state() argument436 const unsigned long idx = mb_id - vm->sbm.first_mb_id; in virtio_mem_sbm_set_mb_state()451 unsigned long mb_id) in virtio_mem_sbm_get_mb_state() argument453 const unsigned long idx = mb_id - vm->sbm.first_mb_id; in virtio_mem_sbm_get_mb_state()501 unsigned long mb_id, int sb_id) in virtio_mem_sbm_sb_state_bit_nr() argument503 return (mb_id - vm->sbm.first_mb_id) * vm->sbm.sbs_per_mb + sb_id; in virtio_mem_sbm_sb_state_bit_nr()[all …]