Lines Matching refs:chip_pm
27 struct gic_chip_pm *chip_pm = dev_get_drvdata(dev); in gic_runtime_resume() local
28 struct gic_chip_data *gic = chip_pm->chip_data; in gic_runtime_resume()
29 const struct gic_clk_data *data = chip_pm->clk_data; in gic_runtime_resume()
32 ret = clk_bulk_prepare_enable(data->num_clocks, chip_pm->clks); in gic_runtime_resume()
53 struct gic_chip_pm *chip_pm = dev_get_drvdata(dev); in gic_runtime_suspend() local
54 struct gic_chip_data *gic = chip_pm->chip_data; in gic_runtime_suspend()
55 const struct gic_clk_data *data = chip_pm->clk_data; in gic_runtime_suspend()
60 clk_bulk_disable_unprepare(data->num_clocks, chip_pm->clks); in gic_runtime_suspend()
69 struct gic_chip_pm *chip_pm; in gic_probe() local
78 chip_pm = devm_kzalloc(dev, sizeof(*chip_pm), GFP_KERNEL); in gic_probe()
79 if (!chip_pm) in gic_probe()
88 chip_pm->clks = devm_kcalloc(dev, data->num_clocks, in gic_probe()
89 sizeof(*chip_pm->clks), GFP_KERNEL); in gic_probe()
90 if (!chip_pm->clks) in gic_probe()
94 chip_pm->clks[i].id = data->clocks[i]; in gic_probe()
96 ret = devm_clk_bulk_get(dev, data->num_clocks, chip_pm->clks); in gic_probe()
100 chip_pm->clk_data = data; in gic_probe()
101 dev_set_drvdata(dev, chip_pm); in gic_probe()
109 ret = gic_of_init_child(dev, &chip_pm->chip_data, irq); in gic_probe()