Lines Matching refs:pmdemand_state

57 	struct intel_pmdemand_state *pmdemand_state;  in intel_pmdemand_duplicate_state()  local
59 pmdemand_state = kmemdup(obj->state, sizeof(*pmdemand_state), GFP_KERNEL); in intel_pmdemand_duplicate_state()
60 if (!pmdemand_state) in intel_pmdemand_duplicate_state()
63 return &pmdemand_state->base; in intel_pmdemand_duplicate_state()
81 struct intel_global_state *pmdemand_state = in intel_atomic_get_pmdemand_state() local
85 if (IS_ERR(pmdemand_state)) in intel_atomic_get_pmdemand_state()
86 return ERR_CAST(pmdemand_state); in intel_atomic_get_pmdemand_state()
88 return to_intel_pmdemand_state(pmdemand_state); in intel_atomic_get_pmdemand_state()
95 struct intel_global_state *pmdemand_state = in intel_atomic_get_old_pmdemand_state() local
99 if (!pmdemand_state) in intel_atomic_get_old_pmdemand_state()
102 return to_intel_pmdemand_state(pmdemand_state); in intel_atomic_get_old_pmdemand_state()
109 struct intel_global_state *pmdemand_state = in intel_atomic_get_new_pmdemand_state() local
113 if (!pmdemand_state) in intel_atomic_get_new_pmdemand_state()
116 return to_intel_pmdemand_state(pmdemand_state); in intel_atomic_get_new_pmdemand_state()
121 struct intel_pmdemand_state *pmdemand_state; in intel_pmdemand_init() local
123 pmdemand_state = kzalloc(sizeof(*pmdemand_state), GFP_KERNEL); in intel_pmdemand_init()
124 if (!pmdemand_state) in intel_pmdemand_init()
128 &pmdemand_state->base, in intel_pmdemand_init()
147 struct intel_pmdemand_state *pmdemand_state, in intel_pmdemand_update_phys_mask() argument
164 pmdemand_state->active_combo_phys_mask |= BIT(phy); in intel_pmdemand_update_phys_mask()
166 pmdemand_state->active_combo_phys_mask &= ~BIT(phy); in intel_pmdemand_update_phys_mask()
171 struct intel_pmdemand_state *pmdemand_state, in intel_pmdemand_update_port_clock() argument
177 pmdemand_state->ddi_clocks[pipe] = port_clock; in intel_pmdemand_update_port_clock()
183 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_max_ddiclk() argument
191 intel_pmdemand_update_port_clock(display, pmdemand_state, in intel_pmdemand_update_max_ddiclk()
195 for (i = 0; i < ARRAY_SIZE(pmdemand_state->ddi_clocks); i++) in intel_pmdemand_update_max_ddiclk()
196 max_ddiclk = max(pmdemand_state->ddi_clocks[i], max_ddiclk); in intel_pmdemand_update_max_ddiclk()
198 pmdemand_state->params.ddiclk_max = DIV_ROUND_UP(max_ddiclk, 1000); in intel_pmdemand_update_max_ddiclk()
206 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_connector_phys() argument
223 intel_pmdemand_update_phys_mask(display, encoder, pmdemand_state, in intel_pmdemand_update_connector_phys()
230 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_update_active_non_tc_phys() argument
245 pmdemand_state); in intel_pmdemand_update_active_non_tc_phys()
250 pmdemand_state); in intel_pmdemand_update_active_non_tc_phys()
253 pmdemand_state->params.active_phys = in intel_pmdemand_update_active_non_tc_phys()
254 min_t(u16, hweight16(pmdemand_state->active_combo_phys_mask), in intel_pmdemand_update_active_non_tc_phys()
402 struct intel_pmdemand_state *pmdemand_state) in intel_pmdemand_init_pmdemand_params() argument
412 memset(&pmdemand_state->params, 0, in intel_pmdemand_init_pmdemand_params()
413 sizeof(pmdemand_state->params)); in intel_pmdemand_init_pmdemand_params()
421 pmdemand_state->params.qclk_gv_bw = in intel_pmdemand_init_pmdemand_params()
423 pmdemand_state->params.voltage_index = in intel_pmdemand_init_pmdemand_params()
425 pmdemand_state->params.qclk_gv_index = in intel_pmdemand_init_pmdemand_params()
427 pmdemand_state->params.active_phys = in intel_pmdemand_init_pmdemand_params()
430 pmdemand_state->params.cdclk_freq_mhz = in intel_pmdemand_init_pmdemand_params()
432 pmdemand_state->params.ddiclk_max = in intel_pmdemand_init_pmdemand_params()
436 pmdemand_state->params.active_pipes = in intel_pmdemand_init_pmdemand_params()
439 pmdemand_state->params.active_pipes = in intel_pmdemand_init_pmdemand_params()
441 pmdemand_state->params.active_dbufs = in intel_pmdemand_init_pmdemand_params()
444 pmdemand_state->params.scalers = in intel_pmdemand_init_pmdemand_params()