Lines Matching refs:trip
180 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local
181 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
186 val |= trip->enable_mask; in avs_tmon_trip_enable()
188 val &= ~trip->enable_mask; in avs_tmon_trip_enable()
190 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable()
196 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local
197 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp()
199 val &= trip->reg_msk; in avs_tmon_get_trip_temp()
200 val >>= trip->reg_shift; in avs_tmon_get_trip_temp()
209 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_set_trip_temp() local
218 val <<= trip->reg_shift; in avs_tmon_set_trip_temp()
219 val &= trip->reg_msk; in avs_tmon_set_trip_temp()
221 orig = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp()
222 orig &= ~trip->reg_msk; in avs_tmon_set_trip_temp()
224 __raw_writel(orig, priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp()