/drivers/hwmon/ |
D | adm1026.c | 284 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 …]
|
D | max1619.c | 134 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()
|
D | lm83.c | 165 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()
|
D | smsc47m1.c | 132 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()
|
D | adm1021.c | 91 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()
|
D | vt8231.c | 165 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()
|
D | gl518sm.c | 134 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()
|
D | lm63.c | 186 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()
|
D | adm1025.c | 159 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()
|
D | lm80.c | 127 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()
|
D | adm9240.c | 178 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()
|
D | vt1211.c | 141 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),
|
D | lm77.c | 64 u8 alarms; member 206 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 418 data->alarms = in lm77_update_device()
|
D | lm90.c | 221 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()
|
D | via686a.c | 312 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()
|
D | sis5595.c | 185 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()
|
D | gl520sm.c | 130 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()
|
D | thmc50.c | 80 u8 alarms; member 221 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm() 468 data->alarms = in thmc50_update_device()
|
D | adt7475.c | 135 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()
|
D | dme1737.c | 221 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 …]
|
D | asb100.c | 203 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()
|
D | lm78.c | 141 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()
|
D | lm87.c | 219 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()
|
D | w83781d.c | 234 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()
|
D | abituguru3.c | 153 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()
|