/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_crtc.c | 51 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_overscan_setup() 93 args.ucScaler = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_scaler_setup() 123 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_lock() 139 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_enable() 155 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_blank() 171 args.ucDispPipeId = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_powergate() 229 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_set_dtd_timing() 243 int crtc_id, in amdgpu_atombios_crtc_program_ss() argument 264 i != crtc_id && in amdgpu_atombios_crtc_program_ss() 526 u32 crtc_id, in amdgpu_atombios_crtc_program_pll() argument [all …]
|
D | amdgpu_display.c | 71 struct amdgpu_crtc *amdgpuCrtc = adev->mode_info.crtcs[work->crtc_id]; in amdgpu_flip_work_func() 77 struct drm_vblank_crtc *vblank = &crtc->dev->vblank[work->crtc_id]; in amdgpu_flip_work_func() 104 stat = amdgpu_get_crtc_scanoutpos(adev->ddev, work->crtc_id, in amdgpu_flip_work_func() 129 "hpos %d\n", work->crtc_id, min_udelay, in amdgpu_flip_work_func() 134 adev->mode_info.funcs->page_flip(adev, work->crtc_id, work->base); in amdgpu_flip_work_func() 193 work->crtc_id = amdgpu_crtc->crtc_id; in amdgpu_crtc_page_flip() 236 r = drm_vblank_get(crtc->dev, amdgpu_crtc->crtc_id); in amdgpu_crtc_page_flip() 261 drm_vblank_put(crtc->dev, amdgpu_crtc->crtc_id); in amdgpu_crtc_page_flip()
|
D | dce_v8_0.c | 236 int crtc_id, u64 crtc_base) in dce_v8_0_page_flip() argument 238 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v8_0_page_flip() 779 u32 pipe_offset = amdgpu_crtc->crtc_id * 0x8; in dce_v8_0_line_buffer_adjust() 1732 …WREG32(mmDCCG_AUDIO_DTO_SOURCE, (amdgpu_crtc->crtc_id << DCCG_AUDIO_DTO_SOURCE__DCCG_AUDIO_DTO0_SO… in dce_v8_0_audio_set_dto() 1974 vga_control = RREG32(vga_control_regs[amdgpu_crtc->crtc_id]) & ~1; in dce_v8_0_vga_enable() 1976 WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control | 1); in dce_v8_0_vga_enable() 1978 WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control); in dce_v8_0_vga_enable() 2238 DRM_DEBUG_KMS("%d\n", amdgpu_crtc->crtc_id); in dce_v8_0_crtc_load_lut() 2511 DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, amdgpu_crtc->crtc_id); in dce_v8_0_crtc_cursor_set2() 2630 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); in dce_v8_0_crtc_dpms() [all …]
|
D | dce_v10_0.c | 287 int crtc_id, u64 crtc_base) in dce_v10_0_page_flip() argument 289 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v10_0_page_flip() 807 u32 pipe_offset = amdgpu_crtc->crtc_id; in dce_v10_0_line_buffer_adjust() 1749 amdgpu_crtc->crtc_id); in dce_v10_0_audio_set_dto() 2010 vga_control = RREG32(vga_control_regs[amdgpu_crtc->crtc_id]) & ~1; in dce_v10_0_vga_enable() 2012 WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control | 1); in dce_v10_0_vga_enable() 2014 WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control); in dce_v10_0_vga_enable() 2294 DRM_DEBUG_KMS("%d\n", amdgpu_crtc->crtc_id); in dce_v10_0_crtc_load_lut() 2572 DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, amdgpu_crtc->crtc_id); in dce_v10_0_crtc_cursor_set2() 2691 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); in dce_v10_0_crtc_dpms() [all …]
|
D | dce_v11_0.c | 277 int crtc_id, u64 crtc_base) in dce_v11_0_page_flip() argument 279 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v11_0_page_flip() 795 u32 pipe_offset = amdgpu_crtc->crtc_id; in dce_v11_0_line_buffer_adjust() 1737 amdgpu_crtc->crtc_id); in dce_v11_0_audio_set_dto() 1998 vga_control = RREG32(vga_control_regs[amdgpu_crtc->crtc_id]) & ~1; in dce_v11_0_vga_enable() 2000 WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control | 1); in dce_v11_0_vga_enable() 2002 WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control); in dce_v11_0_vga_enable() 2282 DRM_DEBUG_KMS("%d\n", amdgpu_crtc->crtc_id); in dce_v11_0_crtc_load_lut() 2561 DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, amdgpu_crtc->crtc_id); in dce_v11_0_crtc_cursor_set2() 2680 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); in dce_v11_0_crtc_dpms() [all …]
|
D | atombios_crtc.h | 41 u32 crtc_id,
|
D | amdgpu_mode.h | 285 int crtc_id, u64 crtc_base); 369 int crtc_id; member
|
/drivers/gpu/drm/sti/ |
D | sti_compositor.c | 64 unsigned int i, mixer_id = 0, vid_id = 0, crtc_id = 0; in sti_compositor_bind() local 101 if (crtc_id < mixer_id) in sti_compositor_bind() 137 if (crtc_id < mixer_id && primary) { in sti_compositor_bind() 138 sti_crtc_init(drm_dev, compo->mixer[crtc_id], in sti_compositor_bind() 140 crtc_id++; in sti_compositor_bind() 146 drm_vblank_init(drm_dev, crtc_id); in sti_compositor_bind()
|
/drivers/gpu/drm/radeon/ |
D | atombios_crtc.c | 47 args.ucCRTC = radeon_crtc->crtc_id; in atombios_overscan_setup() 92 if (!ASIC_IS_AVIVO(rdev) && radeon_crtc->crtc_id) in atombios_scaler_setup() 103 args.ucScaler = radeon_crtc->crtc_id; in atombios_scaler_setup() 174 args.ucCRTC = radeon_crtc->crtc_id; in atombios_lock_crtc() 190 args.ucCRTC = radeon_crtc->crtc_id; in atombios_enable_crtc() 206 args.ucCRTC = radeon_crtc->crtc_id; in atombios_enable_crtc_memreq() 234 vga_control = RREG32(vga_control_regs[radeon_crtc->crtc_id]); in atombios_blank_crtc() 235 WREG32(vga_control_regs[radeon_crtc->crtc_id], vga_control | 1); in atombios_blank_crtc() 238 args.ucCRTC = radeon_crtc->crtc_id; in atombios_blank_crtc() 244 WREG32(vga_control_regs[radeon_crtc->crtc_id], vga_control); in atombios_blank_crtc() [all …]
|
D | radeon_display.c | 47 DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id); in avivo_crtc_load_lut() 58 WREG32(AVIVO_DC_LUT_RW_SELECT, radeon_crtc->crtc_id); in avivo_crtc_load_lut() 71 WREG32_P(AVIVO_D1GRPH_LUT_SEL + radeon_crtc->crtc_offset, radeon_crtc->crtc_id, ~1); in avivo_crtc_load_lut() 81 DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id); in dce4_crtc_load_lut() 111 DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id); in dce5_crtc_load_lut() 181 if (radeon_crtc->crtc_id == 0) in legacy_crtc_load_lut() 288 void radeon_crtc_handle_vblank(struct radeon_device *rdev, int crtc_id) in radeon_crtc_handle_vblank() argument 290 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in radeon_crtc_handle_vblank() 321 update_pending = radeon_page_flip_pending(rdev, crtc_id); in radeon_crtc_handle_vblank() 328 crtc_id, in radeon_crtc_handle_vblank() [all …]
|
D | radeon_legacy_crtc.c | 301 if (radeon_crtc->crtc_id) in radeon_crtc_dpms() 326 if (radeon_crtc->crtc_id) in radeon_crtc_dpms() 333 drm_vblank_post_modeset(dev, radeon_crtc->crtc_id); in radeon_crtc_dpms() 341 drm_vblank_pre_modeset(dev, radeon_crtc->crtc_id); in radeon_crtc_dpms() 342 if (radeon_crtc->crtc_id) in radeon_crtc_dpms() 535 if (radeon_crtc->crtc_id == 1) in radeon_crtc_do_set_base() 551 if (radeon_crtc->crtc_id) in radeon_crtc_do_set_base() 598 DRM_INFO("crtc %d is connected to a TV\n", radeon_crtc->crtc_id); in radeon_set_crtc_timing() 652 if (radeon_crtc->crtc_id) { in radeon_set_crtc_timing() 775 if (radeon_crtc->crtc_id) in radeon_set_pll() [all …]
|
D | radeon_legacy_encoders.c | 220 if (radeon_crtc->crtc_id == 0) { in radeon_legacy_lvds_mode_set() 241 radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); in radeon_legacy_lvds_mode_set() 243 radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); in radeon_legacy_lvds_mode_set() 589 if (radeon_crtc->crtc_id == 0) { in radeon_legacy_primary_dac_mode_set() 629 radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); in radeon_legacy_primary_dac_mode_set() 631 radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); in radeon_legacy_primary_dac_mode_set() 847 if (radeon_crtc->crtc_id == 0) { in radeon_legacy_tmds_int_mode_set() 869 radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); in radeon_legacy_tmds_int_mode_set() 871 radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); in radeon_legacy_tmds_int_mode_set() 983 if (radeon_crtc->crtc_id == 0) { in radeon_legacy_tmds_ext_mode_set() [all …]
|
D | radeon_cursor.c | 74 switch (radeon_crtc->crtc_id) { in radeon_hide_cursor() 107 if (radeon_crtc->crtc_id) in radeon_show_cursor() 125 switch (radeon_crtc->crtc_id) { in radeon_show_cursor() 303 DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, radeon_crtc->crtc_id); in radeon_crtc_cursor_set2()
|
D | rs780_dpm.h | 48 int crtc_id; member
|
D | dce6_afmt.c | 275 value |= DCCG_AUDIO_DTO0_SOURCE_SEL(crtc->crtc_id); in dce6_hdmi_audio_set_dto() 295 value |= DCCG_AUDIO_DTO0_SOURCE_SEL(crtc->crtc_id); in dce6_dp_audio_set_dto()
|
D | atombios_encoders.c | 1557 (radeon_crtc->crtc_id << 18))); in atombios_yuv_setup() 1559 WREG32(reg, (ATOM_S3_CV_ACTIVE | (radeon_crtc->crtc_id << 24))); in atombios_yuv_setup() 1565 args.ucCRTC = radeon_crtc->crtc_id; in atombios_yuv_setup() 1881 args.v1.ucCRTC = radeon_crtc->crtc_id; in atombios_set_encoder_crtc_source() 1884 args.v1.ucCRTC = radeon_crtc->crtc_id; in atombios_set_encoder_crtc_source() 1886 args.v1.ucCRTC = radeon_crtc->crtc_id << 2; in atombios_set_encoder_crtc_source() 1927 args.v2.ucCRTC = radeon_crtc->crtc_id; in atombios_set_encoder_crtc_source() 2004 radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); in atombios_set_encoder_crtc_source() 2025 args.v2.ucCRTC = radeon_crtc->crtc_id; in atombios_set_mst_encoder_crtc_source() 2161 enc_idx = radeon_crtc->crtc_id; in radeon_atom_pick_dig_encoder() [all …]
|
D | evergreen_hdmi.c | 258 value |= DCCG_AUDIO_DTO0_SOURCE_SEL(crtc->crtc_id); in dce4_hdmi_audio_set_dto() 284 value |= DCCG_AUDIO_DTO0_SOURCE_SEL(crtc->crtc_id); in dce4_dp_audio_set_dto()
|
D | rs600.c | 113 void rs600_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) in rs600_page_flip() argument 115 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in rs600_page_flip() 142 bool rs600_page_flip_pending(struct radeon_device *rdev, int crtc_id) in rs600_page_flip_pending() argument 144 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in rs600_page_flip_pending()
|
D | radeon_legacy_tv.c | 245 if (radeon_crtc->crtc_id == 1) in radeon_legacy_tv_get_std_mode() 437 if (radeon_crtc->crtc_id == 1) in radeon_legacy_tv_init_restarts() 603 if (radeon_crtc->crtc_id == 1) in radeon_legacy_tv_mode_set()
|
D | r600_cs.c | 831 int crtc_id; in r600_cs_common_vline_parse() local 886 crtc_id = radeon_get_ib_value(p, h_idx + 2 + 7 + 1); in r600_cs_common_vline_parse() 889 crtc = drm_crtc_find(p->rdev->ddev, crtc_id); in r600_cs_common_vline_parse() 891 DRM_ERROR("cannot find crtc %d\n", crtc_id); in r600_cs_common_vline_parse() 895 crtc_id = radeon_crtc->crtc_id; in r600_cs_common_vline_parse() 908 header |= vline_start_end[crtc_id] >> 2; in r600_cs_common_vline_parse() 910 ib[h_idx + 4] = vline_status[crtc_id] >> 2; in r600_cs_common_vline_parse()
|
/drivers/gpu/drm/vc4/ |
D | vc4_drv.h | 117 int vc4_enable_vblank(struct drm_device *dev, unsigned int crtc_id); 118 void vc4_disable_vblank(struct drm_device *dev, unsigned int crtc_id);
|
D | vc4_crtc.c | 431 int vc4_enable_vblank(struct drm_device *dev, unsigned int crtc_id) in vc4_enable_vblank() argument 434 struct vc4_crtc *vc4_crtc = vc4->crtc[crtc_id]; in vc4_enable_vblank() 441 void vc4_disable_vblank(struct drm_device *dev, unsigned int crtc_id) in vc4_disable_vblank() argument 444 struct vc4_crtc *vc4_crtc = vc4->crtc[crtc_id]; in vc4_disable_vblank()
|
/drivers/gpu/drm/msm/ |
D | msm_drv.c | 119 int crtc_id; member 140 priv->crtcs[vbl_ev->crtc_id]); in vblank_ctrl_worker() 143 priv->crtcs[vbl_ev->crtc_id]); in vblank_ctrl_worker() 154 int crtc_id, bool enable) in vblank_ctrl_queue_work() argument 164 vbl_ev->crtc_id = crtc_id; in vblank_ctrl_queue_work()
|
/drivers/gpu/drm/ |
D | drm_crtc.c | 1750 uint32_t __user *crtc_id; in drm_mode_getresources() local 1802 crtc_id = (uint32_t __user *)(unsigned long)card_res->crtc_id_ptr; in drm_mode_getresources() 1805 if (put_user(crtc->base.id, crtc_id + copied)) { in drm_mode_getresources() 1879 crtc = drm_crtc_find(dev, crtc_resp->crtc_id); in drm_mode_getcrtc() 2161 enc_resp->crtc_id = crtc->base.id; in drm_mode_getencoder() 2163 enc_resp->crtc_id = 0; in drm_mode_getencoder() 2264 plane_resp->crtc_id = plane->crtc->base.id; in drm_mode_getplane() 2266 plane_resp->crtc_id = 0; in drm_mode_getplane() 2491 crtc = drm_crtc_find(dev, plane_req->crtc_id); in drm_mode_setplane() 2494 plane_req->crtc_id); in drm_mode_setplane() [all …]
|
/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_crtc.c | 39 #define GET_LM_ID(crtc_id) ((crtc_id == 3) ? 5 : crtc_id) argument
|