Home
last modified time | relevance | path

Searched refs:atom_context (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Datom.h125 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);
Dradeon_atombios.c137 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_lookup_i2c_gpio()
173 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_atombios_i2c_init()
207 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_atombios_lookup_gpio()
526 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_object_table()
853 struct atom_context *ctx = mode_info->atom_context; in atombios_get_connector_object_id()
897 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_supported_devices_table()
1119 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in radeon_atombios_get_dentist_vco_freq()
1121 igp_info = (union igp_info *)(mode_info->atom_context->bios + in radeon_atombios_get_dentist_vco_freq()
1142 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in radeon_atom_get_clock_info()
1145 (union firmware_info *)(mode_info->atom_context->bios + in radeon_atom_get_clock_info()
[all …]
Datombios_i2c.c51 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()
81 atom_execute_table_scratch_unlocked(rdev->mode_info.atom_context, index, (uint32_t *)&args); in radeon_process_i2c_ch()
94 mutex_unlock(&rdev->mode_info.atom_context->scratch_mutex); in radeon_process_i2c_ch()
Dr600_dpm.c853 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in r600_get_platform_caps()
856 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_get_platform_caps()
884 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in r600_parse_extended_power_table()
887 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_parse_extended_power_table()
893 fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
924 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
933 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
944 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
956 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
970 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
[all …]
Datom.c60 struct atom_context *ctx;
70 static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
71 int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params);
107 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute()
186 struct atom_context *gctx = ctx->ctx; in atom_get_src_int()
456 struct atom_context *gctx = ctx->ctx; in atom_put_dst()
1158 static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params) in atom_execute_table_locked()
1218 int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t * params) in atom_execute_table_scratch_unlocked()
1239 int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params) in atom_execute_table()
1250 static void atom_index_iio(struct atom_context *ctx, int base) in atom_index_iio()
[all …]
Datombios_encoders.c117 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level()
120 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level()
122 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level()
400 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dac_setup()
456 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_tv_setup()
505 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_dvo_setup()
557 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dvo_setup()
601 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_digital_setup()
675 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_digital_setup()
886 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_dig_encoder_setup2()
[all …]
Dradeon_device.c760 atom_asic_init(rdev->mode_info.atom_context); in radeon_boot_test_post_card()
999 rdev->mode_info.atom_context = atom_parse(atom_card_info, rdev->bios); in radeon_atombios_init()
1000 if (!rdev->mode_info.atom_context) { in radeon_atombios_init()
1005 mutex_init(&rdev->mode_info.atom_context->mutex); in radeon_atombios_init()
1006 mutex_init(&rdev->mode_info.atom_context->scratch_mutex); in radeon_atombios_init()
1008 atom_allocate_fb_scratch(rdev->mode_info.atom_context); in radeon_atombios_init()
1023 if (rdev->mode_info.atom_context) { in radeon_atombios_fini()
1024 kfree(rdev->mode_info.atom_context->scratch); in radeon_atombios_fini()
1026 kfree(rdev->mode_info.atom_context); in radeon_atombios_fini()
1027 rdev->mode_info.atom_context = NULL; in radeon_atombios_fini()
Datombios_dp.c101 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()
815 if (atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) { in radeon_dp_link_train()
Datombios_crtc.c80 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_overscan_setup()
160 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_scaler_setup()
181 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_lock_crtc()
197 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_enable_crtc()
213 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_enable_crtc_memreq()
245 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_blank_crtc()
264 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_powergate_crtc()
346 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_crtc_dtd_timing()
392 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_crtc_set_timing()
549 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_crtc_program_ss()
[all …]
Dr520.c236 atom_asic_init(rdev->mode_info.atom_context); in r520_resume()
287 atom_asic_init(rdev->mode_info.atom_context); in r520_init()
Drs780_dpm.c803 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in rs780_parse_power_table()
806 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rs780_parse_power_table()
816 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table()
820 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table()
826 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table()
873 if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL, in rs780_dpm_init()
875 info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); in rs780_dpm_init()
Dtrinity_dpm.c1746 if (!atom_parse_data_header(mode_info->atom_context, index, NULL, in trinity_parse_power_table()
1749 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in trinity_parse_power_table()
1752 (mode_info->atom_context->bios + data_offset + in trinity_parse_power_table()
1755 (mode_info->atom_context->bios + data_offset + in trinity_parse_power_table()
1758 (mode_info->atom_context->bios + data_offset + in trinity_parse_power_table()
1856 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in trinity_parse_sys_info_table()
1858 igp_info = (union igp_info *)(mode_info->atom_context->bios + in trinity_parse_sys_info_table()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atomfirmware.c38 if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL, in amdgpu_atomfirmware_gpu_supports_virtualization()
41 (struct atom_firmware_info_v3_1 *)(adev->mode_info.atom_context->bios + in amdgpu_atomfirmware_gpu_supports_virtualization()
57 if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL, in amdgpu_atomfirmware_scratch_regs_init()
60 (struct atom_firmware_info_v3_1 *)(adev->mode_info.atom_context->bios + in amdgpu_atomfirmware_scratch_regs_init()
70 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atomfirmware_allocate_fb_scratch()
202 if (amdgpu_atom_parse_data_header(mode_info->atom_context, in amdgpu_atomfirmware_get_vram_info()
207 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_vram_info()
232 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_vram_info()
321 if (amdgpu_atom_parse_data_header(mode_info->atom_context, in amdgpu_atomfirmware_mem_ecc_supported()
326 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_mem_ecc_supported()
[all …]
Datom.h127 struct atom_context { struct
149 struct atom_context *amdgpu_atom_parse(struct card_info *, void *); argument
150 int amdgpu_atom_execute_table(struct atom_context *, int, uint32_t *);
151 int amdgpu_atom_asic_init(struct atom_context *);
152 void amdgpu_atom_destroy(struct atom_context *);
153 bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size,
155 bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index,
Damdgpu_atombios.c92 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_lookup_i2c_gpio()
128 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_i2c_init()
163 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_lookup_gpio()
267 struct atom_context *ctx = mode_info->atom_context; in amdgpu_atombios_has_dce_engine_info()
294 struct atom_context *ctx = mode_info->atom_context; in amdgpu_atombios_get_connector_info_from_object_table()
566 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_atombios_get_clock_info()
573 (union firmware_info *)(mode_info->atom_context->bios + in amdgpu_atombios_get_clock_info()
720 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_atombios_get_gfx_info()
723 (mode_info->atom_context->bios + data_offset); in amdgpu_atombios_get_gfx_info()
760 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, &size, in amdgpu_atombios_get_vram_width()
[all …]
Datombios_crtc.c81 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_overscan_setup()
110 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_scaler_setup()
127 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_lock()
143 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_enable()
159 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_blank()
175 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_powergate()
187 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_powergate_init()
232 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_set_dtd_timing()
297 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_program_ss()
380 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, in amdgpu_atombios_crtc_adjust_pll()
[all …]
Datombios_i2c.c54 base = (unsigned char *)adev->mode_info.atom_context->scratch; in amdgpu_atombios_i2c_process_i2c_ch()
89 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_i2c_process_i2c_ch()
175 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_i2c_channel_trans()
Datom.c60 struct atom_context *ctx;
70 static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
71 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t * params);
106 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute()
182 struct atom_context *gctx = ctx->ctx; in atom_get_src_int()
452 struct atom_context *gctx = ctx->ctx; in atom_put_dst()
1204 static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params) in amdgpu_atom_execute_table_locked()
1265 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t * params) in amdgpu_atom_execute_table()
1288 static void atom_index_iio(struct atom_context *ctx, int base) in atom_index_iio()
1302 struct atom_context *amdgpu_atom_parse(struct card_info *card, void *bios) in amdgpu_atom_parse()
[all …]
Damdgpu_fru_eeprom.c41 struct atom_context *atom_ctx = adev->mode_info.atom_context; in is_fru_eeprom_supported()
Datombios_encoders.c344 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dac()
393 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dvo()
441 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dvo()
603 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dig_encoder()
747 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_encoder()
831 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dig_transmitter()
1172 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_transmitter()
1193 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_set_edp_panel_power()
1200 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_edp_panel_power()
1258 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_external_encoder()
[all …]
Datombios_dp.c74 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()
301 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_dp_encoder_service()
Damdgpu_mode.h317 struct atom_context *atom_context; member
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/
Damdgpu_dpm.c264 if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_get_platform_caps()
267 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_get_platform_caps()
297 if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_parse_extended_power_table()
300 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_parse_extended_power_table()
306 fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
337 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
348 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
359 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
370 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
382 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppatomctrl.c190 return amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_set_engine_dram_timings_rv770()
260 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_si()
307 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_vi()
328 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_ai()
358 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_kong()
382 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_vi()
419 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_ai()
452 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_dfs_pll_dividers_vi()
743 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_calculate_voltage_evv_on_sclk()
764 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_calculate_voltage_evv_on_sclk()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/bios/
Dcommand_table2.c52 …tom_execute_table(((struct amdgpu_device *)bp->base.ctx->driver_context)->mode_info.atom_context, \
57 …_parse_cmd_header(((struct amdgpu_device *)bp->base.ctx->driver_context)->mode_info.atom_context, \
72 if (amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, in bios_cmd_table_para_revision()

123