Lines Matching refs:ti_bandgap
38 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id);
48 * @bgp: pointer to ti_bandgap structure
54 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg)
61 * @bgp: pointer to ti_bandgap structure
67 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg)
94 * @bgp: pointer to ti_bandgap structure
102 static int ti_bandgap_power(struct ti_bandgap *bgp, bool on)
117 * @bgp: pointer to ti_bandgap structure
131 static u32 ti_errata814_bandgap_read_temp(struct ti_bandgap *bgp, u32 reg)
148 * @bgp: pointer to ti_bandgap structure
158 static u32 ti_bandgap_read_temp(struct ti_bandgap *bgp, int id)
194 * @data: private data (struct ti_bandgap *)
206 struct ti_bandgap *bgp = data;
280 * @bgp: struct ti_bandgap pointer
292 int ti_bandgap_adc_to_mcelsius(struct ti_bandgap *bgp, int adc_val, int *t)
305 * ti_bandgap_validate() - helper to check the sanity of a struct ti_bandgap
306 * @bgp: struct ti_bandgap pointer
315 static inline int ti_bandgap_validate(struct ti_bandgap *bgp, int id)
337 static void ti_bandgap_read_counter(struct ti_bandgap *bgp, int id,
357 static void ti_bandgap_read_counter_delay(struct ti_bandgap *bgp, int id,
401 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id,
434 static int ti_bandgap_write_counter_delay(struct ti_bandgap *bgp, int id,
476 static void ti_bandgap_write_counter(struct ti_bandgap *bgp, int id,
493 int ti_bandgap_write_update_interval(struct ti_bandgap *bgp,
524 int ti_bandgap_read_temperature(struct ti_bandgap *bgp, int id,
562 int ti_bandgap_set_sensor_data(struct ti_bandgap *bgp, int id, void *data)
581 void *ti_bandgap_get_sensor_data(struct ti_bandgap *bgp, int id)
594 * @bgp: pointer to struct ti_bandgap
603 ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id)
640 * @bgp: pointer to struct ti_bandgap
649 static int ti_bandgap_set_continuous_mode(struct ti_bandgap *bgp)
664 * @bgp: pointer to struct ti_bandgap
677 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend)
741 * @bgp: pointer to struct ti_bandgap
753 static int ti_bandgap_tshut_init(struct ti_bandgap *bgp,
769 * @bgp: pointer to struct ti_bandgap
780 static int ti_bandgap_talert_init(struct ti_bandgap *bgp,
803 * ti_bandgap_build() - parse DT and setup a struct ti_bandgap
808 * will build a struct ti_bandgap out of the required DT entries.
813 static struct ti_bandgap *ti_bandgap_build(struct platform_device *pdev)
817 struct ti_bandgap *bgp;
884 struct ti_bandgap *bgp;
1069 struct ti_bandgap *bgp = platform_get_drvdata(pdev);
1101 static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp)
1133 static int ti_bandgap_restore_ctxt(struct ti_bandgap *bgp)
1175 struct ti_bandgap *bgp = dev_get_drvdata(dev);
1192 struct ti_bandgap *bgp;
1194 bgp = container_of(nb, struct ti_bandgap, nb);
1223 struct ti_bandgap *bgp = dev_get_drvdata(dev);