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)
645 * @bgp: pointer to struct ti_bandgap
654 static int ti_bandgap_set_continuous_mode(struct ti_bandgap *bgp)
669 * @bgp: pointer to struct ti_bandgap
682 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend)
746 * @bgp: pointer to struct ti_bandgap
758 static int ti_bandgap_tshut_init(struct ti_bandgap *bgp,
774 * @bgp: pointer to struct ti_bandgap
785 static int ti_bandgap_talert_init(struct ti_bandgap *bgp,
808 * ti_bandgap_build() - parse DT and setup a struct ti_bandgap
813 * will build a struct ti_bandgap out of the required DT entries.
818 static struct ti_bandgap *ti_bandgap_build(struct platform_device *pdev)
822 struct ti_bandgap *bgp;
889 struct ti_bandgap *bgp;
1074 struct ti_bandgap *bgp = platform_get_drvdata(pdev);
1106 static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp)
1138 static int ti_bandgap_restore_ctxt(struct ti_bandgap *bgp)
1176 struct ti_bandgap *bgp = dev_get_drvdata(dev);
1193 struct ti_bandgap *bgp;
1195 bgp = container_of(nb, struct ti_bandgap, nb);
1224 struct ti_bandgap *bgp = dev_get_drvdata(dev);