Lines Matching refs:soc_data
225 const struct thermal_soc_data *soc_data = data->socdata; in imx_set_panic_temp() local
231 regmap_write(map, soc_data->panic_alarm_ctrl + REG_CLR, in imx_set_panic_temp()
232 soc_data->panic_alarm_mask); in imx_set_panic_temp()
233 regmap_write(map, soc_data->panic_alarm_ctrl + REG_SET, in imx_set_panic_temp()
234 critical_value << soc_data->panic_alarm_shift); in imx_set_panic_temp()
241 const struct thermal_soc_data *soc_data = data->socdata; in imx_set_alarm_temp() local
251 regmap_write(map, soc_data->high_alarm_ctrl + REG_CLR, in imx_set_alarm_temp()
252 soc_data->high_alarm_mask); in imx_set_alarm_temp()
253 regmap_write(map, soc_data->high_alarm_ctrl + REG_SET, in imx_set_alarm_temp()
254 alarm_value << soc_data->high_alarm_shift); in imx_set_alarm_temp()
260 const struct thermal_soc_data *soc_data = data->socdata; in imx_get_temp() local
268 regmap_read(map, soc_data->temp_data, &val); in imx_get_temp()
269 wait = !(val & soc_data->temp_valid_mask); in imx_get_temp()
276 regmap_write(map, soc_data->sensor_ctrl + REG_CLR, in imx_get_temp()
277 soc_data->power_down_mask); in imx_get_temp()
278 regmap_write(map, soc_data->sensor_ctrl + REG_SET, in imx_get_temp()
279 soc_data->measure_temp_mask); in imx_get_temp()
291 regmap_read(map, soc_data->temp_data, &val); in imx_get_temp()
294 regmap_write(map, soc_data->sensor_ctrl + REG_CLR, in imx_get_temp()
295 soc_data->measure_temp_mask); in imx_get_temp()
296 regmap_write(map, soc_data->sensor_ctrl + REG_SET, in imx_get_temp()
297 soc_data->power_down_mask); in imx_get_temp()
300 if ((val & soc_data->temp_valid_mask) == 0) { in imx_get_temp()
305 n_meas = (val & soc_data->temp_value_mask) in imx_get_temp()
306 >> soc_data->temp_value_shift; in imx_get_temp()
356 const struct thermal_soc_data *soc_data = data->socdata; in imx_set_mode() local
362 regmap_write(map, soc_data->sensor_ctrl + REG_CLR, in imx_set_mode()
363 soc_data->power_down_mask); in imx_set_mode()
364 regmap_write(map, soc_data->sensor_ctrl + REG_SET, in imx_set_mode()
365 soc_data->measure_temp_mask); in imx_set_mode()
372 regmap_write(map, soc_data->sensor_ctrl + REG_CLR, in imx_set_mode()
373 soc_data->measure_temp_mask); in imx_set_mode()
374 regmap_write(map, soc_data->sensor_ctrl + REG_SET, in imx_set_mode()
375 soc_data->power_down_mask); in imx_set_mode()