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
127 pmdemand_state->active_combo_phys_mask |= BIT(phy); in intel_pmdemand_update_phys_mask()
129 pmdemand_state->active_combo_phys_mask &= ~BIT(phy); in intel_pmdemand_update_phys_mask()
134 struct intel_pmdemand_state *pmdemand_state, in intel_pmdemand_update_port_clock() argument
140 pmdemand_state->ddi_clocks[pipe] = port_clock; in intel_pmdemand_update_port_clock()
146 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_max_ddiclk() argument
154 intel_pmdemand_update_port_clock(i915, pmdemand_state, in intel_pmdemand_update_max_ddiclk()
158 for (i = 0; i < ARRAY_SIZE(pmdemand_state->ddi_clocks); i++) in intel_pmdemand_update_max_ddiclk()
159 max_ddiclk = max(pmdemand_state->ddi_clocks[i], max_ddiclk); in intel_pmdemand_update_max_ddiclk()
161 pmdemand_state->params.ddiclk_max = DIV_ROUND_UP(max_ddiclk, 1000); in intel_pmdemand_update_max_ddiclk()
169 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_connector_phys() argument
186 intel_pmdemand_update_phys_mask(i915, encoder, pmdemand_state, in intel_pmdemand_update_connector_phys()
193 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_active_non_tc_phys() argument
208 pmdemand_state); in intel_pmdemand_update_active_non_tc_phys()
213 pmdemand_state); in intel_pmdemand_update_active_non_tc_phys()
216 pmdemand_state->params.active_phys = in intel_pmdemand_update_active_non_tc_phys()
217 min_t(u16, hweight16(pmdemand_state->active_combo_phys_mask), in intel_pmdemand_update_active_non_tc_phys()
385 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_init_pmdemand_params() argument
395 memset(&pmdemand_state->params, 0, in intel_pmdemand_init_pmdemand_params()
396 sizeof(pmdemand_state->params)); in intel_pmdemand_init_pmdemand_params()
405 pmdemand_state->params.qclk_gv_bw = in intel_pmdemand_init_pmdemand_params()
407 pmdemand_state->params.voltage_index = in intel_pmdemand_init_pmdemand_params()
409 pmdemand_state->params.qclk_gv_index = in intel_pmdemand_init_pmdemand_params()
411 pmdemand_state->params.active_pipes = in intel_pmdemand_init_pmdemand_params()
413 pmdemand_state->params.active_dbufs = in intel_pmdemand_init_pmdemand_params()
415 pmdemand_state->params.active_phys = in intel_pmdemand_init_pmdemand_params()
419 pmdemand_state->params.cdclk_freq_mhz = in intel_pmdemand_init_pmdemand_params()
421 pmdemand_state->params.ddiclk_max = in intel_pmdemand_init_pmdemand_params()
423 pmdemand_state->params.scalers = in intel_pmdemand_init_pmdemand_params()