Lines Matching refs:alarms
292 long alarms; /* Register encoding, combined */ member
335 long value, alarms, gpio; in adm1026_update_device() local
367 alarms = adm1026_read_value(client, ADM1026_REG_STATUS4); in adm1026_update_device()
368 gpio = alarms & 0x80 ? 0x0100 : 0; /* GPIO16 */ in adm1026_update_device()
369 alarms &= 0x7f; in adm1026_update_device()
370 alarms <<= 8; in adm1026_update_device()
371 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS3); in adm1026_update_device()
372 alarms <<= 8; in adm1026_update_device()
373 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS2); in adm1026_update_device()
374 alarms <<= 8; in adm1026_update_device()
375 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS1); in adm1026_update_device()
376 data->alarms = alarms; in adm1026_update_device()
428 alarms = adm1026_read_value(client, ADM1026_REG_MASK4); in adm1026_update_device()
429 gpio = alarms & 0x80 ? 0x0100 : 0; /* GPIO16 */ in adm1026_update_device()
430 alarms = (alarms & 0x7f) << 8; in adm1026_update_device()
431 alarms |= adm1026_read_value(client, ADM1026_REG_MASK3); in adm1026_update_device()
432 alarms <<= 8; in adm1026_update_device()
433 alarms |= adm1026_read_value(client, ADM1026_REG_MASK2); in adm1026_update_device()
434 alarms <<= 8; in adm1026_update_device()
435 alarms |= adm1026_read_value(client, ADM1026_REG_MASK1); in adm1026_update_device()
436 data->alarm_mask = alarms; in adm1026_update_device()
1101 return sprintf(buf, "%ld\n", data->alarms); in show_alarms_reg()
1104 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL);
1111 return sprintf(buf, "%ld\n", (data->alarms >> bitnr) & 1); in show_alarm()
1210 gpio = ((gpio >> 1) & 0x80) | (data->alarms >> 24 & 0x7f); in set_gpio()