Home
last modified time | relevance | path

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

12

/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.c132 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 …]
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()
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()
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.c56 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 …]
Datombios_encoders.c112 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 …]
Datombios_crtc.c76 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 …]
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()
819 if (atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev, &crev)) { in radeon_dp_link_train()
Dradeon_device.c768 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()
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()
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()
Dr520.c237 atom_asic_init(rdev->mode_info.atom_context); in r520_resume()
288 atom_asic_init(rdev->mode_info.atom_context); in r520_init()
Dtrinity_dpm.c1745 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()
Dsumo_dpm.c1470 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/
Datom.h125 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);
Damdgpu_atombios.c90 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 …]
Damdgpu_dpm.c292 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 …]
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()
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 …]
Datom.c56 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 …]
Datombios_encoders.c347 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 …]
Datombios_i2c.c53 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()
Damdgpu_device.c654 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 …]
Damdgpu_cgs.c409 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()
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()
308 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_dp_encoder_service()
Damdgpu_mode.h308 struct atom_context *atom_context; member
Dcz_dpm.c104 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()

12