Home
last modified time | relevance | path

Searched refs:mb_id (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/virtio/
H A Dvirtio_mem.c333 static unsigned long virtio_mem_mb_id_to_phys(unsigned long mb_id) in virtio_mem_mb_id_to_phys() argument
335 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() local
363 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() argument
441 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() argument
458 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() argument
508 return (mb_id - vm->sbm.first_mb_id) * vm->sbm.sbs_per_mb + sb_id; in virtio_mem_sbm_sb_state_bit_nr()
[all …]