Home
last modified time | relevance | path

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

/openbmc/qemu/target/riscv/
H A Dmonitor.c81 int level, int ptidxbits, int ptesize, int va_bits, in walk_pte() argument
98 ptshift = level * ptidxbits; in walk_pte()
101 for (idx = 0; idx < (1UL << ptidxbits); idx++) { 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
167 ptidxbits = 10; in mem_info_svxx()
172 ptidxbits = 9; in mem_info_svxx()
177 ptidxbits = 9; in mem_info_svxx()
182 ptidxbits = 9; in mem_info_svxx()
190 va_bits = PGSHIFT + levels * ptidxbits; in mem_info_svxx()
[all …]
H A Dcpu_helper.c924 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()
974 int va_bits = PGSHIFT + levels * ptidxbits + widened; in get_physical_address()
1007 int ptshift = (levels - 1) * ptidxbits; in get_physical_address()
1015 for (i = 0; i < levels; i++, ptshift -= ptidxbits) { in get_physical_address()
1019 ((1 << (ptidxbits + widened)) - 1); in get_physical_address()
1022 ((1 << ptidxbits) - 1); in get_physical_address()
/openbmc/qemu/hw/riscv/
H A Driscv-iommu.c265 unsigned char ptidxbits; in riscv_iommu_spa_fetch() member
320 sc[pass].ptidxbits = 0; in riscv_iommu_spa_fetch()
329 sc[pass].ptidxbits = 10; in riscv_iommu_spa_fetch()
340 sc[pass].ptidxbits = 0; in riscv_iommu_spa_fetch()
349 sc[pass].ptidxbits = 9; in riscv_iommu_spa_fetch()
358 sc[pass].ptidxbits = 9; in riscv_iommu_spa_fetch()
367 sc[pass].ptidxbits = 9; in riscv_iommu_spa_fetch()
385 const unsigned va_bits = widened + sc[pass].ptidxbits; in riscv_iommu_spa_fetch()
386 const unsigned va_skip = TARGET_PAGE_BITS + sc[pass].ptidxbits * in riscv_iommu_spa_fetch()