x86/iommu: Eliminate redundant wrappers
Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35832
This commit is contained in:
parent
cab040039d
commit
da55f86c61
@ -868,7 +868,7 @@ dmar_domain_free_entry(struct iommu_map_entry *entry, bool free)
|
||||
}
|
||||
|
||||
void
|
||||
dmar_domain_unload_entry(struct iommu_map_entry *entry, bool free)
|
||||
iommu_domain_unload_entry(struct iommu_map_entry *entry, bool free)
|
||||
{
|
||||
struct dmar_domain *domain;
|
||||
struct dmar_unit *unit;
|
||||
@ -902,15 +902,15 @@ dmar_domain_unload_emit_wait(struct dmar_domain *domain,
|
||||
}
|
||||
|
||||
void
|
||||
dmar_domain_unload(struct dmar_domain *domain,
|
||||
iommu_domain_unload(struct iommu_domain *iodom,
|
||||
struct iommu_map_entries_tailq *entries, bool cansleep)
|
||||
{
|
||||
struct dmar_domain *domain;
|
||||
struct dmar_unit *unit;
|
||||
struct iommu_domain *iodom;
|
||||
struct iommu_map_entry *entry, *entry1;
|
||||
int error __diagused;
|
||||
|
||||
iodom = DOM2IODOM(domain);
|
||||
domain = IODOM2DOM(iodom);
|
||||
unit = DOM2DMAR(domain);
|
||||
|
||||
TAILQ_FOREACH_SAFE(entry, entries, dmamap_link, entry1) {
|
||||
@ -975,21 +975,3 @@ iommu_free_ctx(struct iommu_ctx *context)
|
||||
|
||||
dmar_free_ctx(ctx);
|
||||
}
|
||||
|
||||
void
|
||||
iommu_domain_unload_entry(struct iommu_map_entry *entry, bool free)
|
||||
{
|
||||
|
||||
dmar_domain_unload_entry(entry, free);
|
||||
}
|
||||
|
||||
void
|
||||
iommu_domain_unload(struct iommu_domain *iodom,
|
||||
struct iommu_map_entries_tailq *entries, bool cansleep)
|
||||
{
|
||||
struct dmar_domain *domain;
|
||||
|
||||
domain = IODOM2DOM(iodom);
|
||||
|
||||
dmar_domain_unload(domain, entries, cansleep);
|
||||
}
|
||||
|
@ -277,9 +277,6 @@ int dmar_move_ctx_to_domain(struct dmar_domain *domain, struct dmar_ctx *ctx);
|
||||
void dmar_free_ctx_locked(struct dmar_unit *dmar, struct dmar_ctx *ctx);
|
||||
void dmar_free_ctx(struct dmar_ctx *ctx);
|
||||
struct dmar_ctx *dmar_find_ctx_locked(struct dmar_unit *dmar, uint16_t rid);
|
||||
void dmar_domain_unload_entry(struct iommu_map_entry *entry, bool free);
|
||||
void dmar_domain_unload(struct dmar_domain *domain,
|
||||
struct iommu_map_entries_tailq *entries, bool cansleep);
|
||||
void dmar_domain_free_entry(struct iommu_map_entry *entry, bool free);
|
||||
|
||||
void dmar_dev_parse_rmrr(struct dmar_domain *domain, int dev_domain,
|
||||
|
Loading…
x
Reference in New Issue
Block a user