Lines Matching refs:pmdemand_state

21 	struct intel_pmdemand_state *pmdemand_state;  in intel_pmdemand_duplicate_state()  local
23 pmdemand_state = kmemdup(obj->state, sizeof(*pmdemand_state), GFP_KERNEL); in intel_pmdemand_duplicate_state()
24 if (!pmdemand_state) in intel_pmdemand_duplicate_state()
27 return &pmdemand_state->base; in intel_pmdemand_duplicate_state()
45 struct intel_global_state *pmdemand_state = in intel_atomic_get_pmdemand_state() local
49 if (IS_ERR(pmdemand_state)) in intel_atomic_get_pmdemand_state()
50 return ERR_CAST(pmdemand_state); in intel_atomic_get_pmdemand_state()
52 return to_intel_pmdemand_state(pmdemand_state); in intel_atomic_get_pmdemand_state()
59 struct intel_global_state *pmdemand_state = in intel_atomic_get_old_pmdemand_state() local
63 if (!pmdemand_state) in intel_atomic_get_old_pmdemand_state()
66 return to_intel_pmdemand_state(pmdemand_state); in intel_atomic_get_old_pmdemand_state()
73 struct intel_global_state *pmdemand_state = in intel_atomic_get_new_pmdemand_state() local
77 if (!pmdemand_state) in intel_atomic_get_new_pmdemand_state()
80 return to_intel_pmdemand_state(pmdemand_state); in intel_atomic_get_new_pmdemand_state()
85 struct intel_pmdemand_state *pmdemand_state; in intel_pmdemand_init() local
87 pmdemand_state = kzalloc(sizeof(*pmdemand_state), GFP_KERNEL); in intel_pmdemand_init()
88 if (!pmdemand_state) in intel_pmdemand_init()
92 &pmdemand_state->base, in intel_pmdemand_init()
111 struct intel_pmdemand_state *pmdemand_state, in intel_pmdemand_update_phys_mask() argument
128 pmdemand_state->active_combo_phys_mask |= BIT(phy); in intel_pmdemand_update_phys_mask()
130 pmdemand_state->active_combo_phys_mask &= ~BIT(phy); in intel_pmdemand_update_phys_mask()
135 struct intel_pmdemand_state *pmdemand_state, in intel_pmdemand_update_port_clock() argument
141 pmdemand_state->ddi_clocks[pipe] = port_clock; in intel_pmdemand_update_port_clock()
147 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_max_ddiclk() argument
155 intel_pmdemand_update_port_clock(i915, pmdemand_state, in intel_pmdemand_update_max_ddiclk()
159 for (i = 0; i < ARRAY_SIZE(pmdemand_state->ddi_clocks); i++) in intel_pmdemand_update_max_ddiclk()
160 max_ddiclk = max(pmdemand_state->ddi_clocks[i], max_ddiclk); in intel_pmdemand_update_max_ddiclk()
162 pmdemand_state->params.ddiclk_max = DIV_ROUND_UP(max_ddiclk, 1000); in intel_pmdemand_update_max_ddiclk()
170 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_connector_phys() argument
187 intel_pmdemand_update_phys_mask(i915, encoder, pmdemand_state, in intel_pmdemand_update_connector_phys()
194 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_active_non_tc_phys() argument
209 pmdemand_state); in intel_pmdemand_update_active_non_tc_phys()
214 pmdemand_state); in intel_pmdemand_update_active_non_tc_phys()
217 pmdemand_state->params.active_phys = in intel_pmdemand_update_active_non_tc_phys()
218 min_t(u16, hweight16(pmdemand_state->active_combo_phys_mask), in intel_pmdemand_update_active_non_tc_phys()
379 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_init_pmdemand_params() argument
389 memset(&pmdemand_state->params, 0, in intel_pmdemand_init_pmdemand_params()
390 sizeof(pmdemand_state->params)); in intel_pmdemand_init_pmdemand_params()
399 pmdemand_state->params.qclk_gv_bw = in intel_pmdemand_init_pmdemand_params()
401 pmdemand_state->params.voltage_index = in intel_pmdemand_init_pmdemand_params()
403 pmdemand_state->params.qclk_gv_index = in intel_pmdemand_init_pmdemand_params()
405 pmdemand_state->params.active_pipes = in intel_pmdemand_init_pmdemand_params()
407 pmdemand_state->params.active_dbufs = in intel_pmdemand_init_pmdemand_params()
409 pmdemand_state->params.active_phys = in intel_pmdemand_init_pmdemand_params()
413 pmdemand_state->params.cdclk_freq_mhz = in intel_pmdemand_init_pmdemand_params()
415 pmdemand_state->params.ddiclk_max = in intel_pmdemand_init_pmdemand_params()
417 pmdemand_state->params.scalers = in intel_pmdemand_init_pmdemand_params()