Searched refs:ptesize (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/target/riscv/ |
H A D | monitor.c | 81 int level, int ptidxbits, int ptesize, int va_bits, in walk_pte() argument 102 pte_addr = base + idx * ptesize; in walk_pte() 103 cpu_physical_memory_read(pte_addr, &pte, ptesize); in walk_pte() 135 walk_pte(mon, paddr, start, level - 1, ptidxbits, ptesize, in walk_pte() 148 int levels, ptidxbits, ptesize, vm, va_bits; in mem_info_svxx() local 168 ptesize = 4; in mem_info_svxx() 173 ptesize = 8; in mem_info_svxx() 178 ptesize = 8; in mem_info_svxx() 183 ptesize = 8; in mem_info_svxx() 202 walk_pte(mon, base, 0, levels - 1, ptidxbits, ptesize, va_bits, in mem_info_svxx()
|
H A D | cpu_helper.c | 924 int levels, ptidxbits, ptesize, vm, widened; in get_physical_address() local 958 levels = 2; ptidxbits = 10; ptesize = 4; break; in get_physical_address() 960 levels = 3; ptidxbits = 9; ptesize = 8; break; in get_physical_address() 962 levels = 4; ptidxbits = 9; ptesize = 8; break; in get_physical_address() 964 levels = 5; ptidxbits = 9; ptesize = 8; break; in get_physical_address() 1039 *fault_pte_addr = (base + idx * ptesize) >> 2; in get_physical_address() 1044 pte_addr = vbase + idx * ptesize; in get_physical_address() 1046 pte_addr = base + idx * ptesize; in get_physical_address()
|
/openbmc/qemu/hw/riscv/ |
H A D | riscv-iommu.c | 266 unsigned char ptesize; in riscv_iommu_spa_fetch() member 321 sc[pass].ptesize = 0; in riscv_iommu_spa_fetch() 330 sc[pass].ptesize = 4; in riscv_iommu_spa_fetch() 341 sc[pass].ptesize = 0; in riscv_iommu_spa_fetch() 350 sc[pass].ptesize = 8; in riscv_iommu_spa_fetch() 359 sc[pass].ptesize = 8; in riscv_iommu_spa_fetch() 368 sc[pass].ptesize = 8; in riscv_iommu_spa_fetch() 389 const dma_addr_t pte_addr = base + idx * sc[pass].ptesize; in riscv_iommu_spa_fetch() 402 if (sc[pass].ptesize == 4) { in riscv_iommu_spa_fetch()
|