Lines Matching refs:rid
80 return (&CTX2AMD(ctx)->dev_tbl[ctx->context.rid]); in amdiommu_get_dtep()
275 amdiommu_ctx_alloc(struct amdiommu_domain *domain, uint16_t rid) in amdiommu_ctx_alloc() argument
283 ctx->context.rid = rid; in amdiommu_ctx_alloc()
321 amdiommu_find_ctx_locked(struct amdiommu_unit *unit, uint16_t rid) in amdiommu_find_ctx_locked() argument
330 if (ctx->rid == rid) in amdiommu_find_ctx_locked()
338 amdiommu_find_domain(struct amdiommu_unit *unit, uint16_t rid) in amdiommu_find_domain() argument
346 if (ctx->rid == rid) in amdiommu_find_domain()
388 amdiommu_qi_invalidate_ir_locked_nowait(unit, ctx->context.rid); in amdiommu_free_ctx_locked()
493 PCI_RID2BUS(ctx->context.rid))) { in dte_entry_init()
505 amdiommu_get_ctx_for_dev(struct amdiommu_unit *unit, device_t dev, uint16_t rid, in amdiommu_get_ctx_for_dev() argument
517 bus = PCI_RID2BUS(rid); in amdiommu_get_ctx_for_dev()
518 slot = PCI_RID2SLOT(rid); in amdiommu_get_ctx_for_dev()
519 func = PCI_RID2FUNC(rid); in amdiommu_get_ctx_for_dev()
526 ctx = amdiommu_find_ctx_locked(unit, rid); in amdiommu_get_ctx_for_dev()
543 ctx1 = amdiommu_ctx_alloc(domain1, rid); in amdiommu_get_ctx_for_dev()
551 ctx = amdiommu_find_ctx_locked(unit, rid); in amdiommu_get_ctx_for_dev()
567 bus, slot, func, rid, domain->domain, in amdiommu_get_ctx_for_dev()
589 amdiommu_get_ctx(struct iommu_unit *iommu, device_t dev, uint16_t rid, in amdiommu_get_ctx() argument