Home
last modified time | relevance | path

Searched refs:ti_bandgap (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/drivers/thermal/ti-soc-thermal/
Dti-thermal.h87 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
88 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
89 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id);
90 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
91 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
94 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) in ti_thermal_expose_sensor()
100 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor()
106 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature()
112 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling()
118 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_unregister_cpu_cooling()
Dti-bandgap.h239 struct ti_bandgap { struct
281 int (*register_cooling)(struct ti_bandgap *bgp, int id);
282 int (*unregister_cooling)(struct ti_bandgap *bgp, int id);
371 int (*report_temperature)(struct ti_bandgap *bgp, int id);
372 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain);
373 int (*remove_sensor)(struct ti_bandgap *bgp, int id);
379 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot);
380 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val);
381 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold);
382 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val);
[all …]
Dti-bandgap.c56 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl()
69 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel()
104 static int ti_bandgap_power(struct ti_bandgap *bgp, bool on) in ti_bandgap_power()
137 static u32 ti_errata814_bandgap_read_temp(struct ti_bandgap *bgp, u32 reg) in ti_errata814_bandgap_read_temp()
164 static u32 ti_bandgap_read_temp(struct ti_bandgap *bgp, int id) in ti_bandgap_read_temp()
212 struct ti_bandgap *bgp = data; in ti_bandgap_talert_irq_handler()
298 int ti_bandgap_adc_to_mcelsius(struct ti_bandgap *bgp, int adc_val, int *t) in ti_bandgap_adc_to_mcelsius()
329 int ti_bandgap_mcelsius_to_adc(struct ti_bandgap *bgp, long temp, int *adc) in ti_bandgap_mcelsius_to_adc()
370 int ti_bandgap_add_hyst(struct ti_bandgap *bgp, int adc_val, int hyst_val, in ti_bandgap_add_hyst()
403 static void ti_bandgap_unmask_interrupts(struct ti_bandgap *bgp, int id, in ti_bandgap_unmask_interrupts()
[all …]
Dti-thermal-common.c43 struct ti_bandgap *bgp;
83 struct ti_bandgap *bgp; in __ti_thermal_get_temp()
186 struct ti_bandgap *bgp; in ti_thermal_set_mode()
244 struct ti_bandgap *bgp; in __ti_thermal_get_trend()
306 *ti_thermal_build_data(struct ti_bandgap *bgp, int id) in ti_thermal_build_data()
325 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, in ti_thermal_expose_sensor()
361 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor()
378 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature()
389 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling()
426 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_unregister_cpu_cooling()