Lines Matching refs:parent_idx
79 unsigned int lvl, parent_idx; in psci_stats_update_pwr_down() local
85 parent_idx = psci_cpu_pd_nodes[cpu_idx].parent_node; in psci_stats_update_pwr_down()
97 last_cpu_in_non_cpu_pd[parent_idx] = (int)cpu_idx; in psci_stats_update_pwr_down()
99 parent_idx = psci_non_cpu_pd_nodes[parent_idx].parent_node; in psci_stats_update_pwr_down()
112 unsigned int lvl, parent_idx; in psci_stats_update_pwr_up() local
137 parent_idx = psci_cpu_pd_nodes[cpu_idx].parent_node; in psci_stats_update_pwr_up()
139 if (last_cpu_in_non_cpu_pd[parent_idx] == -1) in psci_stats_update_pwr_up()
149 assert(last_cpu_in_non_cpu_pd[parent_idx] != -1); in psci_stats_update_pwr_up()
153 (unsigned int)last_cpu_in_non_cpu_pd[parent_idx]); in psci_stats_update_pwr_up()
156 last_cpu_in_non_cpu_pd[parent_idx] = -1; in psci_stats_update_pwr_up()
162 psci_non_cpu_stat[parent_idx][stat_idx].residency += residency; in psci_stats_update_pwr_up()
163 psci_non_cpu_stat[parent_idx][stat_idx].count++; in psci_stats_update_pwr_up()
165 parent_idx = psci_non_cpu_pd_nodes[parent_idx].parent_node; in psci_stats_update_pwr_up()
179 unsigned int pwrlvl, lvl, parent_idx, target_idx; in psci_get_stat() local
212 parent_idx = SPECULATION_SAFE_VALUE(psci_cpu_pd_nodes[target_idx].parent_node); in psci_get_stat()
214 parent_idx = SPECULATION_SAFE_VALUE(psci_non_cpu_pd_nodes[parent_idx].parent_node); in psci_get_stat()
217 *psci_stat = psci_non_cpu_stat[parent_idx][stat_idx]; in psci_get_stat()