Lines Matching +full:int +full:- +full:threshold
1 /* SPDX-License-Identifier: GPL-2.0 */
40 * struct tsens_sensor - data for each sensor connected to the tsens device
44 * @hw_id: HW ID can be used in case of platform-specific IDs
46 * @status: 8960-specific variable to track 8960 and 8660 status register offset
51 int offset;
52 unsigned int hw_id;
53 int slope;
58 * struct tsens_ops - operations as supported by the tsens device
70 int (*init)(struct tsens_priv *priv);
71 int (*calibrate)(struct tsens_priv *priv);
72 int (*get_temp)(const struct tsens_sensor *s, int *temp);
74 int (*enable)(struct tsens_priv *priv, int i);
76 int (*suspend)(struct tsens_priv *priv);
77 int (*resume)(struct tsens_priv *priv);
78 int (*get_trend)(struct tsens_sensor *s, enum thermal_trend *trend);
154 /* ----- SROT ------ */
165 /* ----- TM ------ */
203 LOWER_STATUS_0, /* LOWER threshold violated */
267 LOW_THRESH_0, /* LOWER threshold values */
283 UPPER_STATUS_0, /* UPPER threshold violated */
347 UP_THRESH_0, /* UPPER threshold values */
363 CRITICAL_STATUS_0, /* CRITICAL threshold violated */
427 CRIT_THRESH_0, /* CRITICAL threshold values */
455 MIN_STATUS_0, /* MIN threshold violated */
471 MAX_STATUS_0, /* MAX threshold violated */
493 * struct tsens_features - Features supported by the IP
503 unsigned int ver_major;
504 unsigned int crit_int:1;
505 unsigned int adc:1;
506 unsigned int srot_split:1;
507 unsigned int has_watchdog:1;
508 unsigned int max_sensors;
512 * struct tsens_plat_data - tsens compile-time platform data
522 unsigned int *hw_ids;
528 * struct tsens_context - Registers to be saved/restored across a context loss
529 * @threshold: Threshold register value
533 int threshold; member
534 int control;
538 * struct tsens_priv - private data for each instance of the tsens IP
545 * @ul_lock: lock while processing upper/lower threshold interrupts
546 * @crit_lock: lock while processing critical threshold interrupts
563 /* lock for upper/lower threshold interrupts */
580 int init_common(struct tsens_priv *priv);
581 int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp);
582 int get_temp_common(const struct tsens_sensor *s, int *temp);