Home
last modified time | relevance | path

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

/openbmc/linux/arch/riscv/kvm/
H A Daia_aplic.c432 } else if ((off >= APLIC_TARGET_BASE) && in aplic_mmio_read_offset()
433 (off < (APLIC_TARGET_BASE + (aplic->nr_irqs - 1) * 4))) { in aplic_mmio_read_offset()
434 i = ((off - APLIC_TARGET_BASE) >> 2) + 1; in aplic_mmio_read_offset()
502 } else if ((off >= APLIC_TARGET_BASE) && in aplic_mmio_write_offset()
503 (off < (APLIC_TARGET_BASE + (aplic->nr_irqs - 1) * 4))) { in aplic_mmio_write_offset()
504 i = ((off - APLIC_TARGET_BASE) >> 2) + 1; in aplic_mmio_write_offset()
/openbmc/qemu/hw/intc/
H A Driscv_aplic.c129 #define APLIC_TARGET_BASE 0x3004 macro
659 } else if ((APLIC_TARGET_BASE <= addr) && in riscv_aplic_read()
660 (addr < (APLIC_TARGET_BASE + (aplic->num_irqs - 1) * 4))) { in riscv_aplic_read()
661 irq = ((addr - APLIC_TARGET_BASE) >> 2) + 1; in riscv_aplic_read()
793 } else if ((APLIC_TARGET_BASE <= addr) && in riscv_aplic_write()
794 (addr < (APLIC_TARGET_BASE + (aplic->num_irqs - 1) * 4))) { in riscv_aplic_write()
795 irq = ((addr - APLIC_TARGET_BASE) >> 2) + 1; in riscv_aplic_write()
/openbmc/linux/arch/riscv/include/asm/
H A Dkvm_aia_aplic.h50 #define APLIC_TARGET_BASE 0x3004 macro