Home
last modified time | relevance | path

Searched refs:alarms (Results 1 – 25 of 49) 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/gpu/drm/nouveau/core/subdev/timer/
Dnv04.c37 struct list_head alarms; member
65 list_for_each_entry_safe(alarm, atemp, &priv->alarms, head) { in nv04_timer_alarm_trigger()
71 if (!list_empty(&priv->alarms)) { in nv04_timer_alarm_trigger()
72 alarm = list_first_entry(&priv->alarms, typeof(*alarm), head); in nv04_timer_alarm_trigger()
103 list_for_each_entry(list, &priv->alarms, head) { in nv04_timer_alarm()
150 INIT_LIST_HEAD(&priv->alarms); in nv04_timer_ctor()
/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);
346 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);
414 data->alarms = in lm83_update_device()
Dmax6697.c98 u32 alarms; member
189 u32 alarms; in max6697_update_device() local
234 alarms = 0; in max6697_update_device()
241 alarms = (alarms << 8) | val; in max6697_update_device()
243 data->alarms = alarms; in max6697_update_device()
297 return sprintf(buf, "%u\n", (data->alarms >> index) & 0x1); in show_alarm()
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);
838 data->alarms = smsc47m1_read_value(data, in smsc47m1_update_device()
841 if (data->alarms) in smsc47m1_update_device()
847 data->alarms |= (smsc47m1_read_value(data, in smsc47m1_update_device()
850 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);
484 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()
Dvt8231.c173 u16 alarms; /* Register encoding */ member
610 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
612 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
619 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
924 data->alarms = vt8231_read_value(data, VT8231_REG_ALARM1) | in vt8231_update_device()
929 data->alarms |= 0x40; in vt8231_update_device()
931 data->alarms &= ~0x40; in vt8231_update_device()
934 data->alarms |= 0x80; in vt8231_update_device()
936 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()
Dgl518sm.c134 u8 alarms; /* Register value */ member
196 show(RAW, alarms, alarms);
390 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
401 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
653 data->alarms = gl518_read_value(client, GL518_REG_INT); in gl518_update_device()
688 data->alarms &= data->alarm_mask; in gl518_update_device()
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()
598 data->alarms = i2c_smbus_read_byte_data(client, in adm1025_update_device()
Dlm77.c61 u8 alarms; member
228 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
436 data->alarms = in lm77_update_device()
Dlm80.c132 u16 alarms; /* Register encoding, combined */ member
359 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
369 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
426 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
708 data->alarms = prev_rv + (rv << 8); in lm80_update_device()
Dadm9240.c178 u16 alarms; /* ro alarms */ member
446 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
448 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
455 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
724 data->alarms = i2c_smbus_read_byte_data(client, in adm9240_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()
908 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
1085 __ATTR(alarms, S_IRUGO, show_alarms, NULL),
Dsis5595.c201 u16 alarms; /* Register encoding, combined */ member
498 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
500 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
507 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
743 data->alarms = in sis5595_update_device()
Dvia686a.c333 u16 alarms; /* Register encoding, combined */ member
587 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
590 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
597 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
814 data->alarms = in via686a_update_device()
Dgl520sm.c127 u8 alarms; member
538 return sprintf(buf, "%d\n", data->alarms); in get_alarms()
599 static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL);
611 return sprintf(buf, "%d\n", (data->alarms >> bit_nr) & 1); in get_alarm()
905 data->alarms = gl520_read_value(client, GL520_REG_ALARMS); in gl520_update_device()
938 data->alarms &= data->alarm_mask; in gl520_update_device()
Dthmc50.c85 u8 alarms; member
241 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm()
467 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()
1003 data->alarms = asb100_read_value(client, ASB100_REG_ALARM1) + in asb100_update_device()
Dlm78.c146 u16 alarms; /* Register encoding, combined */ member
446 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
448 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
455 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
824 data->alarms = lm78_read_value(data, LM78_REG_ALARM1) + in lm78_update_device()
Ddme1737.c253 u32 alarms; member
763 data->alarms = dme1737_read(data, in dme1737_update_device()
769 if (data->alarms & 0x80) { in dme1737_update_device()
770 data->alarms |= dme1737_read(data, in dme1737_update_device()
772 data->alarms |= dme1737_read(data, in dme1737_update_device()
782 if (data->alarms & 0xff0000) in dme1737_update_device()
784 if (data->alarms & 0xff00) in dme1737_update_device()
786 if (data->alarms & 0xff) in dme1737_update_device()
830 res = (data->alarms >> DME1737_BIT_ALARM_IN[ix]) & 0x01; in show_in()
911 res = (data->alarms >> DME1737_BIT_ALARM_TEMP[ix]) & 0x01; in show_temp()
[all …]

12