Home
last modified time | relevance | path

Searched refs:inv_queue_size (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/x86/iommu/
H A Dintel_qi.c116 unit->x86c.inv_queue_avail += unit->x86c.inv_queue_size; in dmar_qi_ensure()
150 KASSERT(unit->x86c.inv_queue_tail <= unit->x86c.inv_queue_size, in dmar_qi_emit()
152 (uintmax_t)unit->x86c.inv_queue_size)); in dmar_qi_emit()
153 unit->x86c.inv_queue_tail &= unit->x86c.inv_queue_size - 1; in dmar_qi_emit()
162 KASSERT(unit->x86c.inv_queue_tail <= unit->x86c.inv_queue_size, in dmar_qi_emit()
164 (uintmax_t)unit->x86c.inv_queue_size)); in dmar_qi_emit()
165 unit->x86c.inv_queue_tail &= unit->x86c.inv_queue_size - 1; in dmar_qi_emit()
363 qi_sz = ilog2(unit->x86c.inv_queue_size / PAGE_SIZE); in dmar_init_qi()
H A Damd_cmd.c133 unit->x86c.inv_queue_avail += unit->x86c.inv_queue_size; in amdiommu_cmd_ensure()
163 KASSERT(unit->x86c.inv_queue_tail <= unit->x86c.inv_queue_size, in amdiommu_cmd_emit()
165 (uintmax_t)unit->x86c.inv_queue_size)); in amdiommu_cmd_emit()
166 unit->x86c.inv_queue_tail &= unit->x86c.inv_queue_size - 1; in amdiommu_cmd_emit()
337 qi_sz = ilog2(unit->x86c.inv_queue_size / PAGE_SIZE) + 8; in amdiommu_init_cmd()
H A Diommu_utils.c516 x86c->inv_queue_size = (1ULL << qi_sz) * PAGE_SIZE; in iommu_qi_common_init()
518 x86c->inv_queue_avail = x86c->inv_queue_size - in iommu_qi_common_init()
525 x86c->inv_queue = kmem_alloc_contig(x86c->inv_queue_size, in iommu_qi_common_init()
559 kmem_free(x86c->inv_queue, x86c->inv_queue_size); in iommu_qi_common_fini()
561 x86c->inv_queue_size = 0; in iommu_qi_common_fini()
H A Dx86_iommu.h120 vm_size_t inv_queue_size; member
H A Damd_drv.c1162 if (ci == unit->x86c.inv_queue_size) in amdiommu_print_one()
H A Dintel_drv.c1234 (uintmax_t)unit->x86c.inv_queue_size, in dmar_print_one()