Lines Matching refs:tegra
16 #include <soc/tegra/bpmp.h>
17 #include <soc/tegra/bpmp-abi.h>
20 struct tegra_bpmp_thermal *tegra;
52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg);
91 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg);
114 struct tegra_bpmp_thermal *tegra = data;
122 dev_err(tegra->dev, "%s: invalid request type: %d\n", __func__, req.type);
127 for (i = 0; i < tegra->num_zones; ++i) {
128 if (tegra->zones[i]->idx != req.host_trip_reached.zone)
131 schedule_work(&tegra->zones[i]->tz_device_update_work);
136 dev_err(tegra->dev, "%s: invalid thermal zone: %d\n", __func__,
216 struct tegra_bpmp_thermal *tegra;
233 tegra = devm_kzalloc(&pdev->dev, sizeof(*tegra), GFP_KERNEL);
234 if (!tegra)
237 tegra->dev = &pdev->dev;
238 tegra->bpmp = bpmp;
247 tegra->zones = devm_kcalloc(&pdev->dev, max_num_zones,
248 sizeof(*tegra->zones), GFP_KERNEL);
249 if (!tegra->zones)
261 zone->tegra = tegra;
287 tegra->zones[tegra->num_zones++] = zone;
291 tegra);
298 platform_set_drvdata(pdev, tegra);
305 struct tegra_bpmp_thermal *tegra = platform_get_drvdata(pdev);
307 tegra_bpmp_free_mrq(tegra->bpmp, MRQ_THERMAL, tegra);
322 .name = "tegra-bpmp-thermal",