Home
last modified time | relevance | path

Searched refs:IOMMU_PGF_WAITOK (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/dev/iommu/
H A Diommu_gas.c94 KASSERT((flags & ~(IOMMU_PGF_WAITOK)) == 0, in iommu_gas_alloc_entry()
97 res = uma_zalloc(iommu_map_entry_zone, ((flags & IOMMU_PGF_WAITOK) != in iommu_gas_alloc_entry()
247 begin = iommu_gas_alloc_entry(domain, IOMMU_PGF_WAITOK); in iommu_gas_init_domain()
248 end = iommu_gas_alloc_entry(domain, IOMMU_PGF_WAITOK); in iommu_gas_init_domain()
758 *r1 = iommu_gas_alloc_entry(domain, IOMMU_PGF_WAITOK); in iommu_gas_remove_init()
759 *r2 = iommu_gas_alloc_entry(domain, IOMMU_PGF_WAITOK); in iommu_gas_remove_init()
815 (flags & IOMMU_MF_CANWAIT) != 0 ? IOMMU_PGF_WAITOK : 0); in iommu_gas_map()
838 ((flags & IOMMU_MF_CANWAIT) != 0 ? IOMMU_PGF_WAITOK : 0)); in iommu_gas_map()
880 ((flags & IOMMU_MF_CANWAIT) != 0 ? IOMMU_PGF_WAITOK : 0)); in iommu_gas_map_region()
915 entry = iommu_gas_alloc_entry(domain, IOMMU_PGF_WAITOK); in iommu_gas_reserve_region()
[all …]
H A Diommu_gas.h39 #define IOMMU_PGF_WAITOK 0x0001 macro
H A Dbusdma_iommu.c1034 entry = iommu_gas_alloc_entry(domain, waitok ? 0 : IOMMU_PGF_WAITOK); in bus_dma_iommu_load_ident()
/freebsd/sys/x86/iommu/
H A Damd_idpgtbl.c91 m = iommu_pgalloc(domain->pgtbl_obj, 0, IOMMU_PGF_WAITOK | in amdiommu_domain_alloc_pgtbl()
211 KASSERT((flags & IOMMU_PGF_WAITOK) == 0, in amdiommu_map_buf_locked()
270 KASSERT((flags & ~IOMMU_PGF_WAITOK) == 0, ("invalid flags %x", flags)); in amdiommu_map_buf()
282 (flags & IOMMU_PGF_WAITOK) != 0); in amdiommu_map_buf()
355 KASSERT((flags & ~IOMMU_PGF_WAITOK) == 0, ("invalid flags %x", flags)); in amdiommu_unmap_buf_locked()
H A Diommu_utils.c85 ((flags & IOMMU_PGF_WAITOK) != 0 ? VM_ALLOC_WAITFAIL : in iommu_pgalloc()
106 if ((flags & IOMMU_PGF_WAITOK) == 0) in iommu_pgalloc()
155 if ((flags & IOMMU_PGF_WAITOK) != 0) in iommu_map_pgtbl()
158 *sf = sf_buf_alloc(m, SFB_CPUPRIVATE | ((flags & IOMMU_PGF_WAITOK) in iommu_map_pgtbl()
171 if ((flags & (IOMMU_PGF_WAITOK | IOMMU_PGF_OBJL)) == in iommu_map_pgtbl()
172 (IOMMU_PGF_WAITOK | IOMMU_PGF_OBJL)) in iommu_map_pgtbl()
174 else if ((flags & (IOMMU_PGF_WAITOK | IOMMU_PGF_OBJL)) == 0) in iommu_map_pgtbl()
H A Dintel_idpgtbl.c125 IOMMU_PGF_WAITOK | IOMMU_PGF_ZERO); in dmar_idmap_nextlvl()
133 pte = iommu_map_pgtbl(tbl->pgtbl_obj, idx, IOMMU_PGF_WAITOK, &sf); in dmar_idmap_nextlvl()
451 KASSERT((flags & IOMMU_PGF_WAITOK) == 0, in dmar_map_buf_locked()
524 KASSERT((flags & ~IOMMU_PGF_WAITOK) == 0, ("invalid flags %x", flags)); in dmar_map_buf()
622 KASSERT((flags & ~IOMMU_PGF_WAITOK) == 0, ("invalid flags %x", flags)); in dmar_unmap_buf_locked()
696 m = iommu_pgalloc(domain->pgtbl_obj, 0, IOMMU_PGF_WAITOK | in dmar_domain_alloc_pgtbl()
H A Dintel_ctx.c102 IOMMU_PGF_WAITOK); in dmar_ensure_ctx_page()
121 IOMMU_PGF_NOALLOC | IOMMU_PGF_WAITOK, sfp); in dmar_map_ctx_entry()
888 cansleep ? IOMMU_PGF_WAITOK : 0); in dmar_domain_unload()
H A Dintel_drv.c466 iommu_pgalloc(unit->ctx_obj, 0, IOMMU_PGF_WAITOK | IOMMU_PGF_ZERO); in dmar_attach()
928 IOMMU_PGF_WAITOK); in dmar_rmrr_iter()
H A Damd_ctx.c132 cansleep ? IOMMU_PGF_WAITOK : 0); in amdiommu_domain_unload()
/freebsd/sys/arm64/iommu/
H A Diommu.c415 cansleep ? IOMMU_PGF_WAITOK : 0); in iommu_domain_unload()