Lines Matching refs:tsens_priv
73 int tsens_read_calibration(struct tsens_priv *priv, int shift, u32 *p1, u32 *p2, bool backup) in tsens_read_calibration()
155 int tsens_calibrate_nvmem(struct tsens_priv *priv, int shift) in tsens_calibrate_nvmem()
169 int tsens_calibrate_common(struct tsens_priv *priv) in tsens_calibrate_common()
191 int tsens_read_calibration_legacy(struct tsens_priv *priv, in tsens_read_calibration_legacy()
244 void compute_intercept_slope(struct tsens_priv *priv, u32 *p1, in compute_intercept_slope()
316 struct tsens_priv *priv = s->priv; in tsens_hw_to_mC()
348 struct tsens_priv *priv = s->priv; in tsens_mC_to_hw()
358 static inline enum tsens_ver tsens_version(struct tsens_priv *priv) in tsens_version()
363 static void tsens_set_interrupt_v1(struct tsens_priv *priv, u32 hw_id, in tsens_set_interrupt_v1()
382 static void tsens_set_interrupt_v2(struct tsens_priv *priv, u32 hw_id, in tsens_set_interrupt_v2()
429 static void tsens_set_interrupt(struct tsens_priv *priv, u32 hw_id, in tsens_set_interrupt()
450 static int tsens_threshold_violated(struct tsens_priv *priv, u32 hw_id, in tsens_threshold_violated()
475 static int tsens_read_irq_state(struct tsens_priv *priv, u32 hw_id, in tsens_read_irq_state()
555 struct tsens_priv *priv = data; in tsens_critical_irq_thread()
625 struct tsens_priv *priv = data; in tsens_irq_thread()
677 struct tsens_priv *priv = s->priv; in tsens_set_trips()
718 static int tsens_enable_irq(struct tsens_priv *priv) in tsens_enable_irq()
731 static void tsens_disable_irq(struct tsens_priv *priv) in tsens_disable_irq()
738 struct tsens_priv *priv = s->priv; in get_temp_tsens_valid()
769 struct tsens_priv *priv = s->priv; in get_temp_common()
800 struct tsens_priv *priv = platform_get_drvdata(pdev); in dbg_sensors_show()
818 struct tsens_priv *priv = platform_get_drvdata(pdev); in dbg_version_show()
845 struct tsens_priv *priv = platform_get_drvdata(pdev); in tsens_debug_init()
874 int __init init_common(struct tsens_priv *priv) in init_common()
1061 struct tsens_priv *priv = s->priv; in tsens_get_temp()
1068 struct tsens_priv *priv = dev_get_drvdata(dev); in tsens_suspend()
1078 struct tsens_priv *priv = dev_get_drvdata(dev); in tsens_resume()
1135 static int tsens_register_irq(struct tsens_priv *priv, char *irqname, in tsens_register_irq()
1176 static int tsens_register(struct tsens_priv *priv) in tsens_register()
1231 struct tsens_priv *priv; in tsens_probe()
1306 struct tsens_priv *priv = platform_get_drvdata(pdev); in tsens_remove()