Lines Matching refs:zone

33 static int __tegra_bpmp_thermal_get_temp(struct tegra_bpmp_thermal_zone *zone,  in __tegra_bpmp_thermal_get_temp()  argument
43 req.get_temp.zone = zone->idx; in __tegra_bpmp_thermal_get_temp()
52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in __tegra_bpmp_thermal_get_temp()
67 struct tegra_bpmp_thermal_zone *zone = thermal_zone_device_priv(tz); in tegra_bpmp_thermal_get_temp() local
69 return __tegra_bpmp_thermal_get_temp(zone, out_temp); in tegra_bpmp_thermal_get_temp()
74 struct tegra_bpmp_thermal_zone *zone = thermal_zone_device_priv(tz); in tegra_bpmp_thermal_set_trips() local
81 req.set_trip.zone = zone->idx; in tegra_bpmp_thermal_set_trips()
91 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips()
102 struct tegra_bpmp_thermal_zone *zone; in tz_device_update_work_fn() local
104 zone = container_of(work, struct tegra_bpmp_thermal_zone, in tz_device_update_work_fn()
107 thermal_zone_device_update(zone->tzd, THERMAL_TRIP_VIOLATED); in tz_device_update_work_fn()
128 if (tegra->zones[i]->idx != req.host_trip_reached.zone) in bpmp_mrq_thermal()
137 req.host_trip_reached.zone); in bpmp_mrq_thermal()
253 struct tegra_bpmp_thermal_zone *zone; in tegra_bpmp_thermal_probe() local
256 zone = devm_kzalloc(&pdev->dev, sizeof(*zone), GFP_KERNEL); in tegra_bpmp_thermal_probe()
257 if (!zone) in tegra_bpmp_thermal_probe()
260 zone->idx = i; in tegra_bpmp_thermal_probe()
261 zone->tegra = tegra; in tegra_bpmp_thermal_probe()
263 err = __tegra_bpmp_thermal_get_temp(zone, &temp); in tegra_bpmp_thermal_probe()
270 devm_kfree(&pdev->dev, zone); in tegra_bpmp_thermal_probe()
275 &pdev->dev, i, zone, thermal_ops); in tegra_bpmp_thermal_probe()
279 devm_kfree(&pdev->dev, zone); in tegra_bpmp_thermal_probe()
283 zone->tzd = tzd; in tegra_bpmp_thermal_probe()
284 INIT_WORK(&zone->tz_device_update_work, in tegra_bpmp_thermal_probe()
287 tegra->zones[tegra->num_zones++] = zone; in tegra_bpmp_thermal_probe()