drivers/clk/clk-stm32f4.c
728
int pll_state;
drivers/clk/clk-stm32f4.c
730
pll_state = stm32f4_pll_is_enabled(hw);
drivers/clk/clk-stm32f4.c
732
if (pll_state)
drivers/clk/clk-stm32f4.c
745
if (pll_state)
drivers/clk/clk-stm32f4.c
782
int pll_state, ret;
drivers/clk/clk-stm32f4.c
787
pll_state = stm32f4_pll_is_enabled(pll_div->hw_pll);
drivers/clk/clk-stm32f4.c
789
if (pll_state)
drivers/clk/clk-stm32f4.c
794
if (pll_state)
drivers/clk/clk-stm32f4.c
857
int pll_state;
drivers/clk/clk-stm32f4.c
871
pll_state = stm32f4_pll_is_enabled(hw);
drivers/clk/clk-stm32f4.c
873
if (pll_state)
drivers/clk/clk-stm32f4.c
885
if (pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
1985
struct intel_cx0pll_state *pll_state, bool is_dp)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
1992
pll_state->ssc_enabled =
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2001
static bool intel_c10pll_ssc_enabled(const struct intel_c10pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2003
return memchr_inv(&pll_state->pll[C10_PLL_SSC_REG_START_IDX],
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2004
0, sizeof(pll_state->pll[0]) * C10_PLL_SSC_REG_COUNT);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2008
struct intel_cx0pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2013
if (pll_state->ssc_enabled)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2016
drm_WARN_ON(display->drm, ARRAY_SIZE(pll_state->c10.pll) <
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2021
pll_state->c10.pll[i] = 0;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2024
static bool c10pll_state_is_dp(const struct intel_c10pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2026
return !REG_FIELD_GET8(C10_PLL15_HDMIDIV_MASK, pll_state->pll[15]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2029
static bool c20pll_state_is_dp(const struct intel_c20pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2031
return pll_state->vdr.serdes_rate & PHY_C20_IS_DP;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2034
static bool cx0pll_state_is_dp(const struct intel_cx0pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2036
if (pll_state->use_c10)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2037
return c10pll_state_is_dp(&pll_state->c10);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2039
return c20pll_state_is_dp(&pll_state->c20);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2042
static int intel_c10pll_calc_port_clock(const struct intel_c10pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2048
if (pll_state->pll[0] & C10_PLL0_FRACEN) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2049
frac_quot = pll_state->pll[12] << 8 | pll_state->pll[11];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2050
frac_rem = pll_state->pll[14] << 8 | pll_state->pll[13];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2051
frac_den = pll_state->pll[10] << 8 | pll_state->pll[9];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2054
multiplier = (REG_FIELD_GET8(C10_PLL3_MULTIPLIERH_MASK, pll_state->pll[3]) << 8 |
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2055
pll_state->pll[2]) / 2 + 16;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2057
tx_clk_div = REG_FIELD_GET8(C10_PLL15_TXCLKDIV_MASK, pll_state->pll[15]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2058
hdmi_div = REG_FIELD_GET8(C10_PLL15_HDMIDIV_MASK, pll_state->pll[15]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2073
static int intel_c20pll_calc_port_clock(const struct intel_c20pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2082
unsigned int tx_rate = REG_FIELD_GET(C20_PHY_TX_RATE, pll_state->tx[0]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2084
if (intel_c20phy_use_mpllb(pll_state)) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2086
frac_en = REG_FIELD_GET(C20_MPLLB_FRACEN, pll_state->mpllb[6]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2087
frac_quot = pll_state->mpllb[8];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2088
frac_rem = pll_state->mpllb[9];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2089
frac_den = pll_state->mpllb[7];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2090
multiplier = REG_FIELD_GET(C20_MULTIPLIER_MASK, pll_state->mpllb[0]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2091
tx_clk_div = REG_FIELD_GET(C20_MPLLB_TX_CLK_DIV_MASK, pll_state->mpllb[0]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2092
ref_clk_mpllb_div = REG_FIELD_GET(C20_REF_CLK_MPLLB_DIV_MASK, pll_state->mpllb[6]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2096
frac_en = REG_FIELD_GET(C20_MPLLA_FRACEN, pll_state->mplla[6]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2097
frac_quot = pll_state->mplla[8];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2098
frac_rem = pll_state->mplla[9];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2099
frac_den = pll_state->mplla[7];
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2100
multiplier = REG_FIELD_GET(C20_MULTIPLIER_MASK, pll_state->mplla[0]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2101
tx_clk_div = REG_FIELD_GET(C20_MPLLA_TX_CLK_DIV_MASK, pll_state->mplla[1]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2102
ref_clk_mpllb_div = REG_FIELD_GET(C20_REF_CLK_MPLLB_DIV_MASK, pll_state->mplla[6]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2103
fb_clk_div4_en = REG_FIELD_GET(C20_FB_CLK_DIV4_EN, pll_state->mplla[0]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2124
struct intel_cx0pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2134
pll_state->c10 = *tables[i].c10;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2135
intel_cx0pll_update_ssc(encoder, pll_state, is_dp);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2136
intel_c10pll_update_pll(encoder, pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2138
pll_state->use_c10 = true;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2139
pll_state->lane_count = lane_count;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2141
drm_WARN_ON(display->drm, is_dp != c10pll_state_is_dp(&pll_state->c10));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2238
struct intel_c10pll_state *pll_state = &cx0pll_state->c10;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2258
for (i = 0; i < ARRAY_SIZE(pll_state->pll); i++)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2259
pll_state->pll[i] = intel_cx0_read(encoder, lane, PHY_C10_VDR_PLL(i));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2261
pll_state->cmn = intel_cx0_read(encoder, lane, PHY_C10_VDR_CMN(0));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2262
pll_state->tx = intel_cx0_read(encoder, lane, PHY_C10_VDR_TX(0));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2268
if (cx0pll_state->ssc_enabled != intel_c10pll_ssc_enabled(pll_state))
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2273
str_enabled_disabled(intel_c10pll_ssc_enabled(pll_state)));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2278
const struct intel_c10pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2285
for (i = 0; i < ARRAY_SIZE(pll_state->pll); i++)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2287
pll_state->pll[i],
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2290
intel_cx0_write(encoder, INTEL_CX0_LANE0, PHY_C10_VDR_CMN(0), pll_state->cmn, MB_WRITE_COMMITTED);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2291
intel_cx0_write(encoder, INTEL_CX0_LANE0, PHY_C10_VDR_TX(0), pll_state->tx, MB_WRITE_COMMITTED);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2377
struct intel_c20pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2415
pll_state->tx[0] = 0xbe88;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2416
pll_state->tx[1] = intel_c20_hdmi_tmds_tx_cgf_1(display);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2417
pll_state->tx[2] = 0x0000;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2418
pll_state->cmn[0] = 0x0500;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2419
pll_state->cmn[1] = 0x0005;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2420
pll_state->cmn[2] = 0x0000;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2421
pll_state->cmn[3] = 0x0000;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2422
pll_state->mpllb[0] = (MPLL_TX_CLK_DIV(mpll_tx_clk_div) |
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2424
pll_state->mpllb[1] = (CAL_DAC_CODE(CAL_DAC_CODE_31) |
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2427
pll_state->mpllb[2] = (MPLLB_ANA_FREQ_VCO(mpllb_ana_freq_vco) |
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2430
pll_state->mpllb[3] = (V2I(V2I_2) |
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2433
pll_state->mpllb[4] = 0x0000;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2434
pll_state->mpllb[5] = 0x0000;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2435
pll_state->mpllb[6] = (C20_MPLLB_FRACEN | SSC_UP_SPREAD);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2436
pll_state->mpllb[7] = MPLL_FRACN_DEN;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2437
pll_state->mpllb[8] = mpll_fracn_quot;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2438
pll_state->mpllb[9] = mpll_fracn_rem;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2439
pll_state->mpllb[10] = HDMI_DIV(HDMI_DIV_1);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2637
struct intel_cx0pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2645
pll_state->c20 = *table->c20;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2647
intel_cx0pll_update_ssc(encoder, pll_state, intel_crtc_has_dp_encoder(crtc_state));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2701
struct intel_c20pll_state *pll_state = &cx0pll_state->c20;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2715
intel_c20_readout_vdr_params(encoder, &pll_state->vdr, &cntx);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2718
for (i = 0; i < ARRAY_SIZE(pll_state->tx); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2720
pll_state->tx[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2724
pll_state->tx[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2730
for (i = 0; i < ARRAY_SIZE(pll_state->cmn); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2732
pll_state->cmn[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2736
pll_state->cmn[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2741
if (intel_c20phy_use_mpllb(pll_state)) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2743
for (i = 0; i < ARRAY_SIZE(pll_state->mpllb); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2745
pll_state->mpllb[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2749
pll_state->mpllb[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2755
for (i = 0; i < ARRAY_SIZE(pll_state->mplla); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2757
pll_state->mplla[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2761
pll_state->mplla[i] = intel_c20_sram_read(encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2769
cx0pll_state->ssc_enabled = readout_ssc_state(encoder, intel_c20phy_use_mpllb(pll_state));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2827
const struct intel_c20pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2850
for (i = 0; i < ARRAY_SIZE(pll_state->tx); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2854
pll_state->tx[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2858
pll_state->tx[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2862
for (i = 0; i < ARRAY_SIZE(pll_state->cmn); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2866
pll_state->cmn[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2870
pll_state->cmn[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2874
if (intel_c20phy_use_mpllb(pll_state)) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2875
for (i = 0; i < ARRAY_SIZE(pll_state->mpllb); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2879
pll_state->mpllb[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2883
pll_state->mpllb[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2886
for (i = 0; i < ARRAY_SIZE(pll_state->mplla); i++) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2890
pll_state->mplla[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2894
pll_state->mplla[i]);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2902
intel_c20_program_vdr_params(encoder, &pll_state->vdr, owned_lane_mask);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2920
const struct intel_cx0pll_state *pll_state,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2925
bool is_dp = cx0pll_state_is_dp(pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2945
val |= pll_state->ssc_enabled ? XELPDP_SSC_ENABLE_PLLA : 0;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2947
val |= pll_state->ssc_enabled ? XELPDP_SSC_ENABLE_PLLB : 0;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3169
const struct intel_cx0pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3180
if (pll_state->use_c10)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3181
port_clock = intel_c10pll_calc_port_clock(&pll_state->c10);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3183
port_clock = intel_c20pll_calc_port_clock(&pll_state->c20);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3196
intel_program_port_clock_ctl(encoder, pll_state, port_clock, lane_reversal);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3216
intel_c10_pll_program(display, encoder, &pll_state->c10);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3218
intel_c20_pll_program(display, encoder, &pll_state->c20);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3224
intel_cx0_program_phy_lane(encoder, pll_state->lane_count, lane_reversal);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3266
if (!cx0pll_state_is_dp(pll_state) && pll_state->use_c10) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3612
struct intel_cx0pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3614
memset(pll_state, 0, sizeof(*pll_state));
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3620
intel_c10pll_readout_hw_state(encoder, pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3622
intel_c20pll_readout_hw_state(encoder, pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3680
const struct intel_cx0pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3683
return intel_c10pll_calc_port_clock(&pll_state->c10);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3685
return intel_c20pll_calc_port_clock(&pll_state->c20);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3709
struct intel_cx0pll_state pll_state = {};
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3725
&pll_state) < 0) {
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3735
intel_cx0pll_enable(encoder, &pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3743
const struct intel_c10pll_state *pll_state,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3749
clock = intel_c10pll_calc_port_clock(pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3768
intel_c10pll_dump_hw_state(&p, pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3774
struct intel_c10pll_state pll_state;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3781
intel_snps_hdmi_pll_compute_c10pll(&pll_state, pll_params->clock_rate);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3783
intel_c10pll_verify_clock(display, pll_params->clock_rate, pll_params->name, &pll_state, false);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3789
const struct intel_c20pll_state *pll_state,
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3795
clock = intel_c20pll_calc_port_clock(pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3814
intel_c20pll_dump_hw_state(&p, pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3820
struct intel_c20pll_state pll_state;
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3827
if (intel_c20_compute_hdmi_tmds_pll(display, pll_params->clock_rate, &pll_state) != 0)
drivers/gpu/drm/i915/display/intel_cx0_phy.c
3830
intel_c20pll_verify_clock(display, pll_params->clock_rate, pll_params->name, &pll_state, false);
drivers/gpu/drm/i915/display/intel_cx0_phy.h
51
struct intel_cx0pll_state *pll_state);
drivers/gpu/drm/i915/display/intel_cx0_phy.h
53
const struct intel_cx0pll_state *pll_state);
drivers/gpu/drm/i915/display/intel_lt_phy.c
2232
struct intel_lt_phy_pll_state *pll_state)
drivers/gpu/drm/i915/display/intel_lt_phy.c
2242
pll_state->tbt_mode = intel_tc_port_in_tbt_alt_mode(enc_to_dig_port(encoder));
drivers/gpu/drm/i915/display/intel_lt_phy.c
2243
if (pll_state->tbt_mode)
drivers/gpu/drm/i915/display/intel_lt_phy.c
2250
pll_state->lane_count = intel_readout_lane_count(encoder, INTEL_LT_PHY_LANE0,
drivers/gpu/drm/i915/display/intel_lt_phy.c
2252
pll_state->config[0] = intel_lt_phy_read(encoder, lane, LT_PHY_VDR_0_CONFIG);
drivers/gpu/drm/i915/display/intel_lt_phy.c
2253
pll_state->config[1] = intel_lt_phy_read(encoder, INTEL_LT_PHY_LANE0, LT_PHY_VDR_1_CONFIG);
drivers/gpu/drm/i915/display/intel_lt_phy.c
2254
pll_state->config[2] = intel_lt_phy_read(encoder, lane, LT_PHY_VDR_2_CONFIG);
drivers/gpu/drm/i915/display/intel_lt_phy.c
2258
pll_state->data[i][k] =
drivers/gpu/drm/i915/display/intel_lt_phy.c
2289
const struct intel_lt_phy_pll_state *pll_state,
drivers/gpu/drm/i915/display/intel_lt_phy.c
2295
clock = intel_lt_phy_calc_port_clock(display, pll_state);
drivers/gpu/drm/i915/display/intel_lt_phy.c
2314
intel_lt_phy_dump_hw_state(&p, pll_state);
drivers/gpu/drm/i915/display/intel_lt_phy.c
2320
struct intel_lt_phy_pll_state pll_state;
drivers/gpu/drm/i915/display/intel_lt_phy.c
2327
if (intel_lt_phy_calculate_hdmi_state(&pll_state, pll_params->clock_rate) != 0)
drivers/gpu/drm/i915/display/intel_lt_phy.c
2330
intel_lt_phy_pll_verify_clock(display, pll_params->clock_rate, pll_params->name, &pll_state, false);
drivers/gpu/drm/i915/display/intel_lt_phy.h
43
struct intel_lt_phy_pll_state *pll_state);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
219
void intel_snps_hdmi_pll_compute_mpllb(struct intel_mpllb_state *pll_state, u64 pixel_clock)
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
262
pll_state->clock = pixel_clock;
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
263
pll_state->ref_control =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
265
pll_state->mpllb_cp =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
270
pll_state->mpllb_div =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
276
pll_state->mpllb_div2 =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
280
pll_state->mpllb_fracn1 =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
284
pll_state->mpllb_fracn2 =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
287
pll_state->mpllb_sscen =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
291
void intel_snps_hdmi_pll_compute_c10pll(struct intel_c10pll_state *pll_state, u64 pixel_clock)
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
335
pll_state->tx = 0x10;
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
336
pll_state->cmn = 0x1;
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
337
pll_state->pll[0] = REG_FIELD_PREP(C10_PLL0_DIV5CLK_EN, pll_params.mpll_div5_en) |
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
341
pll_state->pll[2] = REG_FIELD_PREP(C10_PLL2_MULTIPLIERL_MASK, pll_params.multiplier);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
342
pll_state->pll[3] = REG_FIELD_PREP(C10_PLL3_MULTIPLIERH_MASK, pll_params.multiplier >> 8);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
343
pll_state->pll[8] = REG_FIELD_PREP(C10_PLL8_SSC_UP_SPREAD, pll_params.ssc_up_spread);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
344
pll_state->pll[9] = REG_FIELD_PREP(C10_PLL9_FRACN_DENL_MASK, pll_params.fracn_den);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
345
pll_state->pll[10] = REG_FIELD_PREP(C10_PLL10_FRACN_DENH_MASK, pll_params.fracn_den >> 8);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
346
pll_state->pll[11] = REG_FIELD_PREP(C10_PLL11_FRACN_QUOT_L_MASK, pll_params.fracn_quot);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
347
pll_state->pll[12] = REG_FIELD_PREP(C10_PLL12_FRACN_QUOT_H_MASK,
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
350
pll_state->pll[13] = REG_FIELD_PREP(C10_PLL13_FRACN_REM_L_MASK, pll_params.fracn_rem);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
351
pll_state->pll[14] = REG_FIELD_PREP(C10_PLL14_FRACN_REM_H_MASK, pll_params.fracn_rem >> 8);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
352
pll_state->pll[15] = REG_FIELD_PREP(C10_PLL15_TXCLKDIV_MASK, pll_params.tx_clk_div) |
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
354
pll_state->pll[16] = REG_FIELD_PREP(C10_PLL16_ANA_CPINT, pll_params.ana_cp_int) |
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
356
pll_state->pll[17] = REG_FIELD_PREP(C10_PLL17_ANA_CPINTGS_H_MASK, ana_cp_int_gs >> 1) |
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
358
pll_state->pll[18] =
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
362
pll_state->pll[19] = REG_FIELD_PREP(C10_PLL19_ANA_CPPROPGS_H_MASK, ana_cp_prop_gs >> 3) |
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.h
14
void intel_snps_hdmi_pll_compute_mpllb(struct intel_mpllb_state *pll_state, u64 pixel_clock);
drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.h
15
void intel_snps_hdmi_pll_compute_c10pll(struct intel_c10pll_state *pll_state, u64 pixel_clock);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1823
const struct intel_mpllb_state *pll_state = &crtc_state->dpll_hw_state.mpllb;
drivers/gpu/drm/i915/display/intel_snps_phy.c
1832
intel_de_write(display, SNPS_PHY_MPLLB_CP(phy), pll_state->mpllb_cp);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1833
intel_de_write(display, SNPS_PHY_MPLLB_DIV(phy), pll_state->mpllb_div);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1834
intel_de_write(display, SNPS_PHY_MPLLB_DIV2(phy), pll_state->mpllb_div2);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1835
intel_de_write(display, SNPS_PHY_MPLLB_SSCEN(phy), pll_state->mpllb_sscen);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1836
intel_de_write(display, SNPS_PHY_MPLLB_SSCSTEP(phy), pll_state->mpllb_sscstep);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1837
intel_de_write(display, SNPS_PHY_MPLLB_FRACN1(phy), pll_state->mpllb_fracn1);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1838
intel_de_write(display, SNPS_PHY_MPLLB_FRACN2(phy), pll_state->mpllb_fracn2);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1859
pll_state->mpllb_div | SNPS_PHY_MPLLB_FORCE_EN);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1919
const struct intel_mpllb_state *pll_state)
drivers/gpu/drm/i915/display/intel_snps_phy.c
1930
refclk >>= REG_FIELD_GET(SNPS_PHY_MPLLB_REF_CLK_DIV, pll_state->mpllb_div2) - 1;
drivers/gpu/drm/i915/display/intel_snps_phy.c
1932
frac_en = REG_FIELD_GET(SNPS_PHY_MPLLB_FRACN_EN, pll_state->mpllb_fracn1);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1935
frac_quot = REG_FIELD_GET(SNPS_PHY_MPLLB_FRACN_QUOT, pll_state->mpllb_fracn2);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1936
frac_rem = REG_FIELD_GET(SNPS_PHY_MPLLB_FRACN_REM, pll_state->mpllb_fracn2);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1937
frac_den = REG_FIELD_GET(SNPS_PHY_MPLLB_FRACN_DEN, pll_state->mpllb_fracn1);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1940
multiplier = REG_FIELD_GET(SNPS_PHY_MPLLB_MULTIPLIER, pll_state->mpllb_div2) / 2 + 16;
drivers/gpu/drm/i915/display/intel_snps_phy.c
1942
tx_clk_div = REG_FIELD_GET(SNPS_PHY_MPLLB_TX_CLK_DIV, pll_state->mpllb_div);
drivers/gpu/drm/i915/display/intel_snps_phy.c
1950
struct intel_mpllb_state *pll_state)
drivers/gpu/drm/i915/display/intel_snps_phy.c
1955
pll_state->mpllb_cp = intel_de_read(display, SNPS_PHY_MPLLB_CP(phy));
drivers/gpu/drm/i915/display/intel_snps_phy.c
1956
pll_state->mpllb_div = intel_de_read(display, SNPS_PHY_MPLLB_DIV(phy));
drivers/gpu/drm/i915/display/intel_snps_phy.c
1957
pll_state->mpllb_div2 = intel_de_read(display, SNPS_PHY_MPLLB_DIV2(phy));
drivers/gpu/drm/i915/display/intel_snps_phy.c
1958
pll_state->mpllb_sscen = intel_de_read(display, SNPS_PHY_MPLLB_SSCEN(phy));
drivers/gpu/drm/i915/display/intel_snps_phy.c
1959
pll_state->mpllb_sscstep = intel_de_read(display, SNPS_PHY_MPLLB_SSCSTEP(phy));
drivers/gpu/drm/i915/display/intel_snps_phy.c
1960
pll_state->mpllb_fracn1 = intel_de_read(display, SNPS_PHY_MPLLB_FRACN1(phy));
drivers/gpu/drm/i915/display/intel_snps_phy.c
1961
pll_state->mpllb_fracn2 = intel_de_read(display, SNPS_PHY_MPLLB_FRACN2(phy));
drivers/gpu/drm/i915/display/intel_snps_phy.c
1969
pll_state->ref_control = intel_de_read(display, SNPS_PHY_REF_CONTROL(phy)) &
drivers/gpu/drm/i915/display/intel_snps_phy.c
1978
pll_state->mpllb_div &= ~SNPS_PHY_MPLLB_FORCE_EN;
drivers/gpu/drm/i915/display/intel_snps_phy.h
29
struct intel_mpllb_state *pll_state);
drivers/gpu/drm/i915/display/intel_snps_phy.h
31
const struct intel_mpllb_state *pll_state);
sound/soc/codecs/wm8580.c
247
struct pll_state a;
sound/soc/codecs/wm8580.c
248
struct pll_state b;
sound/soc/codecs/wm8580.c
465
struct pll_state *state;