Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/gpu/drm/radeon/
A 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);
A Dradeon_atombios.c130 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_lookup_i2c_gpio()
166 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_atombios_i2c_init()
200 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_atombios_lookup_gpio()
520 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_object_table()
845 struct atom_context *ctx = mode_info->atom_context; in atombios_get_connector_object_id()
889 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_supported_devices_table()
1427 (mode_info->atom_context->bios + data_offset); in radeon_atombios_get_igp_ss_overrides()
1771 (mode_info->atom_context->bios + data_offset); in radeon_atombios_get_primary_dac_info()
2684 (mode_info->atom_context->bios + data_offset + in radeon_atombios_parse_power_table_6()
2687 (mode_info->atom_context->bios + data_offset + in radeon_atombios_parse_power_table_6()
[all …]
A 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()
A Dr600_dpm.c924 (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()
988 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
1035 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
1070 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
1075 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
1079 (mode_info->atom_context->bios + data_offset + in r600_parse_extended_power_table()
[all …]
A Datom.c61 struct atom_context *ctx;
108 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute()
187 struct atom_context *gctx = ctx->ctx; in atom_get_src_int()
457 struct atom_context *gctx = ctx->ctx; in atom_put_dst()
1251 static void atom_index_iio(struct atom_context *ctx, int base) in atom_index_iio()
1268 struct atom_context *ctx = in atom_parse()
1269 kzalloc(sizeof(struct atom_context), GFP_KERNEL); in atom_parse()
1326 int atom_asic_init(struct atom_context *ctx) in atom_asic_init()
1355 void atom_destroy(struct atom_context *ctx) in atom_destroy()
1361 bool atom_parse_data_header(struct atom_context *ctx, int index, in atom_parse_data_header()
[all …]
A Datombios_encoders.c121 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level()
124 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level()
126 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_backlight_level()
391 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dac_setup()
447 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_tv_setup()
548 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dvo_setup()
666 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_digital_setup()
981 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dig_encoder_setup2()
1363 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_dig_transmitter_setup2()
1399 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in atombios_set_edp_panel_power()
[all …]
A Dradeon_device.c761 atom_asic_init(rdev->mode_info.atom_context); in radeon_boot_test_post_card()
1000 rdev->mode_info.atom_context = atom_parse(atom_card_info, rdev->bios); in radeon_atombios_init()
1001 if (!rdev->mode_info.atom_context) { in radeon_atombios_init()
1006 mutex_init(&rdev->mode_info.atom_context->mutex); in radeon_atombios_init()
1007 mutex_init(&rdev->mode_info.atom_context->scratch_mutex); in radeon_atombios_init()
1009 atom_allocate_fb_scratch(rdev->mode_info.atom_context); in radeon_atombios_init()
1024 if (rdev->mode_info.atom_context) { in radeon_atombios_fini()
1025 kfree(rdev->mode_info.atom_context->scratch); in radeon_atombios_fini()
1026 kfree(rdev->mode_info.atom_context->iio); in radeon_atombios_fini()
1028 kfree(rdev->mode_info.atom_context); in radeon_atombios_fini()
[all …]
A 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()
357 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); in radeon_dp_encoder_service()
816 if (atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) { in radeon_dp_link_train()
A 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()
676 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, in atombios_adjust_pll()
694 atom_execute_table(rdev->mode_info.atom_context, in atombios_adjust_pll()
727 atom_execute_table(rdev->mode_info.atom_context, in atombios_adjust_pll()
776 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, in atombios_crtc_set_disp_eng_pll()
[all …]
A 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()
A Drs780_dpm.c802 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()
815 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table()
819 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table()
825 (mode_info->atom_context->bios + data_offset + in rs780_parse_power_table()
872 if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL, in rs780_dpm_init()
874 info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); in rs780_dpm_init()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Datom.h129 struct atom_context { struct
157 struct atom_context *amdgpu_atom_parse(struct card_info *, void *); argument
158 int amdgpu_atom_execute_table(struct atom_context *, int, uint32_t *);
159 int amdgpu_atom_asic_init(struct atom_context *);
160 void amdgpu_atom_destroy(struct atom_context *);
161 bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size,
163 bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index,
A Damdgpu_atomfirmware.c63 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_query_firmware_capability()
174 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atomfirmware_allocate_fb_scratch()
320 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_vram_info()
363 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_vram_info()
506 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_mem_ecc_supported()
595 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_ras_rom_addr()
720 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_clock_info()
751 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_gfx_info()
829 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atomfirmware_get_fw_reserved_fb_size()
873 struct atom_context *ctx; in amdgpu_atomfirmware_asic_init()
[all …]
A 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()
1630 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_allocate_fb_scratch()
1777 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atombios_get_vbios_version()
1805 if (adev->mode_info.atom_context) { in amdgpu_atombios_fini()
1809 kfree(adev->mode_info.atom_context); in amdgpu_atombios_fini()
1810 adev->mode_info.atom_context = NULL; in amdgpu_atombios_fini()
[all …]
A Datombios_crtc.c80 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()
379 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, in amdgpu_atombios_crtc_adjust_pll()
397 amdgpu_atom_execute_table(adev->mode_info.atom_context, in amdgpu_atombios_crtc_adjust_pll()
430 amdgpu_atom_execute_table(adev->mode_info.atom_context, in amdgpu_atombios_crtc_adjust_pll()
480 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, in amdgpu_atombios_crtc_set_disp_eng_pll()
536 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, in amdgpu_atombios_crtc_set_dce_clock()
[all …]
A Datom.c63 struct atom_context *ctx;
185 struct atom_context *gctx = ctx->ctx; in atom_get_src_int()
455 struct atom_context *gctx = ctx->ctx; in atom_put_dst()
1305 static void atom_get_vbios_name(struct atom_context *ctx) in atom_get_vbios_name()
1353 static void atom_get_vbios_date(struct atom_context *ctx) in atom_get_vbios_date()
1404 static void atom_get_vbios_pn(struct atom_context *ctx) in atom_get_vbios_pn()
1443 static void atom_get_vbios_version(struct atom_context *ctx) in atom_get_vbios_version()
1461 struct atom_context *ctx = in amdgpu_atom_parse()
1462 kzalloc(sizeof(struct atom_context), GFP_KERNEL); in amdgpu_atom_parse()
1534 int amdgpu_atom_asic_init(struct atom_context *ctx) in amdgpu_atom_asic_init()
[all …]
A 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()
A Datombios_encoders.c338 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dac()
435 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dvo()
735 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_encoder()
1139 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_transmitter()
1167 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_edp_panel_power()
1291 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_external_encoder()
1636 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_crtc_source()
1978 if (amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_atombios_encoder_get_lcd_info()
1981 (union lvds_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_atombios_encoder_get_lcd_info()
2046 record = (u8 *)(mode_info->atom_context->bios + in amdgpu_atombios_encoder_get_lcd_info()
[all …]
A Damdgpu_kms.c924 struct atom_context *atom_context; in amdgpu_info_ioctl() local
926 atom_context = adev->mode_info.atom_context; in amdgpu_info_ioctl()
927 memcpy(vbios_info.name, atom_context->name, sizeof(atom_context->name)); in amdgpu_info_ioctl()
928 memcpy(vbios_info.vbios_pn, atom_context->vbios_pn, sizeof(atom_context->vbios_pn)); in amdgpu_info_ioctl()
929 vbios_info.version = atom_context->version; in amdgpu_info_ioctl()
930 memcpy(vbios_info.vbios_ver_str, atom_context->vbios_ver_str, in amdgpu_info_ioctl()
931 sizeof(atom_context->vbios_ver_str)); in amdgpu_info_ioctl()
932 memcpy(vbios_info.date, atom_context->date, sizeof(atom_context->date)); in amdgpu_info_ioctl()
1447 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_debugfs_firmware_info_show()
A Damdgpu_fru_eeprom.c41 struct atom_context *atom_ctx = adev->mode_info.atom_context; in is_fru_eeprom_supported()
A Datombios_dp.c75 base = (unsigned char *)(adev->mode_info.atom_context->scratch + 1); in amdgpu_atombios_dp_process_aux_ch()
86 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_dp_process_aux_ch()
304 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_dp_encoder_service()
A Damdgpu_mode.h309 struct atom_context *atom_context; member
A Damdgpu_ras_eeprom.c129 struct atom_context *atom_ctx = adev->mode_info.atom_context; in __get_eeprom_i2c_addr_arct()
160 struct atom_context *atom_ctx = adev->mode_info.atom_context; in __get_eeprom_i2c_addr()
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/legacy-dpm/
A Dlegacy_dpm.c271 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
282 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
293 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
304 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
316 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
334 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
381 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
416 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
421 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
425 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A Dppatomctrl.c227 return amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_set_engine_dram_timings_rv770()
298 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_si()
346 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_vi()
367 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_ai()
397 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_kong()
421 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_vi()
458 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_ai()
491 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_dfs_pll_dividers_vi()
774 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_calculate_voltage_evv_on_sclk()
795 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_calculate_voltage_evv_on_sclk()
[all …]

Completed in 130 milliseconds

123