Lines Matching refs:dtep
357 struct amdiommu_dte *dtep; in amdiommu_free_ctx_locked() local
381 dtep = amdiommu_get_dtep(ctx); in amdiommu_free_ctx_locked()
382 dtep->v = 0; in amdiommu_free_ctx_locked()
384 memset(dtep, 0, sizeof(*dtep)); in amdiommu_free_ctx_locked()
428 dte_entry_init_one(struct amdiommu_dte *dtep, struct amdiommu_ctx *ctx, in dte_entry_init_one() argument
437 dtep->tv = 1; in dte_entry_init_one()
439 dtep->ir = 1; in dte_entry_init_one()
440 dtep->iw = 1; in dte_entry_init_one()
441 dtep->domainid = domain->domain; in dte_entry_init_one()
442 dtep->pioctl = AMDIOMMU_DTE_PIOCTL_DIS; in dte_entry_init_one()
445 dtep->initpass = (dte & ACPI_IVHD_INIT_PASS) != 0; in dte_entry_init_one()
446 dtep->eintpass = (dte & ACPI_IVHD_EINT_PASS) != 0; in dte_entry_init_one()
447 dtep->nmipass = (dte & ACPI_IVHD_NMI_PASS) != 0; in dte_entry_init_one()
448 dtep->sysmgt = (dte & ACPI_IVHD_SYSTEM_MGMT) >> 4; in dte_entry_init_one()
449 dtep->lint0pass = (dte & ACPI_IVHD_LINT0_PASS) != 0; in dte_entry_init_one()
450 dtep->lint1pass = (dte & ACPI_IVHD_LINT1_PASS) != 0; in dte_entry_init_one()
453 dtep->iv = 1; in dte_entry_init_one()
454 dtep->i = 0; in dte_entry_init_one()
455 dtep->inttablen = ilog2(unit->irte_nentries); in dte_entry_init_one()
456 dtep->intrroot = pmap_kextract(unit->irte_x2apic ? in dte_entry_init_one()
460 dtep->intctl = AMDIOMMU_DTE_INTCTL_MAP; in dte_entry_init_one()
464 dtep->pgmode = AMDIOMMU_DTE_PGMODE_1T1; in dte_entry_init_one()
468 dtep->pgmode = domain->pglvl; in dte_entry_init_one()
469 dtep->ptroot = VM_PAGE_TO_PHYS(pgtblr) >> 12; in dte_entry_init_one()
473 dtep->v = 1; in dte_entry_init_one()
479 struct amdiommu_dte *dtep; in dte_entry_init() local
487 dtep = amdiommu_get_dtep(ctx); in dte_entry_init()
488 KASSERT(dtep->v == 0, in dte_entry_init()
490 CTX2AMD(ctx)->iommu.unit, dtep, (uintmax_t)(*(uint64_t *)dtep))); in dte_entry_init()
496 dte_entry_init_one(&dtep[i], ctx, domain->pgtblr, in dte_entry_init()
500 dte_entry_init_one(dtep, ctx, domain->pgtblr, dte, edte); in dte_entry_init()