• Home
  • Raw
  • Download

Lines Matching refs:dsc

1442 	struct dcn20_dsc *dsc =  in dcn20_dsc_create()  local
1445 if (!dsc) { in dcn20_dsc_create()
1450 dsc2_construct(dsc, ctx, inst, &dsc_regs[inst], &dsc_shift, &dsc_mask); in dcn20_dsc_create()
1451 return &dsc->base; in dcn20_dsc_create()
1454 void dcn20_dsc_destroy(struct display_stream_compressor **dsc) in dcn20_dsc_destroy() argument
1456 kfree(container_of(*dsc, struct dcn20_dsc, base)); in dcn20_dsc_destroy()
1457 *dsc = NULL; in dcn20_dsc_destroy()
1671 struct display_stream_compressor **dsc, in dcn20_acquire_dsc() argument
1676 … display_stream_compressor *dsc_old = dc->current_state->res_ctx.pipe_ctx[pipe_idx].stream_res.dsc; in dcn20_acquire_dsc()
1678 ASSERT(*dsc == NULL); /* If this ASSERT fails, dsc was not released properly */ in dcn20_acquire_dsc()
1679 *dsc = NULL; in dcn20_acquire_dsc()
1683 *dsc = pool->dscs[pipe_idx]; in dcn20_acquire_dsc()
1690 *dsc = dsc_old; in dcn20_acquire_dsc()
1698 *dsc = pool->dscs[i]; in dcn20_acquire_dsc()
1706 struct display_stream_compressor **dsc) in dcn20_release_dsc() argument
1711 if (pool->dscs[i] == *dsc) { in dcn20_release_dsc()
1713 *dsc = NULL; in dcn20_release_dsc()
1734 if (pipe_ctx->stream_res.dsc) in dcn20_add_dsc_to_stream_resource()
1737 dcn20_acquire_dsc(dc, &dc_ctx->res_ctx, &pipe_ctx->stream_res.dsc, i); in dcn20_add_dsc_to_stream_resource()
1740 if (!pipe_ctx->stream_res.dsc) { in dcn20_add_dsc_to_stream_resource()
1762 if (pipe_ctx->stream_res.dsc) in remove_dsc_from_stream_resource()
1763 dcn20_release_dsc(&new_ctx->res_ctx, dc->res_pool, &pipe_ctx->stream_res.dsc); in remove_dsc_from_stream_resource()
1884 next_odm_pipe->stream_res.dsc = NULL; in dcn20_split_stream_for_odm()
1941 dcn20_acquire_dsc(dc, res_ctx, &next_odm_pipe->stream_res.dsc, next_odm_pipe->pipe_idx); in dcn20_split_stream_for_odm()
1942 ASSERT(next_odm_pipe->stream_res.dsc); in dcn20_split_stream_for_odm()
1943 if (next_odm_pipe->stream_res.dsc == NULL) in dcn20_split_stream_for_odm()
1969 secondary_pipe->stream_res.dsc = NULL; in dcn20_split_stream_for_mpc()
2480 if (!pipe_ctx->stream_res.dsc->funcs->dsc_validate_stream(pipe_ctx->stream_res.dsc, &dsc_cfg)) in dcn20_validate_dsc()
2588 if (odm_pipe->stream_res.dsc) in dcn20_merge_pipes_for_validate()
2589 dcn20_release_dsc(&context->res_ctx, dc->res_pool, &odm_pipe->stream_res.dsc); in dcn20_merge_pipes_for_validate()