Lines Matching defs:alarms
222 u8 alarms; /* bitvector */
520 return sprintf(buf, "%d\n", data->alarms);
530 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1);
562 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
917 u8 config, alarms;
919 lm90_read_reg(client, LM90_REG_R_STATUS, &alarms);
920 if ((alarms & 0x7f) == 0) {
923 if (alarms & 0x61)
926 if (alarms & 0x1a)
929 if (alarms & 0x04)
937 && (alarms & data->alert_alarms)) {
1032 lm90_read_reg(client, LM90_REG_R_STATUS, &data->alarms);
1035 * relevant alarms are all clear */
1037 && (data->alarms & data->alert_alarms) == 0) {