Lines Matching full:tmon
15 * Each TMON temperature register size is 4.
30 struct sr_tmon tmon[SR_TMON_MAX_LIST]; member
35 struct sr_tmon *tmon = thermal_zone_device_priv(tz); in sr_get_temp() local
36 struct sr_thermal *sr_thermal = tmon->priv; in sr_get_temp()
38 *temp = readl(sr_thermal->regs + SR_TMON_TEMP_BASE(tmon->tmon_id)); in sr_get_temp()
52 struct sr_tmon *tmon; in sr_thermal_probe() local
74 ret = device_property_read_u32(dev, "brcm,tmon-mask", &sr_tmon_list); in sr_thermal_probe()
78 tmon = sr_thermal->tmon; in sr_thermal_probe()
79 for (i = 0; i < SR_TMON_MAX_LIST; i++, tmon++) { in sr_thermal_probe()
85 tmon->tmon_id = i; in sr_thermal_probe()
86 tmon->priv = sr_thermal; in sr_thermal_probe()
87 tz = devm_thermal_of_zone_register(dev, i, tmon, in sr_thermal_probe()