Lines Matching refs:alarms
291 long alarms; /* Register encoding, combined */ member
567 long value, alarms, gpio; in adm1026_update_device() local
599 alarms = adm1026_read_value(client, ADM1026_REG_STATUS4); in adm1026_update_device()
600 gpio = alarms & 0x80 ? 0x0100 : 0; /* GPIO16 */ in adm1026_update_device()
601 alarms &= 0x7f; in adm1026_update_device()
602 alarms <<= 8; in adm1026_update_device()
603 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS3); in adm1026_update_device()
604 alarms <<= 8; in adm1026_update_device()
605 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS2); in adm1026_update_device()
606 alarms <<= 8; in adm1026_update_device()
607 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS1); in adm1026_update_device()
608 data->alarms = alarms; in adm1026_update_device()
660 alarms = adm1026_read_value(client, ADM1026_REG_MASK4); in adm1026_update_device()
661 gpio = alarms & 0x80 ? 0x0100 : 0; /* GPIO16 */ in adm1026_update_device()
662 alarms = (alarms & 0x7f) << 8; in adm1026_update_device()
663 alarms |= adm1026_read_value(client, ADM1026_REG_MASK3); in adm1026_update_device()
664 alarms <<= 8; in adm1026_update_device()
665 alarms |= adm1026_read_value(client, ADM1026_REG_MASK2); in adm1026_update_device()
666 alarms <<= 8; in adm1026_update_device()
667 alarms |= adm1026_read_value(client, ADM1026_REG_MASK1); in adm1026_update_device()
668 data->alarm_mask = alarms; in adm1026_update_device()
1330 return sprintf(buf, "%ld\n", data->alarms); in show_alarms_reg()
1333 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL);
1340 return sprintf(buf, "%ld\n", (data->alarms >> bitnr) & 1); in show_alarm()
1439 gpio = ((gpio >> 1) & 0x80) | (data->alarms >> 24 & 0x7f); in set_gpio()