Home
last modified time | relevance | path

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

123

/linux-6.12.1/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 *, int);
149 int atom_execute_table_scratch_unlocked(struct atom_context *, int, uint32_t *, int);
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.c131 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_lookup_i2c_gpio()
167 struct atom_context *ctx = rdev->mode_info.atom_context; in radeon_atombios_i2c_init()
201 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()
846 struct atom_context *ctx = mode_info->atom_context; in atombios_get_connector_object_id()
890 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_supported_devices_table()
1116 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in radeon_atombios_get_dentist_vco_freq()
1118 igp_info = (union igp_info *)(mode_info->atom_context->bios + in radeon_atombios_get_dentist_vco_freq()
1139 if (atom_parse_data_header(mode_info->atom_context, index, NULL, in radeon_atom_get_clock_info()
1142 (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, sizeof… in radeon_process_i2c_ch()
94 mutex_unlock(&rdev->mode_info.atom_context->scratch_mutex); in radeon_process_i2c_ch()
Dr600_dpm.c851 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 …]
Datom.c61 struct atom_context *ctx;
72 static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int par…
73 int atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size);
109 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute()
184 struct atom_context *gctx = ctx->ctx; in atom_get_src_int()
460 struct atom_context *gctx = ctx->ctx; in atom_put_dst()
1170 static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, int par… in atom_execute_table_locked()
1234 int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t *params, int … in atom_execute_table_scratch_unlocked()
1255 int atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_size) in atom_execute_table()
1266 static void atom_index_iio(struct atom_context *ctx, int base) in atom_index_iio()
[all …]
Datombios_encoders.c122 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_backlight_level()
125 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_backlight_level()
127 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_backlight_level()
392 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_dac_setup()
448 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_tv_setup()
497 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_dvo_setup()
549 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_dvo_setup()
593 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_digital_setup()
667 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_digital_setup()
870 if (!atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) in atombios_dig_encoder_setup2()
[all …]
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 …]
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, sizeof… in radeon_process_aux_ch()
149 mutex_unlock(&rdev->mode_info.atom_context->scratch_mutex); in radeon_process_aux_ch()
352 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in radeon_dp_encoder_service()
811 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, sizeof(args)); in atombios_overscan_setup()
160 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_scaler_setup()
181 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_lock_crtc()
197 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_enable_crtc()
213 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_enable_crtc_memreq()
245 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_blank_crtc()
264 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_powergate_crtc()
346 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_crtc_dtd_timing()
392 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_crtc_set_timing()
549 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(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.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.12.1/drivers/gpu/drm/amd/amdgpu/
Datom.h131 struct atom_context { struct
158 struct atom_context *amdgpu_atom_parse(struct card_info *card, void *bios); argument
159 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_siz…
160 int amdgpu_atom_asic_init(struct atom_context *ctx);
161 void amdgpu_atom_destroy(struct atom_context *ctx);
162 bool amdgpu_atom_parse_data_header(struct atom_context *ctx, int index, uint16_t *size,
164 bool amdgpu_atom_parse_cmd_header(struct atom_context *ctx, int index,
Damdgpu_atomfirmware.c59 if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, in amdgpu_atomfirmware_query_firmware_capability()
64 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_query_firmware_capability()
94 if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL, in amdgpu_atomfirmware_scratch_regs_init()
97 (struct atom_firmware_info_v3_1 *)(adev->mode_info.atom_context->bios + in amdgpu_atomfirmware_scratch_regs_init()
175 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_atomfirmware_allocate_fb_scratch()
325 if (amdgpu_atom_parse_data_header(mode_info->atom_context, in amdgpu_atomfirmware_get_vram_info()
330 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_vram_info()
395 umc_info = (union umc_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_vram_info()
419 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_get_vram_info()
559 if (amdgpu_atom_parse_data_header(mode_info->atom_context, in amdgpu_atomfirmware_mem_ecc_supported()
[all …]
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.c80 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_overscan_setup()
109 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_scaler_setup()
126 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_lock()
142 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_enable()
158 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_blank()
174 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_powergate()
186 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_powergate_init()
231 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_crtc_set_dtd_timing()
296 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(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 …]
Datom.c63 struct atom_context *ctx;
74 static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, …
75 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_siz…
110 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()
461 struct atom_context *gctx = ctx->ctx; in atom_put_dst()
1221 static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params, … in amdgpu_atom_execute_table_locked()
1287 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t *params, int params_siz… in amdgpu_atom_execute_table()
1310 static void atom_index_iio(struct atom_context *ctx, int base) in atom_index_iio()
1324 static void atom_get_vbios_name(struct atom_context *ctx) in atom_get_vbios_name()
[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, sizeof(args)); in amdgpu_atombios_i2c_process_i2c_ch()
175 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_i2c_channel_trans()
Datombios_encoders.c338 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_encoder_setup_dac()
387 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dvo()
435 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_encoder_setup_dvo()
591 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dig_encoder()
735 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_encoder()
818 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_dig_transmitter()
1139 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_transmitter()
1160 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_set_edp_panel_power()
1167 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_encoder_set_edp_panel_power()
1225 if (!amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, index, &frev, &crev)) in amdgpu_atombios_encoder_setup_external_encoder()
[all …]
Damdgpu_kms.c1014 struct atom_context *atom_context; in amdgpu_info_ioctl() local
1016 atom_context = adev->mode_info.atom_context; in amdgpu_info_ioctl()
1017 if (atom_context) { in amdgpu_info_ioctl()
1018 memcpy(vbios_info.name, atom_context->name, in amdgpu_info_ioctl()
1019 sizeof(atom_context->name)); in amdgpu_info_ioctl()
1020 memcpy(vbios_info.vbios_pn, atom_context->vbios_pn, in amdgpu_info_ioctl()
1021 sizeof(atom_context->vbios_pn)); in amdgpu_info_ioctl()
1022 vbios_info.version = atom_context->version; in amdgpu_info_ioctl()
1023 memcpy(vbios_info.vbios_ver_str, atom_context->vbios_ver_str, in amdgpu_info_ioctl()
1024 sizeof(atom_context->vbios_ver_str)); in amdgpu_info_ioctl()
[all …]
Damdgpu_fru_eeprom.c41 struct atom_context *atom_ctx = adev->mode_info.atom_context; in is_fru_eeprom_supported()
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, sizeof(args)); in amdgpu_atombios_dp_process_aux_ch()
304 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in amdgpu_atombios_dp_encoder_service()
Damdgpu_mode.h311 struct atom_context *atom_context; member
Damdgpu_dev_coredump.c79 struct atom_context *ctx = adev->mode_info.atom_context; in amdgpu_devcoredump_fw_info()
/linux-6.12.1/drivers/gpu/drm/amd/pm/legacy-dpm/
Dlegacy_dpm.c167 if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_get_platform_caps()
170 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_get_platform_caps()
231 if (!amdgpu_atom_parse_data_header(mode_info->atom_context, index, NULL, in amdgpu_parse_extended_power_table()
234 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_parse_extended_power_table()
240 fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
271 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
280 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
289 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
298 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
308 (mode_info->atom_context->bios + data_offset + in amdgpu_parse_extended_power_table()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppatomctrl.c228 return amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_set_engine_dram_timings_rv770()
299 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_si()
347 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_vi()
368 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_memory_pll_dividers_ai()
398 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_kong()
422 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_vi()
459 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_engine_pll_dividers_ai()
492 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_get_dfs_pll_dividers_vi()
775 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_calculate_voltage_evv_on_sclk()
796 result = amdgpu_atom_execute_table(adev->mode_info.atom_context, in atomctrl_calculate_voltage_evv_on_sclk()
[all …]

123