/Linux-v4.19/include/drm/ |
D | drm_atomic.h | 290 struct __drm_crtcs_state *crtcs; member 421 return state->crtcs[drm_crtc_index(crtc)].state; in drm_atomic_get_existing_crtc_state() 436 return state->crtcs[drm_crtc_index(crtc)].old_state; in drm_atomic_get_old_crtc_state() 450 return state->crtcs[drm_crtc_index(crtc)].new_state; in drm_atomic_get_new_crtc_state() 711 for_each_if ((__state)->crtcs[__i].ptr && \ 712 ((crtc) = (__state)->crtcs[__i].ptr, \ 713 (old_crtc_state) = (__state)->crtcs[__i].old_state, \ 714 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1)) 731 for_each_if ((__state)->crtcs[__i].ptr && \ 732 ((crtc) = (__state)->crtcs[__i].ptr, \ [all …]
|
D | drm_lease.h | 32 uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | dce_virtual.c | 247 adev->mode_info.crtcs[index] = amdgpu_crtc; in dce_virtual_crtc_init() 424 memset(adev->mode_info.crtcs, 0, sizeof(adev->mode_info.crtcs[0]) * AMDGPU_MAX_CRTCS); in dce_virtual_sw_fini() 484 if (adev->mode_info.crtcs[i]) in dce_virtual_hw_fini() 663 amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_virtual_pageflip() 720 if (crtc >= adev->mode_info.num_crtc || !adev->mode_info.crtcs[crtc]) { in dce_virtual_set_crtc_vblank_interrupt_state() 725 if (state && !adev->mode_info.crtcs[crtc]->vsync_timer_enabled) { in dce_virtual_set_crtc_vblank_interrupt_state() 727 hrtimer_init(&adev->mode_info.crtcs[crtc]->vblank_timer, in dce_virtual_set_crtc_vblank_interrupt_state() 729 hrtimer_set_expires(&adev->mode_info.crtcs[crtc]->vblank_timer, in dce_virtual_set_crtc_vblank_interrupt_state() 731 adev->mode_info.crtcs[crtc]->vblank_timer.function = in dce_virtual_set_crtc_vblank_interrupt_state() 733 hrtimer_start(&adev->mode_info.crtcs[crtc]->vblank_timer, in dce_virtual_set_crtc_vblank_interrupt_state() [all …]
|
D | dce_v6_0.c | 187 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v6_0_page_flip() 1056 if (adev->mode_info.crtcs[i]->base.enabled) in dce_v6_0_bandwidth_update() 1060 mode0 = &adev->mode_info.crtcs[i]->base.mode; in dce_v6_0_bandwidth_update() 1061 mode1 = &adev->mode_info.crtcs[i+1]->base.mode; in dce_v6_0_bandwidth_update() 1062 lb_size = dce_v6_0_line_buffer_adjust(adev, adev->mode_info.crtcs[i], mode0, mode1); in dce_v6_0_bandwidth_update() 1063 dce_v6_0_program_watermarks(adev, adev->mode_info.crtcs[i], lb_size, num_heads); in dce_v6_0_bandwidth_update() 1064 lb_size = dce_v6_0_line_buffer_adjust(adev, adev->mode_info.crtcs[i+1], mode1, mode0); in dce_v6_0_bandwidth_update() 1065 dce_v6_0_program_watermarks(adev, adev->mode_info.crtcs[i+1], lb_size, num_heads); in dce_v6_0_bandwidth_update() 2429 if (adev->mode_info.crtcs[i] && in dce_v6_0_crtc_disable() 2430 adev->mode_info.crtcs[i]->enabled && in dce_v6_0_crtc_disable() [all …]
|
D | dce_v8_0.c | 182 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v8_0_page_flip() 1090 if (adev->mode_info.crtcs[i]->base.enabled) in dce_v8_0_bandwidth_update() 1094 mode = &adev->mode_info.crtcs[i]->base.mode; in dce_v8_0_bandwidth_update() 1095 lb_size = dce_v8_0_line_buffer_adjust(adev, adev->mode_info.crtcs[i], mode); in dce_v8_0_bandwidth_update() 1096 dce_v8_0_program_watermarks(adev, adev->mode_info.crtcs[i], in dce_v8_0_bandwidth_update() 2445 if (adev->mode_info.crtcs[i] && in dce_v8_0_crtc_disable() 2446 adev->mode_info.crtcs[i]->enabled && in dce_v8_0_crtc_disable() 2448 amdgpu_crtc->pll_id == adev->mode_info.crtcs[i]->pll_id) { in dce_v8_0_crtc_disable() 2575 adev->mode_info.crtcs[index] = amdgpu_crtc; in dce_v8_0_crtc_init() 3072 amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v8_0_pageflip_irq()
|
/Linux-v4.19/drivers/gpu/drm/sun4i/ |
D | sun8i_dw_hdmi.c | 55 u32 crtcs = 0; in sun8i_dw_hdmi_find_possible_crtcs() local 69 crtcs |= drm_of_crtc_port_mask(drm, remote_port); in sun8i_dw_hdmi_find_possible_crtcs() 74 crtcs = drm_of_find_possible_crtcs(drm, node); in sun8i_dw_hdmi_find_possible_crtcs() 80 return crtcs; in sun8i_dw_hdmi_find_possible_crtcs()
|
/Linux-v4.19/drivers/gpu/drm/rcar-du/ |
D | rcar_du_vsp.h | 63 unsigned int crtcs); 71 unsigned int crtcs) in rcar_du_vsp_init() argument
|
D | rcar_du_group.c | 87 struct rcar_du_crtc *crtc = &rcdu->crtcs[rgb_crtc]; in rcar_du_group_setup_defr8() 236 crtc = &rcdu->crtcs[index * 2]; in rcar_du_set_dpad0_vsp1_routing() 251 struct rcar_du_crtc *crtc0 = &rgrp->dev->crtcs[rgrp->index * 2]; in rcar_du_group_set_routing()
|
D | rcar_du_vsp.c | 366 unsigned int crtcs) in rcar_du_vsp_init() argument 370 unsigned int num_crtcs = hweight32(crtcs); in rcar_du_vsp_init() 405 ret = drm_universal_plane_init(rcdu->ddev, &plane->plane, crtcs, in rcar_du_vsp_init()
|
D | rcar_du_drv.h | 83 struct rcar_du_crtc crtcs[RCAR_DU_MAX_CRTCS]; member
|
D | rcar_du_plane.c | 762 unsigned int crtcs; in rcar_du_planes_init() local 772 crtcs = ((1 << rcdu->num_crtcs) - 1) & (3 << (2 * rgrp->index)); in rcar_du_planes_init() 782 ret = drm_universal_plane_init(rcdu->ddev, &plane->plane, crtcs, in rcar_du_planes_init()
|
D | rcar_du_kms.c | 471 rcdu->crtcs[i].vsp = &rcdu->vsps[j]; in rcar_du_vsps_init() 472 rcdu->crtcs[i].vsp_pipe = cells >= 1 ? args.args[0] : 0; in rcar_du_vsps_init()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | rs690.c | 251 rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); in rs690_line_buffer_adjust() 254 rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); in rs690_line_buffer_adjust() 597 if (rdev->mode_info.crtcs[0]->base.enabled) in rs690_bandwidth_update() 598 mode0 = &rdev->mode_info.crtcs[0]->base.mode; in rs690_bandwidth_update() 599 if (rdev->mode_info.crtcs[1]->base.enabled) in rs690_bandwidth_update() 600 mode1 = &rdev->mode_info.crtcs[1]->base.mode; in rs690_bandwidth_update() 624 rs690_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[0], &wm0_high, false); in rs690_bandwidth_update() 625 rs690_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[1], &wm1_high, false); in rs690_bandwidth_update() 627 rs690_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[0], &wm0_low, true); in rs690_bandwidth_update() 628 rs690_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[1], &wm1_low, true); in rs690_bandwidth_update()
|
D | rv515.c | 1240 if (rdev->mode_info.crtcs[0]->base.enabled) in rv515_bandwidth_avivo_update() 1241 mode0 = &rdev->mode_info.crtcs[0]->base.mode; in rv515_bandwidth_avivo_update() 1242 if (rdev->mode_info.crtcs[1]->base.enabled) in rv515_bandwidth_avivo_update() 1243 mode1 = &rdev->mode_info.crtcs[1]->base.mode; in rv515_bandwidth_avivo_update() 1246 rv515_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[0], &wm0_high, false); in rv515_bandwidth_avivo_update() 1247 rv515_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[1], &wm1_high, false); in rv515_bandwidth_avivo_update() 1249 rv515_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[0], &wm0_low, false); in rv515_bandwidth_avivo_update() 1250 rv515_crtc_bandwidth_compute(rdev, rdev->mode_info.crtcs[1], &wm1_low, false); in rv515_bandwidth_avivo_update() 1282 if (rdev->mode_info.crtcs[0]->base.enabled) in rv515_bandwidth_update() 1283 mode0 = &rdev->mode_info.crtcs[0]->base.mode; in rv515_bandwidth_update() [all …]
|
D | rs600.c | 115 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in rs600_page_flip() 146 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in rs600_page_flip_pending() 900 if (rdev->mode_info.crtcs[0]->base.enabled) in rs600_bandwidth_update() 901 mode0 = &rdev->mode_info.crtcs[0]->base.mode; in rs600_bandwidth_update() 902 if (rdev->mode_info.crtcs[1]->base.enabled) in rs600_bandwidth_update() 903 mode1 = &rdev->mode_info.crtcs[1]->base.mode; in rs600_bandwidth_update()
|
D | radeon_kms.c | 274 crtc = (struct drm_crtc *)minfo->crtcs[i]; in radeon_info_ioctl() 786 if (rdev->mode_info.crtcs[pipe]) { in radeon_get_vblank_counter_kms() 799 &rdev->mode_info.crtcs[pipe]->base.hwmode); in radeon_get_vblank_counter_kms()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_atomic.c | 60 kfree(state->crtcs); in drm_atomic_state_default_release() 85 state->crtcs = kcalloc(dev->mode_config.num_crtc, in drm_atomic_state_init() 86 sizeof(*state->crtcs), GFP_KERNEL); in drm_atomic_state_init() 87 if (!state->crtcs) in drm_atomic_state_init() 165 struct drm_crtc *crtc = state->crtcs[i].ptr; in drm_atomic_state_default_clear() 171 state->crtcs[i].state); in drm_atomic_state_default_clear() 173 state->crtcs[i].ptr = NULL; in drm_atomic_state_default_clear() 174 state->crtcs[i].state = NULL; in drm_atomic_state_default_clear() 175 state->crtcs[i].old_state = NULL; in drm_atomic_state_default_clear() 176 state->crtcs[i].new_state = NULL; in drm_atomic_state_default_clear() [all …]
|
D | drm_fb_helper.c | 2335 struct drm_fb_helper_crtc **crtcs, *crtc; in drm_pick_crtcs() local 2349 crtcs = kcalloc(fb_helper->connector_count, in drm_pick_crtcs() 2351 if (!crtcs) in drm_pick_crtcs() 2386 crtcs[n] = crtc; in drm_pick_crtcs() 2387 memcpy(crtcs, best_crtcs, n * sizeof(struct drm_fb_helper_crtc *)); in drm_pick_crtcs() 2388 score = my_score + drm_pick_crtcs(fb_helper, crtcs, modes, n + 1, in drm_pick_crtcs() 2392 memcpy(best_crtcs, crtcs, in drm_pick_crtcs() 2398 kfree(crtcs); in drm_pick_crtcs() 2462 struct drm_fb_helper_crtc **crtcs; in drm_setup_crtcs() local 2472 crtcs = kcalloc(fb_helper->connector_count, in drm_setup_crtcs() [all …]
|
/Linux-v4.19/drivers/gpu/drm/omapdrm/ |
D | omap_drv.h | 58 struct drm_crtc *crtcs[8]; member
|
D | omap_drv.c | 234 num_crtcs > ARRAY_SIZE(priv->crtcs) || in omap_modeset_init() 280 priv->crtcs[priv->num_crtcs++] = crtc; in omap_modeset_init() 577 drm_crtc_vblank_off(priv->crtcs[i]); in omapdrm_init()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_display.h | 366 ((crtc) = to_intel_crtc((__state)->base.crtcs[__i].ptr), \ 367 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
|
D | intel_fbdev.c | 331 struct drm_fb_helper_crtc **crtcs, in intel_fb_initial_config() argument 415 if (crtcs[j] == new_crtc) { in intel_fb_initial_config() 463 crtcs[i] = new_crtc; in intel_fb_initial_config()
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_irq.c | 95 if (status & mdp4_crtc_vblank(priv->crtcs[id])) in mdp4_irq()
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_irq.c | 108 if (status & mdp5_crtc_vblank(priv->crtcs[id])) in mdp5_irq()
|
/Linux-v4.19/drivers/gpu/drm/arm/ |
D | malidp_planes.c | 449 unsigned long crtcs = 1 << drm->mode_config.num_crtc; in malidp_de_planes_init() local 478 ret = drm_universal_plane_init(drm, &plane->base, crtcs, in malidp_de_planes_init()
|