static void destruct(struct core_dc *dc)
{
- resource_validate_ctx_destruct(dc->current_context);
+ dc_resource_validate_ctx_destruct(dc->current_context);
destroy_links(dc);
result = core_dc->res_pool->funcs->validate_with_context(
core_dc, set, set_count, context);
- resource_validate_ctx_destruct(context);
+ dc_resource_validate_ctx_destruct(context);
dm_free(context);
context_alloc_fail:
result = core_dc->res_pool->funcs->validate_guaranteed(
core_dc, stream, context);
- resource_validate_ctx_destruct(context);
+ dc_resource_validate_ctx_destruct(context);
dm_free(context);
context_alloc_fail:
__func__,
result);
BREAK_TO_DEBUGGER();
- resource_validate_ctx_destruct(context);
+ dc_resource_validate_ctx_destruct(context);
goto fail;
}
context->streams[i]->public.timing.pix_clk_khz);
}
- resource_validate_ctx_destruct(core_dc->current_context);
+ dc_resource_validate_ctx_destruct(core_dc->current_context);
dm_free(core_dc->current_context);
core_dc->current_context = context;
dm_error("%s: failed to create validate ctx\n", __func__);
return false;
}
- resource_validate_ctx_copy_construct(core_dc->current_context, context);
+ dc_resource_validate_ctx_copy_construct(core_dc->current_context, context);
post_surface_trace(dc);
for (i = 0; i < context->res_ctx.pool->pipe_count; i++)
core_dc->hwss.set_bandwidth(core_dc, context, true);
- resource_validate_ctx_copy_construct(context, core_dc->current_context);
+ dc_resource_validate_ctx_copy_construct(context, core_dc->current_context);
- resource_validate_ctx_destruct(context);
+ dc_resource_validate_ctx_destruct(context);
dm_free(context);
return true;
/* initialize scratch memory for building context */
context = dm_alloc(sizeof(*context));
- resource_validate_ctx_copy_construct(
+ dc_resource_validate_ctx_copy_construct(
core_dc->current_context, context);
/* add surface to context */
}
if (core_dc->current_context != context) {
- resource_validate_ctx_destruct(core_dc->current_context);
+ dc_resource_validate_ctx_destruct(core_dc->current_context);
dm_free(core_dc->current_context);
core_dc->current_context = context;
fail:
if (core_dc->current_context != context) {
- resource_validate_ctx_destruct(context);
+ dc_resource_validate_ctx_destruct(context);
dm_free(context);
}
}
const struct validate_context *src_ctx,
struct validate_context *dst_ctx);
-void resource_validate_ctx_copy_construct(
- const struct validate_context *src_ctx,
- struct validate_context *dst_ctx);
-
-void resource_validate_ctx_destruct(struct validate_context *context);
-
enum dc_status resource_map_clock_resources(
const struct core_dc *dc,
struct validate_context *context);