/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_crtc.c | 44 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_atombios_crtc_overscan_setup() local 51 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_overscan_setup() 53 switch (amdgpu_crtc->rmx_type) { in amdgpu_atombios_crtc_overscan_setup() 74 args.usOverscanRight = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup() 75 args.usOverscanLeft = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup() 76 args.usOverscanBottom = cpu_to_le16(amdgpu_crtc->v_border); in amdgpu_atombios_crtc_overscan_setup() 77 args.usOverscanTop = cpu_to_le16(amdgpu_crtc->v_border); in amdgpu_atombios_crtc_overscan_setup() 87 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_atombios_crtc_scaler_setup() local 93 args.ucScaler = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_scaler_setup() 95 switch (amdgpu_crtc->rmx_type) { in amdgpu_atombios_crtc_scaler_setup() [all …]
|
D | dce_v8_0.c | 238 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v8_0_page_flip() local 241 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, in dce_v8_0_page_flip() 244 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, in dce_v8_0_page_flip() 247 RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); in dce_v8_0_page_flip() 692 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in dce_v8_0_program_fmt() local 757 WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v8_0_program_fmt() 775 struct amdgpu_crtc *amdgpu_crtc, in dce_v8_0_line_buffer_adjust() argument 779 u32 pipe_offset = amdgpu_crtc->crtc_id * 0x8; in dce_v8_0_line_buffer_adjust() 788 if (amdgpu_crtc->base.enabled && mode) { in dce_v8_0_line_buffer_adjust() 808 WREG32(mmLB_MEMORY_CTRL + amdgpu_crtc->crtc_offset, in dce_v8_0_line_buffer_adjust() [all …]
|
D | dce_v10_0.c | 289 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v10_0_page_flip() local 292 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, in dce_v10_0_page_flip() 295 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, in dce_v10_0_page_flip() 298 RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); in dce_v10_0_page_flip() 717 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in dce_v10_0_program_fmt() local 785 WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v10_0_program_fmt() 803 struct amdgpu_crtc *amdgpu_crtc, in dce_v10_0_line_buffer_adjust() argument 807 u32 pipe_offset = amdgpu_crtc->crtc_id; in dce_v10_0_line_buffer_adjust() 816 if (amdgpu_crtc->base.enabled && mode) { in dce_v10_0_line_buffer_adjust() 836 tmp = RREG32(mmLB_MEMORY_CTRL + amdgpu_crtc->crtc_offset); in dce_v10_0_line_buffer_adjust() [all …]
|
D | dce_v11_0.c | 279 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v11_0_page_flip() local 282 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, in dce_v11_0_page_flip() 285 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, in dce_v11_0_page_flip() 288 RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); in dce_v11_0_page_flip() 705 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in dce_v11_0_program_fmt() local 773 WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v11_0_program_fmt() 791 struct amdgpu_crtc *amdgpu_crtc, in dce_v11_0_line_buffer_adjust() argument 795 u32 pipe_offset = amdgpu_crtc->crtc_id; in dce_v11_0_line_buffer_adjust() 804 if (amdgpu_crtc->base.enabled && mode) { in dce_v11_0_line_buffer_adjust() 824 tmp = RREG32(mmLB_MEMORY_CTRL + amdgpu_crtc->crtc_offset); in dce_v11_0_line_buffer_adjust() [all …]
|
D | amdgpu_display.c | 71 struct amdgpu_crtc *amdgpuCrtc = adev->mode_info.crtcs[work->crtc_id]; in amdgpu_flip_work_func() 173 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_crtc_page_flip() local 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() 244 if (amdgpu_crtc->pflip_status != AMDGPU_FLIP_NONE) { in amdgpu_crtc_page_flip() 251 amdgpu_crtc->pflip_status = AMDGPU_FLIP_PENDING; in amdgpu_crtc_page_flip() 252 amdgpu_crtc->pflip_works = work; in amdgpu_crtc_page_flip() 257 queue_work(amdgpu_crtc->pflip_queue, &work->flip_work); in amdgpu_crtc_page_flip() 261 drm_vblank_put(crtc->dev, amdgpu_crtc->crtc_id); in amdgpu_crtc_page_flip() 694 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_crtc_scaling_mode_fixup() local [all …]
|
D | amdgpu_fb.c | 303 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_crtc_fb_gamma_set() local 305 amdgpu_crtc->lut_r[regno] = red >> 6; in amdgpu_crtc_fb_gamma_set() 306 amdgpu_crtc->lut_g[regno] = green >> 6; in amdgpu_crtc_fb_gamma_set() 307 amdgpu_crtc->lut_b[regno] = blue >> 6; in amdgpu_crtc_fb_gamma_set() 314 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_crtc_fb_gamma_get() local 316 *red = amdgpu_crtc->lut_r[regno] << 6; in amdgpu_crtc_fb_gamma_get() 317 *green = amdgpu_crtc->lut_g[regno] << 6; in amdgpu_crtc_fb_gamma_get() 318 *blue = amdgpu_crtc->lut_b[regno] << 6; in amdgpu_crtc_fb_gamma_get()
|
D | amdgpu_pll.c | 263 struct amdgpu_crtc *test_amdgpu_crtc; in amdgpu_pll_get_use_mask() 290 struct amdgpu_crtc *test_amdgpu_crtc; in amdgpu_pll_get_shared_dp_ppll() 317 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_pll_get_shared_nondp_ppll() local 320 struct amdgpu_crtc *test_amdgpu_crtc; in amdgpu_pll_get_shared_nondp_ppll() 323 adjusted_clock = amdgpu_crtc->adjusted_clock; in amdgpu_pll_get_shared_nondp_ppll() 335 if (test_amdgpu_crtc->connector == amdgpu_crtc->connector) { in amdgpu_pll_get_shared_nondp_ppll() 344 (amdgpu_crtc->ss_enabled == test_amdgpu_crtc->ss_enabled) && in amdgpu_pll_get_shared_nondp_ppll()
|
D | amdgpu_dpm.c | 121 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vblank_time() local 127 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vblank_time() 128 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vblank_time() 130 amdgpu_crtc->hw_mode.crtc_htotal * in amdgpu_dpm_get_vblank_time() 131 (amdgpu_crtc->hw_mode.crtc_vblank_end - in amdgpu_dpm_get_vblank_time() 132 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time() 133 (amdgpu_crtc->v_border * 2)); in amdgpu_dpm_get_vblank_time() 135 vblank_time_us = vblank_in_pixels * 1000 / amdgpu_crtc->hw_mode.clock; in amdgpu_dpm_get_vblank_time() 148 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vrefresh() local 153 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vrefresh() [all …]
|
D | amdgpu_device.c | 1661 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_suspend_kms() local 1665 if (amdgpu_crtc->cursor_bo) { in amdgpu_suspend_kms() 1666 struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); in amdgpu_suspend_kms() 1769 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_resume_kms() local 1771 if (amdgpu_crtc->cursor_bo) { in amdgpu_resume_kms() 1772 struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); in amdgpu_resume_kms() 1777 &amdgpu_crtc->cursor_addr); in amdgpu_resume_kms()
|
D | atombios_encoders.c | 356 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in amdgpu_atombios_encoder_get_bpc() local 357 bpc = amdgpu_crtc->bpc; in amdgpu_atombios_encoder_get_bpc() 763 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in amdgpu_atombios_encoder_setup_dig_transmitter() local 764 pll_id = amdgpu_crtc->pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter() 1383 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in amdgpu_atombios_encoder_set_crtc_source() local 1399 args.v1.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source() 1438 args.v2.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source() 1506 args.v3.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
|
D | amdgpu_mode.h | 48 #define to_amdgpu_crtc(x) container_of(x, struct amdgpu_crtc, base) 311 struct amdgpu_crtc *crtcs[AMDGPU_MAX_CRTCS]; 367 struct amdgpu_crtc { struct
|
D | amdgpu_pm.c | 747 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_pm_compute_clocks() local 760 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_pm_compute_clocks() 762 adev->pm.dpm.new_active_crtcs |= (1 << amdgpu_crtc->crtc_id); in amdgpu_pm_compute_clocks()
|
D | amdgpu_kms.c | 183 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_info_ioctl() local 184 ui32 = amdgpu_crtc->crtc_id; in amdgpu_info_ioctl()
|