Searched refs:IOMMU_PAGE_SIZE (Results 1 – 11 of 11) sorted by relevance
/freebsd/sys/arm64/iommu/ |
H A D | iommu.h | 36 #define IOMMU_PAGE_SIZE 4096 macro 37 #define IOMMU_PAGE_MASK (IOMMU_PAGE_SIZE - 1)
|
H A D | iommu_pmap.c | 61 #define IOMMU_PAGE_SIZE 4096 macro 68 #define NL0PG (IOMMU_PAGE_SIZE/(sizeof (pd_entry_t))) 69 #define NL1PG (IOMMU_PAGE_SIZE/(sizeof (pd_entry_t))) 70 #define NL2PG (IOMMU_PAGE_SIZE/(sizeof (pd_entry_t))) 71 #define NL3PG (IOMMU_PAGE_SIZE/(sizeof (pt_entry_t)))
|
/freebsd/sys/x86/iommu/ |
H A D | x86_iommu.h | 39 #define IOMMU_PAGE_SIZE PAGE_SIZE macro 40 #define IOMMU_PAGE_MASK (IOMMU_PAGE_SIZE - 1) 42 #define IOMMU_NPTEPG (IOMMU_PAGE_SIZE / sizeof(iommu_pte_t))
|
H A D | amd_idpgtbl.c | 203 for (pi = 0; size > 0; base += IOMMU_PAGE_SIZE, size -= IOMMU_PAGE_SIZE, in amdiommu_map_buf_locked() 205 KASSERT(size >= IOMMU_PAGE_SIZE, in amdiommu_map_buf_locked() 207 (uintmax_t)base, (uintmax_t)size, (uintmax_t)IOMMU_PAGE_SIZE)); in amdiommu_map_buf_locked() 357 pg_sz = IOMMU_PAGE_SIZE; in amdiommu_unmap_buf_locked()
|
H A D | iommu_utils.c | 739 (iommu_gaddr_t)IOMMU_PAGE_SIZE, in pglvl_page_size() 740 (iommu_gaddr_t)IOMMU_PAGE_SIZE << IOMMU_NPTEPGSHIFT, in pglvl_page_size() 741 (iommu_gaddr_t)IOMMU_PAGE_SIZE << (2 * IOMMU_NPTEPGSHIFT), in pglvl_page_size() 742 (iommu_gaddr_t)IOMMU_PAGE_SIZE << (3 * IOMMU_NPTEPGSHIFT), in pglvl_page_size() 743 (iommu_gaddr_t)IOMMU_PAGE_SIZE << (4 * IOMMU_NPTEPGSHIFT), in pglvl_page_size() 744 (iommu_gaddr_t)IOMMU_PAGE_SIZE << (5 * IOMMU_NPTEPGSHIFT), in pglvl_page_size() 745 (iommu_gaddr_t)IOMMU_PAGE_SIZE << (6 * IOMMU_NPTEPGSHIFT), in pglvl_page_size()
|
H A D | intel_reg.h | 42 #define DMAR_CTX_CNT (IOMMU_PAGE_SIZE / sizeof(dmar_root_entry_t))
|
H A D | amd_cmd.c | 214 isize = IOMMU_PAGE_SIZE; /* XXXKIB handle superpages */ in amdiommu_qi_invalidate_emit()
|
H A D | amd_drv.c | 263 atop(seg_sz), 0, ~0ul, IOMMU_PAGE_SIZE, 0, in amdiommu_create_dev_tbl() 269 atop(seg_sz), 0, ~0ul, IOMMU_PAGE_SIZE, 0); in amdiommu_create_dev_tbl()
|
H A D | intel_ctx.c | 259 entry->end += IOMMU_PAGE_SIZE * 0x20; in domain_init_rmrr()
|
/freebsd/sys/dev/iommu/ |
H A D | iommu_gas.c | 285 KASSERT(entry->end == IOMMU_PAGE_SIZE, ("start entry end %p", domain)); in iommu_gas_fini_domain() 331 beg = MAX(beg + IOMMU_PAGE_SIZE, lbound); in iommu_gas_match_one() 335 if (end < IOMMU_PAGE_SIZE + 1) in iommu_gas_match_one() 337 end = MIN(end - IOMMU_PAGE_SIZE - 1, ubound); in iommu_gas_match_one() 375 entry->end = start + roundup2(size + offset, IOMMU_PAGE_SIZE); in iommu_gas_match_one() 427 min_free = 3 * IOMMU_PAGE_SIZE; in iommu_gas_find_space() 446 min_free = 2 * IOMMU_PAGE_SIZE + in iommu_gas_find_space() 447 roundup2(a->size + a->offset, IOMMU_PAGE_SIZE); in iommu_gas_find_space()
|
H A D | busdma_iommu.c | 564 KASSERT(offset < IOMMU_PAGE_SIZE, ("offset %d", offset)); in iommu_bus_dmamap_load_something1()
|