/drivers/net/ethernet/sfc/ |
D | falcon_boards.c | 128 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/ |
D | nv04.c | 37 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/ |
D | lm90.c | 340 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 …]
|
D | adm1026.c | 291 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 …]
|
D | max1619.c | 128 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()
|
D | lm83.c | 161 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()
|
D | max6697.c | 98 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()
|
D | smsc47m1.c | 136 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()
|
D | adm1021.c | 93 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()
|
D | max1668.c | 80 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()
|
D | vt8231.c | 173 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()
|
D | max6642.c | 98 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()
|
D | gl518sm.c | 134 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()
|
D | adm1025.c | 156 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()
|
D | lm77.c | 61 u8 alarms; member 228 return sprintf(buf, "%u\n", (data->alarms >> bitnr) & 1); in show_alarm() 436 data->alarms = in lm77_update_device()
|
D | lm80.c | 132 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()
|
D | adm9240.c | 178 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()
|
D | vt1211.c | 143 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),
|
D | sis5595.c | 201 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()
|
D | via686a.c | 333 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()
|
D | gl520sm.c | 127 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()
|
D | thmc50.c | 85 u8 alarms; member 241 return sprintf(buf, "%u\n", (data->alarms >> index) & 1); in show_alarm() 467 data->alarms = in thmc50_update_device()
|
D | asb100.c | 214 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()
|
D | lm78.c | 146 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()
|
D | dme1737.c | 253 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 …]
|