Home
last modified time | relevance | path

Searched refs:op_ctx (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_mmu.c1473 pvr_page_table_l2_insert(struct pvr_mmu_op_context *op_ctx, in pvr_page_table_l2_insert() argument
1477 &op_ctx->mmu_ctx->page_table_l2; in pvr_page_table_l2_insert()
1480 op_ctx->curr_page.l2_idx); in pvr_page_table_l2_insert()
1486 child_table->parent_idx = op_ctx->curr_page.l2_idx; in pvr_page_table_l2_insert()
1487 l2_table->entries[op_ctx->curr_page.l2_idx] = child_table; in pvr_page_table_l2_insert()
1489 op_ctx->curr_page.l1_table = child_table; in pvr_page_table_l2_insert()
1501 pvr_page_table_l2_remove(struct pvr_mmu_op_context *op_ctx) in pvr_page_table_l2_remove() argument
1504 &op_ctx->mmu_ctx->page_table_l2; in pvr_page_table_l2_remove()
1507 op_ctx->curr_page.l1_table->parent_idx); in pvr_page_table_l2_remove()
1509 WARN_ON(op_ctx->curr_page.l1_table->parent != l2_table); in pvr_page_table_l2_remove()
[all …]
Dpvr_mmu.h99 void pvr_mmu_op_context_destroy(struct pvr_mmu_op_context *op_ctx);
104 int pvr_mmu_map(struct pvr_mmu_op_context *op_ctx, u64 size, u64 flags,
106 int pvr_mmu_unmap(struct pvr_mmu_op_context *op_ctx, u64 device_addr, u64 size);
Dpvr_vm.c346 pvr_vm_gpuva_map(struct drm_gpuva_op *op, void *op_ctx) in pvr_vm_gpuva_map() argument
349 struct pvr_vm_bind_op *ctx = op_ctx; in pvr_vm_gpuva_map()
380 pvr_vm_gpuva_unmap(struct drm_gpuva_op *op, void *op_ctx) in pvr_vm_gpuva_unmap() argument
382 struct pvr_vm_bind_op *ctx = op_ctx; in pvr_vm_gpuva_unmap()
411 pvr_vm_gpuva_remap(struct drm_gpuva_op *op, void *op_ctx) in pvr_vm_gpuva_remap() argument
413 struct pvr_vm_bind_op *ctx = op_ctx; in pvr_vm_gpuva_remap()
/linux-6.12.1/drivers/gpu/drm/panthor/
Dpanthor_mmu.c286 struct panthor_vm_op_ctx *op_ctx; member
444 drm_WARN_ON(&vm->ptdev->base, vm->op_ctx); in alloc_pt()
461 if (drm_WARN_ON(&vm->ptdev->base, !vm->op_ctx) || in alloc_pt()
463 vm->op_ctx->rsvd_page_tables.ptr >= vm->op_ctx->rsvd_page_tables.count)) in alloc_pt()
466 page = vm->op_ctx->rsvd_page_tables.pages[vm->op_ctx->rsvd_page_tables.ptr++]; in alloc_pt()
1112 static void panthor_vm_cleanup_op_ctx(struct panthor_vm_op_ctx *op_ctx, in panthor_vm_cleanup_op_ctx() argument
1117 u32 remaining_pt_count = op_ctx->rsvd_page_tables.count - in panthor_vm_cleanup_op_ctx()
1118 op_ctx->rsvd_page_tables.ptr; in panthor_vm_cleanup_op_ctx()
1122 op_ctx->rsvd_page_tables.pages + in panthor_vm_cleanup_op_ctx()
1123 op_ctx->rsvd_page_tables.ptr); in panthor_vm_cleanup_op_ctx()
[all …]