/drivers/gpu/drm/radeon/ |
D | atom.h | 125 struct atom_context { struct 147 struct atom_context *atom_parse(struct card_info *, void *); argument 148 int atom_execute_table(struct atom_context *, int, uint32_t *); 149 int atom_execute_table_scratch_unlocked(struct atom_context *, int, uint32_t *); 150 int atom_asic_init(struct atom_context *); 151 void atom_destroy(struct atom_context *); 152 bool atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size, 154 bool atom_parse_cmd_header(struct atom_context *ctx, int index, 156 int atom_allocate_fb_scratch(struct atom_context *ctx);
|
D | radeon_atombios.c | 132 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_lookup_i2c_gpio() 168 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_atombios_i2c_init() 202 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_atombios_lookup_gpio() 521 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_object_table() 859 struct atom_context *ctx = mode_info->atom_context; in atombios_get_connector_object_id() 903 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_supported_devices_table() 1125 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in radeon_atombios_get_dentist_vco_freq() 1127 igp_info = (union igp_info *)(mode_info->atom_context->bios + in radeon_atombios_get_dentist_vco_freq() 1148 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in radeon_atom_get_clock_info() 1151 (union firmware_info *)(mode_info->atom_context->bios + in radeon_atom_get_clock_info() [all …]
|
D | atombios_i2c.c | 51 mutex_lock(&rdev->mode_info.atom_context->scratch_mutex); in radeon_process_i2c_ch() 53 base = (unsigned char *)rdev->mode_info.atom_context->scratch; in radeon_process_i2c_ch() 86 atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args); in radeon_process_i2c_ch() 99 mutex_unlock(&rdev->mode_info.atom_context->scratch_mutex); in radeon_process_i2c_ch()
|
D | r600_dpm.c | 851 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in r600_get_platform_caps() 854 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_get_platform_caps() 882 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in r600_parse_extended_power_table() 885 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_parse_extended_power_table() 891 fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table() 922 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table() 931 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table() 942 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table() 954 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table() 968 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table() [all …]
|
D | atom.c | 56 struct atom_context *ctx; 66 static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params); 67 int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params); 102 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute() 181 struct atom_context *gctx = ctx->ctx; in atom_get_src_int() 454 struct atom_context *gctx = ctx->ctx; in atom_put_dst() 1159 static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params) in atom_execute_table_locked() 1220 int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t * params) in atom_execute_table_scratch_unlocked() 1241 int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params) in atom_execute_table() 1252 static void atom_index_iio(struct atom_context *ctx, int base) in atom_index_iio() [all …]
|
D | atombios_encoders.c | 112 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level() 115 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level() 117 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level() 394 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dac_setup() 450 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_tv_setup() 499 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_dvo_setup() 551 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dvo_setup() 595 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_digital_setup() 669 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_digital_setup() 880 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_dig_encoder_setup2() [all …]
|
D | atombios_crtc.c | 76 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_overscan_setup() 156 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_scaler_setup() 177 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_lock_crtc() 193 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_enable_crtc() 209 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_enable_crtc_memreq() 241 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_blank_crtc() 261 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_powergate_crtc() 343 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_crtc_dtd_timing() 389 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_crtc_set_timing() 546 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_crtc_program_ss() [all …]
|
D | atombios_dp.c | 101 mutex_lock(&rdev->mode_info.atom_context->scratch_mutex); in radeon_process_aux_ch() 103 base = (unsigned char *)(rdev->mode_info.atom_context->scratch + 1); in radeon_process_aux_ch() 115 atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args); in radeon_process_aux_ch() 149 mutex_unlock(&rdev->mode_info.atom_context->scratch_mutex); in radeon_process_aux_ch() 356 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in radeon_dp_encoder_service() 819 if (atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) { in radeon_dp_link_train()
|
D | radeon_device.c | 768 atom_asic_init(rdev->mode_info.atom_context); in radeon_boot_test_post_card() 1007 rdev->mode_info.atom_context = atom_parse(atom_card_info, rdev->bios); in radeon_atombios_init() 1008 if (!rdev->mode_info.atom_context) { in radeon_atombios_init() 1013 mutex_init(&rdev->mode_info.atom_context->mutex); in radeon_atombios_init() 1014 mutex_init(&rdev->mode_info.atom_context->scratch_mutex); in radeon_atombios_init() 1016 atom_allocate_fb_scratch(rdev->mode_info.atom_context); in radeon_atombios_init() 1031 if (rdev->mode_info.atom_context) { in radeon_atombios_fini() 1032 kfree(rdev->mode_info.atom_context->scratch); in radeon_atombios_fini() 1034 kfree(rdev->mode_info.atom_context); in radeon_atombios_fini() 1035 rdev->mode_info.atom_context = NULL; in radeon_atombios_fini()
|
D | rs780_dpm.c | 802 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in rs780_parse_power_table() 805 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rs780_parse_power_table() 814 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table() 818 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table() 824 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table() 871 if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL, in rs780_dpm_init() 873 info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); in rs780_dpm_init()
|
D | r520.c | 237 atom_asic_init(rdev->mode_info.atom_context); in r520_resume() 288 atom_asic_init(rdev->mode_info.atom_context); in r520_init()
|
D | trinity_dpm.c | 1745 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in trinity_parse_power_table() 1748 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in trinity_parse_power_table() 1751 (mode_info->atom_context->bios + data_offset + in trinity_parse_power_table() 1754 (mode_info->atom_context->bios + data_offset + in trinity_parse_power_table() 1757 (mode_info->atom_context->bios + data_offset + in trinity_parse_power_table() 1854 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in trinity_parse_sys_info_table() 1856 igp_info = (union igp_info *)(mode_info->atom_context->bios + in trinity_parse_sys_info_table()
|
D | sumo_dpm.c | 1470 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in sumo_parse_power_table() 1473 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in sumo_parse_power_table() 1476 (mode_info->atom_context->bios + data_offset + in sumo_parse_power_table() 1479 (mode_info->atom_context->bios + data_offset + in sumo_parse_power_table() 1482 (mode_info->atom_context->bios + data_offset + in sumo_parse_power_table() 1665 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in sumo_parse_sys_info_table() 1667 igp_info = (union igp_info *)(mode_info->atom_context->bios + in sumo_parse_sys_info_table()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atom.h | 125 struct atom_context { struct 146 struct atom_context *amdgpu_atom_parse(struct card_info *, void *); argument 147 int amdgpu_atom_execute_table(struct atom_context *, int, uint32_t *); 148 int amdgpu_atom_asic_init(struct atom_context *); 149 void amdgpu_atom_destroy(struct atom_context *); 150 bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size, 152 bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index, 154 int amdgpu_atom_allocate_fb_scratch(struct atom_context *ctx);
|
D | amdgpu_atombios.c | 90 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_lookup_i2c_gpio() 126 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_i2c_init() 161 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_lookup_gpio() 275 struct atom_context *ctx = mode_info->atom_context; in amdgpu_atombios_get_connector_info_from_object_table() 552 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_atombios_get_clock_info() 559 (union firmware_info *)(mode_info->atom_context->bios + in amdgpu_atombios_get_clock_info() 715 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size, in amdgpu_atombios_get_igp_ss_overrides() 718 (mode_info->atom_context->bios + data_offset); in amdgpu_atombios_get_igp_ss_overrides() 829 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size, in amdgpu_atombios_get_asic_ss_info() 833 (union asic_ss_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_atombios_get_asic_ss_info() [all …]
|
D | amdgpu_dpm.c | 292 if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_get_platform_caps() 295 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_get_platform_caps() 325 if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_parse_extended_power_table() 328 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_parse_extended_power_table() 334 fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table() 365 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table() 376 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table() 387 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table() 398 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table() 410 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table() [all …]
|
D | atombios_crtc.c | 80 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_overscan_setup() 109 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_scaler_setup() 126 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_lock() 142 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_enable() 158 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_blank() 174 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_powergate() 186 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_powergate_init() 231 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_set_dtd_timing() 296 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_program_ss() 379 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, in amdgpu_atombios_crtc_adjust_pll() [all …]
|
D | atom.c | 56 struct atom_context *ctx; 66 static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params); 67 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t * params); 102 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute() 178 struct atom_context *gctx = ctx->ctx; in atom_get_src_int() 451 struct atom_context *gctx = ctx->ctx; in atom_put_dst() 1205 static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params) in amdgpu_atom_execute_table_locked() 1266 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t * params) in amdgpu_atom_execute_table() 1289 static void atom_index_iio(struct atom_context *ctx, int base) in atom_index_iio() 1303 struct atom_context *amdgpu_atom_parse(struct card_info *card, void *bios) in amdgpu_atom_parse() [all …]
|
D | atombios_encoders.c | 347 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dac() 396 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dvo() 444 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dvo() 605 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dig_encoder() 708 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_encoder() 791 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dig_transmitter() 1084 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_transmitter() 1105 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_set_edp_panel_power() 1112 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_edp_panel_power() 1170 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_external_encoder() [all …]
|
D | atombios_i2c.c | 53 base = (unsigned char *)adev->mode_info.atom_context->scratch; in amdgpu_atombios_i2c_process_i2c_ch() 86 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_i2c_process_i2c_ch()
|
D | amdgpu_device.c | 654 amdgpu_atom_asic_init(adev->mode_info.atom_context); in amdgpu_boot_test_post_card() 852 if (adev->mode_info.atom_context) in amdgpu_atombios_fini() 853 kfree(adev->mode_info.atom_context->scratch); in amdgpu_atombios_fini() 854 kfree(adev->mode_info.atom_context); in amdgpu_atombios_fini() 855 adev->mode_info.atom_context = NULL; in amdgpu_atombios_fini() 896 adev->mode_info.atom_context = amdgpu_atom_parse(atom_card_info, adev->bios); in amdgpu_atombios_init() 897 if (!adev->mode_info.atom_context) { in amdgpu_atombios_init() 902 mutex_init(&adev->mode_info.atom_context->mutex); in amdgpu_atombios_init() 904 amdgpu_atom_allocate_fb_scratch(adev->mode_info.atom_context); in amdgpu_atombios_init() 1495 amdgpu_atom_asic_init(adev->mode_info.atom_context); in amdgpu_device_init() [all …]
|
D | amdgpu_cgs.c | 409 adev->mode_info.atom_context, table, size, in amdgpu_cgs_atom_get_data_table() 411 return (uint8_t*)adev->mode_info.atom_context->bios + in amdgpu_cgs_atom_get_data_table() 423 adev->mode_info.atom_context, table, in amdgpu_cgs_atom_get_cmd_table_revs() 436 adev->mode_info.atom_context, table, args); in amdgpu_cgs_atom_exec_cmd_table()
|
D | atombios_dp.c | 74 base = (unsigned char *)(adev->mode_info.atom_context->scratch + 1); in amdgpu_atombios_dp_process_aux_ch() 85 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_dp_process_aux_ch() 308 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_dp_encoder_service()
|
D | amdgpu_mode.h | 308 struct atom_context *atom_context; member
|
D | cz_dpm.c | 104 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in cz_parse_sys_info_table() 106 igp_info = (union igp_info *)(mode_info->atom_context->bios + in cz_parse_sys_info_table() 316 if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in cz_parse_power_table() 319 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in cz_parse_power_table() 322 (mode_info->atom_context->bios + data_offset + in cz_parse_power_table() 325 (mode_info->atom_context->bios + data_offset + in cz_parse_power_table() 328 (mode_info->atom_context->bios + data_offset + in cz_parse_power_table()
|