Searched refs:ctx_offset (Results 1 – 1 of 1) sorted by relevance
39 u32 ctx_offset = 0; in sub_alloc() local55 ctx_offset = heap_nr * ctx_alloc->heap_context_size_aligned; in sub_alloc()56 heap_gpu_va = ctx_alloc->gpu_va + ctx_offset; in sub_alloc()123 u32 ctx_offset = 0; in sub_free() local134 ctx_offset = (u32)(heap_gpu_va - ctx_alloc->gpu_va); in sub_free()136 if (WARN_ON(ctx_offset >= (ctx_alloc->region->nr_pages << PAGE_SHIFT)) || in sub_free()137 WARN_ON(ctx_offset % ctx_alloc->heap_context_size_aligned)) in sub_free()142 heap_nr = ctx_offset / ctx_alloc->heap_context_size_aligned; in sub_free()