/linux/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_dpm_internal.c | 38 if (adev->mode_info.num_crtc && adev->mode_info.mode_config_initialized) { in amdgpu_dpm_get_active_displays() 58 if (adev->mode_info.num_crtc && adev->mode_info.mode_config_initialized) { in amdgpu_dpm_get_vblank_time() 84 if (adev->mode_info.num_crtc && adev->mode_info.mode_config_initialized) { in amdgpu_dpm_get_vrefresh()
|
/linux/drivers/video/ |
H A D | vgastate.c | 238 for (i = 0; i < state->num_crtc; i++) in save_vga_mode() 287 for (i = 0; i < state->num_crtc; i++) in restore_vga_mode() 375 if (state->num_crtc < 25) in save_vga() 376 state->num_crtc = 25; in save_vga() 381 total = state->num_attr + state->num_crtc + in save_vga() 390 saved->gfx = saved->crtc + state->num_crtc; in save_vga()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | dce_v8_0.c | 150 if (crtc >= adev->mode_info.num_crtc) in dce_v8_0_vblank_get_counter() 161 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v8_0_pageflip_interrupt_init() 170 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v8_0_pageflip_interrupt_fini() 210 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v8_0_crtc_get_scanoutpos() 371 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v8_0_is_display_hung() 379 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v8_0_is_display_hung() 418 int num_crtc = 0; in dce_v8_0_get_num_crtc() local 423 num_crtc = 6; in dce_v8_0_get_num_crtc() 426 num_crtc = 4; in dce_v8_0_get_num_crtc() 430 num_crtc = 2; in dce_v8_0_get_num_crtc() [all …]
|
H A D | dce_v11_0.c | 223 if (crtc < 0 || crtc >= adev->mode_info.num_crtc) in dce_v11_0_vblank_get_counter() 234 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v11_0_pageflip_interrupt_init() 243 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v11_0_pageflip_interrupt_fini() 286 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v11_0_crtc_get_scanoutpos() 441 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v11_0_is_display_hung() 450 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v11_0_is_display_hung() 489 int num_crtc = 0; in dce_v11_0_get_num_crtc() local 493 num_crtc = 3; in dce_v11_0_get_num_crtc() 496 num_crtc = 2; in dce_v11_0_get_num_crtc() 500 num_crtc = 6; in dce_v11_0_get_num_crtc() [all …]
|
H A D | dce_v10_0.c | 199 if (crtc >= adev->mode_info.num_crtc) in dce_v10_0_vblank_get_counter() 210 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v10_0_pageflip_interrupt_init() 219 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v10_0_pageflip_interrupt_fini() 262 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v10_0_crtc_get_scanoutpos() 419 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v10_0_is_display_hung() 428 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v10_0_is_display_hung() 467 int num_crtc = 0; in dce_v10_0_get_num_crtc() local 472 num_crtc = 6; in dce_v10_0_get_num_crtc() 475 num_crtc = 0; in dce_v10_0_get_num_crtc() 477 return num_crtc; in dce_v10_0_get_num_crtc() [all …]
|
H A D | amdgpu_vkms.c | 501 adev->amdgpu_vkms_output = kcalloc(adev->mode_info.num_crtc, in amdgpu_vkms_sw_init() 523 for (i = 0; i < adev->mode_info.num_crtc; i++) { in amdgpu_vkms_sw_init() 529 r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); in amdgpu_vkms_sw_init() 544 for (i = 0; i < adev->mode_info.num_crtc; i++) in amdgpu_vkms_sw_fini()
|
H A D | dce_v6_0.c | 156 if (crtc >= adev->mode_info.num_crtc) in dce_v6_0_vblank_get_counter() 167 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v6_0_pageflip_interrupt_init() 176 for (i = 0; i < adev->mode_info.num_crtc; i++) in dce_v6_0_pageflip_interrupt_fini() 219 if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) in dce_v6_0_crtc_get_scanoutpos() 1089 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v6_0_bandwidth_update() 1093 for (i = 0; i < adev->mode_info.num_crtc; i += 2) { in dce_v6_0_bandwidth_update() 2493 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v6_0_crtc_disable() 2645 adev->mode_info.num_crtc = dce_v6_0_get_num_crtc(adev); in dce_v6_0_early_init() 2673 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v6_0_sw_init() 2708 for (i = 0; i < adev->mode_info.num_crtc; i++) { in dce_v6_0_sw_init() [all …]
|
H A D | amdgpu_device.c | 2401 long num_crtc; in amdgpu_device_enable_virtual_display() local 2408 &num_crtc); in amdgpu_device_enable_virtual_display() 2411 if (num_crtc < 1) in amdgpu_device_enable_virtual_display() 2412 num_crtc = 1; in amdgpu_device_enable_virtual_display() 2413 if (num_crtc > 6) in amdgpu_device_enable_virtual_display() 2414 num_crtc = 6; in amdgpu_device_enable_virtual_display() 2415 adev->mode_info.num_crtc = num_crtc; in amdgpu_device_enable_virtual_display() 2417 adev->mode_info.num_crtc = 1; in amdgpu_device_enable_virtual_display() 2425 adev->enable_virtual_display, adev->mode_info.num_crtc); in amdgpu_device_enable_virtual_display() 2434 adev->mode_info.num_crtc = 1; in amdgpu_device_set_sriov_virtual_display() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_client_modeset.c | 38 unsigned int num_crtc = dev->mode_config.num_crtc; in drm_client_modeset_create() local 45 client->modesets = kcalloc(num_crtc + 1, sizeof(*client->modesets), GFP_KERNEL); in drm_client_modeset_create() 55 if (num_crtc == 1) in drm_client_modeset_create() 278 if (dev->mode_config.num_crtc > 1) in drm_client_target_cloned() 557 if (dev->mode_config.num_crtc > 1) in drm_client_pick_crtcs() 752 num_connectors_enabled < dev->mode_config.num_crtc) { in drm_client_firmware_config() 878 (dev->mode_config.num_crtc > 1 && modeset->num_connectors == 1))) { in drm_client_modeset_probe()
|
H A D | drm_crtc.c | 248 if (WARN_ON(config->num_crtc >= 32)) in __drm_crtc_init_with_planes() 269 crtc->name = kasprintf(GFP_KERNEL, "crtc-%d", config->num_crtc); in __drm_crtc_init_with_planes() 284 crtc->index = config->num_crtc++; in __drm_crtc_init_with_planes() 501 dev->mode_config.num_crtc--; in drm_crtc_cleanup()
|
H A D | drm_mode_config.c | 441 dev->mode_config.num_crtc = 0; in drmm_mode_config_init() 701 WARN(num_primary != dev->mode_config.num_crtc, in drm_mode_config_validate() 703 num_primary, dev->mode_config.num_crtc); in drm_mode_config_validate()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display.h | 321 (__i) < (__state)->base.dev->mode_config.num_crtc && \ 337 (__i) < (__state)->base.dev->mode_config.num_crtc && \ 344 for ((__i) = (__state)->base.dev->mode_config.num_crtc - 1; \ 362 (__i) < (__state)->base.dev->mode_config.num_crtc && \ 370 for ((__i) = (__state)->base.dev->mode_config.num_crtc - 1; \
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_irq_kms.c | 327 r = drm_vblank_init(rdev_to_drm(rdev), rdev->num_crtc); in radeon_irq_kms_init() 453 if (crtc < 0 || crtc >= rdev->num_crtc) in radeon_irq_kms_pflip_irq_get() 479 if (crtc < 0 || crtc >= rdev->num_crtc) in radeon_irq_kms_pflip_irq_put()
|
H A D | radeon_asic.c | 2324 rdev->num_crtc = 1; in radeon_asic_init() 2326 rdev->num_crtc = 2; in radeon_asic_init() 2426 rdev->num_crtc = 4; in radeon_asic_init() 2428 rdev->num_crtc = 6; in radeon_asic_init() 2443 rdev->num_crtc = 4; in radeon_asic_init() 2445 rdev->num_crtc = 6; in radeon_asic_init() 2452 rdev->num_crtc = 6; in radeon_asic_init() 2458 rdev->num_crtc = 4; in radeon_asic_init() 2472 rdev->num_crtc = 0; in radeon_asic_init() 2474 rdev->num_crtc = 2; in radeon_asic_init() [all …]
|
H A D | radeon_kms.c | 268 for (i = 0, found = 0; i < rdev->num_crtc; i++) { in radeon_info_ioctl() 763 if (pipe >= rdev->num_crtc) { in radeon_get_vblank_counter_kms() 833 if (pipe >= rdev->num_crtc) { in radeon_enable_vblank_kms() 859 if (pipe >= rdev->num_crtc) { in radeon_disable_vblank_kms()
|
H A D | evergreen.c | 1381 if (crtc >= rdev->num_crtc) in dce4_wait_for_vblank() 2336 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_bandwidth_update() 2340 for (i = 0; i < rdev->num_crtc; i += 2) { in evergreen_bandwidth_update() 2677 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_stop() 2745 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_stop() 2767 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_resume() 2784 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_resume() 2817 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_mc_resume() 3802 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_is_display_hung() 3810 for (i = 0; i < rdev->num_crtc; i++) { in evergreen_is_display_hung() [all …]
|
H A D | rv515.c | 279 for (i = 0; i < rdev->num_crtc; i++) { in rv515_mc_stop() 334 for (i = 0; i < rdev->num_crtc; i++) { in rv515_mc_stop() 356 for (i = 0; i < rdev->num_crtc; i++) { in rv515_mc_resume() 378 for (i = 0; i < rdev->num_crtc; i++) { in rv515_mc_resume() 420 for (i = 0; i < rdev->num_crtc; i++) { in rv515_mc_resume()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_irq.c | 856 adev->crtc_irq.num_types = adev->mode_info.num_crtc; in amdgpu_dm_set_irq_funcs() 859 adev->vline0_irq.num_types = adev->mode_info.num_crtc; in amdgpu_dm_set_irq_funcs() 865 adev->vupdate_irq.num_types = adev->mode_info.num_crtc; in amdgpu_dm_set_irq_funcs() 871 adev->pageflip_irq.num_types = adev->mode_info.num_crtc; in amdgpu_dm_set_irq_funcs()
|
H A D | amdgpu_dm_crc.c | 543 secure_display_ctxs = kcalloc(adev->mode_info.num_crtc, in amdgpu_dm_crtc_secure_display_create_contexts() 550 for (i = 0; i < adev->mode_info.num_crtc; i++) { in amdgpu_dm_crtc_secure_display_create_contexts()
|
/linux/drivers/gpu/drm/logicvc/ |
H A D | logicvc_mode.c | 39 ret = drm_vblank_init(drm_dev, mode_config->num_crtc); in logicvc_mode_init()
|
/linux/include/drm/ |
H A D | drm_atomic.h | 877 (__i) < (__state)->dev->mode_config.num_crtc; \ 900 (__i) < (__state)->dev->mode_config.num_crtc; \ 920 (__i) < (__state)->dev->mode_config.num_crtc; \
|
H A D | drm_mode_config.h | 508 int num_crtc; member
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_drm.c | 574 if (dev->mode_config.num_crtc) in nouveau_drm_device_fini() 649 if (dev->mode_config.num_crtc) { in nouveau_drm_device_init() 931 if (dev->mode_config.num_crtc) { in nouveau_do_suspend() 976 if (dev->mode_config.num_crtc) { in nouveau_do_suspend() 1002 if (dev->mode_config.num_crtc) { in nouveau_do_resume()
|
/linux/drivers/gpu/drm/sprd/ |
H A D | sprd_drm.c | 95 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); in sprd_drm_bind()
|
/linux/drivers/gpu/drm/armada/ |
H A D | armada_drv.c | 126 ret = drm_vblank_init(&priv->drm, priv->drm.mode_config.num_crtc); in armada_drm_bind()
|