Home
last modified time | relevance | path

Searched refs:num_crtcs (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.1.9/drivers/gpu/drm/vboxvideo/
Dvbox_main.c39 vbox->vbva_info = devm_kcalloc(vbox->ddev.dev, vbox->num_crtcs, in vbox_accel_init()
45 vbox->available_vram_size -= vbox->num_crtcs * VBVA_MIN_BUFFER_SIZE; in vbox_accel_init()
49 vbox->num_crtcs * in vbox_accel_init()
54 for (i = 0; i < vbox->num_crtcs; ++i) { in vbox_accel_init()
75 for (i = 0; i < vbox->num_crtcs; ++i) in vbox_accel_fini()
150 &vbox->num_crtcs); in vbox_hw_init()
151 vbox->num_crtcs = clamp_t(u32, vbox->num_crtcs, 1, VBOX_MAX_SCREENS); in vbox_hw_init()
158 vbox->last_mode_hints = devm_kcalloc(vbox->ddev.dev, vbox->num_crtcs, in vbox_hw_init()
Dvbox_irq.c73 for (i = 0; i < vbox->num_crtcs; ++i) { in validate_or_set_position_hints()
96 for (i = 0; i < vbox->num_crtcs; ++i) { in validate_or_set_position_hints()
119 ret = hgsmi_get_mode_hints(vbox->guest_pool, vbox->num_crtcs, in vbox_update_mode_hints()
Dvbox_drv.h57 u32 num_crtcs; member
/linux-6.1.9/drivers/gpu/drm/rcar-du/
Drcar_du_group.c91 unsigned int num_crtcs = 0; in rcar_du_group_setup_didsr() local
109 num_crtcs = rcdu->num_crtcs; in rcar_du_group_setup_didsr()
110 } else if (rcdu->info->gen == 3 && rgrp->num_crtcs > 1) { in rcar_du_group_setup_didsr()
116 num_crtcs = rgrp->num_crtcs; in rcar_du_group_setup_didsr()
119 if (!num_crtcs) in rcar_du_group_setup_didsr()
123 for (i = 0; i < num_crtcs; ++i, ++rcrtc) { in rcar_du_group_setup_didsr()
287 index = rcdu->info->gen < 3 ? 0 : DIV_ROUND_UP(rcdu->num_crtcs, 2) - 1; in rcar_du_set_dpad0_vsp1_routing()
329 for (i = 0; i < rgrp->num_crtcs; ++i) { in rcar_du_group_set_dpad_levels()
Drcar_du_kms.c666 cells = ret / rcdu->num_crtcs - 1; in rcar_du_vsps_init()
670 for (i = 0; i < rcdu->num_crtcs; ++i) { in rcar_du_vsps_init()
737 if (cells > rcdu->num_crtcs) { in rcar_du_cmm_init()
849 rcdu->num_crtcs = hweight8(rcdu->info->channels_mask); in rcar_du_modeset_init()
859 ret = drm_vblank_init(dev, rcdu->num_crtcs); in rcar_du_modeset_init()
864 num_groups = DIV_ROUND_UP(rcdu->num_crtcs, 2); in rcar_du_modeset_init()
877 rgrp->num_crtcs = hweight8(rgrp->channels_mask); in rcar_du_modeset_init()
885 rgrp->dptsr_planes = rgrp->num_crtcs > 1 in rcar_du_modeset_init()
909 for (swindex = 0, hwindex = 0; swindex < rcdu->num_crtcs; ++hwindex) { in rcar_du_modeset_init()
951 for (i = 0; i < rcdu->num_crtcs; ++i) { in rcar_du_modeset_init()
Drcar_du_group.h42 unsigned int num_crtcs; member
Drcar_du_drv.h106 unsigned int num_crtcs; member
Drcar_du_plane.c795 rgrp->num_planes = rgrp->num_crtcs + 7; in rcar_du_planes_init()
797 crtcs = ((1 << rcdu->num_crtcs) - 1) & (3 << (2 * rgrp->index)); in rcar_du_planes_init()
800 enum drm_plane_type type = i < rgrp->num_crtcs in rcar_du_planes_init()
Drcar_du_vsp.c408 unsigned int num_crtcs = hweight32(crtcs); in rcar_du_vsp_init() local
435 enum drm_plane_type type = i < num_crtcs in rcar_du_vsp_init()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_vblank.c375 if (drm_WARN_ON(dev, pipe >= dev->num_crtcs)) in drm_vblank_count()
523 int drm_vblank_init(struct drm_device *dev, unsigned int num_crtcs) in drm_vblank_init() argument
531 dev->vblank = drmm_kcalloc(dev, num_crtcs, sizeof(*dev->vblank), GFP_KERNEL); in drm_vblank_init()
535 dev->num_crtcs = num_crtcs; in drm_vblank_init()
537 for (i = 0; i < num_crtcs; i++) { in drm_vblank_init()
578 return dev->num_crtcs != 0; in drm_dev_has_vblank()
620 if (drm_WARN_ON(dev, pipe >= dev->num_crtcs)) in drm_calc_timestamping_constants()
706 if (pipe >= dev->num_crtcs) { in drm_crtc_vblank_helper_get_vblank_timestamp_internal()
942 if (drm_WARN_ON(dev, pipe >= dev->num_crtcs)) { in drm_vblank_count_and_time()
1169 if (drm_WARN_ON(dev, pipe >= dev->num_crtcs)) in drm_vblank_get()
[all …]
Ddrm_irq.c132 for (i = 0; i < dev->num_crtcs; i++) { in drm_legacy_irq_uninstall()
/linux-6.1.9/drivers/gpu/drm/tidss/
Dtidss_irq.c65 for (id = 0; id < tidss->num_crtcs; id++) { in tidss_irq_handler()
122 for (i = 0; i < tidss->num_crtcs; ++i) { in tidss_irq_postinstall()
Dtidss_drv.h24 unsigned int num_crtcs; member
Dtidss_kms.c219 tidss->crtcs[tidss->num_crtcs++] = &tcrtc->crtc; in tidss_dispc_modeset_init()
277 ret = drm_vblank_init(ddev, tidss->num_crtcs); in tidss_modeset_init()
/linux-6.1.9/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_kms.c433 unsigned int num_crtcs; in modeset_init() local
459 num_crtcs = min(num_encoders, mdp5_kms->num_hwmixers); in modeset_init()
471 if (i < num_crtcs) in modeset_init()
491 for (i = 0; i < num_crtcs; i++) { in modeset_init()
500 priv->crtcs[priv->num_crtcs++] = crtc; in modeset_init()
508 encoder->possible_crtcs = (1 << priv->num_crtcs) - 1; in modeset_init()
Dmdp5_irq.c97 for (id = 0; id < priv->num_crtcs; id++) in mdp5_irq()
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_atomic.c146 int i, num_crtcs = 0; in can_do_async() local
158 if (++num_crtcs > 1) in can_do_async()
Dmsm_drv.c227 for (i = 0; i < priv->num_crtcs; i++) { in msm_drm_uninit()
488 for (i = 0; i < priv->num_crtcs; i++) { in msm_drm_init()
504 ret = drm_vblank_init(ddev, priv->num_crtcs); in msm_drm_init()
Dmsm_drv.h203 unsigned int num_crtcs; member
/linux-6.1.9/include/drm/
Ddrm_device.h263 unsigned int num_crtcs; member
Ddrm_vblank.h228 int drm_vblank_init(struct drm_device *dev, unsigned int num_crtcs);
/linux-6.1.9/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_irq.c84 for (id = 0; id < priv->num_crtcs; id++) in mdp4_irq()
Dmdp4_kms.c331 crtc = mdp4_crtc_init(dev, plane, priv->num_crtcs, i, in modeset_init()
340 priv->crtcs[priv->num_crtcs++] = crtc; in modeset_init()
/linux-6.1.9/drivers/gpu/drm/gma500/
Dpsb_irq.c305 for (i = 0; i < dev->num_crtcs; ++i) { in gma_irq_postinstall()
358 for (i = 0; i < dev->num_crtcs; ++i) { in gma_irq_uninstall()
/linux-6.1.9/drivers/gpu/drm/tegra/
Ddrm.h62 unsigned int num_crtcs; member

12