/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_atomfirmware.c | 38 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() 182 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_atomfirmware_get_vram_info() local 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() 311 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_atomfirmware_mem_ecc_supported() local [all …]
|
D | amdgpu_display.h | 26 #define amdgpu_display_vblank_get_counter(adev, crtc) (adev)->mode_info.funcs->vblank_get_counter((… 27 #define amdgpu_display_backlight_set_level(adev, e, l) (adev)->mode_info.funcs->backlight_set_level… 28 #define amdgpu_display_backlight_get_level(adev, e) (adev)->mode_info.funcs->backlight_get_level((e… 29 #define amdgpu_display_hpd_sense(adev, h) (adev)->mode_info.funcs->hpd_sense((adev), (h)) 30 #define amdgpu_display_hpd_set_polarity(adev, h) (adev)->mode_info.funcs->hpd_set_polarity((adev), … 31 #define amdgpu_display_hpd_get_gpio_reg(adev) (adev)->mode_info.funcs->hpd_get_gpio_reg((adev)) 32 #define amdgpu_display_bandwidth_update(adev) (adev)->mode_info.funcs->bandwidth_update((adev)) 33 #define amdgpu_display_page_flip(adev, crtc, base, async) (adev)->mode_info.funcs->page_flip((adev)… 34 #define amdgpu_display_page_flip_get_scanoutpos(adev, crtc, vbl, pos) (adev)->mode_info.funcs->page… 35 #define amdgpu_display_add_encoder(adev, e, s, c) (adev)->mode_info.funcs->add_encoder((adev), (e),… [all …]
|
D | amdgpu_atombios.c | 92 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() 266 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_atombios_has_dce_engine_info() local 267 struct atom_context *ctx = mode_info->atom_context; in amdgpu_atombios_has_dce_engine_info() 293 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_atombios_get_connector_info_from_object_table() local 294 struct atom_context *ctx = mode_info->atom_context; in amdgpu_atombios_get_connector_info_from_object_table() 560 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_atombios_get_clock_info() local 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() [all …]
|
D | dce_v8_0.c | 149 if (crtc >= adev->mode_info.num_crtc) in dce_v8_0_vblank_get_counter() 160 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v8_0_pageflip_interrupt_init() 169 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v8_0_pageflip_interrupt_fini() 186 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v8_0_page_flip() 208 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v8_0_crtc_get_scanoutpos() 231 if (hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_sense() 255 if (hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_set_polarity() 285 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_init() 330 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v8_0_hpd_fini() 353 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v8_0_is_display_hung() [all …]
|
D | dce_v6_0.c | 153 if (crtc >= adev->mode_info.num_crtc) in dce_v6_0_vblank_get_counter() 164 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v6_0_pageflip_interrupt_init() 173 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v6_0_pageflip_interrupt_fini() 193 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v6_0_page_flip() 215 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v6_0_crtc_get_scanoutpos() 238 if (hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_sense() 261 if (hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_set_polarity() 291 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_init() 336 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v6_0_hpd_fini() 915 (adev->mode_info.disp_priority == 2)) { in dce_v6_0_program_watermarks() [all …]
|
D | dce_virtual.c | 247 adev->mode_info.crtcs[index] = amdgpu_crtc; in dce_virtual_crtc_init() 270 adev->mode_info.num_hpd = 1; in dce_virtual_early_init() 271 adev->mode_info.num_dig = 1; in dce_virtual_early_init() 407 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_virtual_sw_init() 418 adev->mode_info.mode_config_initialized = true; in dce_virtual_sw_init() 426 kfree(adev->mode_info.bios_hardcoded_edid); in dce_virtual_sw_fini() 432 memset(adev->mode_info.crtcs, 0, sizeof(adev->mode_info.crtcs[0]) * AMDGPU_MAX_CRTCS); in dce_virtual_sw_fini() 433 adev->mode_info.mode_config_initialized = false; in dce_virtual_sw_fini() 487 for (i = 0; i<adev->mode_info.num_crtc; i++) in dce_virtual_hw_fini() 488 if (adev->mode_info.crtcs[i]) in dce_virtual_hw_fini() [all …]
|
D | amdgpu_fb.c | 320 if (!adev->mode_info.mode_config_initialized) in amdgpu_fbdev_init() 336 adev->mode_info.rfbdev = rfbdev; in amdgpu_fbdev_init() 357 if (!adev->mode_info.rfbdev) in amdgpu_fbdev_fini() 360 amdgpu_fbdev_destroy(adev_to_drm(adev), adev->mode_info.rfbdev); in amdgpu_fbdev_fini() 361 kfree(adev->mode_info.rfbdev); in amdgpu_fbdev_fini() 362 adev->mode_info.rfbdev = NULL; in amdgpu_fbdev_fini() 367 if (adev->mode_info.rfbdev) in amdgpu_fbdev_set_suspend() 368 drm_fb_helper_set_suspend_unlocked(&adev->mode_info.rfbdev->helper, in amdgpu_fbdev_set_suspend() 377 if (!adev->mode_info.rfbdev) in amdgpu_fbdev_total_size() 380 robj = gem_to_amdgpu_bo(adev->mode_info.rfbdev->rfb.base.obj[0]); in amdgpu_fbdev_total_size() [all …]
|
D | dce_v11_0.c | 219 if (crtc < 0 || crtc >= adev->mode_info.num_crtc) in dce_v11_0_vblank_get_counter() 230 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v11_0_pageflip_interrupt_init() 239 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v11_0_pageflip_interrupt_fini() 256 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v11_0_page_flip() 281 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v11_0_crtc_get_scanoutpos() 304 if (hpd >= adev->mode_info.num_hpd) in dce_v11_0_hpd_sense() 328 if (hpd >= adev->mode_info.num_hpd) in dce_v11_0_hpd_set_polarity() 358 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v11_0_hpd_init() 412 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v11_0_hpd_fini() 435 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v11_0_is_display_hung() [all …]
|
D | dce_v10_0.c | 201 if (crtc >= adev->mode_info.num_crtc) in dce_v10_0_vblank_get_counter() 212 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v10_0_pageflip_interrupt_init() 221 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v10_0_pageflip_interrupt_fini() 238 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v10_0_page_flip() 263 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v10_0_crtc_get_scanoutpos() 286 if (hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_sense() 310 if (hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_set_polarity() 340 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_init() 395 if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_fini() 419 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v10_0_is_display_hung() [all …]
|
D | amdgpu_display.c | 78 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[work->crtc_id]; in amdgpu_display_flip_work_func() 111 adev->mode_info.funcs->page_flip(adev, work->crtc_id, work->base, work->async); in amdgpu_display_flip_work_func() 619 adev->mode_info.coherent_mode_property = in amdgpu_display_modeset_create_props() 621 if (!adev->mode_info.coherent_mode_property) in amdgpu_display_modeset_create_props() 624 adev->mode_info.load_detect_property = in amdgpu_display_modeset_create_props() 626 if (!adev->mode_info.load_detect_property) in amdgpu_display_modeset_create_props() 632 adev->mode_info.underscan_property = in amdgpu_display_modeset_create_props() 637 adev->mode_info.underscan_hborder_property = in amdgpu_display_modeset_create_props() 640 if (!adev->mode_info.underscan_hborder_property) in amdgpu_display_modeset_create_props() 643 adev->mode_info.underscan_vborder_property = in amdgpu_display_modeset_create_props() [all …]
|
D | amdgpu_connectors.c | 268 if (adev->mode_info.bios_hardcoded_edid) { in amdgpu_connector_get_hardcoded_edid() 269 edid = kmalloc(adev->mode_info.bios_hardcoded_edid_size, GFP_KERNEL); in amdgpu_connector_get_hardcoded_edid() 272 (unsigned char *)adev->mode_info.bios_hardcoded_edid, in amdgpu_connector_get_hardcoded_edid() 273 adev->mode_info.bios_hardcoded_edid_size); in amdgpu_connector_get_hardcoded_edid() 479 if (property == adev->mode_info.coherent_mode_property) { in amdgpu_connector_set_property() 501 if (property == adev->mode_info.audio_property) { in amdgpu_connector_set_property() 516 if (property == adev->mode_info.dither_property) { in amdgpu_connector_set_property() 531 if (property == adev->mode_info.underscan_property) { in amdgpu_connector_set_property() 545 if (property == adev->mode_info.underscan_hborder_property) { in amdgpu_connector_set_property() 559 if (property == adev->mode_info.underscan_vborder_property) { in amdgpu_connector_set_property() [all …]
|
D | atombios_crtc.c | 81 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() 262 for (i = 0; i < adev->mode_info.num_crtc; i++) { in amdgpu_atombios_crtc_program_ss() 263 if (adev->mode_info.crtcs[i] && in amdgpu_atombios_crtc_program_ss() [all …]
|
D | atombios_encoders.c | 75 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_get_backlight_level() 90 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_set_backlight_level() 187 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_init_backlight() 239 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_fini_backlight() 344 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() [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_atombios.c | 137 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() 525 struct radeon_mode_info *mode_info = &rdev->mode_info; in radeon_get_atom_connector_info_from_object_table() local 526 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_object_table() 852 struct radeon_mode_info *mode_info = &rdev->mode_info; in atombios_get_connector_object_id() local 853 struct atom_context *ctx = mode_info->atom_context; in atombios_get_connector_object_id() 896 struct radeon_mode_info *mode_info = &rdev->mode_info; in radeon_get_atom_connector_info_from_supported_devices_table() local 897 struct atom_context *ctx = mode_info->atom_context; in radeon_get_atom_connector_info_from_supported_devices_table() 1113 struct radeon_mode_info *mode_info = &rdev->mode_info; in radeon_atombios_get_dentist_vco_freq() local [all …]
|
D | radeon_display.c | 290 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in radeon_crtc_handle_vblank() 346 &rdev->mode_info.crtcs[crtc_id]->base.hwmode)) && in radeon_crtc_handle_vblank() 371 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in radeon_crtc_handle_flip() 418 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[work->crtc_id]; in radeon_flip_work_func() 702 rdev->mode_info.crtcs[index] = radeon_crtc; in radeon_crtc_init() 1413 rdev->mode_info.coherent_mode_property = in radeon_modeset_create_props() 1415 if (!rdev->mode_info.coherent_mode_property) in radeon_modeset_create_props() 1421 rdev->mode_info.tmds_pll_property = in radeon_modeset_create_props() 1427 rdev->mode_info.load_detect_property = in radeon_modeset_create_props() 1429 if (!rdev->mode_info.load_detect_property) in radeon_modeset_create_props() [all …]
|
D | radeon_connectors.c | 559 if (property == rdev->mode_info.coherent_mode_property) { in radeon_connector_set_property() 581 if (property == rdev->mode_info.audio_property) { in radeon_connector_set_property() 596 if (property == rdev->mode_info.dither_property) { in radeon_connector_set_property() 611 if (property == rdev->mode_info.underscan_property) { in radeon_connector_set_property() 625 if (property == rdev->mode_info.underscan_hborder_property) { in radeon_connector_set_property() 639 if (property == rdev->mode_info.underscan_vborder_property) { in radeon_connector_set_property() 653 if (property == rdev->mode_info.tv_std_property) { in radeon_connector_set_property() 677 if (property == rdev->mode_info.load_detect_property) { in radeon_connector_set_property() 687 if (property == rdev->mode_info.tmds_pll_property) { in radeon_connector_set_property() 742 if (property == rdev->mode_info.output_csc_property) { in radeon_connector_set_property() [all …]
|
D | radeon_fb.c | 352 rdev->mode_info.rfbdev = rfbdev; in radeon_fbdev_init() 379 if (!rdev->mode_info.rfbdev) in radeon_fbdev_fini() 382 radeon_fbdev_destroy(rdev->ddev, rdev->mode_info.rfbdev); in radeon_fbdev_fini() 383 kfree(rdev->mode_info.rfbdev); in radeon_fbdev_fini() 384 rdev->mode_info.rfbdev = NULL; in radeon_fbdev_fini() 389 if (rdev->mode_info.rfbdev) in radeon_fbdev_set_suspend() 390 drm_fb_helper_set_suspend(&rdev->mode_info.rfbdev->helper, state); in radeon_fbdev_set_suspend() 395 if (!rdev->mode_info.rfbdev) in radeon_fbdev_robj_is_fb() 398 if (robj == gem_to_radeon_bo(rdev->mode_info.rfbdev->fb.obj[0])) in radeon_fbdev_robj_is_fb()
|
D | r600_dpm.c | 164 if (rdev->num_crtc && rdev->mode_info.mode_config_initialized) { in r600_dpm_get_vblank_time() 190 if (rdev->num_crtc && rdev->mode_info.mode_config_initialized) { in r600_dpm_get_vrefresh() 847 struct radeon_mode_info *mode_info = &rdev->mode_info; in r600_get_platform_caps() local 853 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() 875 struct radeon_mode_info *mode_info = &rdev->mode_info; in r600_parse_extended_power_table() local 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() [all …]
|
D | radeon_device.c | 760 atom_asic_init(rdev->mode_info.atom_context); in radeon_boot_test_post_card() 981 rdev->mode_info.atom_card_info = atom_card_info; in radeon_atombios_init() 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() 1025 kfree(rdev->mode_info.atom_context->iio); in radeon_atombios_fini() [all …]
|
D | atombios_encoders.c | 86 if (!(rdev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in atombios_get_backlight_level() 102 if (!(rdev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in atombios_set_backlight_level() 117 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() 210 if (!(rdev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in radeon_atom_backlight_init() 248 rdev->mode_info.bl_encoder = radeon_encoder; in radeon_atom_backlight_init() 270 if (!(rdev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in radeon_atom_backlight_exit() 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() [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() 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()
|
D | radeon_combios.c | 395 rdev->mode_info.bios_hardcoded_edid = edid; in radeon_combios_check_hardcoded_edid() 396 rdev->mode_info.bios_hardcoded_edid_size = size; in radeon_combios_check_hardcoded_edid() 406 if (rdev->mode_info.bios_hardcoded_edid) { in radeon_bios_get_hardcoded_edid() 407 edid = kmalloc(rdev->mode_info.bios_hardcoded_edid_size, GFP_KERNEL); in radeon_bios_get_hardcoded_edid() 410 (unsigned char *)rdev->mode_info.bios_hardcoded_edid, in radeon_bios_get_hardcoded_edid() 411 rdev->mode_info.bios_hardcoded_edid_size); in radeon_bios_get_hardcoded_edid() 1399 switch (rdev->mode_info.connector_table) { in radeon_legacy_get_ext_tmds_info_from_table() 1461 rdev->mode_info.connector_table = radeon_connector_table; in radeon_get_legacy_connector_info_from_table() 1462 if (rdev->mode_info.connector_table == CT_NONE) { in radeon_get_legacy_connector_info_from_table() 1466 rdev->mode_info.connector_table = CT_POWERBOOK_VGA; in radeon_get_legacy_connector_info_from_table() [all …]
|
/drivers/gpu/drm/amd/pm/ |
D | amdgpu_dpm.c | 131 if (adev->mode_info.num_crtc && adev->mode_info.mode_config_initialized) { in amdgpu_dpm_get_active_displays() 152 if (adev->mode_info.num_crtc && adev->mode_info.mode_config_initialized) { in amdgpu_dpm_get_vblank_time() 178 if (adev->mode_info.num_crtc && adev->mode_info.mode_config_initialized) { in amdgpu_dpm_get_vrefresh() 258 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_get_platform_caps() local 264 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() 288 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_parse_extended_power_table() local 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() [all …]
|
/drivers/power/reset/ |
D | reboot-mode.c | 16 struct mode_info { struct 27 struct mode_info *info; in get_reboot_mode_magic() argument 64 struct mode_info *info; in reboot_mode_register() 123 struct mode_info *info; in reboot_mode_unregister()
|
/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 229 if (crtc >= adev->mode_info.num_crtc) in dm_vblank_get_counter() 232 struct amdgpu_crtc *acrtc = adev->mode_info.crtcs[crtc]; in dm_vblank_get_counter() 249 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dm_crtc_get_scanoutpos() 252 struct amdgpu_crtc *acrtc = adev->mode_info.crtcs[crtc]; in dm_crtc_get_scanoutpos() 310 return adev->mode_info.crtcs[0]; in get_crtc_by_otg_inst() 702 adev->mode_info.audio.enabled = true; in amdgpu_dm_audio_init() 704 adev->mode_info.audio.num_pins = adev->dm.dc->res_pool->audio_count; in amdgpu_dm_audio_init() 706 for (i = 0; i < adev->mode_info.audio.num_pins; i++) { in amdgpu_dm_audio_init() 707 adev->mode_info.audio.pin[i].channels = -1; in amdgpu_dm_audio_init() 708 adev->mode_info.audio.pin[i].rate = -1; in amdgpu_dm_audio_init() [all …]
|