Lines Matching +full:int +full:- +full:threshold
1 /* SPDX-License-Identifier: GPL-2.0 */
47 * struct tsens_sensor - data for each sensor connected to the tsens device
51 * @hw_id: HW ID can be used in case of platform-specific IDs
53 * @status: 8960-specific variable to track 8960 and 8660 status register offset
58 int offset;
59 unsigned int hw_id;
60 int slope;
62 int p1_calib_offset;
63 int p2_calib_offset;
67 * struct tsens_ops - operations as supported by the tsens device
78 int (*init)(struct tsens_priv *priv);
79 int (*calibrate)(struct tsens_priv *priv);
80 int (*get_temp)(const struct tsens_sensor *s, int *temp);
82 int (*enable)(struct tsens_priv *priv, int i);
84 int (*suspend)(struct tsens_priv *priv);
85 int (*resume)(struct tsens_priv *priv);
161 /* ----- SROT ------ */
172 /* ----- TM ------ */
210 LOWER_STATUS_0, /* LOWER threshold violated */
274 LOW_THRESH_0, /* LOWER threshold values */
290 UPPER_STATUS_0, /* UPPER threshold violated */
354 UP_THRESH_0, /* UPPER threshold values */
370 CRITICAL_STATUS_0, /* CRITICAL threshold violated */
434 CRIT_THRESH_0, /* CRITICAL threshold values */
462 MIN_STATUS_0, /* MIN threshold violated */
478 MAX_STATUS_0, /* MAX threshold violated */
500 * struct tsens_features - Features supported by the IP
513 unsigned int ver_major;
514 unsigned int crit_int:1;
515 unsigned int combo_int:1;
516 unsigned int adc:1;
517 unsigned int srot_split:1;
518 unsigned int has_watchdog:1;
519 unsigned int max_sensors;
520 int trip_min_temp;
521 int trip_max_temp;
525 * struct tsens_plat_data - tsens compile-time platform data
535 unsigned int *hw_ids;
541 * struct tsens_context - Registers to be saved/restored across a context loss
542 * @threshold: Threshold register value
546 int threshold; member
547 int control;
551 * struct tsens_priv - private data for each instance of the tsens IP
558 * @ul_lock: lock while processing upper/lower threshold interrupts
559 * @crit_lock: lock while processing critical threshold interrupts
576 /* lock for upper/lower threshold interrupts */
592 …* struct tsens_single_value - internal representation of a single field inside nvmem calibration d…
604 …* struct tsens_legacy_calibration_format - description of calibration data used when parsing the l…
614 unsigned int base_len;
615 unsigned int base_shift;
616 unsigned int sp_len;
626 int tsens_read_calibration_legacy(struct tsens_priv *priv,
630 int tsens_read_calibration(struct tsens_priv *priv, int shift, u32 *p1, u32 *p2, bool backup);
631 int tsens_calibrate_nvmem(struct tsens_priv *priv, int shift);
632 int tsens_calibrate_common(struct tsens_priv *priv);
634 int init_common(struct tsens_priv *priv);
635 int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp);
636 int get_temp_common(const struct tsens_sensor *s, int *temp);
638 int tsens_resume_common(struct tsens_priv *priv);