Lines Matching refs:sensors
85 struct rockchip_thermal_sensor sensors[NUM_SENSORS]; member
363 for (i = 0; i < ARRAY_SIZE(thermal->sensors); i++) in rockchip_thermal_alarm_irq_thread()
364 thermal_zone_device_update(thermal->sensors[i].tzd); in rockchip_thermal_alarm_irq_thread()
563 &thermal->sensors[0], in rockchip_thermal_probe()
572 &thermal->sensors[1], in rockchip_thermal_probe()
592 for (i = 0; i < ARRAY_SIZE(thermal->sensors); i++) in rockchip_thermal_probe()
593 rockchip_thermal_toggle_sensor(&thermal->sensors[i], true); in rockchip_thermal_probe()
600 thermal_zone_of_sensor_unregister(&pdev->dev, thermal->sensors[1].tzd); in rockchip_thermal_probe()
602 thermal_zone_of_sensor_unregister(&pdev->dev, thermal->sensors[0].tzd); in rockchip_thermal_probe()
616 for (i = 0; i < ARRAY_SIZE(thermal->sensors); i++) { in rockchip_thermal_remove()
617 struct rockchip_thermal_sensor *sensor = &thermal->sensors[i]; in rockchip_thermal_remove()
637 for (i = 0; i < ARRAY_SIZE(thermal->sensors); i++) in rockchip_thermal_suspend()
638 rockchip_thermal_toggle_sensor(&thermal->sensors[i], false); in rockchip_thermal_suspend()
667 for (i = 0; i < ARRAY_SIZE(thermal->sensors); i++) { in rockchip_thermal_resume()
668 enum sensor_id id = thermal->sensors[i].id; in rockchip_thermal_resume()
678 for (i = 0; i < ARRAY_SIZE(thermal->sensors); i++) in rockchip_thermal_resume()
679 rockchip_thermal_toggle_sensor(&thermal->sensors[i], true); in rockchip_thermal_resume()