Lines Matching defs:alarms
281 long alarms; /* Register encoding, combined */
558 long value, alarms, gpio;
586 /* GPIO16 is MSbit of alarms, move it to gpio */
587 alarms = adm1026_read_value(client, ADM1026_REG_STATUS4);
588 gpio = alarms & 0x80 ? 0x0100 : 0; /* GPIO16 */
589 alarms &= 0x7f;
590 alarms <<= 8;
591 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS3);
592 alarms <<= 8;
593 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS2);
594 alarms <<= 8;
595 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS1);
596 data->alarms = alarms;
647 alarms = adm1026_read_value(client, ADM1026_REG_MASK4);
648 gpio = alarms & 0x80 ? 0x0100 : 0; /* GPIO16 */
649 alarms = (alarms & 0x7f) << 8;
650 alarms |= adm1026_read_value(client, ADM1026_REG_MASK3);
651 alarms <<= 8;
652 alarms |= adm1026_read_value(client, ADM1026_REG_MASK2);
653 alarms <<= 8;
654 alarms |= adm1026_read_value(client, ADM1026_REG_MASK1);
655 data->alarm_mask = alarms;
1234 return sprintf(buf, "%ld\n", data->alarms);
1237 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL);
1244 return sprintf(buf, "%ld\n", (data->alarms >> bitnr) & 1);
1331 gpio = ((gpio >> 1) & 0x80) | (data->alarms >> 24 & 0x7f);