Lines Matching refs:ti_bandgap

38 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id);
54 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl()
67 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel()
102 static int ti_bandgap_power(struct ti_bandgap *bgp, bool on) in ti_bandgap_power()
131 static u32 ti_errata814_bandgap_read_temp(struct ti_bandgap *bgp, u32 reg) in ti_errata814_bandgap_read_temp()
158 static u32 ti_bandgap_read_temp(struct ti_bandgap *bgp, int id) in ti_bandgap_read_temp()
206 struct ti_bandgap *bgp = data; in ti_bandgap_talert_irq_handler()
292 int ti_bandgap_adc_to_mcelsius(struct ti_bandgap *bgp, int adc_val, int *t) in ti_bandgap_adc_to_mcelsius()
315 static inline int ti_bandgap_validate(struct ti_bandgap *bgp, int id) in ti_bandgap_validate()
337 static void ti_bandgap_read_counter(struct ti_bandgap *bgp, int id, in ti_bandgap_read_counter()
357 static void ti_bandgap_read_counter_delay(struct ti_bandgap *bgp, int id, in ti_bandgap_read_counter_delay()
401 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, in ti_bandgap_read_update_interval()
434 static int ti_bandgap_write_counter_delay(struct ti_bandgap *bgp, int id, in ti_bandgap_write_counter_delay()
476 static void ti_bandgap_write_counter(struct ti_bandgap *bgp, int id, in ti_bandgap_write_counter()
493 int ti_bandgap_write_update_interval(struct ti_bandgap *bgp, in ti_bandgap_write_update_interval()
524 int ti_bandgap_read_temperature(struct ti_bandgap *bgp, int id, in ti_bandgap_read_temperature()
562 int ti_bandgap_set_sensor_data(struct ti_bandgap *bgp, int id, void *data) in ti_bandgap_set_sensor_data()
581 void *ti_bandgap_get_sensor_data(struct ti_bandgap *bgp, int id) in ti_bandgap_get_sensor_data()
603 ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id) in ti_bandgap_force_single_read()
654 static int ti_bandgap_set_continuous_mode(struct ti_bandgap *bgp) in ti_bandgap_set_continuous_mode()
682 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend) in ti_bandgap_get_trend()
758 static int ti_bandgap_tshut_init(struct ti_bandgap *bgp, in ti_bandgap_tshut_init()
785 static int ti_bandgap_talert_init(struct ti_bandgap *bgp, in ti_bandgap_talert_init()
818 static struct ti_bandgap *ti_bandgap_build(struct platform_device *pdev) in ti_bandgap_build()
822 struct ti_bandgap *bgp; in ti_bandgap_build()
889 struct ti_bandgap *bgp; in ti_bandgap_probe()
1074 struct ti_bandgap *bgp = platform_get_drvdata(pdev); in ti_bandgap_remove()
1106 static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp) in ti_bandgap_save_ctxt()
1138 static int ti_bandgap_restore_ctxt(struct ti_bandgap *bgp) in ti_bandgap_restore_ctxt()
1176 struct ti_bandgap *bgp = dev_get_drvdata(dev); in ti_bandgap_suspend()
1193 struct ti_bandgap *bgp; in bandgap_omap_cpu_notifier()
1195 bgp = container_of(nb, struct ti_bandgap, nb); in bandgap_omap_cpu_notifier()
1224 struct ti_bandgap *bgp = dev_get_drvdata(dev); in ti_bandgap_resume()