Home
last modified time | relevance | path

Searched refs:ioctx (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/arm64/iommu/
H A Diommu.c186 struct iommu_ctx *ioctx; in iommu_ctx_alloc() local
190 ioctx = IOMMU_CTX_ALLOC(iommu->dev, iodom, requester, disabled); in iommu_ctx_alloc()
191 if (ioctx == NULL) in iommu_ctx_alloc()
194 ioctx->domain = iodom; in iommu_ctx_alloc()
196 return (ioctx); in iommu_ctx_alloc()
200 iommu_ctx_init(device_t requester, struct iommu_ctx *ioctx) in iommu_ctx_init() argument
207 iodom = ioctx->domain; in iommu_ctx_init()
210 error = IOMMU_CTX_INIT(iommu->dev, ioctx); in iommu_ctx_init()
214 tag = ioctx->tag = malloc(sizeof(struct bus_dma_tag_iommu), in iommu_ctx_init()
217 tag->ctx = ioctx; in iommu_ctx_init()
[all …]
H A Diommu_if.m131 struct iommu_ctx *ioctx;
139 struct iommu_ctx *ioctx;
148 struct iommu_ctx *ioctx;
H A Dsmmu.c1818 return (&ctx->ioctx); in smmu_ctx_alloc()
1822 smmu_ctx_init(device_t dev, struct iommu_ctx *ioctx) in smmu_ctx_init() argument
1832 ctx = (struct smmu_ctx *)ioctx; in smmu_ctx_init()
1845 ioctx->rid = pci_get_rid(dev); in smmu_ctx_init()
1874 smmu_ctx_free(device_t dev, struct iommu_ctx *ioctx) in smmu_ctx_free() argument
1879 IOMMU_ASSERT_LOCKED(ioctx->domain->iommu); in smmu_ctx_free()
1882 ctx = (struct smmu_ctx *)ioctx; in smmu_ctx_free()
1934 return (&ctx->ioctx); in smmu_ctx_lookup()
1965 smmu_ofw_md_data(device_t dev, struct iommu_ctx *ioctx, pcell_t *cells, in smmu_ofw_md_data() argument
1970 ctx = (struct smmu_ctx *)ioctx; in smmu_ofw_md_data()
/freebsd/sys/riscv/iommu/
H A Diommu_frontend.c178 struct iommu_ctx *ioctx; in iommu_ctx_alloc() local
182 ioctx = IOMMU_CTX_ALLOC(iommu->dev, iodom, requester, disabled); in iommu_ctx_alloc()
183 if (ioctx == NULL) in iommu_ctx_alloc()
186 ioctx->domain = iodom; in iommu_ctx_alloc()
188 return (ioctx); in iommu_ctx_alloc()
192 iommu_ctx_init(device_t requester, struct iommu_ctx *ioctx) in iommu_ctx_init() argument
199 iodom = ioctx->domain; in iommu_ctx_init()
202 error = IOMMU_CTX_INIT(iommu->dev, ioctx); in iommu_ctx_init()
206 tag = ioctx->tag = malloc(sizeof(struct bus_dma_tag_iommu), in iommu_ctx_init()
209 tag->ctx = ioctx; in iommu_ctx_init()
[all …]
H A Diommu_if.m126 struct iommu_ctx *ioctx;
134 struct iommu_ctx *ioctx;
143 struct iommu_ctx *ioctx;
H A Diommu.c1056 return (&ctx->ioctx); in riscv_iommu_ctx_lookup()
1224 return (&ctx->ioctx); in riscv_iommu_ctx_alloc()
1228 riscv_iommu_ctx_init(device_t dev, struct iommu_ctx *ioctx) in riscv_iommu_ctx_init() argument
1238 ctx = (struct riscv_iommu_ctx *)ioctx; in riscv_iommu_ctx_init()
1253 ioctx->rid = pci_get_rid(dev); in riscv_iommu_ctx_init()
1274 riscv_iommu_ctx_free(device_t dev, struct iommu_ctx *ioctx) in riscv_iommu_ctx_free() argument
1281 IOMMU_ASSERT_LOCKED(ioctx->domain->iommu); in riscv_iommu_ctx_free()
1285 ctx = (struct riscv_iommu_ctx *)ioctx; in riscv_iommu_ctx_free()
1298 riscv_iommu_ofw_md_data(device_t dev, struct iommu_ctx *ioctx, pcell_t *cells, in riscv_iommu_ofw_md_data() argument
1304 ctx = (struct riscv_iommu_ctx *)ioctx; in riscv_iommu_ofw_md_data()
H A Diommu.h154 struct iommu_ctx ioctx; member
/freebsd/sys/x86/iommu/
H A Damd_intrmap.c228 struct iommu_ctx *ioctx; in amdiommu_ir_find() local
258 ioctx = iommu_instantiate_ctx(AMD2IOMMU(unit), src, false); in amdiommu_ir_find()
259 if (ioctx != NULL) in amdiommu_ir_find()
260 ctx = IOCTX2CTX(ioctx); in amdiommu_ir_find()