Home
last modified time | relevance | path

Searched refs:crtc_id (Results 1 – 25 of 45) sorted by relevance

12

/drivers/gpu/drm/amd/amdgpu/
Datombios_crtc.c51 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 …]
Damdgpu_display.c71 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()
Ddce_v8_0.c236 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 …]
Ddce_v10_0.c287 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 …]
Ddce_v11_0.c277 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 …]
Datombios_crtc.h41 u32 crtc_id,
Damdgpu_mode.h285 int crtc_id, u64 crtc_base);
369 int crtc_id; member
/drivers/gpu/drm/sti/
Dsti_compositor.c64 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/
Datombios_crtc.c47 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 …]
Dradeon_display.c47 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 …]
Dradeon_legacy_crtc.c301 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 …]
Dradeon_legacy_encoders.c220 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 …]
Dradeon_cursor.c74 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()
Drs780_dpm.h48 int crtc_id; member
Ddce6_afmt.c275 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()
Datombios_encoders.c1557 (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 …]
Devergreen_hdmi.c258 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()
Drs600.c113 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()
Dradeon_legacy_tv.c245 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()
Dr600_cs.c831 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/
Dvc4_drv.h117 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);
Dvc4_crtc.c431 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/
Dmsm_drv.c119 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/
Ddrm_crtc.c1750 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/
Dmdp5_crtc.c39 #define GET_LM_ID(crtc_id) ((crtc_id == 3) ? 5 : crtc_id) argument

12