Home
last modified time | relevance | path

Searched refs:num_crtc (Results 1 – 25 of 73) sorted by relevance

123

/linux/drivers/gpu/drm/amd/pm/
H A Damdgpu_dpm_internal.c38 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 Dvgastate.c238 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 Ddce_v8_0.c150 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 Ddce_v11_0.c223 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 Ddce_v10_0.c199 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 Damdgpu_vkms.c501 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 Ddce_v6_0.c156 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 Damdgpu_device.c2401 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 Ddrm_client_modeset.c38 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 Ddrm_crtc.c248 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 Ddrm_mode_config.c441 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 Dintel_display.h321 (__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 Dradeon_irq_kms.c327 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 Dradeon_asic.c2324 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 Dradeon_kms.c268 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 Devergreen.c1381 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 Drv515.c279 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 Damdgpu_dm_irq.c856 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 Damdgpu_dm_crc.c543 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 Dlogicvc_mode.c39 ret = drm_vblank_init(drm_dev, mode_config->num_crtc); in logicvc_mode_init()
/linux/include/drm/
H A Ddrm_atomic.h877 (__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 Ddrm_mode_config.h508 int num_crtc; member
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_drm.c574 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 Dsprd_drm.c95 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); in sprd_drm_bind()
/linux/drivers/gpu/drm/armada/
H A Darmada_drv.c126 ret = drm_vblank_init(&priv->drm, priv->drm.mode_config.num_crtc); in armada_drm_bind()

123