Lines Matching refs:tmon
31 struct sr_tmon tmon[SR_TMON_MAX_LIST];
36 struct sr_tmon *tmon = data;
37 struct sr_thermal *sr_thermal = tmon->priv;
39 *temp = readl(sr_thermal->regs + SR_TMON_TEMP_BASE(tmon->tmon_id));
52 struct sr_tmon *tmon;
74 ret = device_property_read_u32(dev, "brcm,tmon-mask", &sr_tmon_list);
78 tmon = sr_thermal->tmon;
79 for (i = 0; i < SR_TMON_MAX_LIST; i++, tmon++) {
85 tmon->tmon_id = i;
86 tmon->priv = sr_thermal;
87 tmon->tz = devm_thermal_zone_of_sensor_register(dev, i, tmon,
89 if (IS_ERR(tmon->tz))
90 return PTR_ERR(tmon->tz);