/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_atomfirmware.c | 52 u8 frev, crev; in amdgpu_atomfirmware_query_firmware_capability() local 59 index, &size, &frev, &crev, &data_offset)) { in amdgpu_atomfirmware_query_firmware_capability() 61 if ((frev == 3 && crev >= 1) || (frev > 3)) { in amdgpu_atomfirmware_query_firmware_capability() 180 u8 frev, crev; in amdgpu_atomfirmware_allocate_fb_scratch() local 183 if (amdgpu_atom_parse_data_header(ctx, index, NULL, &frev, &crev, &data_offset)) { in amdgpu_atomfirmware_allocate_fb_scratch() 184 if (frev == 2 && crev == 1) { in amdgpu_atomfirmware_allocate_fb_scratch() 190 } else if (frev >= 2 && crev >= 2) { in amdgpu_atomfirmware_allocate_fb_scratch() 304 u8 frev, crev; in amdgpu_atomfirmware_get_vram_info() local 320 &frev, &crev, &data_offset)) { in amdgpu_atomfirmware_get_vram_info() 324 switch (frev) { in amdgpu_atomfirmware_get_vram_info() [all …]
|
H A D | amdgpu_atombios.c | 270 u8 frev, crev; in amdgpu_atombios_has_dce_engine_info() local 274 if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset)) in amdgpu_atombios_has_dce_engine_info() 297 u8 frev, crev; in amdgpu_atombios_get_connector_info_from_object_table() local 311 if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset)) in amdgpu_atombios_get_connector_info_from_object_table() 562 uint8_t frev, crev; in amdgpu_atombios_get_clock_info() local 567 &frev, &crev, &data_offset)) { in amdgpu_atombios_get_clock_info() 716 uint8_t frev, crev; in amdgpu_atombios_get_gfx_info() local 721 &frev, &crev, &data_offset)) { in amdgpu_atombios_get_gfx_info() 757 u8 frev, crev; in amdgpu_atombios_get_vram_width() local 761 &frev, &crev, &data_offset)) { in amdgpu_atombios_get_vram_width() [all …]
|
H A D | atombios_crtc.c | 320 u8 frev, crev; in amdgpu_atombios_crtc_adjust_pll() local 379 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, in amdgpu_atombios_crtc_adjust_pll() 385 switch (frev) { in amdgpu_atombios_crtc_adjust_pll() 445 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in amdgpu_atombios_crtc_adjust_pll() 450 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in amdgpu_atombios_crtc_adjust_pll() 473 u8 frev, crev; in amdgpu_atombios_crtc_set_disp_eng_pll() local 480 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, in amdgpu_atombios_crtc_set_disp_eng_pll() 484 switch (frev) { in amdgpu_atombios_crtc_set_disp_eng_pll() 509 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in amdgpu_atombios_crtc_set_disp_eng_pll() 514 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in amdgpu_atombios_crtc_set_disp_eng_pll() [all …]
|
H A D | atombios_encoders.c | 383 uint8_t frev, crev; in amdgpu_atombios_encoder_setup_dvo() local 387 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dvo() 390 switch (frev) { in amdgpu_atombios_encoder_setup_dvo() 426 DRM_ERROR("Unknown table version %d, %d\n", frev, crev); in amdgpu_atombios_encoder_setup_dvo() 431 DRM_ERROR("Unknown table version %d, %d\n", frev, crev); in amdgpu_atombios_encoder_setup_dvo() 570 uint8_t frev, crev; in amdgpu_atombios_encoder_setup_dig_encoder() local 591 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dig_encoder() 594 switch (frev) { in amdgpu_atombios_encoder_setup_dig_encoder() 726 DRM_ERROR("Unknown table version %d, %d\n", frev, crev); in amdgpu_atombios_encoder_setup_dig_encoder() 731 DRM_ERROR("Unknown table version %d, %d\n", frev, crev); in amdgpu_atombios_encoder_setup_dig_encoder() [all …]
|
H A D | atom.h | 163 uint8_t *frev, uint8_t *crev, uint16_t *data_start); 165 uint8_t *frev, uint8_t *crev);
|
H A D | atom.c | 1555 uint16_t *size, uint8_t *frev, uint8_t *crev, in amdgpu_atom_parse_data_header() argument 1567 if (frev) in amdgpu_atom_parse_data_header() 1568 *frev = CU8(idx + 2); in amdgpu_atom_parse_data_header() 1575 bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t *frev, in amdgpu_atom_parse_cmd_header() argument 1585 if (frev) in amdgpu_atom_parse_cmd_header() 1586 *frev = CU8(idx + 2); in amdgpu_atom_parse_cmd_header()
|
H A D | amdgpu_atombios.h | 211 uint8_t *frev,
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_atombios.c | 523 u8 frev, crev; in radeon_get_atom_connector_info_from_object_table() local 537 if (!atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset)) in radeon_get_atom_connector_info_from_object_table() 592 if (atom_parse_data_header(ctx, index, &size, &frev, in radeon_get_atom_connector_info_from_object_table() 848 uint8_t frev, crev; in atombios_get_connector_object_id() local 851 if (atom_parse_data_header(ctx, index, &size, &frev, &crev, &data_offset)) { in atombios_get_connector_object_id() 892 uint8_t frev, crev; in radeon_get_atom_connector_info_from_supported_devices_table() local 908 if (!atom_parse_data_header(ctx, index, &size, &frev, &crev, in radeon_get_atom_connector_info_from_supported_devices_table() 919 if (frev > 1) in radeon_get_atom_connector_info_from_supported_devices_table() 927 if (frev > 1) in radeon_get_atom_connector_info_from_supported_devices_table() 972 if ((crev > 1) && (frev > 1)) { in radeon_get_atom_connector_info_from_supported_devices_table() [all …]
|
H A D | atombios_encoders.c | 492 uint8_t frev, crev; in atombios_dvo_setup() local 496 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_dvo_setup() 501 frev = 1; in atombios_dvo_setup() 503 switch (frev) { in atombios_dvo_setup() 539 DRM_ERROR("Unknown table version %d, %d\n", frev, crev); in atombios_dvo_setup() 544 DRM_ERROR("Unknown table version %d, %d\n", frev, crev); in atombios_dvo_setup() 566 uint8_t frev, crev; in atombios_digital_setup() local 592 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_digital_setup() 595 switch (frev) { in atombios_digital_setup() 657 DRM_ERROR("Unknown table version %d, %d\n", frev, crev); in atombios_digital_setup() [all …]
|
H A D | atom.h | 153 uint8_t *frev, uint8_t *crev, uint16_t *data_start); 155 uint8_t *frev, uint8_t *crev);
|
H A D | atombios_crtc.c | 672 u8 frev, crev; in atombios_adjust_pll() local 676 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, in atombios_adjust_pll() 682 switch (frev) { in atombios_adjust_pll() 742 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in atombios_adjust_pll() 747 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in atombios_adjust_pll() 769 u8 frev, crev; in atombios_crtc_set_disp_eng_pll() local 776 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, in atombios_crtc_set_disp_eng_pll() 780 switch (frev) { in atombios_crtc_set_disp_eng_pll() 804 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in atombios_crtc_set_disp_eng_pll() 809 DRM_ERROR("Unknown table version %d %d\n", frev, crev); in atombios_crtc_set_disp_eng_pll() [all …]
|
H A D | atom.c | 1358 uint16_t *size, uint8_t *frev, uint8_t *crev, in atom_parse_data_header() argument 1370 if (frev) in atom_parse_data_header() 1371 *frev = CU8(idx + 2); in atom_parse_data_header() 1378 bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t *frev, in atom_parse_cmd_header() argument 1388 if (frev) in atom_parse_cmd_header() 1389 *frev = CU8(idx + 2); in atom_parse_cmd_header()
|
H A D | rs780_dpm.c | 799 u8 frev, crev; in rs780_parse_power_table() local 803 &frev, &crev, &data_offset)) in rs780_parse_power_table() 853 u8 frev, crev; in rs780_dpm_init() local 873 &frev, &crev, &data_offset)) { in rs780_dpm_init()
|
H A D | atombios_dp.c | 795 u8 tmp, frev, crev; in radeon_dp_link_train() local 816 if (atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) { in radeon_dp_link_train()
|
H A D | trinity_dpm.c | 1698 u8 frev, crev; in trinity_parse_power_table() local 1703 &frev, &crev, &data_offset)) in trinity_parse_power_table() 1810 u8 frev, crev; in trinity_parse_sys_info_table() local 1815 &frev, &crev, &data_offset)) { in trinity_parse_sys_info_table() 1820 DRM_ERROR("Unsupported IGP table: %d %d\n", frev, crev); in trinity_parse_sys_info_table()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomctrl.c | 141 u8 frev, crev; in atomctrl_initialize_mc_reg_table() local 146 GetIndexIntoMasterTable(DATA, VRAM_Info), &size, &frev, &crev); in atomctrl_initialize_mc_reg_table() 178 u8 frev, crev; in atomctrl_initialize_mc_reg_table_v2_2() local 183 GetIndexIntoMasterTable(DATA, VRAM_Info), &size, &frev, &crev); in atomctrl_initialize_mc_reg_table_v2_2() 242 u8 frev, crev; in get_voltage_info_table() local 248 &size, &frev, &crev); in get_voltage_info_table() 524 u8 frev, crev; in atomctrl_get_reference_clock() local 531 &size, &frev, &crev); in atomctrl_get_reference_clock() 644 u8 frev, crev; in get_gpio_lookup_table() local 651 &size, &frev, &crev); in get_gpio_lookup_table() [all …]
|
H A D | vega12_processpptables.c | 48 u8 frev, crev; in get_powerplay_table() local 54 &size, &frev, &crev); in get_powerplay_table()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | command_table2.c | 54 #define BIOS_CMD_TABLE_REVISION(fname, frev, crev)\ argument 56 GET_INDEX_INTO_MASTER_TABLE(command, fname), &frev, &crev) 68 uint8_t frev, crev; in bios_cmd_table_para_revision() local 72 &frev, &crev)) in bios_cmd_table_para_revision() 227 uint8_t frev; in init_transmitter_control() local 230 BIOS_CMD_TABLE_REVISION(dig1transmittercontrol, frev, crev); in init_transmitter_control()
|
H A D | command_table.c | 42 #define BIOS_CMD_TABLE_REVISION(command, frev, crev)\ argument 44 GetIndexIntoMasterTable(COMMAND, command), &frev, &crev) 87 uint8_t frev, crev; in bios_cmd_table_para_revision() local 91 &frev, &crev)) in bios_cmd_table_para_revision() 401 uint8_t frev; in init_transmitter_control() local 405 frev, crev) == false) in init_transmitter_control()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/ |
H A D | smu_cmn.h | 118 void smu_cmn_init_soft_gpu_metrics(void *table, uint8_t frev, uint8_t crev);
|
H A D | smu_cmn.c | 969 void smu_cmn_init_soft_gpu_metrics(void *table, uint8_t frev, uint8_t crev) in smu_cmn_init_soft_gpu_metrics() argument 976 switch (METRICS_VERSION(frev, crev)) { in smu_cmn_init_soft_gpu_metrics() 1012 header->format_revision = frev; in smu_cmn_init_soft_gpu_metrics()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
H A D | smu_v12_0.c | 318 uint8_t frev, crev; in smu_v12_0_get_vbios_bootup_values() local 326 ret = amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev, in smu_v12_0_get_vbios_bootup_values()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | legacy_dpm.c | 165 u8 frev, crev; in amdgpu_get_platform_caps() local 168 &frev, &crev, &data_offset)) in amdgpu_get_platform_caps() 228 u8 frev, crev; in amdgpu_parse_extended_power_table() local 232 &frev, &crev, &data_offset)) in amdgpu_parse_extended_power_table() 682 u8 frev, crev; in amdgpu_add_thermal_controller() local 685 &frev, &crev, &data_offset)) in amdgpu_add_thermal_controller()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
H A D | smu_v13_0.c | 345 uint8_t frev, crev; in smu_v13_0_get_pptable_from_vbios() local 352 ret = amdgpu_atombios_get_data_table(adev, index, &atom_table_size, &frev, &crev, in smu_v13_0_get_pptable_from_vbios() 578 uint8_t frev, crev; in smu_v13_0_get_vbios_bootup_values() local 589 ret = amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev, in smu_v13_0_get_vbios_bootup_values() 652 if (!amdgpu_atombios_get_data_table(smu->adev, index, &size, &frev, &crev, in smu_v13_0_get_vbios_bootup_values() 655 if ((frev == 3) && (crev == 6)) { in smu_v13_0_get_vbios_bootup_values() 662 } else if ((frev == 3) && (crev == 1)) { in smu_v13_0_get_vbios_bootup_values() 664 } else if ((frev == 4) && (crev == 0)) { in smu_v13_0_get_vbios_bootup_values() 674 (uint32_t)frev, (uint32_t)crev); in smu_v13_0_get_vbios_bootup_values()
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_decode.h | 287 bool frev; member
|