Home
last modified time | relevance | path

Searched refs:dmar_ctx (Results 1 – 10 of 10) sorted by relevance

/trueos/sys/x86/iommu/
HDintel_dmar.h56 struct dmar_ctx *ctx;
76 struct dmar_ctx { struct
89 LIST_ENTRY(dmar_ctx) link; /* Member in the dmar list */ argument
160 LIST_HEAD(, dmar_ctx) contexts;
218 int ctx_set_agaw(struct dmar_ctx *ctx, int mgaw);
222 int ctx_is_sp_lvl(struct dmar_ctx *ctx, int lvl);
224 dmar_gaddr_t ctx_page_size(struct dmar_ctx *ctx, int lvl);
255 void dmar_qi_invalidate_locked(struct dmar_ctx *ctx, dmar_gaddr_t start,
260 vm_object_t ctx_get_idmap_pgtbl(struct dmar_ctx *ctx, dmar_gaddr_t maxaddr);
262 int ctx_map_buf(struct dmar_ctx *ctx, dmar_gaddr_t base, dmar_gaddr_t size,
[all …]
HDintel_ctx.c106 dmar_map_ctx_entry(struct dmar_ctx *ctx, struct sf_buf **sfp) in dmar_map_ctx_entry()
117 ctx_tag_init(struct dmar_ctx *ctx, device_t dev) in ctx_tag_init()
136 ctx_id_entry_init(struct dmar_ctx *ctx, dmar_ctx_entry_t *ctxp) in ctx_id_entry_init()
166 ctx_init_rmrr(struct dmar_ctx *ctx, device_t dev) in ctx_init_rmrr()
236 static struct dmar_ctx *
239 struct dmar_ctx *ctx; in dmar_get_ctx_alloc()
252 dmar_ctx_dtr(struct dmar_ctx *ctx, bool gas_inited, bool pgtbl_inited) in dmar_ctx_dtr()
269 struct dmar_ctx *
273 struct dmar_ctx *ctx, *ctx1; in dmar_get_ctx()
442 dmar_free_ctx_locked(struct dmar_unit *dmar, struct dmar_ctx *ctx) in dmar_free_ctx_locked()
[all …]
HDintel_idpgtbl.c68 static int ctx_unmap_buf_locked(struct dmar_ctx *ctx, dmar_gaddr_t base,
162 ctx_get_idmap_pgtbl(struct dmar_ctx *ctx, dmar_gaddr_t maxaddr) in ctx_get_idmap_pgtbl()
322 ctx_pgtbl_pte_off(struct dmar_ctx *ctx, dmar_gaddr_t base, int lvl) in ctx_pgtbl_pte_off()
335 ctx_pgtbl_get_pindex(struct dmar_ctx *ctx, dmar_gaddr_t base, int lvl) in ctx_pgtbl_get_pindex()
348 ctx_pgtbl_map_pte(struct dmar_ctx *ctx, dmar_gaddr_t base, int lvl, int flags, in ctx_pgtbl_map_pte()
413 ctx_map_buf_locked(struct dmar_ctx *ctx, dmar_gaddr_t base, dmar_gaddr_t size, in ctx_map_buf_locked()
490 ctx_map_buf(struct dmar_ctx *ctx, dmar_gaddr_t base, dmar_gaddr_t size, in ctx_map_buf()
549 static void ctx_unmap_clear_pte(struct dmar_ctx *ctx, dmar_gaddr_t base,
553 ctx_free_pgtbl_pde(struct dmar_ctx *ctx, dmar_gaddr_t base, int lvl, int flags) in ctx_free_pgtbl_pde()
565 ctx_unmap_clear_pte(struct dmar_ctx *ctx, dmar_gaddr_t base, int lvl, in ctx_unmap_clear_pte()
[all …]
HDintel_gas.c86 dmar_gas_alloc_entry(struct dmar_ctx *ctx, u_int flags) in dmar_gas_alloc_entry()
103 dmar_gas_free_entry(struct dmar_ctx *ctx, struct dmar_map_entry *entry) in dmar_gas_free_entry()
160 dmar_gas_fix_free(struct dmar_ctx *ctx, struct dmar_map_entry *entry) in dmar_gas_fix_free()
172 dmar_gas_check_free(struct dmar_ctx *ctx) in dmar_gas_check_free()
208 dmar_gas_rb_insert(struct dmar_ctx *ctx, struct dmar_map_entry *entry) in dmar_gas_rb_insert()
221 dmar_gas_rb_remove(struct dmar_ctx *ctx, struct dmar_map_entry *entry) in dmar_gas_rb_remove()
232 dmar_gas_init_ctx(struct dmar_ctx *ctx) in dmar_gas_init_ctx()
261 dmar_gas_fini_ctx(struct dmar_ctx *ctx) in dmar_gas_fini_ctx()
294 struct dmar_ctx *ctx;
470 dmar_gas_find_space(struct dmar_ctx *ctx, in dmar_gas_find_space()
[all …]
HDbusdma_dmar.c207 struct dmar_ctx *
211 struct dmar_ctx *ctx; in dmar_instantiate_ctx()
251 struct dmar_ctx *ctx; in dmar_get_dma_tag()
456 struct dmar_ctx *ctx; in dmar_bus_dmamap_load_something1()
558 struct dmar_ctx *ctx; in dmar_bus_dmamap_load_something()
763 struct dmar_ctx *ctx; in dmar_bus_dmamap_unload()
HDbusdma_dmar.h40 struct dmar_ctx *ctx;
HDintel_utils.c117 ctx_set_agaw(struct dmar_ctx *ctx, int mgaw) in ctx_set_agaw()
192 ctx_is_sp_lvl(struct dmar_ctx *ctx, int lvl) in ctx_is_sp_lvl()
230 ctx_page_size(struct dmar_ctx *ctx, int lvl) in ctx_page_size()
HDintel_drv.c767 struct dmar_ctx *ctx;
827 dmar_ctx_parse_rmrr(struct dmar_ctx *ctx, device_t dev, in dmar_ctx_parse_rmrr()
1002 dmar_print_ctx(struct dmar_ctx *ctx, bool show_mappings) in dmar_print_ctx()
1033 DB_FUNC(dmar_ctx, db_dmar_print_ctx, db_show_table, CS_OWN, NULL) in DB_FUNC() argument
1036 struct dmar_ctx *ctx; in DB_FUNC()
1100 struct dmar_ctx *ctx; in dmar_print_one()
HDintel_fault.c191 struct dmar_ctx *ctx; in dmar_fault_task()
HDintel_qi.c214 dmar_qi_invalidate_locked(struct dmar_ctx *ctx, dmar_gaddr_t base, in dmar_qi_invalidate_locked()