MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dmar_map_ctx_entry

Function dmar_map_ctx_entry

freebsd/x86/iommu/intel_ctx.c:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static dmar_ctx_entry_t *
114dmar_map_ctx_entry(struct dmar_ctx *ctx, struct sf_buf **sfp)
115{
116 struct dmar_unit *dmar;
117 dmar_ctx_entry_t *ctxp;
118
119 dmar = CTX2DMAR(ctx);
120
121 ctxp = dmar_map_pgtbl(dmar->ctx_obj, 1 + PCI_RID2BUS(ctx->context.rid),
122 IOMMU_PGF_NOALLOC | IOMMU_PGF_WAITOK, sfp);
123 ctxp += ctx->context.rid & 0xff;
124 return (ctxp);
125}
126
127static void
128device_tag_init(struct dmar_ctx *ctx, device_t dev)

Callers 3

dmar_get_ctx_for_dev1Function · 0.85
dmar_move_ctx_to_domainFunction · 0.85
dmar_free_ctx_lockedFunction · 0.85

Calls 1

dmar_map_pgtblFunction · 0.85

Tested by

no test coverage detected