Lines Matching refs:args
46 SET_CRTC_OVERSCAN_PS_ALLOCATION args; in amdgpu_atombios_crtc_overscan_setup() local
50 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_overscan_setup()
52 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_overscan_setup()
56 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
57 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
58 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
59 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
66 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
67 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in amdgpu_atombios_crtc_overscan_setup()
69 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
70 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … 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()
81 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_overscan_setup()
89 ENABLE_SCALER_PS_ALLOCATION args; in amdgpu_atombios_crtc_scaler_setup() local
92 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_scaler_setup()
94 args.ucScaler = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_scaler_setup()
98 args.ucEnable = ATOM_SCALER_EXPANSION; in amdgpu_atombios_crtc_scaler_setup()
101 args.ucEnable = ATOM_SCALER_CENTER; in amdgpu_atombios_crtc_scaler_setup()
104 args.ucEnable = ATOM_SCALER_EXPANSION; in amdgpu_atombios_crtc_scaler_setup()
107 args.ucEnable = ATOM_SCALER_DISABLE; in amdgpu_atombios_crtc_scaler_setup()
110 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_scaler_setup()
120 ENABLE_CRTC_PS_ALLOCATION args; in amdgpu_atombios_crtc_lock() local
122 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_lock()
124 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_lock()
125 args.ucEnable = lock; in amdgpu_atombios_crtc_lock()
127 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_lock()
136 ENABLE_CRTC_PS_ALLOCATION args; in amdgpu_atombios_crtc_enable() local
138 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_enable()
140 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_enable()
141 args.ucEnable = state; in amdgpu_atombios_crtc_enable()
143 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_enable()
152 BLANK_CRTC_PS_ALLOCATION args; in amdgpu_atombios_crtc_blank() local
154 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_blank()
156 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_blank()
157 args.ucBlanking = state; in amdgpu_atombios_crtc_blank()
159 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_blank()
168 ENABLE_DISP_POWER_GATING_PS_ALLOCATION args; in amdgpu_atombios_crtc_powergate() local
170 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_powergate()
172 args.ucDispPipeId = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_powergate()
173 args.ucEnable = state; in amdgpu_atombios_crtc_powergate()
175 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_powergate()
181 ENABLE_DISP_POWER_GATING_PS_ALLOCATION args; in amdgpu_atombios_crtc_powergate_init() local
183 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_powergate_init()
185 args.ucEnable = ATOM_INIT; in amdgpu_atombios_crtc_powergate_init()
187 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_powergate_init()
196 SET_CRTC_USING_DTD_TIMING_PARAMETERS args; in amdgpu_atombios_crtc_set_dtd_timing() local
200 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_set_dtd_timing()
201 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (amdgpu_crtc->h_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing()
202 args.usH_Blanking_Time = in amdgpu_atombios_crtc_set_dtd_timing()
204 args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (amdgpu_crtc->v_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing()
205 args.usV_Blanking_Time = in amdgpu_atombios_crtc_set_dtd_timing()
207 args.usH_SyncOffset = in amdgpu_atombios_crtc_set_dtd_timing()
209 args.usH_SyncWidth = in amdgpu_atombios_crtc_set_dtd_timing()
211 args.usV_SyncOffset = in amdgpu_atombios_crtc_set_dtd_timing()
213 args.usV_SyncWidth = in amdgpu_atombios_crtc_set_dtd_timing()
215 args.ucH_Border = amdgpu_crtc->h_border; in amdgpu_atombios_crtc_set_dtd_timing()
216 args.ucV_Border = amdgpu_crtc->v_border; in amdgpu_atombios_crtc_set_dtd_timing()
229 args.susModeMiscInfo.usAccess = cpu_to_le16(misc); in amdgpu_atombios_crtc_set_dtd_timing()
230 args.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_crtc_set_dtd_timing()
232 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_set_dtd_timing()
249 union atom_enable_ss args; in amdgpu_atombios_crtc_program_ss() local
276 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_program_ss()
278 args.v3.usSpreadSpectrumAmountFrac = cpu_to_le16(0); in amdgpu_atombios_crtc_program_ss()
279 args.v3.ucSpreadSpectrumType = ss->type & ATOM_SS_CENTRE_SPREAD_MODE_MASK; in amdgpu_atombios_crtc_program_ss()
282 args.v3.ucSpreadSpectrumType |= ATOM_PPLL_SS_TYPE_V3_P1PLL; in amdgpu_atombios_crtc_program_ss()
285 args.v3.ucSpreadSpectrumType |= ATOM_PPLL_SS_TYPE_V3_P2PLL; in amdgpu_atombios_crtc_program_ss()
288 args.v3.ucSpreadSpectrumType |= ATOM_PPLL_SS_TYPE_V3_DCPLL; in amdgpu_atombios_crtc_program_ss()
293 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in amdgpu_atombios_crtc_program_ss()
294 args.v3.usSpreadSpectrumStep = cpu_to_le16(ss->step); in amdgpu_atombios_crtc_program_ss()
295 args.v3.ucEnable = enable; in amdgpu_atombios_crtc_program_ss()
297 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_program_ss()
320 union adjust_pixel_clock args; in amdgpu_atombios_crtc_adjust_pll() local
384 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_adjust_pll()
391 args.v1.usPixelClock = cpu_to_le16(clock / 10); in amdgpu_atombios_crtc_adjust_pll()
392 args.v1.ucTransmitterID = amdgpu_encoder->encoder_id; in amdgpu_atombios_crtc_adjust_pll()
393 args.v1.ucEncodeMode = encoder_mode; in amdgpu_atombios_crtc_adjust_pll()
395 args.v1.ucConfig |= in amdgpu_atombios_crtc_adjust_pll()
399 index, (uint32_t *)&args); in amdgpu_atombios_crtc_adjust_pll()
400 adjusted_clock = le16_to_cpu(args.v1.usPixelClock) * 10; in amdgpu_atombios_crtc_adjust_pll()
403 args.v3.sInput.usPixelClock = cpu_to_le16(clock / 10); in amdgpu_atombios_crtc_adjust_pll()
404 args.v3.sInput.ucTransmitterID = amdgpu_encoder->encoder_id; in amdgpu_atombios_crtc_adjust_pll()
405 args.v3.sInput.ucEncodeMode = encoder_mode; in amdgpu_atombios_crtc_adjust_pll()
406 args.v3.sInput.ucDispPllConfig = 0; in amdgpu_atombios_crtc_adjust_pll()
408 args.v3.sInput.ucDispPllConfig |= in amdgpu_atombios_crtc_adjust_pll()
411 args.v3.sInput.ucDispPllConfig |= in amdgpu_atombios_crtc_adjust_pll()
414 args.v3.sInput.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_crtc_adjust_pll()
418 args.v3.sInput.ucDispPllConfig |= in amdgpu_atombios_crtc_adjust_pll()
421 args.v3.sInput.ucDispPllConfig |= in amdgpu_atombios_crtc_adjust_pll()
426 args.v3.sInput.ucExtTransmitterID = in amdgpu_atombios_crtc_adjust_pll()
429 args.v3.sInput.ucExtTransmitterID = 0; in amdgpu_atombios_crtc_adjust_pll()
432 index, (uint32_t *)&args); in amdgpu_atombios_crtc_adjust_pll()
433 adjusted_clock = le32_to_cpu(args.v3.sOutput.ulDispPllFreq) * 10; in amdgpu_atombios_crtc_adjust_pll()
434 if (args.v3.sOutput.ucRefDiv) { in amdgpu_atombios_crtc_adjust_pll()
437 amdgpu_crtc->pll_reference_div = args.v3.sOutput.ucRefDiv; in amdgpu_atombios_crtc_adjust_pll()
439 if (args.v3.sOutput.ucPostDiv) { in amdgpu_atombios_crtc_adjust_pll()
442 amdgpu_crtc->pll_post_div = args.v3.sOutput.ucPostDiv; in amdgpu_atombios_crtc_adjust_pll()
476 union set_pixel_clock args; in amdgpu_atombios_crtc_set_disp_eng_pll() local
478 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_set_disp_eng_pll()
492 args.v5.ucCRTC = ATOM_CRTC_INVALID; in amdgpu_atombios_crtc_set_disp_eng_pll()
493 args.v5.usPixelClock = cpu_to_le16(dispclk); in amdgpu_atombios_crtc_set_disp_eng_pll()
494 args.v5.ucPpll = ATOM_DCPLL; in amdgpu_atombios_crtc_set_disp_eng_pll()
500 args.v6.ulDispEngClkFreq = cpu_to_le32(dispclk); in amdgpu_atombios_crtc_set_disp_eng_pll()
505 args.v6.ucPpll = ATOM_PPLL0; in amdgpu_atombios_crtc_set_disp_eng_pll()
507 args.v6.ucPpll = ATOM_EXT_PLL1; in amdgpu_atombios_crtc_set_disp_eng_pll()
518 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_set_disp_eng_pll()
531 union set_dce_clock args; in amdgpu_atombios_crtc_set_dce_clock() local
534 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_set_dce_clock()
545 args.v2_1.asParam.ulDCEClkFreq = cpu_to_le32(freq); /* 10kHz units */ in amdgpu_atombios_crtc_set_dce_clock()
546 args.v2_1.asParam.ucDCEClkType = clk_type; in amdgpu_atombios_crtc_set_dce_clock()
547 args.v2_1.asParam.ucDCEClkSrc = clk_src; in amdgpu_atombios_crtc_set_dce_clock()
548 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_set_dce_clock()
549 ret_freq = le32_to_cpu(args.v2_1.asParam.ulDCEClkFreq) * 10; in amdgpu_atombios_crtc_set_dce_clock()
594 union set_pixel_clock args; in amdgpu_atombios_crtc_program_pll() local
596 memset(&args, 0, sizeof(args)); in amdgpu_atombios_crtc_program_pll()
608 args.v1.usPixelClock = cpu_to_le16(clock / 10); in amdgpu_atombios_crtc_program_pll()
609 args.v1.usRefDiv = cpu_to_le16(ref_div); in amdgpu_atombios_crtc_program_pll()
610 args.v1.usFbDiv = cpu_to_le16(fb_div); in amdgpu_atombios_crtc_program_pll()
611 args.v1.ucFracFbDiv = frac_fb_div; in amdgpu_atombios_crtc_program_pll()
612 args.v1.ucPostDiv = post_div; in amdgpu_atombios_crtc_program_pll()
613 args.v1.ucPpll = pll_id; in amdgpu_atombios_crtc_program_pll()
614 args.v1.ucCRTC = crtc_id; in amdgpu_atombios_crtc_program_pll()
615 args.v1.ucRefDivSrc = 1; in amdgpu_atombios_crtc_program_pll()
618 args.v2.usPixelClock = cpu_to_le16(clock / 10); in amdgpu_atombios_crtc_program_pll()
619 args.v2.usRefDiv = cpu_to_le16(ref_div); in amdgpu_atombios_crtc_program_pll()
620 args.v2.usFbDiv = cpu_to_le16(fb_div); in amdgpu_atombios_crtc_program_pll()
621 args.v2.ucFracFbDiv = frac_fb_div; in amdgpu_atombios_crtc_program_pll()
622 args.v2.ucPostDiv = post_div; in amdgpu_atombios_crtc_program_pll()
623 args.v2.ucPpll = pll_id; in amdgpu_atombios_crtc_program_pll()
624 args.v2.ucCRTC = crtc_id; in amdgpu_atombios_crtc_program_pll()
625 args.v2.ucRefDivSrc = 1; in amdgpu_atombios_crtc_program_pll()
628 args.v3.usPixelClock = cpu_to_le16(clock / 10); in amdgpu_atombios_crtc_program_pll()
629 args.v3.usRefDiv = cpu_to_le16(ref_div); in amdgpu_atombios_crtc_program_pll()
630 args.v3.usFbDiv = cpu_to_le16(fb_div); in amdgpu_atombios_crtc_program_pll()
631 args.v3.ucFracFbDiv = frac_fb_div; in amdgpu_atombios_crtc_program_pll()
632 args.v3.ucPostDiv = post_div; in amdgpu_atombios_crtc_program_pll()
633 args.v3.ucPpll = pll_id; in amdgpu_atombios_crtc_program_pll()
635 args.v3.ucMiscInfo = PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2; in amdgpu_atombios_crtc_program_pll()
637 args.v3.ucMiscInfo = PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1; in amdgpu_atombios_crtc_program_pll()
639 args.v3.ucMiscInfo |= PIXEL_CLOCK_MISC_REF_DIV_SRC; in amdgpu_atombios_crtc_program_pll()
640 args.v3.ucTransmitterId = encoder_id; in amdgpu_atombios_crtc_program_pll()
641 args.v3.ucEncoderMode = encoder_mode; in amdgpu_atombios_crtc_program_pll()
644 args.v5.ucCRTC = crtc_id; in amdgpu_atombios_crtc_program_pll()
645 args.v5.usPixelClock = cpu_to_le16(clock / 10); in amdgpu_atombios_crtc_program_pll()
646 args.v5.ucRefDiv = ref_div; in amdgpu_atombios_crtc_program_pll()
647 args.v5.usFbDiv = cpu_to_le16(fb_div); in amdgpu_atombios_crtc_program_pll()
648 args.v5.ulFbDivDecFrac = cpu_to_le32(frac_fb_div * 100000); in amdgpu_atombios_crtc_program_pll()
649 args.v5.ucPostDiv = post_div; in amdgpu_atombios_crtc_program_pll()
650 args.v5.ucMiscInfo = 0; /* HDMI depth, etc. */ in amdgpu_atombios_crtc_program_pll()
653 args.v5.ucMiscInfo |= PIXEL_CLOCK_V5_MISC_REF_DIV_SRC; in amdgpu_atombios_crtc_program_pll()
658 args.v5.ucMiscInfo |= PIXEL_CLOCK_V5_MISC_HDMI_24BPP; in amdgpu_atombios_crtc_program_pll()
662 args.v5.ucMiscInfo |= PIXEL_CLOCK_V5_MISC_HDMI_32BPP; in amdgpu_atombios_crtc_program_pll()
666 args.v5.ucMiscInfo |= PIXEL_CLOCK_V5_MISC_HDMI_30BPP; in amdgpu_atombios_crtc_program_pll()
670 args.v5.ucTransmitterID = encoder_id; in amdgpu_atombios_crtc_program_pll()
671 args.v5.ucEncoderMode = encoder_mode; in amdgpu_atombios_crtc_program_pll()
672 args.v5.ucPpll = pll_id; in amdgpu_atombios_crtc_program_pll()
675 args.v6.ulDispEngClkFreq = cpu_to_le32(crtc_id << 24 | clock / 10); in amdgpu_atombios_crtc_program_pll()
676 args.v6.ucRefDiv = ref_div; in amdgpu_atombios_crtc_program_pll()
677 args.v6.usFbDiv = cpu_to_le16(fb_div); in amdgpu_atombios_crtc_program_pll()
678 args.v6.ulFbDivDecFrac = cpu_to_le32(frac_fb_div * 100000); in amdgpu_atombios_crtc_program_pll()
679 args.v6.ucPostDiv = post_div; in amdgpu_atombios_crtc_program_pll()
680 args.v6.ucMiscInfo = 0; /* HDMI depth, etc. */ in amdgpu_atombios_crtc_program_pll()
684 args.v6.ucMiscInfo |= PIXEL_CLOCK_V6_MISC_REF_DIV_SRC; in amdgpu_atombios_crtc_program_pll()
689 args.v6.ucMiscInfo |= PIXEL_CLOCK_V6_MISC_HDMI_24BPP; in amdgpu_atombios_crtc_program_pll()
692 args.v6.ucMiscInfo |= PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6; in amdgpu_atombios_crtc_program_pll()
695 args.v6.ucMiscInfo |= PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6; in amdgpu_atombios_crtc_program_pll()
698 args.v6.ucMiscInfo |= PIXEL_CLOCK_V6_MISC_HDMI_48BPP; in amdgpu_atombios_crtc_program_pll()
702 args.v6.ucTransmitterID = encoder_id; in amdgpu_atombios_crtc_program_pll()
703 args.v6.ucEncoderMode = encoder_mode; in amdgpu_atombios_crtc_program_pll()
704 args.v6.ucPpll = pll_id; in amdgpu_atombios_crtc_program_pll()
707 args.v7.ulPixelClock = cpu_to_le32(clock * 10); /* 100 hz units */ in amdgpu_atombios_crtc_program_pll()
708 args.v7.ucMiscInfo = 0; in amdgpu_atombios_crtc_program_pll()
711 args.v7.ucMiscInfo |= PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN; in amdgpu_atombios_crtc_program_pll()
712 args.v7.ucCRTC = crtc_id; in amdgpu_atombios_crtc_program_pll()
717 args.v7.ucDeepColorRatio = PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS; in amdgpu_atombios_crtc_program_pll()
720 args.v7.ucDeepColorRatio = PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4; in amdgpu_atombios_crtc_program_pll()
723 args.v7.ucDeepColorRatio = PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2; in amdgpu_atombios_crtc_program_pll()
726 args.v7.ucDeepColorRatio = PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1; in amdgpu_atombios_crtc_program_pll()
730 args.v7.ucTransmitterID = encoder_id; in amdgpu_atombios_crtc_program_pll()
731 args.v7.ucEncoderMode = encoder_mode; in amdgpu_atombios_crtc_program_pll()
732 args.v7.ucPpll = pll_id; in amdgpu_atombios_crtc_program_pll()
744 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_crtc_program_pll()