Lines Matching refs:hwmgr
29 struct pp_hwmgr *hwmgr = eventmgr->hwmgr; in psm_get_ui_state() local
32 table_entries = hwmgr->num_ps; in psm_get_ui_state()
33 state = hwmgr->ps; in psm_get_ui_state()
40 state = (struct pp_power_state *)((unsigned long)state + hwmgr->ps_size); in psm_get_ui_state()
49 struct pp_hwmgr *hwmgr = eventmgr->hwmgr; in psm_get_state_by_classification() local
52 table_entries = hwmgr->num_ps; in psm_get_state_by_classification()
53 state = hwmgr->ps; in psm_get_state_by_classification()
60 state = (struct pp_power_state *)((unsigned long)state + hwmgr->ps_size); in psm_get_state_by_classification()
69 struct pp_hwmgr *hwmgr = eventmgr->hwmgr; in psm_set_states() local
72 table_entries = hwmgr->num_ps; in psm_set_states()
74 state = hwmgr->ps; in psm_set_states()
78 memcpy(hwmgr->request_ps, state, hwmgr->ps_size); in psm_set_states()
81 state = (struct pp_power_state *)((unsigned long)state + hwmgr->ps_size); in psm_set_states()
91 struct pp_hwmgr *hwmgr; in psm_adjust_power_state_dynamic() local
97 hwmgr = eventmgr->hwmgr; in psm_adjust_power_state_dynamic()
98 pcurrent = hwmgr->current_ps; in psm_adjust_power_state_dynamic()
99 requested = hwmgr->request_ps; in psm_adjust_power_state_dynamic()
104 phm_apply_state_adjust_rules(hwmgr, requested, pcurrent); in psm_adjust_power_state_dynamic()
106 …if (pcurrent == NULL || (0 != phm_check_states_equal(hwmgr, &pcurrent->hardware, &requested->hardw… in psm_adjust_power_state_dynamic()
109 if (!equal || phm_check_smc_update_required_for_display_configuration(hwmgr)) { in psm_adjust_power_state_dynamic()
110 phm_set_power_state(hwmgr, &pcurrent->hardware, &requested->hardware); in psm_adjust_power_state_dynamic()
111 memcpy(hwmgr->current_ps, hwmgr->request_ps, hwmgr->ps_size); in psm_adjust_power_state_dynamic()