Home
last modified time | relevance | path

Searched refs:ns_thermal (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.10/drivers/thermal/broadcom/
Dns-thermal.c17 struct ns_thermal { struct
24 struct ns_thermal *ns_thermal = data; in ns_thermal_get_temp() argument
25 int offset = thermal_zone_get_offset(ns_thermal->tz); in ns_thermal_get_temp()
26 int slope = thermal_zone_get_slope(ns_thermal->tz); in ns_thermal_get_temp()
29 val = readl(ns_thermal->pvtmon + PVTMON_CONTROL0); in ns_thermal_get_temp()
37 writel(val, ns_thermal->pvtmon + PVTMON_CONTROL0); in ns_thermal_get_temp()
40 val = readl(ns_thermal->pvtmon + PVTMON_STATUS); in ns_thermal_get_temp()
53 struct ns_thermal *ns_thermal; in ns_thermal_probe() local
55 ns_thermal = devm_kzalloc(dev, sizeof(*ns_thermal), GFP_KERNEL); in ns_thermal_probe()
56 if (!ns_thermal) in ns_thermal_probe()
[all …]