| /linux/drivers/gpu/drm/amd/display/dc/bios/ |
| H A D | bios_parser_interface.c | 35 struct dc_bios *dal_bios_parser_create( in dal_bios_parser_create() 39 struct dc_bios *bios = NULL; in dal_bios_parser_create() 50 void dal_bios_parser_destroy(struct dc_bios **dcb) in dal_bios_parser_destroy() 52 struct dc_bios *bios = *dcb; in dal_bios_parser_destroy()
|
| H A D | bios_parser_types_internal2.h | 56 struct dc_bios base; 72 #define BP_FROM_DCB(dc_bios) \ argument 73 container_of(dc_bios, struct bios_parser, base)
|
| H A D | bios_parser_types_internal.h | 54 struct dc_bios base; 69 #define BP_FROM_DCB(dc_bios) \ argument 70 container_of(dc_bios, struct bios_parser, base)
|
| H A D | bios_parser.c | 87 struct dc_bios *dcb); 90 struct dc_bios *dcb, 95 struct dc_bios *bios_parser_create( in bios_parser_create() 119 static void bios_parser_destroy(struct dc_bios **dcb) in bios_parser_destroy() 150 static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) in bios_parser_get_connectors_number() 159 struct dc_bios *dcb, in bios_parser_get_connector_id() 187 static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb, in bios_parser_get_src_obj() 216 static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb, in bios_parser_get_i2c_info() 262 static enum bp_result bios_parser_get_hpd_info(struct dc_bios *dcb, in bios_parser_get_hpd_info() 327 struct dc_bios *dcb, in bios_parser_get_device_tag() [all …]
|
| H A D | bios_parser2.c | 58 struct dc_bios *dcb, 62 struct dc_bios *dcb, 100 static void firmware_parser_destroy(struct dc_bios **dcb) in firmware_parser_destroy() 138 static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) in bios_parser_get_connectors_number() 164 struct dc_bios *dcb, in bios_parser_get_connector_id() 204 static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb, in bios_parser_get_src_obj() 385 static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb, in bios_parser_get_i2c_info() 562 struct dc_bios *dcb, in bios_parser_get_hpd_info() 654 struct dc_bios *dcb, in bios_parser_get_gpio_pin_info() 763 struct dc_bios *dcb, in bios_parser_get_device_tag() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dce/ |
| H A D | dce_i2c.c | 35 struct dc_bios *dcb = dc->ctx->dc_bios; in dce_i2c_oem_device_present() 39 if (!dc->ctx->dc_bios->fw_info.oem_i2c_present) in dce_i2c_oem_device_present() 42 id.id = dc->ctx->dc_bios->fw_info.oem_i2c_obj_id; in dce_i2c_oem_device_present()
|
| H A D | dce_clk_mgr.c | 252 struct dc_bios *bp = clk_mgr->ctx->dc_bios; in dce_set_clock() 292 struct dc_bios *bp = clk_mgr->ctx->dc_bios; in dce112_set_clock() 346 struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios; in dce_clock_read_integrated_info() 403 struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios; in dce_clock_read_ss_info() 473 struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios; in dce121_clock_patch_xgmi_ss_info()
|
| H A D | dce_link_encoder.c | 130 struct dc_bios *bp = enc110->base.ctx->dc_bios; in link_transmitter_control() 142 struct dc_bios *bios = link_enc->base.ctx->dc_bios; in link_dac_encoder_control() 838 if (enc110->base.ctx->dc_bios->fw_info_valid && in dce110_link_encoder_validate_rgb_output() 839 enc110->base.ctx->dc_bios->fw_info.max_pixel_clock) { in dce110_link_encoder_validate_rgb_output() 841 enc110->base.ctx->dc_bios->fw_info.max_pixel_clock; in dce110_link_encoder_validate_rgb_output() 865 const struct dc_vbios_funcs *bp_funcs = init_data->ctx->dc_bios->funcs; in dce110_link_encoder_construct() 959 result = bp_funcs->get_encoder_cap_info(enc110->base.ctx->dc_bios, in dce110_link_encoder_construct() 1867 const struct dc_vbios_funcs *bp_funcs = init_data->ctx->dc_bios->funcs; in dce60_link_encoder_construct() 1961 result = bp_funcs->get_encoder_cap_info(enc110->base.ctx->dc_bios, in dce60_link_encoder_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
| H A D | dce112_clk_mgr.c | 74 struct dc_bios *bp = clk_mgr_base->ctx->dc_bios; in dce112_set_clock() 127 struct dc_bios *bp = clk_mgr->base.ctx->dc_bios; in dce112_set_dispclk() 168 struct dc_bios *bp = clk_mgr->base.ctx->dc_bios; in dce112_set_dprefclk()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/ |
| H A D | dcn302_resource.c | 420 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn302_stream_encoder_create() 445 static struct clock_source *dcn302_clock_source_create(struct dc_context *ctx, struct dc_bios *bios, in dcn302_clock_source_create() 976 if (dc->ctx->dc_bios->funcs->get_soc_bb_info) { in init_soc_bounding_box() 979 if (dc->ctx->dc_bios->funcs->get_soc_bb_info( in init_soc_bounding_box() 980 dc->ctx->dc_bios, &bb_info) == BP_RESULT_OK) { in init_soc_bounding_box() 1211 ctx->dc_bios->regs = &bios_regs; in dcn302_resource_construct() 1231 …dc->caps.mall_size_total = dc->caps.mall_size_per_mem_channel * dc->ctx->dc_bios->vram_info.num_ch… in dcn302_resource_construct() 1280 if (ctx->dc_bios->funcs->get_lttpr_caps) { in dcn302_resource_construct() 1284 bp_query_result = ctx->dc_bios->funcs->get_lttpr_caps(ctx->dc_bios, &is_vbios_lttpr_enable); in dcn302_resource_construct() 1288 if (ctx->dc_bios->funcs->get_lttpr_interop) { in dcn302_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/ |
| H A D | dcn303_resource.c | 407 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create() 429 static struct clock_source *dcn303_clock_source_create(struct dc_context *ctx, struct dc_bios *bios, in dcn303_clock_source_create() 921 if (dc->ctx->dc_bios->funcs->get_soc_bb_info) { in init_soc_bounding_box() 924 if (dc->ctx->dc_bios->funcs->get_soc_bb_info( in init_soc_bounding_box() 925 dc->ctx->dc_bios, &bb_info) == BP_RESULT_OK) { in init_soc_bounding_box() 1152 ctx->dc_bios->regs = &bios_regs; in dcn303_resource_construct() 1173 dc->ctx->dc_bios->vram_info.num_chans * in dcn303_resource_construct() 1225 if (ctx->dc_bios->funcs->get_lttpr_caps) { in dcn303_resource_construct() 1229 bp_query_result = ctx->dc_bios->funcs->get_lttpr_caps(ctx->dc_bios, &is_vbios_lttpr_enable); in dcn303_resource_construct() 1233 if (ctx->dc_bios->funcs->get_lttpr_interop) { in dcn303_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/virtual/ |
| H A D | virtual_stream_encoder.h | 32 struct dc_context *ctx, struct dc_bios *bp); 37 struct dc_bios *bp);
|
| H A D | virtual_stream_encoder.c | 144 struct dc_bios *bp) in virtual_stream_encoder_construct() 160 struct dc_context *ctx, struct dc_bios *bp) in virtual_stream_encoder_create()
|
| /linux/drivers/gpu/drm/amd/display/include/ |
| H A D | bios_parser_interface.h | 38 struct dc_bios *dal_bios_parser_create( 42 void dal_bios_parser_destroy(struct dc_bios **dcb);
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn301/ |
| H A D | dcn301_resource.c | 1010 dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, in dcn301_stream_encoder_create() 1251 struct dc_bios *bios, in dcn301_clock_source_create() 1307 if (dc->ctx->dc_bios->funcs->get_soc_bb_info) { in init_soc_bounding_box() 1310 if (dc->ctx->dc_bios->funcs->get_soc_bb_info(dc->ctx->dc_bios, &bb_info) == BP_RESULT_OK) { in init_soc_bounding_box() 1419 ctx->dc_bios->regs = &bios_regs; in dcn301_resource_construct() 1485 if (ctx->dc_bios->funcs->get_lttpr_caps) { in dcn301_resource_construct() 1489 bp_query_result = ctx->dc_bios->funcs->get_lttpr_caps(ctx->dc_bios, &is_vbios_lttpr_enable); in dcn301_resource_construct() 1493 if (ctx->dc_bios->funcs->get_lttpr_interop) { in dcn301_resource_construct() 1497 bp_query_result = ctx->dc_bios->funcs->get_lttpr_interop(ctx->dc_bios, &is_vbios_interop_enabled); in dcn301_resource_construct() 1515 dcn301_clock_source_create(ctx, ctx->dc_bios, in dcn301_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce120/ |
| H A D | dce120_resource.c | 539 struct dc_bios *bios, in dce120_clock_source_create() 777 dce110_stream_encoder_construct(enc110, ctx, ctx->dc_bios, eng_id, in dce120_stream_encoder_create() 1075 ctx->dc_bios->regs = &bios_regs; in dce120_resource_construct() 1101 dce120_clock_source_create(ctx, ctx->dc_bios, in dce120_resource_construct() 1105 dce120_clock_source_create(ctx, ctx->dc_bios, in dce120_resource_construct() 1109 dce120_clock_source_create(ctx, ctx->dc_bios, in dce120_resource_construct() 1113 dce120_clock_source_create(ctx, ctx->dc_bios, in dce120_resource_construct() 1117 dce120_clock_source_create(ctx, ctx->dc_bios, in dce120_resource_construct() 1121 dce120_clock_source_create(ctx, ctx->dc_bios, in dce120_resource_construct() 1127 dce120_clock_source_create(ctx, ctx->dc_bios, in dce120_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/link/ |
| H A D | link_factory.c | 445 struct dc_bios *bp = link->ctx->dc_bios; in find_analog_engine() 483 struct dc_bios *bios = init_params->dc->ctx->dc_bios; in construct_phy() 567 enc_init_data.hpd_gpio = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in construct_phy() 583 …if (link->ctx->dc_bios->funcs->get_hpd_info(link->ctx->dc_bios, link->link_id, &hpd_info) == BP_RE… in construct_phy() 724 if (bp_funcs->get_device_tag(dc_ctx->dc_bios, in construct_phy() 734 if (!bp_funcs->is_device_id_supported(dc_ctx->dc_bios, in construct_phy()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce80/ |
| H A D | dce80_resource.c | 618 dce110_analog_stream_encoder_construct(enc110, ctx, ctx->dc_bios, eng_id, in dce80_stream_encoder_create() 623 dce110_stream_encoder_construct(enc110, ctx, ctx->dc_bios, eng_id, in dce80_stream_encoder_create() 789 struct dc_bios *bios, in dce80_clock_source_create() 928 struct dc_bios *bp; in dce80_construct() 930 ctx->dc_bios->regs = &bios_regs; in dce80_construct() 956 bp = ctx->dc_bios; in dce80_construct() 1131 struct dc_bios *bp; in dce81_construct() 1133 ctx->dc_bios->regs = &bios_regs; in dce81_construct() 1156 bp = ctx->dc_bios; in dce81_construct() 1331 struct dc_bios *bp; in dce83_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce60/ |
| H A D | dce60_resource.c | 612 dce110_analog_stream_encoder_construct(enc110, ctx, ctx->dc_bios, eng_id, in dce60_stream_encoder_create() 617 dce110_stream_encoder_construct(enc110, ctx, ctx->dc_bios, eng_id, in dce60_stream_encoder_create() 783 struct dc_bios *bios, in dce60_clock_source_create() 922 struct dc_bios *bp; in dce60_construct() 924 ctx->dc_bios->regs = &bios_regs; in dce60_construct() 946 bp = ctx->dc_bios; in dce60_construct() 1120 struct dc_bios *bp; in dce61_construct() 1122 ctx->dc_bios->regs = &bios_regs; in dce61_construct() 1143 bp = ctx->dc_bios; in dce61_construct() 1318 struct dc_bios *bp; in dce64_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/ |
| H A D | dcn30_resource.c | 1039 dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, in dcn30_stream_encoder_create() 1296 struct dc_bios *bios, in dcn30_clock_source_create() 2115 if (dc->ctx->dc_bios->vram_info.num_chans) in dcn30_update_bw_bounding_box() 2116 dcn3_0_soc.num_chans = dc->ctx->dc_bios->vram_info.num_chans; in dcn30_update_bw_bounding_box() 2288 ctx->dc_bios->regs = &bios_regs; in dcn30_resource_construct() 2308 …dc->caps.mall_size_total = dc->caps.mall_size_per_mem_channel * dc->ctx->dc_bios->vram_info.num_ch… in dcn30_resource_construct() 2359 if (ctx->dc_bios->funcs->get_lttpr_caps) { in dcn30_resource_construct() 2363 bp_query_result = ctx->dc_bios->funcs->get_lttpr_caps(ctx->dc_bios, &is_vbios_lttpr_enable); in dcn30_resource_construct() 2367 if (ctx->dc_bios->funcs->get_lttpr_interop) { in dcn30_resource_construct() 2371 bp_query_result = ctx->dc_bios->funcs->get_lttpr_interop(ctx->dc_bios, in dcn30_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/ |
| H A D | dce120_clk_mgr.c | 60 struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios; in dce121_clock_patch_xgmi_ss_info()
|
| /linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
| H A D | link_hpd.c | 109 struct gpio *link_get_hpd_gpio(struct dc_bios *dcb, in link_get_hpd_gpio() 141 hpd = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in get_hpd_line()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn321/ |
| H A D | dcn321_resource.c | 808 struct dc_bios *bios, in dcn321_clock_source_create() 1218 dcn32_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, in dcn321_stream_encoder_create() 1275 dcn31_hpo_dp_stream_encoder_construct(hpo_dp_enc31, ctx, ctx->dc_bios, in dcn321_hpo_dp_stream_encoder_create() 1669 ctx->dc_bios->regs = &bios_regs; in dcn321_resource_construct() 1711 …dc->caps.mall_size_total = dc->caps.mall_size_per_mem_channel * dc->ctx->dc_bios->vram_info.num_ch… in dcn321_resource_construct() 1719 dc, dc->ctx->dc_bios->vram_info.num_chans) * in dcn321_resource_construct() 1786 if (ctx->dc_bios->funcs->get_lttpr_caps) { in dcn321_resource_construct() 1790 bp_query_result = ctx->dc_bios->funcs->get_lttpr_caps(ctx->dc_bios, &is_vbios_lttpr_enable); in dcn321_resource_construct() 1814 dcn321_clock_source_create(ctx, ctx->dc_bios, in dcn321_resource_construct() 1818 dcn321_clock_source_create(ctx, ctx->dc_bios, in dcn321_resource_construct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce112/ |
| H A D | dce112_resource.c | 519 dce110_stream_encoder_construct(enc110, ctx, ctx->dc_bios, eng_id, in dce112_stream_encoder_create() 752 struct dc_bios *bios, in dce112_clock_source_create() 1234 ctx->dc_bios->regs = &bios_regs; in dce112_resource_construct() 1261 ctx, ctx->dc_bios, in dce112_resource_construct() 1266 ctx, ctx->dc_bios, in dce112_resource_construct() 1271 ctx, ctx->dc_bios, in dce112_resource_construct() 1276 ctx, ctx->dc_bios, in dce112_resource_construct() 1281 ctx, ctx->dc_bios, in dce112_resource_construct() 1286 ctx, ctx->dc_bios, in dce112_resource_construct() 1292 ctx, ctx->dc_bios, in dce112_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
| H A D | dcn31_resource.c | 1247 dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, in dcn31_stream_encoder_create() 1297 dcn31_hpo_dp_stream_encoder_construct(hpo_dp_enc31, ctx, ctx->dc_bios, in dcn31_hpo_dp_stream_encoder_create() 1588 struct dc_bios *bios, in dcn31_clock_source_create() 1859 struct dc_bios *bios, in dcn30_clock_source_create() 1890 ctx->dc_bios->regs = &bios_regs; in dcn31_resource_construct() 1967 if (ctx->dc_bios->funcs->get_lttpr_caps) { in dcn31_resource_construct() 1971 bp_query_result = ctx->dc_bios->funcs->get_lttpr_caps(ctx->dc_bios, &is_vbios_lttpr_enable); in dcn31_resource_construct() 1995 dcn30_clock_source_create(ctx, ctx->dc_bios, in dcn31_resource_construct() 1999 dcn30_clock_source_create(ctx, ctx->dc_bios, in dcn31_resource_construct() 2005 dcn30_clock_source_create(ctx, ctx->dc_bios, in dcn31_resource_construct() [all …]
|