Home
last modified time | relevance | path

Searched refs:amdgpu_crtc (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/pm/
Damdgpu_dpm_internal.c34 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_active_displays() local
41 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_active_displays()
42 if (amdgpu_crtc->enabled) { in amdgpu_dpm_get_active_displays()
43 adev->pm.dpm.new_active_crtcs |= (1 << amdgpu_crtc->crtc_id); in amdgpu_dpm_get_active_displays()
54 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vblank_time() local
60 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vblank_time()
61 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vblank_time()
63 amdgpu_crtc->hw_mode.crtc_htotal * in amdgpu_dpm_get_vblank_time()
64 (amdgpu_crtc->hw_mode.crtc_vblank_end - in amdgpu_dpm_get_vblank_time()
65 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Datombios_crtc.c45 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_atombios_crtc_overscan_setup() local
52 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_overscan_setup()
54 switch (amdgpu_crtc->rmx_type) { in amdgpu_atombios_crtc_overscan_setup()
75 args.usOverscanRight = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup()
76 args.usOverscanLeft = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup()
77 args.usOverscanBottom = cpu_to_le16(amdgpu_crtc->v_border); in amdgpu_atombios_crtc_overscan_setup()
78 args.usOverscanTop = cpu_to_le16(amdgpu_crtc->v_border); in amdgpu_atombios_crtc_overscan_setup()
88 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_atombios_crtc_scaler_setup() local
94 args.ucScaler = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_scaler_setup()
96 switch (amdgpu_crtc->rmx_type) { in amdgpu_atombios_crtc_scaler_setup()
[all …]
Ddce_v8_0.c187 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v8_0_page_flip() local
188 struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; in dce_v8_0_page_flip()
191 WREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset, async ? in dce_v8_0_page_flip()
194 WREG32(mmGRPH_PITCH + amdgpu_crtc->crtc_offset, in dce_v8_0_page_flip()
197 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, in dce_v8_0_page_flip()
200 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, in dce_v8_0_page_flip()
203 RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); in dce_v8_0_page_flip()
450 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in dce_v8_0_program_fmt() local
515 WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v8_0_program_fmt()
533 struct amdgpu_crtc *amdgpu_crtc, in dce_v8_0_line_buffer_adjust() argument
[all …]
Ddce_v10_0.c239 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v10_0_page_flip() local
240 struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; in dce_v10_0_page_flip()
244 tmp = RREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset); in dce_v10_0_page_flip()
247 WREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v10_0_page_flip()
249 WREG32(mmGRPH_PITCH + amdgpu_crtc->crtc_offset, in dce_v10_0_page_flip()
252 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, in dce_v10_0_page_flip()
255 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, in dce_v10_0_page_flip()
258 RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); in dce_v10_0_page_flip()
510 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in dce_v10_0_program_fmt() local
578 WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v10_0_program_fmt()
[all …]
Ddce_v6_0.c194 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v6_0_page_flip() local
195 struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; in dce_v6_0_page_flip()
198 WREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset, async ? in dce_v6_0_page_flip()
201 WREG32(mmGRPH_PITCH + amdgpu_crtc->crtc_offset, in dce_v6_0_page_flip()
204 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, in dce_v6_0_page_flip()
206 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, in dce_v6_0_page_flip()
210 RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); in dce_v6_0_page_flip()
408 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in dce_v6_0_program_fmt() local
455 WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v6_0_program_fmt()
826 struct amdgpu_crtc *amdgpu_crtc, in dce_v6_0_program_watermarks() argument
[all …]
Ddce_v11_0.c257 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; in dce_v11_0_page_flip() local
258 struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; in dce_v11_0_page_flip()
262 tmp = RREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset); in dce_v11_0_page_flip()
265 WREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v11_0_page_flip()
267 WREG32(mmGRPH_PITCH + amdgpu_crtc->crtc_offset, in dce_v11_0_page_flip()
270 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, in dce_v11_0_page_flip()
273 WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, in dce_v11_0_page_flip()
276 RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); in dce_v11_0_page_flip()
536 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in dce_v11_0_program_fmt() local
604 WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); in dce_v11_0_program_fmt()
[all …]
Damdgpu_vkms.c46 struct amdgpu_crtc *amdgpu_crtc = container_of(timer, struct amdgpu_crtc, vblank_timer); in amdgpu_vkms_vblank_simulate() local
47 struct drm_crtc *crtc = &amdgpu_crtc->base; in amdgpu_vkms_vblank_simulate()
52 ret_overrun = hrtimer_forward_now(&amdgpu_crtc->vblank_timer, in amdgpu_vkms_vblank_simulate()
70 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_enable_vblank() local
75 hrtimer_start(&amdgpu_crtc->vblank_timer, out->period_ns, HRTIMER_MODE_REL); in amdgpu_vkms_enable_vblank()
82 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_disable_vblank() local
84 hrtimer_cancel(&amdgpu_crtc->vblank_timer); in amdgpu_vkms_disable_vblank()
96 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_get_vblank_timestamp() local
103 *vblank_time = READ_ONCE(amdgpu_crtc->vblank_timer.node.expires); in amdgpu_vkms_get_vblank_timestamp()
172 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_crtc_init() local
[all …]
Damdgpu_display.c87 struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[work->crtc_id]; in amdgpu_display_flip_work_func() local
89 struct drm_crtc *crtc = &amdgpu_crtc->base; in amdgpu_display_flip_work_func()
101 if (amdgpu_crtc->enabled && in amdgpu_display_flip_work_func()
120 amdgpu_crtc->pflip_status = AMDGPU_FLIP_SUBMITTED; in amdgpu_display_flip_work_func()
126 amdgpu_crtc->crtc_id, amdgpu_crtc, work); in amdgpu_display_flip_work_func()
160 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_display_crtc_page_flip_target() local
177 work->crtc_id = amdgpu_crtc->crtc_id; in amdgpu_display_crtc_page_flip_target()
230 if (amdgpu_crtc->pflip_status != AMDGPU_FLIP_NONE) { in amdgpu_display_crtc_page_flip_target()
237 amdgpu_crtc->pflip_status = AMDGPU_FLIP_PENDING; in amdgpu_display_crtc_page_flip_target()
238 amdgpu_crtc->pflip_works = work; in amdgpu_display_crtc_page_flip_target()
[all …]
Damdgpu_pll.c273 struct amdgpu_crtc *test_amdgpu_crtc; in amdgpu_pll_get_use_mask()
300 struct amdgpu_crtc *test_amdgpu_crtc; in amdgpu_pll_get_shared_dp_ppll()
326 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_pll_get_shared_nondp_ppll() local
329 struct amdgpu_crtc *test_amdgpu_crtc; in amdgpu_pll_get_shared_nondp_ppll()
332 adjusted_clock = amdgpu_crtc->adjusted_clock; in amdgpu_pll_get_shared_nondp_ppll()
344 if (test_amdgpu_crtc->connector == amdgpu_crtc->connector) { in amdgpu_pll_get_shared_nondp_ppll()
353 (amdgpu_crtc->ss_enabled == test_amdgpu_crtc->ss_enabled) && in amdgpu_pll_get_shared_nondp_ppll()
Damdgpu_vkms.h18 struct amdgpu_crtc crtc;
Damdgpu_mode.h57 #define to_amdgpu_crtc(x) container_of(x, struct amdgpu_crtc, base)
314 struct amdgpu_crtc *crtcs[AMDGPU_MAX_CRTCS];
370 struct amdgpu_crtc { struct
Datombios_encoders.c348 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in amdgpu_atombios_encoder_get_bpc() local
349 bpc = amdgpu_crtc->bpc; in amdgpu_atombios_encoder_get_bpc()
791 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in amdgpu_atombios_encoder_setup_dig_transmitter() local
792 pll_id = amdgpu_crtc->pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1439 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); in amdgpu_atombios_encoder_set_crtc_source() local
1455 args.v1.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1494 args.v2.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1562 args.v3.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
Damdgpu_kms.c556 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_info_ioctl() local
557 ui32 = amdgpu_crtc->crtc_id; in amdgpu_info_ioctl()
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_crtc.h30 void dm_crtc_handle_vblank(struct amdgpu_crtc *acrtc);
38 bool amdgpu_dm_vrr_active_irq(struct amdgpu_crtc *acrtc);
Damdgpu_dm_crtc.c37 void dm_crtc_handle_vblank(struct amdgpu_crtc *acrtc) in dm_crtc_handle_vblank()
64 bool amdgpu_dm_vrr_active_irq(struct amdgpu_crtc *acrtc) in amdgpu_dm_vrr_active_irq()
76 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in dm_set_vupdate_irq()
145 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in dm_set_vblank()
413 struct amdgpu_crtc *acrtc = NULL; in amdgpu_dm_crtc_init()
425 acrtc = kzalloc(sizeof(struct amdgpu_crtc), GFP_KERNEL); in amdgpu_dm_crtc_init()
Damdgpu_dm_crc.c89 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in amdgpu_dm_set_crc_window_default()
141 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in amdgpu_dm_crc_window_is_activated()
231 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in amdgpu_dm_crtc_set_crc_source()
393 struct amdgpu_crtc *acrtc = NULL; in amdgpu_dm_crtc_handle_crc_irq()
440 struct amdgpu_crtc *acrtc = NULL; in amdgpu_dm_crtc_handle_crc_window_irq()
Damdgpu_dm_plane.c1182 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in get_cursor_position() local
1189 if ((plane->state->crtc_w > amdgpu_crtc->max_cursor_width) || in get_cursor_position()
1190 (plane->state->crtc_h > amdgpu_crtc->max_cursor_height)) { in get_cursor_position()
1201 if (x <= -amdgpu_crtc->max_cursor_width || in get_cursor_position()
1202 y <= -amdgpu_crtc->max_cursor_height) in get_cursor_position()
1206 xorigin = min(-x, amdgpu_crtc->max_cursor_width - 1); in get_cursor_position()
1210 yorigin = min(-y, amdgpu_crtc->max_cursor_height - 1); in get_cursor_position()
1230 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in handle_cursor_update() local
1241 amdgpu_crtc->crtc_id, in handle_cursor_update()
1260 amdgpu_crtc->cursor_width = plane->state->crtc_w; in handle_cursor_update()
[all …]
Damdgpu_dm.c259 struct amdgpu_crtc *acrtc = adev->mode_info.crtcs[crtc]; in dm_vblank_get_counter()
279 struct amdgpu_crtc *acrtc = adev->mode_info.crtcs[crtc]; in dm_crtc_get_scanoutpos()
327 static struct amdgpu_crtc *
333 struct amdgpu_crtc *amdgpu_crtc; in get_crtc_by_otg_inst() local
339 amdgpu_crtc = to_amdgpu_crtc(crtc); in get_crtc_by_otg_inst()
341 if (amdgpu_crtc->otg_inst == otg_inst) in get_crtc_by_otg_inst()
342 return amdgpu_crtc; in get_crtc_by_otg_inst()
368 struct amdgpu_crtc *amdgpu_crtc; in dm_pflip_high_irq() local
376 amdgpu_crtc = get_crtc_by_otg_inst(adev, irq_params->irq_src - IRQ_TYPE_PFLIP); in dm_pflip_high_irq()
380 if (amdgpu_crtc == NULL) { in dm_pflip_high_irq()
[all …]
Damdgpu_dm.h66 struct amdgpu_crtc;
118 struct amdgpu_crtc *acrtc;
Damdgpu_dm_debugfs.c3079 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_x_start_set()
3096 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_x_start_get()
3116 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_y_start_set()
3133 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_y_start_get()
3152 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_x_end_set()
3169 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_x_end_get()
3188 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_y_end_set()
3205 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in crc_win_y_end_get()
3223 struct amdgpu_crtc *new_acrtc, *old_acrtc; in crc_win_update_set()
Damdgpu_dm_irq.c709 struct amdgpu_crtc *acrtc = adev->mode_info.crtcs[crtc_id]; in dm_irq_state()
Damdgpu_dm_mst_types.c379 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(connector_state->crtc); in dm_mst_atomic_best_encoder()
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/
Dsi_dpm.c5798 struct amdgpu_crtc *amdgpu_crtc = NULL; in si_upload_smc_data() local
5806 amdgpu_crtc = adev->mode_info.crtcs[i]; in si_upload_smc_data()
5811 if (amdgpu_crtc == NULL) in si_upload_smc_data()
5814 if (amdgpu_crtc->line_time <= 0) in si_upload_smc_data()
5819 amdgpu_crtc->crtc_id) != PPSMC_Result_OK) in si_upload_smc_data()
5824 amdgpu_crtc->wm_high / amdgpu_crtc->line_time) != PPSMC_Result_OK) in si_upload_smc_data()
5829 amdgpu_crtc->wm_low / amdgpu_crtc->line_time) != PPSMC_Result_OK) in si_upload_smc_data()