Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/sfc/
Dfalcon_boards.c128 u16 alarms; in efx_check_lm87() local
138 alarms = reg; in efx_check_lm87()
142 alarms |= reg << 8; in efx_check_lm87()
143 alarms &= mask; in efx_check_lm87()
146 if (alarms & LM87_ALARM_TEMP_INT) { in efx_check_lm87()
153 if (alarms & LM87_ALARM_TEMP_EXT1) { in efx_check_lm87()
160 elec_fault = alarms & ~(LM87_ALARM_TEMP_INT | LM87_ALARM_TEMP_EXT1); in efx_check_lm87()
163 if (alarms) in efx_check_lm87()
168 alarms & 0xff, alarms >> 8, in efx_check_lm87()
169 (alarms & LM87_ALARM_TEMP_INT) ? in efx_check_lm87()
[all …]
/drivers/hwmon/
Dlm90.c340 u16 alarms; /* bitvector (upper 8 bits for max6695/96) */ member
477 u8 alarms; in lm90_update_device() local
526 lm90_read_reg(client, LM90_REG_R_STATUS, &alarms); in lm90_update_device()
527 data->alarms = alarms; /* save as 16 bit value */ in lm90_update_device()
544 &alarms)) in lm90_update_device()
545 data->alarms |= alarms << 8; in lm90_update_device()
553 && (data->alarms & data->alert_alarms) == 0) { in lm90_update_device()
899 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
909 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
969 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
[all …]
Dadm1026.c291 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()
[all …]
Dmax1619.c128 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);
351 data->alarms = i2c_smbus_read_byte_data(client, in max1619_update_device()
Dlm83.c161 u16 alarms; /* bitvector, combined */ member
202 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
212 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
246 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
419 data->alarms = in lm83_update_device()
Dsmsc47m1.c136 u8 alarms; /* Register encoding */ member
212 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in get_fan_alarm()
235 return sprintf(buf, "%d\n", data->alarms); in get_alarms()
407 static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL);
861 data->alarms = smsc47m1_read_value(data, in smsc47m1_update_device()
864 if (data->alarms) in smsc47m1_update_device()
870 data->alarms |= (smsc47m1_read_value(data, in smsc47m1_update_device()
873 if (data->alarms & 0x04) in smsc47m1_update_device()
Dadm1021.c93 u8 alarms; member
169 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm()
177 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
282 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
491 data->alarms = i2c_smbus_read_byte_data(client, in adm1021_update_device()
Dmax1668.c80 u16 alarms; member
125 data->alarms = val << 8; in max1668_update_device()
132 data->alarms |= val; in max1668_update_device()
187 return sprintf(buf, "%u\n", (data->alarms >> index) & 0x1); in show_alarm()
200 (data->alarms & (1 << 12)) && data->temp[index] == 127); in show_fault()
Dgl518sm.c134 u8 alarms; /* Register value */ member
196 show(RAW, alarms, alarms);
389 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
400 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
657 data->alarms = gl518_read_value(client, GL518_REG_INT); in gl518_update_device()
692 data->alarms &= data->alarm_mask; in gl518_update_device()
Dvt8231.c173 u16 alarms; /* Register encoding */ member
609 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
611 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
618 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
935 data->alarms = vt8231_read_value(data, VT8231_REG_ALARM1) | in vt8231_update_device()
940 data->alarms |= 0x40; in vt8231_update_device()
942 data->alarms &= ~0x40; in vt8231_update_device()
945 data->alarms |= 0x80; in vt8231_update_device()
947 data->alarms &= ~0x80; in vt8231_update_device()
Dmax6642.c98 u8 alarms; member
193 data->alarms = i2c_smbus_read_byte_data(client, in max6642_update_device()
254 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dadm1025.c156 u16 alarms; /* register values, combined */ member
328 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
330 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
337 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
603 data->alarms = i2c_smbus_read_byte_data(client, in adm1025_update_device()
Dlm80.c132 u16 alarms; /* Register encoding, combined */ member
358 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
368 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
425 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
713 data->alarms = prev_rv + (rv << 8); in lm80_update_device()
Dlm77.c61 u8 alarms; member
228 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
443 data->alarms = in lm77_update_device()
Dvt1211.c143 u16 alarms; member
325 data->alarms = (vt1211_read8(data, VT1211_REG_ALARM2) << 8) | in vt1211_update_device()
368 res = (data->alarms >> bitalarmin[ix]) & 1; in show_in()
442 res = (data->alarms >> bitalarmtemp[ix]) & 1; in show_temp()
518 res = (data->alarms >> bitalarmfan[ix]) & 1; in show_fan()
905 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
1082 __ATTR(alarms, S_IRUGO, show_alarms, NULL),
Dvia686a.c336 u16 alarms; /* Register encoding, combined */ member
590 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
593 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
600 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
826 data->alarms = in via686a_update_device()
Dsis5595.c201 u16 alarms; /* Register encoding, combined */ member
497 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
499 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
506 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
754 data->alarms = in sis5595_update_device()
Dadm9240.c177 u16 alarms; /* ro alarms */ member
444 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
446 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
453 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
754 data->alarms = i2c_smbus_read_byte_data(client, in adm9240_update_device()
Dgl520sm.c127 u8 alarms; member
539 return sprintf(buf, "%d\n", data->alarms); in get_alarms()
600 static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL);
612 return sprintf(buf, "%d\n", (data->alarms >> bit_nr) & 1); in get_alarm()
911 data->alarms = gl520_read_value(client, GL520_REG_ALARMS); in gl520_update_device()
944 data->alarms &= data->alarm_mask; in gl520_update_device()
Dthmc50.c84 u8 alarms; member
240 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm()
474 data->alarms = in thmc50_update_device()
Dasb100.c214 u32 alarms; /* Register encoding, combined */ member
524 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
527 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
534 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
1007 data->alarms = asb100_read_value(client, ASB100_REG_ALARM1) + in asb100_update_device()
Ddme1737.c251 u32 alarms; member
762 data->alarms = dme1737_read(data, in dme1737_update_device()
768 if (data->alarms & 0x80) { in dme1737_update_device()
769 data->alarms |= dme1737_read(data, in dme1737_update_device()
771 data->alarms |= dme1737_read(data, in dme1737_update_device()
781 if (data->alarms & 0xff0000) in dme1737_update_device()
783 if (data->alarms & 0xff00) in dme1737_update_device()
785 if (data->alarms & 0xff) in dme1737_update_device()
829 res = (data->alarms >> DME1737_BIT_ALARM_IN[ix]) & 0x01; in show_in()
910 res = (data->alarms >> DME1737_BIT_ALARM_TEMP[ix]) & 0x01; in show_temp()
[all …]
Dlm78.c146 u16 alarms; /* Register encoding, combined */ member
445 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
447 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
454 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
825 data->alarms = lm78_read_value(data, LM78_REG_ALARM1) + in lm78_update_device()
Dlm87.c181 u16 alarms; /* register values, combined */ member
261 data->alarms = lm87_read_value(client, LM87_REG_ALARMS1) in lm87_update_device()
592 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
594 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
656 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dadt7475.c178 u32 alarms; member
331 (data->alarms >> sattr->index) & 1); in show_voltage()
415 out = (data->alarms >> (sattr->index + 4)) & 1; in show_temp()
420 out = !!(data->alarms & (sattr->index ? 0x8000 : 0x4000)); in show_temp()
604 out = (data->alarms >> (sattr->index + 10)) & 1; in show_tach()
1519 data->alarms = adt7475_read(REG_STATUS2) << 8; in adt7475_update_device()
1520 data->alarms |= adt7475_read(REG_STATUS1); in adt7475_update_device()
1538 data->alarms |= adt7475_read(REG_STATUS4) << 24; in adt7475_update_device()

12