Home
last modified time | relevance | path

Searched refs:alarms (Results 1 – 25 of 43) sorted by relevance

12

/drivers/hwmon/
Dadm1026.c284 long alarms; /* Register encoding, combined */ member
565 long value, alarms, gpio; in adm1026_update_device() local
594 alarms = adm1026_read_value(client, ADM1026_REG_STATUS4); in adm1026_update_device()
595 gpio = alarms & 0x80 ? 0x0100 : 0; /* GPIO16 */ in adm1026_update_device()
596 alarms &= 0x7f; in adm1026_update_device()
597 alarms <<= 8; in adm1026_update_device()
598 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS3); in adm1026_update_device()
599 alarms <<= 8; in adm1026_update_device()
600 alarms |= adm1026_read_value(client, ADM1026_REG_STATUS2); in adm1026_update_device()
601 alarms <<= 8; in adm1026_update_device()
[all …]
Dmax1619.c134 u8 alarms; member
177 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
185 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
198 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
374 data->alarms = i2c_smbus_read_byte_data(client, in max1619_update_device()
Dlm83.c165 u16 alarms; /* bitvector, combined */ member
201 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
211 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
245 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
445 data->alarms = in lm83_update_device()
Dsmsc47m1.c132 u8 alarms; /* Register encoding */ member
207 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in get_fan_alarm()
230 return sprintf(buf, "%d\n", data->alarms); in get_alarms()
370 static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL);
673 data->alarms = smsc47m1_read_value(data, in smsc47m1_update_device()
676 if (data->alarms) in smsc47m1_update_device()
682 data->alarms |= (smsc47m1_read_value(data, in smsc47m1_update_device()
685 if (data->alarms & 0x04) in smsc47m1_update_device()
Dadm1021.c91 u8 alarms; member
170 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm()
178 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
235 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
422 data->alarms = i2c_smbus_read_byte_data(client, in adm1021_update_device()
Dvt8231.c165 u16 alarms; /* Register encoding */ member
541 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
543 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
550 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
863 data->alarms = vt8231_read_value(data, VT8231_REG_ALARM1) | in vt8231_update_device()
868 data->alarms |= 0x40; in vt8231_update_device()
870 data->alarms &= ~0x40; in vt8231_update_device()
874 data->alarms |= 0x80; in vt8231_update_device()
876 data->alarms &= ~0x80; in vt8231_update_device()
Dgl518sm.c134 u8 alarms; /* Register value */ member
196 show(RAW, alarms, alarms);
363 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
374 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
637 data->alarms = gl518_read_value(client, GL518_REG_INT); in gl518_update_device()
672 data->alarms &= data->alarm_mask; in gl518_update_device()
Dlm63.c186 u8 alarms; member
342 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
352 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
383 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
614 data->alarms = i2c_smbus_read_byte_data(client, in lm63_update_device()
Dadm1025.c159 u16 alarms; /* register values, combined */ member
311 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
313 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
320 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
611 data->alarms = i2c_smbus_read_byte_data(client, in adm1025_update_device()
Dlm80.c127 u16 alarms; /* Register encoding, combined */ member
315 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
323 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
380 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
592 data->alarms = lm80_read_value(client, LM80_REG_ALARM1) + in lm80_update_device()
Dadm9240.c178 u16 alarms; /* ro alarms */ member
425 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
427 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
434 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
717 data->alarms = i2c_smbus_read_byte_data(client, in adm9240_update_device()
Dvt1211.c141 u16 alarms; member
317 data->alarms = (vt1211_read8(data, VT1211_REG_ALARM2) << 8) | in vt1211_update_device()
360 res = (data->alarms >> bitalarmin[ix]) & 1; in show_in()
429 res = (data->alarms >> bitalarmtemp[ix]) & 1; in show_temp()
500 res = (data->alarms >> bitalarmfan[ix]) & 1; in show_fan()
860 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
1050 __ATTR(alarms, S_IRUGO, show_alarms, NULL),
Dlm77.c64 u8 alarms; member
206 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
418 data->alarms = in lm77_update_device()
Dlm90.c221 u8 alarms; /* bitvector */ member
519 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
529 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
561 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
1009 lm90_read_reg(client, LM90_REG_R_STATUS, &data->alarms); in lm90_update_device()
Dvia686a.c312 u16 alarms; /* Register encoding, combined */ member
533 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
535 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
542 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
757 data->alarms = in via686a_update_device()
Dsis5595.c185 u16 alarms; /* Register encoding, combined */ member
435 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
437 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
444 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
688 data->alarms = in sis5595_update_device()
Dgl520sm.c130 u8 alarms; member
492 return sprintf(buf, "%d\n", data->alarms); in get_alarms()
540 static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL);
552 return sprintf(buf, "%d\n", (data->alarms >> bit_nr) & 1); in get_alarm()
857 data->alarms = gl520_read_value(client, GL520_REG_ALARMS); in gl520_update_device()
889 data->alarms &= data->alarm_mask; in gl520_update_device()
Dthmc50.c80 u8 alarms; member
221 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm()
468 data->alarms = in thmc50_update_device()
Dadt7475.c135 u16 alarms; member
274 (data->alarms >> (sattr->index + 1)) & 1); in show_voltage()
348 out = (data->alarms >> (sattr->index + 4)) & 1; in show_temp()
353 out = data->alarms & (sattr->index ? 0x8000 : 0x4000); in show_temp()
530 out = (data->alarms >> (sattr->index + 10)) & 1; in show_tach()
1128 data->alarms = adt7475_read(REG_STATUS2) << 8; in adt7475_update_device()
1129 data->alarms |= adt7475_read(REG_STATUS1); in adt7475_update_device()
Ddme1737.c221 u32 alarms; member
692 data->alarms = dme1737_read(data, in dme1737_update_device()
696 if (data->alarms & 0x80) { in dme1737_update_device()
697 data->alarms |= dme1737_read(data, in dme1737_update_device()
699 data->alarms |= dme1737_read(data, in dme1737_update_device()
707 if (data->alarms & 0xff0000) { in dme1737_update_device()
711 if (data->alarms & 0xff00) { in dme1737_update_device()
715 if (data->alarms & 0xff) { in dme1737_update_device()
761 res = (data->alarms >> DME1737_BIT_ALARM_IN[ix]) & 0x01; in show_in()
837 res = (data->alarms >> DME1737_BIT_ALARM_TEMP[ix]) & 0x01; in show_temp()
[all …]
Dasb100.c203 u32 alarms; /* Register encoding, combined */ member
491 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
494 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
501 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
981 data->alarms = asb100_read_value(client, ASB100_REG_ALARM1) + in asb100_update_device()
Dlm78.c141 u16 alarms; /* Register encoding, combined */ member
438 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
440 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
447 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
856 data->alarms = lm78_read_value(data, LM78_REG_ALARM1) + in lm78_update_device()
Dlm87.c219 u16 alarms; /* register values, combined */ member
507 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
509 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
555 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
961 data->alarms = lm87_read_value(client, LM87_REG_ALARMS1) in lm87_update_device()
Dw83781d.c234 u32 alarms; /* Register encoding, combined */ member
442 return sprintf(buf, "%u\n", data->alarms); in show_alarms_reg()
445 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL);
452 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
461 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_temp3_alarm()
1510 data->alarms = w83781d_read_value(data, in w83781d_update_device()
1517 data->alarms = w83781d_read_value(data, in w83781d_update_device()
1524 data->alarms = w83781d_read_value(data, in w83781d_update_device()
Dabituguru3.c153 u8 alarms[48/8]; member
824 if ((data->alarms[port / 8] & (0x01 << (port % 8))) && in show_alarm()
1057 1, data->alarms, 48/8) != (48/8)) in abituguru3_update_device()

12