Lines Matching refs:powergates
215 struct tegra_powergate_info *powergates; in tegra_bpmp_probe_powergates() local
228 powergates = kcalloc(max_id + 1, sizeof(*powergates), GFP_KERNEL); in tegra_bpmp_probe_powergates()
229 if (!powergates) in tegra_bpmp_probe_powergates()
233 struct tegra_powergate_info *info = &powergates[count]; in tegra_bpmp_probe_powergates()
247 *powergatesp = powergates; in tegra_bpmp_probe_powergates()
253 struct tegra_powergate_info *powergates, in tegra_bpmp_add_powergates() argument
267 powergate = tegra_powergate_add(bpmp, &powergates[i]); in tegra_bpmp_add_powergates()
330 struct tegra_powergate_info *powergates; in tegra_bpmp_init_powergates() local
335 err = tegra_bpmp_probe_powergates(bpmp, &powergates); in tegra_bpmp_init_powergates()
343 err = tegra_bpmp_add_powergates(bpmp, powergates, count); in tegra_bpmp_init_powergates()
357 kfree(powergates[i].name); in tegra_bpmp_init_powergates()
359 kfree(powergates); in tegra_bpmp_init_powergates()