Home
last modified time | relevance | path

Searched refs:tsens_sensor (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/thermal/qcom/
Dtsens.h50 struct tsens_sensor { struct
74 int (*get_temp)(const struct tsens_sensor *s, int *temp); argument
80 int (*get_trend)(struct tsens_sensor *s, enum thermal_trend *trend);
577 struct tsens_sensor sensor[];
583 int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp);
584 int get_temp_common(const struct tsens_sensor *s, int *temp);
Dtsens.c110 static inline u32 degc_to_code(int degc, const struct tsens_sensor *s) in degc_to_code()
118 static inline int code_to_degc(u32 adc_code, const struct tsens_sensor *s) in code_to_degc()
148 static int tsens_hw_to_mC(const struct tsens_sensor *s, int field) in tsens_hw_to_mC()
180 static int tsens_mC_to_hw(const struct tsens_sensor *s, int temp) in tsens_mC_to_hw()
310 const struct tsens_sensor *s, in tsens_read_irq_state()
417 const struct tsens_sensor *s = &priv->sensor[i]; in tsens_critical_irq_thread()
467 const struct tsens_sensor *s = &priv->sensor[i]; in tsens_irq_thread()
536 struct tsens_sensor *s = _sensor; in tsens_set_trips()
596 int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp) in get_temp_tsens_valid()
628 int get_temp_common(const struct tsens_sensor *s, int *temp) in get_temp_common()
[all …]