Home
last modified time | relevance | path

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

123

/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/nvkm/subdev/timer/
Dbase.c41 list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) { in nvkm_timer_alarm_trigger()
58 if (list_empty(&tmr->alarms)) in nvkm_timer_alarm_trigger()
86 list_for_each_entry(list, &tmr->alarms, head) { in nvkm_timer_alarm()
94 list = list_first_entry(&tmr->alarms, typeof(*list), head); in nvkm_timer_alarm()
168 INIT_LIST_HEAD(&tmr->alarms); in nvkm_timer_new_()
/drivers/hwmon/
Dmax1619.c96 u8 alarms; member
128 data->alarms = i2c_smbus_read_byte_data(client, in max1619_update_device()
133 data->alarms ^= 0x02; in max1619_update_device()
180 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
188 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
202 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
Dadm1026.c292 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()
[all …]
Dadc128d818.c77 u8 alarms; /* alarm register value */ member
128 data->alarms |= rv; in adc128_update_device()
228 u8 alarms; in adc128_show_alarm() local
237 alarms = data->alarms; in adc128_show_alarm()
238 data->alarms &= ~mask; in adc128_show_alarm()
240 return sprintf(buf, "%u\n", !!(alarms & mask)); in adc128_show_alarm()
Dlm83.c124 u16 alarms; /* bitvector, combined */ member
143 data->alarms = in lm83_update_device()
195 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
205 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
239 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
Dlm90.c391 u16 alarms; /* bitvector (upper 8 bits for max6695/96) */ member
528 u8 alarms; in lm90_update_device() local
582 lm90_read_reg(client, LM90_REG_R_STATUS, &alarms); in lm90_update_device()
583 data->alarms = alarms; /* save as 16 bit value */ in lm90_update_device()
601 &alarms)) in lm90_update_device()
602 data->alarms |= alarms << 8; in lm90_update_device()
610 && (data->alarms & data->alert_alarms) == 0) { in lm90_update_device()
956 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
966 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
1029 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
[all …]
Dmax6697.c99 u32 alarms; member
190 u32 alarms; in max6697_update_device() local
235 alarms = 0; in max6697_update_device()
242 alarms = (alarms << 8) | val; in max6697_update_device()
244 data->alarms = alarms; in max6697_update_device()
298 return sprintf(buf, "%u\n", (data->alarms >> index) & 0x1); in show_alarm()
Dsmsc47m1.c141 u8 alarms; /* Register encoding */ member
185 data->alarms = smsc47m1_read_value(data, in smsc47m1_update_device()
188 if (data->alarms) in smsc47m1_update_device()
194 data->alarms |= (smsc47m1_read_value(data, in smsc47m1_update_device()
197 if (data->alarms & 0x04) in smsc47m1_update_device()
253 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in get_fan_alarm()
276 return sprintf(buf, "%d\n", data->alarms); in get_alarms()
448 static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL);
Dadm1021.c95 u8 alarms; member
130 data->alarms = i2c_smbus_read_byte_data(client, in adm1021_update_device()
191 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm()
199 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
306 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
Dmax1668.c81 u16 alarms; member
126 data->alarms = val << 8; in max1668_update_device()
133 data->alarms |= val; in max1668_update_device()
188 return sprintf(buf, "%u\n", (data->alarms >> index) & 0x1); in show_alarm()
201 (data->alarms & (1 << 12)) && data->temp[index] == 127); in show_fault()
Dgl518sm.c135 u8 alarms; /* Register value */ member
174 data->alarms = gl518_read_value(client, GL518_REG_INT); in gl518_update_device()
209 data->alarms &= data->alarm_mask; in gl518_update_device()
262 show(RAW, alarms, alarms);
456 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
467 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dmax6642.c98 u8 alarms; member
193 data->alarms = i2c_smbus_read_byte_data(client, in max6642_update_device()
253 return sprintf(buf, "%d\n", (data->alarms >> bitnr) & 1); in show_alarm()
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()
923 data->alarms = vt8231_read_value(data, VT8231_REG_ALARM1) | in vt8231_update_device()
928 data->alarms |= 0x40; in vt8231_update_device()
930 data->alarms &= ~0x40; in vt8231_update_device()
933 data->alarms |= 0x80; in vt8231_update_device()
935 data->alarms &= ~0x80; in vt8231_update_device()
Dadm1025.c122 u16 alarms; /* register values, combined */ member
154 data->alarms = i2c_smbus_read_byte_data(client, in adm1025_update_device()
339 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
341 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
348 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm77.c70 u8 alarms; member
127 data->alarms = in lm77_update_device()
216 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dlm80.c140 u16 alarms; /* Register encoding, combined */ member
249 data->alarms = prev_rv + (rv << 8); in lm80_update_device()
448 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
458 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
515 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
Dadm9240.c149 u16 alarms; /* ro alarms */ member
187 data->alarms = i2c_smbus_read_byte_data(client, in adm9240_update_device()
505 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
507 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
514 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm()
Dvt1211.c143 u16 alarms; member
331 data->alarms = (vt1211_read8(data, VT1211_REG_ALARM2) << 8) | in vt1211_update_device()
374 res = (data->alarms >> bitalarmin[ix]) & 1; in show_in()
448 res = (data->alarms >> bitalarmtemp[ix]) & 1; in show_temp()
524 res = (data->alarms >> bitalarmfan[ix]) & 1; in show_fan()
917 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
1094 __ATTR(alarms, S_IRUGO, show_alarms, NULL),
Dthmc50.c86 u8 alarms; member
120 data->alarms = in thmc50_update_device()
257 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm()
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()
813 data->alarms = in via686a_update_device()
Dsis5595.c203 u16 alarms; /* Register encoding, combined */ member
499 return sprintf(buf, "%d\n", data->alarms); in show_alarms()
501 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
508 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
744 data->alarms = in sis5595_update_device()
Dgl520sm.c96 u8 alarms; member
135 data->alarms = gl520_read_value(client, GL520_REG_ALARMS); in gl520_update_device()
168 data->alarms &= data->alarm_mask; in gl520_update_device()
610 return sprintf(buf, "%d\n", data->alarms); in get_alarms()
671 static DEVICE_ATTR(alarms, S_IRUGO, get_alarms, NULL);
683 return sprintf(buf, "%d\n", (data->alarms >> bit_nr) & 1); in get_alarm()
Dasb100.c214 u32 alarms; /* Register encoding, combined */ member
528 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
531 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
538 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()
Dlm78.c147 u16 alarms; /* Register encoding, combined */ member
447 return sprintf(buf, "%u\n", data->alarms); in show_alarms()
449 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
456 return sprintf(buf, "%u\n", (data->alarms >> nr) & 1); in show_alarm()
786 data->alarms = lm78_read_value(data, LM78_REG_ALARM1) + in lm78_update_device()

123