Lines Matching refs:context_id

78 	unsigned int context_id;  member
190 unsigned int context_id, unsigned int reg) in ipmmu_ctx_reg() argument
194 if (context_id > 7) in ipmmu_ctx_reg()
197 return base + context_id * mmu->features->ctx_offset_stride + reg; in ipmmu_ctx_reg()
201 unsigned int context_id, unsigned int reg) in ipmmu_ctx_read() argument
203 return ipmmu_read(mmu, ipmmu_ctx_reg(mmu, context_id, reg)); in ipmmu_ctx_read()
207 unsigned int context_id, unsigned int reg, u32 data) in ipmmu_ctx_write() argument
209 ipmmu_write(mmu, ipmmu_ctx_reg(mmu, context_id, reg), data); in ipmmu_ctx_write()
215 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root()
221 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_root()
228 ipmmu_ctx_write(domain->mmu, domain->context_id, reg, data); in ipmmu_ctx_write_all()
230 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_all()
293 ipmmu_imuctr_write(mmu, utlb, IMUCTR_TTSEL_MMU(domain->context_id) | in ipmmu_utlb_enable()
295 mmu->utlb_ctx[utlb] = domain->context_id; in ipmmu_utlb_enable()
341 unsigned int context_id) in ipmmu_domain_free_context() argument
347 clear_bit(context_id, mmu->ctx); in ipmmu_domain_free_context()
348 mmu->domains[context_id] = NULL; in ipmmu_domain_free_context()
442 domain->context_id = ret; in ipmmu_domain_init_context()
448 domain->context_id); in ipmmu_domain_init_context()
469 ipmmu_domain_free_context(domain->mmu->root, domain->context_id); in ipmmu_domain_destroy_context()
608 domain->context_id); in ipmmu_attach_device()
617 dev_info(dev, "Reusing IPMMU context %u\n", domain->context_id); in ipmmu_attach_device()