Lines Matching full:tegra
16 #include <soc/tegra/bpmp.h>
17 #include <soc/tegra/bpmp-abi.h>
20 struct tegra_bpmp_thermal *tegra; member
52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in __tegra_bpmp_thermal_get_temp()
87 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips()
110 struct tegra_bpmp_thermal *tegra = data; in bpmp_mrq_thermal() local
116 dev_err(tegra->dev, "%s: invalid request type: %d\n", in bpmp_mrq_thermal()
122 for (i = 0; i < tegra->num_zones; ++i) { in bpmp_mrq_thermal()
123 if (tegra->zones[i]->idx != req->host_trip_reached.zone) in bpmp_mrq_thermal()
126 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal()
131 dev_err(tegra->dev, "%s: invalid thermal zone: %d\n", __func__, in bpmp_mrq_thermal()
173 struct tegra_bpmp_thermal *tegra; in tegra_bpmp_thermal_probe() local
178 tegra = devm_kzalloc(&pdev->dev, sizeof(*tegra), GFP_KERNEL); in tegra_bpmp_thermal_probe()
179 if (!tegra) in tegra_bpmp_thermal_probe()
182 tegra->dev = &pdev->dev; in tegra_bpmp_thermal_probe()
183 tegra->bpmp = bpmp; in tegra_bpmp_thermal_probe()
192 tegra->zones = devm_kcalloc(&pdev->dev, max_num_zones, in tegra_bpmp_thermal_probe()
193 sizeof(*tegra->zones), GFP_KERNEL); in tegra_bpmp_thermal_probe()
194 if (!tegra->zones) in tegra_bpmp_thermal_probe()
206 zone->tegra = tegra; in tegra_bpmp_thermal_probe()
227 tegra->zones[tegra->num_zones++] = zone; in tegra_bpmp_thermal_probe()
231 tegra); in tegra_bpmp_thermal_probe()
238 platform_set_drvdata(pdev, tegra); in tegra_bpmp_thermal_probe()
245 struct tegra_bpmp_thermal *tegra = platform_get_drvdata(pdev); in tegra_bpmp_thermal_remove() local
247 tegra_bpmp_free_mrq(tegra->bpmp, MRQ_THERMAL, tegra); in tegra_bpmp_thermal_remove()
262 .name = "tegra-bpmp-thermal",
269 MODULE_DESCRIPTION("NVIDIA Tegra BPMP thermal sensor driver");