Lines Matching refs:dir
39 event = p->dir ? TRC_HVM_IOMEM_READ : TRC_HVM_IOMEM_WRITE; in hvmtrace_io_assist()
41 event = p->dir ? TRC_HVM_IOPORT_READ : TRC_HVM_IOPORT_WRITE; in hvmtrace_io_assist()
122 uint8_t dir, bool_t df, bool_t data_is_addr, uintptr_t data) in hvmemul_do_io() argument
132 .dir = dir, in hvmemul_do_io()
164 (p.dir != dir) || in hvmemul_do_io()
178 if ( dir == IOREQ_WRITE ) in hvmemul_do_io()
261 if ( dir == IOREQ_READ ) in hvmemul_do_io()
302 if ( dir == IOREQ_READ ) in hvmemul_do_io()
315 uint8_t dir, bool_t df, void *buffer) in hvmemul_do_io_buffer() argument
321 rc = hvmemul_do_io(is_mmio, addr, reps, size, dir, df, 0, in hvmemul_do_io_buffer()
326 if ( rc == X86EMUL_UNHANDLEABLE && dir == IOREQ_READ ) in hvmemul_do_io_buffer()
374 unsigned int size, uint8_t dir, bool_t df, paddr_t ram_gpa) in hvmemul_do_io_addr() argument
415 rc = hvmemul_do_io(is_mmio, addr, &count, size, dir, df, 1, in hvmemul_do_io_addr()
440 uint8_t dir, in hvmemul_do_pio_buffer() argument
445 return hvmemul_do_io_buffer(0, port, &one_rep, size, dir, 0, buffer); in hvmemul_do_pio_buffer()
461 uint8_t dir, in hvmemul_do_pio_addr() argument
465 return hvmemul_do_io_addr(0, port, reps, size, dir, df, ram_addr); in hvmemul_do_pio_addr()
485 uint8_t dir, in hvmemul_do_mmio_buffer() argument
489 return hvmemul_do_io_buffer(1, mmio_gpa, reps, size, dir, df, buffer); in hvmemul_do_mmio_buffer()
505 uint8_t dir, in hvmemul_do_mmio_addr() argument
509 return hvmemul_do_io_addr(1, mmio_gpa, reps, size, dir, df, ram_gpa); in hvmemul_do_mmio_addr()
839 struct hvm_mmio_cache *cache, paddr_t gpa, unsigned int size, uint8_t dir, in hvmemul_phys_mmio_access() argument
866 if ( dir == IOREQ_READ ) in hvmemul_phys_mmio_access()
875 rc = hvmemul_do_mmio_buffer(gpa, &one_rep, chunk, dir, 0, in hvmemul_phys_mmio_access()
912 struct hvm_vcpu_io *vio, unsigned long gla, uint8_t dir) in hvmemul_find_mmio_cache() argument
922 dir == cache->dir ) in hvmemul_find_mmio_cache()
937 cache->dir = dir; in hvmemul_find_mmio_cache()
956 unsigned long gla, unsigned int size, uint8_t dir, void *buffer, in hvmemul_linear_mmio_access() argument
961 struct hvm_mmio_cache *cache = hvmemul_find_mmio_cache(vio, gla, dir); in hvmemul_linear_mmio_access()
981 latch_linear_to_phys(vio, gla, gpa, dir == IOREQ_WRITE); in hvmemul_linear_mmio_access()
986 rc = hvmemul_phys_mmio_access(cache, gpa, chunk, dir, buffer, buffer_offset); in hvmemul_linear_mmio_access()