Lines Matching refs:params
37 #define EXEC_BIOS_CMD_TABLE(command, params)\ argument
40 (uint32_t *)¶ms) == 0)
200 DIG_ENCODER_CONTROL_PARAMETERS_V2 params = {0}; in encoder_control_dig1_v1() local
202 bp->cmd_helper->assign_control_parameter(bp->cmd_helper, cntl, ¶ms); in encoder_control_dig1_v1()
204 if (EXEC_BIOS_CMD_TABLE(DIG1EncoderControl, params)) in encoder_control_dig1_v1()
215 DIG_ENCODER_CONTROL_PARAMETERS_V2 params = {0}; in encoder_control_dig2_v1() local
217 bp->cmd_helper->assign_control_parameter(bp->cmd_helper, cntl, ¶ms); in encoder_control_dig2_v1()
219 if (EXEC_BIOS_CMD_TABLE(DIG2EncoderControl, params)) in encoder_control_dig2_v1()
230 DIG_ENCODER_CONTROL_PARAMETERS_V3 params = {0}; in encoder_control_digx_v3() local
233 params.acConfig.ucDPLinkRate = 1; /* dual link 2.7GHz */ in encoder_control_digx_v3()
235 params.acConfig.ucDPLinkRate = 0; /* single link 1.62GHz */ in encoder_control_digx_v3()
237 params.acConfig.ucDigSel = (uint8_t)(cntl->engine_id); in encoder_control_digx_v3()
240 params.ucAction = bp->cmd_helper->encoder_action_to_atom(cntl->action); in encoder_control_digx_v3()
241 params.usPixelClock = cpu_to_le16((uint16_t)(cntl->pixel_clock / 10)); in encoder_control_digx_v3()
242 params.ucEncoderMode = in encoder_control_digx_v3()
246 params.ucLaneNum = (uint8_t)(cntl->lanes_number); in encoder_control_digx_v3()
250 params.ucBitPerColor = PANEL_8BIT_PER_COLOR; in encoder_control_digx_v3()
253 params.ucBitPerColor = PANEL_10BIT_PER_COLOR; in encoder_control_digx_v3()
256 params.ucBitPerColor = PANEL_12BIT_PER_COLOR; in encoder_control_digx_v3()
259 params.ucBitPerColor = PANEL_16BIT_PER_COLOR; in encoder_control_digx_v3()
265 if (EXEC_BIOS_CMD_TABLE(DIGxEncoderControl, params)) in encoder_control_digx_v3()
276 DIG_ENCODER_CONTROL_PARAMETERS_V4 params = {0}; in encoder_control_digx_v4() local
279 params.acConfig.ucDPLinkRate = 1; /* dual link 2.7GHz */ in encoder_control_digx_v4()
281 params.acConfig.ucDPLinkRate = 0; /* single link 1.62GHz */ in encoder_control_digx_v4()
283 params.acConfig.ucDigSel = (uint8_t)(cntl->engine_id); in encoder_control_digx_v4()
286 params.ucAction = bp->cmd_helper->encoder_action_to_atom(cntl->action); in encoder_control_digx_v4()
287 params.usPixelClock = cpu_to_le16((uint16_t)(cntl->pixel_clock / 10)); in encoder_control_digx_v4()
288 params.ucEncoderMode = in encoder_control_digx_v4()
292 params.ucLaneNum = (uint8_t)(cntl->lanes_number); in encoder_control_digx_v4()
296 params.ucBitPerColor = PANEL_8BIT_PER_COLOR; in encoder_control_digx_v4()
299 params.ucBitPerColor = PANEL_10BIT_PER_COLOR; in encoder_control_digx_v4()
302 params.ucBitPerColor = PANEL_12BIT_PER_COLOR; in encoder_control_digx_v4()
305 params.ucBitPerColor = PANEL_16BIT_PER_COLOR; in encoder_control_digx_v4()
311 if (EXEC_BIOS_CMD_TABLE(DIGxEncoderControl, params)) in encoder_control_digx_v4()
322 ENCODER_STREAM_SETUP_PARAMETERS_V5 params = {0}; in encoder_control_digx_v5() local
324 params.ucDigId = (uint8_t)(cntl->engine_id); in encoder_control_digx_v5()
325 params.ucAction = bp->cmd_helper->encoder_action_to_atom(cntl->action); in encoder_control_digx_v5()
327 params.ulPixelClock = cntl->pixel_clock / 10; in encoder_control_digx_v5()
328 params.ucDigMode = in encoder_control_digx_v5()
332 params.ucLaneNum = (uint8_t)(cntl->lanes_number); in encoder_control_digx_v5()
336 params.ucBitPerColor = PANEL_8BIT_PER_COLOR; in encoder_control_digx_v5()
339 params.ucBitPerColor = PANEL_10BIT_PER_COLOR; in encoder_control_digx_v5()
342 params.ucBitPerColor = PANEL_12BIT_PER_COLOR; in encoder_control_digx_v5()
345 params.ucBitPerColor = PANEL_16BIT_PER_COLOR; in encoder_control_digx_v5()
354 params.ulPixelClock = in encoder_control_digx_v5()
355 (params.ulPixelClock * 30) / 24; in encoder_control_digx_v5()
358 params.ulPixelClock = in encoder_control_digx_v5()
359 (params.ulPixelClock * 36) / 24; in encoder_control_digx_v5()
362 params.ulPixelClock = in encoder_control_digx_v5()
363 (params.ulPixelClock * 48) / 24; in encoder_control_digx_v5()
369 if (EXEC_BIOS_CMD_TABLE(DIGxEncoderControl, params)) in encoder_control_digx_v5()
435 DIG_TRANSMITTER_CONTROL_PARAMETERS_V2 params; in transmitter_control_v2() local
439 memset(¶ms, 0, sizeof(params)); in transmitter_control_v2()
464 params.acConfig.fDualLinkConnector = 1; in transmitter_control_v2()
467 params.usInitInfo = in transmitter_control_v2()
472 params.asMode.ucLaneSel = (uint8_t)cntl->lane_select; in transmitter_control_v2()
473 params.asMode.ucLaneSet = (uint8_t)cntl->lane_settings; in transmitter_control_v2()
484 params.acConfig.fDualLinkConnector = 1; in transmitter_control_v2()
489 params.usPixelClock = in transmitter_control_v2()
495 params.usPixelClock = in transmitter_control_v2()
504 params.acConfig.fCoherentMode = cntl->coherent; in transmitter_control_v2()
515 params.acConfig.ucLinkSel = 1; in transmitter_control_v2()
523 params.acConfig.ucEncoderSel = 1; in transmitter_control_v2()
531 params.acConfig.fDPConnector = 1; in transmitter_control_v2()
539 params.acConfig.ucTransmitterSel = in transmitter_control_v2()
543 params.ucAction = (uint8_t)cntl->action; in transmitter_control_v2()
545 if (EXEC_BIOS_CMD_TABLE(UNIPHYTransmitterControl, params)) in transmitter_control_v2()
556 DIG_TRANSMITTER_CONTROL_PARAMETERS_V3 params; in transmitter_control_v3() local
564 memset(¶ms, 0, sizeof(params)); in transmitter_control_v3()
592 params.acConfig.fDualLinkConnector = 1; in transmitter_control_v3()
596 params.usInitInfo = in transmitter_control_v3()
601 params.asMode.ucLaneSel = (uint8_t)cntl->lane_select; in transmitter_control_v3()
602 params.asMode.ucLaneSet = (uint8_t)cntl->lane_settings; in transmitter_control_v3()
612 params.acConfig.fDualLinkConnector = 1; in transmitter_control_v3()
622 params.acConfig.fDualLinkConnector = 1; in transmitter_control_v3()
627 params.usPixelClock = in transmitter_control_v3()
633 params.usPixelClock = in transmitter_control_v3()
643 params.acConfig.fCoherentMode = cntl->coherent; in transmitter_control_v3()
654 params.acConfig.ucLinkSel = 1; in transmitter_control_v3()
662 params.acConfig.ucEncoderSel = 1; in transmitter_control_v3()
670 params.acConfig.ucTransmitterSel = in transmitter_control_v3()
673 params.ucLaneNum = (uint8_t)cntl->lanes_number; in transmitter_control_v3()
675 params.acConfig.ucRefClkSource = (uint8_t)pll_id; in transmitter_control_v3()
677 params.ucAction = (uint8_t)cntl->action; in transmitter_control_v3()
679 if (EXEC_BIOS_CMD_TABLE(UNIPHYTransmitterControl, params)) in transmitter_control_v3()
690 DIG_TRANSMITTER_CONTROL_PARAMETERS_V4 params; in transmitter_control_v4() local
696 memset(¶ms, 0, sizeof(params)); in transmitter_control_v4()
725 params.acConfig.fDualLinkConnector = 1; in transmitter_control_v4()
728 params.usInitInfo = in transmitter_control_v4()
734 params.asMode.ucLaneSel = (uint8_t)(cntl->lane_select); in transmitter_control_v4()
735 params.asMode.ucLaneSet = (uint8_t)(cntl->lane_settings); in transmitter_control_v4()
746 params.acConfig.fDualLinkConnector = 1; in transmitter_control_v4()
753 params.usPixelClock = in transmitter_control_v4()
759 params.usPixelClock = in transmitter_control_v4()
769 params.acConfig.fCoherentMode = cntl->coherent; in transmitter_control_v4()
780 params.acConfig.ucLinkSel = 1; in transmitter_control_v4()
788 params.acConfig.ucEncoderSel = 1; in transmitter_control_v4()
796 params.acConfig.ucTransmitterSel = in transmitter_control_v4()
798 params.ucLaneNum = (uint8_t)(cntl->lanes_number); in transmitter_control_v4()
799 params.acConfig.ucRefClkSource = (uint8_t)(ref_clk_src_id); in transmitter_control_v4()
800 params.ucAction = (uint8_t)(cntl->action); in transmitter_control_v4()
802 if (EXEC_BIOS_CMD_TABLE(UNIPHYTransmitterControl, params)) in transmitter_control_v4()
814 DIG_TRANSMITTER_CONTROL_PARAMETERS_V1_5 params; in transmitter_control_v1_5() local
816 memset(¶ms, 0, sizeof(params)); in transmitter_control_v1_5()
817 params.ucPhyId = cmd->phy_id_to_atom(cntl->transmitter); in transmitter_control_v1_5()
818 params.ucAction = (uint8_t)cntl->action; in transmitter_control_v1_5()
819 params.ucLaneNum = (uint8_t)cntl->lanes_number; in transmitter_control_v1_5()
820 params.ucConnObjId = (uint8_t)cntl->connector_obj_id.id; in transmitter_control_v1_5()
822 params.ucDigMode = in transmitter_control_v1_5()
824 params.asConfig.ucPhyClkSrcId = in transmitter_control_v1_5()
827 params.asConfig.ucCoherentMode = cntl->coherent; in transmitter_control_v1_5()
828 params.asConfig.ucHPDSel = in transmitter_control_v1_5()
830 params.ucDigEncoderSel = in transmitter_control_v1_5()
832 params.ucDPLaneSet = (uint8_t) cntl->lane_settings; in transmitter_control_v1_5()
833 params.usSymClock = cpu_to_le16((uint16_t) (cntl->pixel_clock / 10)); in transmitter_control_v1_5()
847 params.usSymClock = in transmitter_control_v1_5()
848 cpu_to_le16((le16_to_cpu(params.usSymClock) * 30) / 24); in transmitter_control_v1_5()
851 params.usSymClock = in transmitter_control_v1_5()
852 cpu_to_le16((le16_to_cpu(params.usSymClock) * 36) / 24); in transmitter_control_v1_5()
855 params.usSymClock = in transmitter_control_v1_5()
856 cpu_to_le16((le16_to_cpu(params.usSymClock) * 48) / 24); in transmitter_control_v1_5()
863 if (EXEC_BIOS_CMD_TABLE(UNIPHYTransmitterControl, params)) in transmitter_control_v1_5()
875 DIG_TRANSMITTER_CONTROL_PARAMETERS_V1_6 params; in transmitter_control_v1_6() local
877 memset(¶ms, 0, sizeof(params)); in transmitter_control_v1_6()
878 params.ucPhyId = cmd->phy_id_to_atom(cntl->transmitter); in transmitter_control_v1_6()
879 params.ucAction = (uint8_t)cntl->action; in transmitter_control_v1_6()
882 params.ucDPLaneSet = (uint8_t)cntl->lane_settings; in transmitter_control_v1_6()
884 params.ucDigMode = cmd->signal_type_to_atom_dig_mode(cntl->signal); in transmitter_control_v1_6()
886 params.ucLaneNum = (uint8_t)cntl->lanes_number; in transmitter_control_v1_6()
887 params.ucHPDSel = cmd->hpd_sel_to_atom(cntl->hpd_sel); in transmitter_control_v1_6()
888 params.ucDigEncoderSel = cmd->dig_encoder_sel_to_atom(cntl->engine_id); in transmitter_control_v1_6()
889 params.ucConnObjId = (uint8_t)cntl->connector_obj_id.id; in transmitter_control_v1_6()
890 params.ulSymClock = cntl->pixel_clock/10; in transmitter_control_v1_6()
906 params.ulSymClock = in transmitter_control_v1_6()
907 cpu_to_le16((le16_to_cpu(params.ulSymClock) * 30) / 24); in transmitter_control_v1_6()
910 params.ulSymClock = in transmitter_control_v1_6()
911 cpu_to_le16((le16_to_cpu(params.ulSymClock) * 36) / 24); in transmitter_control_v1_6()
914 params.ulSymClock = in transmitter_control_v1_6()
915 cpu_to_le16((le16_to_cpu(params.ulSymClock) * 48) / 24); in transmitter_control_v1_6()
925 if (EXEC_BIOS_CMD_TABLE(UNIPHYTransmitterControl, params)) in transmitter_control_v1_6()
979 PIXEL_CLOCK_PARAMETERS_V3 *params; in set_pixel_clock_v3() local
1004 params = (PIXEL_CLOCK_PARAMETERS_V3 *)&allocation.sPCLKInput; in set_pixel_clock_v3()
1005 params->ucTransmitterId = in set_pixel_clock_v3()
1009 params->ucEncoderMode = in set_pixel_clock_v3()
1014 params->ucMiscInfo |= PIXEL_CLOCK_MISC_FORCE_PROG_PPLL; in set_pixel_clock_v3()
1017 params->ucMiscInfo |= PIXEL_CLOCK_MISC_USE_ENGINE_FOR_DISPCLK; in set_pixel_clock_v3()
1020 params->ucMiscInfo |= PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2; in set_pixel_clock_v3()
1325 ENABLE_SPREAD_SPECTRUM_ON_PPLL params; in enable_spread_spectrum_on_ppll_v1() local
1327 memset(¶ms, 0, sizeof(params)); in enable_spread_spectrum_on_ppll_v1()
1330 params.ucEnable = ATOM_ENABLE; in enable_spread_spectrum_on_ppll_v1()
1332 params.ucEnable = ATOM_DISABLE; in enable_spread_spectrum_on_ppll_v1()
1334 params.usSpreadSpectrumPercentage = in enable_spread_spectrum_on_ppll_v1()
1336 params.ucSpreadSpectrumStep = in enable_spread_spectrum_on_ppll_v1()
1338 params.ucSpreadSpectrumDelay = in enable_spread_spectrum_on_ppll_v1()
1341 params.ucSpreadSpectrumRange = in enable_spread_spectrum_on_ppll_v1()
1345 params.ucSpreadSpectrumType |= ATOM_EXTERNAL_SS_MASK; in enable_spread_spectrum_on_ppll_v1()
1348 params.ucSpreadSpectrumType |= ATOM_SS_CENTRE_SPREAD_MODE; in enable_spread_spectrum_on_ppll_v1()
1351 params.ucPpll = ATOM_PPLL1; in enable_spread_spectrum_on_ppll_v1()
1353 params.ucPpll = ATOM_PPLL2; in enable_spread_spectrum_on_ppll_v1()
1357 if (EXEC_BIOS_CMD_TABLE(EnableSpreadSpectrumOnPPLL, params)) in enable_spread_spectrum_on_ppll_v1()
1369 ENABLE_SPREAD_SPECTRUM_ON_PPLL_V2 params; in enable_spread_spectrum_on_ppll_v2() local
1371 memset(¶ms, 0, sizeof(params)); in enable_spread_spectrum_on_ppll_v2()
1374 params.ucSpreadSpectrumType = ATOM_PPLL_SS_TYPE_V2_P1PLL; in enable_spread_spectrum_on_ppll_v2()
1376 params.ucSpreadSpectrumType = ATOM_PPLL_SS_TYPE_V2_P2PLL; in enable_spread_spectrum_on_ppll_v2()
1381 params.ucEnable = ATOM_ENABLE; in enable_spread_spectrum_on_ppll_v2()
1383 params.usSpreadSpectrumPercentage = in enable_spread_spectrum_on_ppll_v2()
1385 params.usSpreadSpectrumStep = in enable_spread_spectrum_on_ppll_v2()
1389 params.ucSpreadSpectrumType |= in enable_spread_spectrum_on_ppll_v2()
1393 params.ucSpreadSpectrumType |= in enable_spread_spectrum_on_ppll_v2()
1399 params.usSpreadSpectrumAmount = cpu_to_le16((uint16_t)( in enable_spread_spectrum_on_ppll_v2()
1407 params.ucEnable = ATOM_DISABLE; in enable_spread_spectrum_on_ppll_v2()
1409 if (EXEC_BIOS_CMD_TABLE(EnableSpreadSpectrumOnPPLL, params)) in enable_spread_spectrum_on_ppll_v2()
1421 ENABLE_SPREAD_SPECTRUM_ON_PPLL_V3 params; in enable_spread_spectrum_on_ppll_v3() local
1423 memset(¶ms, 0, sizeof(params)); in enable_spread_spectrum_on_ppll_v3()
1430 params.ucSpreadSpectrumType = ATOM_PPLL_SS_TYPE_V3_DCPLL; in enable_spread_spectrum_on_ppll_v3()
1433 params.ucSpreadSpectrumType = ATOM_PPLL_SS_TYPE_V3_P1PLL; in enable_spread_spectrum_on_ppll_v3()
1437 params.ucSpreadSpectrumType = ATOM_PPLL_SS_TYPE_V3_P2PLL; in enable_spread_spectrum_on_ppll_v3()
1441 params.ucSpreadSpectrumType = ATOM_PPLL_SS_TYPE_V3_DCPLL; in enable_spread_spectrum_on_ppll_v3()
1451 params.ucEnable = ATOM_ENABLE; in enable_spread_spectrum_on_ppll_v3()
1453 params.usSpreadSpectrumAmountFrac = in enable_spread_spectrum_on_ppll_v3()
1455 params.usSpreadSpectrumStep = in enable_spread_spectrum_on_ppll_v3()
1459 params.ucSpreadSpectrumType |= in enable_spread_spectrum_on_ppll_v3()
1462 params.ucSpreadSpectrumType |= in enable_spread_spectrum_on_ppll_v3()
1468 params.usSpreadSpectrumAmount = cpu_to_le16((uint16_t)( in enable_spread_spectrum_on_ppll_v3()
1476 params.ucEnable = ATOM_DISABLE; in enable_spread_spectrum_on_ppll_v3()
1478 if (EXEC_BIOS_CMD_TABLE(EnableSpreadSpectrumOnPPLL, params)) in enable_spread_spectrum_on_ppll_v3()
1521 ADJUST_DISPLAY_PLL_PS_ALLOCATION params = { 0 }; in adjust_display_pll_v2() local
1527 params.usPixelClock = cpu_to_le16((uint16_t)(pixel_clock_10KHz_in)); in adjust_display_pll_v2()
1528 params.ucTransmitterID = in adjust_display_pll_v2()
1532 params.ucEncodeMode = in adjust_display_pll_v2()
1536 if (EXEC_BIOS_CMD_TABLE(AdjustDisplayPll, params)) { in adjust_display_pll_v2()
1541 (uint64_t)le16_to_cpu(params.usPixelClock); in adjust_display_pll_v2()
1564 ADJUST_DISPLAY_PLL_PS_ALLOCATION_V3 params; in adjust_display_pll_v3() local
1567 memset(¶ms, 0, sizeof(params)); in adjust_display_pll_v3()
1571 params.sInput.usPixelClock = cpu_to_le16((uint16_t)pixel_clk_10_kHz_in); in adjust_display_pll_v3()
1572 params.sInput.ucTransmitterID = in adjust_display_pll_v3()
1576 params.sInput.ucEncodeMode = in adjust_display_pll_v3()
1581 params.sInput.ucDispPllConfig |= DISPPLL_CONFIG_SS_ENABLE; in adjust_display_pll_v3()
1584 params.sInput.ucDispPllConfig |= DISPPLL_CONFIG_DUAL_LINK; in adjust_display_pll_v3()
1586 if (EXEC_BIOS_CMD_TABLE(AdjustDisplayPll, params)) { in adjust_display_pll_v3()
1591 (uint64_t)le32_to_cpu(params.sOutput.ulDispPllFreq); in adjust_display_pll_v3()
1603 bp_params->reference_divider = params.sOutput.ucRefDiv; in adjust_display_pll_v3()
1604 bp_params->pixel_clock_post_divider = params.sOutput.ucPostDiv; in adjust_display_pll_v3()
1652 DAC_ENCODER_CONTROL_PS_ALLOCATION *params, in dac_encoder_control_prepare_params() argument
1657 params->ucDacStandard = dac_standard; in dac_encoder_control_prepare_params()
1659 params->ucAction = ATOM_ENABLE; in dac_encoder_control_prepare_params()
1661 params->ucAction = ATOM_DISABLE; in dac_encoder_control_prepare_params()
1666 params->usPixelClock = cpu_to_le16((uint16_t)(pixel_clock / 10)); in dac_encoder_control_prepare_params()
1676 DAC_ENCODER_CONTROL_PS_ALLOCATION params; in dac1_encoder_control_v1() local
1679 ¶ms, in dac1_encoder_control_v1()
1684 if (EXEC_BIOS_CMD_TABLE(DAC1EncoderControl, params)) in dac1_encoder_control_v1()
1697 DAC_ENCODER_CONTROL_PS_ALLOCATION params; in dac2_encoder_control_v1() local
1700 ¶ms, in dac2_encoder_control_v1()
1705 if (EXEC_BIOS_CMD_TABLE(DAC2EncoderControl, params)) in dac2_encoder_control_v1()
1749 DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION params; in dac1_output_control_v1() local
1752 params.ucAction = ATOM_ENABLE; in dac1_output_control_v1()
1754 params.ucAction = ATOM_DISABLE; in dac1_output_control_v1()
1756 if (EXEC_BIOS_CMD_TABLE(DAC1OutputControl, params)) in dac1_output_control_v1()
1766 DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION params; in dac2_output_control_v1() local
1769 params.ucAction = ATOM_ENABLE; in dac2_output_control_v1()
1771 params.ucAction = ATOM_DISABLE; in dac2_output_control_v1()
1773 if (EXEC_BIOS_CMD_TABLE(DAC2OutputControl, params)) in dac2_output_control_v1()
1828 SET_CRTC_TIMING_PARAMETERS_PS_ALLOCATION params = {0}; in set_crtc_timing_v1() local
1833 params.ucCRTC = atom_controller_id; in set_crtc_timing_v1()
1835 params.usH_Total = cpu_to_le16((uint16_t)(bp_params->h_total)); in set_crtc_timing_v1()
1836 params.usH_Disp = cpu_to_le16((uint16_t)(bp_params->h_addressable)); in set_crtc_timing_v1()
1837 params.usH_SyncStart = cpu_to_le16((uint16_t)(bp_params->h_sync_start)); in set_crtc_timing_v1()
1838 params.usH_SyncWidth = cpu_to_le16((uint16_t)(bp_params->h_sync_width)); in set_crtc_timing_v1()
1839 params.usV_Total = cpu_to_le16((uint16_t)(bp_params->v_total)); in set_crtc_timing_v1()
1840 params.usV_Disp = cpu_to_le16((uint16_t)(bp_params->v_addressable)); in set_crtc_timing_v1()
1841 params.usV_SyncStart = in set_crtc_timing_v1()
1843 params.usV_SyncWidth = in set_crtc_timing_v1()
1852 params.ucOverscanRight = (uint8_t)bp_params->h_overscan_right; in set_crtc_timing_v1()
1853 params.ucOverscanLeft = (uint8_t)bp_params->h_overscan_left; in set_crtc_timing_v1()
1854 params.ucOverscanBottom = (uint8_t)bp_params->v_overscan_bottom; in set_crtc_timing_v1()
1855 params.ucOverscanTop = (uint8_t)bp_params->v_overscan_top; in set_crtc_timing_v1()
1858 params.susModeMiscInfo.usAccess = in set_crtc_timing_v1()
1859 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_HSYNC_POLARITY); in set_crtc_timing_v1()
1862 params.susModeMiscInfo.usAccess = in set_crtc_timing_v1()
1863 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_VSYNC_POLARITY); in set_crtc_timing_v1()
1866 params.susModeMiscInfo.usAccess = in set_crtc_timing_v1()
1867 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_INTERLACE); in set_crtc_timing_v1()
1882 params.usV_SyncStart = in set_crtc_timing_v1()
1887 params.susModeMiscInfo.usAccess = in set_crtc_timing_v1()
1888 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_DOUBLE_CLOCK_MODE); in set_crtc_timing_v1()
1890 if (EXEC_BIOS_CMD_TABLE(SetCRTC_Timing, params)) in set_crtc_timing_v1()
1901 SET_CRTC_USING_DTD_TIMING_PARAMETERS params = {0}; in set_crtc_using_dtd_timing_v3() local
1906 params.ucCRTC = atom_controller_id; in set_crtc_using_dtd_timing_v3()
1909 params.usH_Size = cpu_to_le16((uint16_t)bp_params->h_addressable); in set_crtc_using_dtd_timing_v3()
1911 params.usH_Blanking_Time = in set_crtc_using_dtd_timing_v3()
1914 params.usV_Size = cpu_to_le16((uint16_t)bp_params->v_addressable); in set_crtc_using_dtd_timing_v3()
1916 params.usV_Blanking_Time = in set_crtc_using_dtd_timing_v3()
1921 params.usH_SyncOffset = in set_crtc_using_dtd_timing_v3()
1923 params.usH_SyncWidth = cpu_to_le16((uint16_t)bp_params->h_sync_width); in set_crtc_using_dtd_timing_v3()
1927 params.usV_SyncOffset = in set_crtc_using_dtd_timing_v3()
1929 params.usV_SyncWidth = cpu_to_le16((uint16_t)bp_params->v_sync_width); in set_crtc_using_dtd_timing_v3()
1937 params.susModeMiscInfo.usAccess = in set_crtc_using_dtd_timing_v3()
1938 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_HSYNC_POLARITY); in set_crtc_using_dtd_timing_v3()
1941 params.susModeMiscInfo.usAccess = in set_crtc_using_dtd_timing_v3()
1942 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_VSYNC_POLARITY); in set_crtc_using_dtd_timing_v3()
1945 params.susModeMiscInfo.usAccess = in set_crtc_using_dtd_timing_v3()
1946 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_INTERLACE); in set_crtc_using_dtd_timing_v3()
1963 le16_add_cpu(¶ms.usV_SyncOffset, 1); in set_crtc_using_dtd_timing_v3()
1968 params.susModeMiscInfo.usAccess = in set_crtc_using_dtd_timing_v3()
1969 cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_DOUBLE_CLOCK_MODE); in set_crtc_using_dtd_timing_v3()
1971 if (EXEC_BIOS_CMD_TABLE(SetCRTC_UsingDTDTiming, params)) in set_crtc_using_dtd_timing_v3()
2010 ENABLE_CRTC_PARAMETERS params = {0}; in enable_crtc_v1() local
2014 params.ucCRTC = id; in enable_crtc_v1()
2019 params.ucEnable = ATOM_ENABLE; in enable_crtc_v1()
2021 params.ucEnable = ATOM_DISABLE; in enable_crtc_v1()
2023 if (EXEC_BIOS_CMD_TABLE(EnableCRTC, params)) in enable_crtc_v1()
2060 ENABLE_CRTC_PARAMETERS params = {0}; in enable_crtc_mem_req_v1() local
2064 params.ucCRTC = id; in enable_crtc_mem_req_v1()
2067 params.ucEnable = ATOM_ENABLE; in enable_crtc_mem_req_v1()
2069 params.ucEnable = ATOM_DISABLE; in enable_crtc_mem_req_v1()
2071 if (EXEC_BIOS_CMD_TABLE(EnableCRTCMemReq, params)) in enable_crtc_mem_req_v1()
2118 SET_PIXEL_CLOCK_PS_ALLOCATION_V5 params; in program_clock_v5() local
2121 memset(¶ms, 0, sizeof(params)); in program_clock_v5()
2129 params.sPCLKInput.ucPpll = (uint8_t) atom_pll_id; in program_clock_v5()
2130 params.sPCLKInput.usPixelClock = in program_clock_v5()
2132 params.sPCLKInput.ucCRTC = (uint8_t) ATOM_CRTC_INVALID; in program_clock_v5()
2135 params.sPCLKInput.ucMiscInfo |= PIXEL_CLOCK_MISC_REF_DIV_SRC; in program_clock_v5()
2137 if (EXEC_BIOS_CMD_TABLE(SetPixelClock, params)) in program_clock_v5()
2149 SET_PIXEL_CLOCK_PS_ALLOCATION_V6 params; in program_clock_v6() local
2152 memset(¶ms, 0, sizeof(params)); in program_clock_v6()
2161 params.sPCLKInput.ucPpll = (uint8_t)atom_pll_id; in program_clock_v6()
2162 params.sPCLKInput.ulDispEngClkFreq = in program_clock_v6()
2166 params.sPCLKInput.ucMiscInfo |= PIXEL_CLOCK_MISC_REF_DIV_SRC; in program_clock_v6()
2169 params.sPCLKInput.ucMiscInfo |= PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS; in program_clock_v6()
2171 if (EXEC_BIOS_CMD_TABLE(SetPixelClock, params)) { in program_clock_v6()
2175 (uint32_t)(le32_to_cpu(params.sPCLKInput.ulDispEngClkFreq) * 10); in program_clock_v6()
2215 EXTERNAL_ENCODER_CONTROL_PS_ALLOCATION_V3 params; in external_encoder_control_v3() local
2220 memset(¶ms, 0, sizeof(params)); in external_encoder_control_v3()
2222 cntl_params = ¶ms.sExtEncoder; in external_encoder_control_v3()
2303 if (EXEC_BIOS_CMD_TABLE(ExternalEncoderControl, params)) in external_encoder_control_v3()
2345 ENABLE_DISP_POWER_GATING_PS_ALLOCATION params = {0}; in enable_disp_power_gating_v2_1() local
2349 params.ucDispPipeId = atom_crtc_id; in enable_disp_power_gating_v2_1()
2353 params.ucEnable = in enable_disp_power_gating_v2_1()
2356 if (EXEC_BIOS_CMD_TABLE(EnableDispPowerGating, params)) in enable_disp_power_gating_v2_1()
2393 SET_DCE_CLOCK_PS_ALLOCATION_V2_1 params; in set_dce_clock_v2_1() local
2398 memset(¶ms, 0, sizeof(params)); in set_dce_clock_v2_1()
2404 params.asParam.ucDCEClkSrc = atom_pll_id; in set_dce_clock_v2_1()
2405 params.asParam.ucDCEClkType = atom_clock_type; in set_dce_clock_v2_1()
2409 params.asParam.ucDCEClkFlag |= DCE_CLOCK_FLAG_PLL_REFCLK_SRC_GENLK; in set_dce_clock_v2_1()
2412 params.asParam.ucDCEClkFlag |= DCE_CLOCK_FLAG_PLL_REFCLK_SRC_PCIE; in set_dce_clock_v2_1()
2415 params.asParam.ucDCEClkFlag |= DCE_CLOCK_FLAG_PLL_REFCLK_SRC_XTALIN; in set_dce_clock_v2_1()
2418 params.asParam.ucDCEClkFlag |= DCE_CLOCK_FLAG_PLL_REFCLK_SRC_GENERICA; in set_dce_clock_v2_1()
2423 params.asParam.ulDCEClkFreq = cpu_to_le32(bp_params->target_clock_frequency / 10); in set_dce_clock_v2_1()
2425 if (EXEC_BIOS_CMD_TABLE(SetDCEClock, params)) { in set_dce_clock_v2_1()
2427 bp_params->target_clock_frequency = le32_to_cpu(params.asParam.ulDCEClkFreq) * 10; in set_dce_clock_v2_1()