Home
last modified time | relevance | path

Searched refs:fan_alarm (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/hwmon/
Dsch5636.c346 SENSOR_ATTR_RO(fan1_alarm, fan_alarm, 0),
349 SENSOR_ATTR_RO(fan2_alarm, fan_alarm, 1),
352 SENSOR_ATTR_RO(fan3_alarm, fan_alarm, 2),
355 SENSOR_ATTR_RO(fan4_alarm, fan_alarm, 3),
358 SENSOR_ATTR_RO(fan5_alarm, fan_alarm, 4),
361 SENSOR_ATTR_RO(fan6_alarm, fan_alarm, 5),
364 SENSOR_ATTR_RO(fan7_alarm, fan_alarm, 6),
367 SENSOR_ATTR_RO(fan8_alarm, fan_alarm, 7),
Dftsteutates.c83 u8 fan_alarm; member
174 data->fan_alarm = err; in fts_update_device()
473 return sprintf(buf, "%d\n", !!(data->fan_alarm & BIT(index))); in fan_alarm_show()
637 static SENSOR_DEVICE_ATTR_RW(fan1_alarm, fan_alarm, 0);
638 static SENSOR_DEVICE_ATTR_RW(fan2_alarm, fan_alarm, 1);
639 static SENSOR_DEVICE_ATTR_RW(fan3_alarm, fan_alarm, 2);
640 static SENSOR_DEVICE_ATTR_RW(fan4_alarm, fan_alarm, 3);
641 static SENSOR_DEVICE_ATTR_RW(fan5_alarm, fan_alarm, 4);
642 static SENSOR_DEVICE_ATTR_RW(fan6_alarm, fan_alarm, 5);
643 static SENSOR_DEVICE_ATTR_RW(fan7_alarm, fan_alarm, 6);
[all …]
Dg760a.c125 int fan_alarm = (data->fan_sta & G760A_REG_FAN_STA_RPM_OFF) ? 1 : 0; in fan1_alarm_show() local
127 return sprintf(buf, "%d\n", fan_alarm); in fan1_alarm_show()
Dnct7904.c106 u8 fan_alarm[2]; member
223 if (!data->fan_alarm[channel >> 3]) in nct7904_read_fan()
224 data->fan_alarm[channel >> 3] = ret & 0xff; in nct7904_read_fan()
227 data->fan_alarm[channel >> 3] |= (ret & 0xff); in nct7904_read_fan()
228 *val = (data->fan_alarm[channel >> 3] >> (channel & 0x07)) & 1; in nct7904_read_fan()
231 data->fan_alarm[channel >> 3] ^= 1 << (channel & 0x07); in nct7904_read_fan()
Dpc87427.c471 static SENSOR_DEVICE_ATTR_RO(fan1_alarm, fan_alarm, 0);
472 static SENSOR_DEVICE_ATTR_RO(fan2_alarm, fan_alarm, 1);
473 static SENSOR_DEVICE_ATTR_RO(fan3_alarm, fan_alarm, 2);
474 static SENSOR_DEVICE_ATTR_RO(fan4_alarm, fan_alarm, 3);
475 static SENSOR_DEVICE_ATTR_RO(fan5_alarm, fan_alarm, 4);
476 static SENSOR_DEVICE_ATTR_RO(fan6_alarm, fan_alarm, 5);
477 static SENSOR_DEVICE_ATTR_RO(fan7_alarm, fan_alarm, 6);
478 static SENSOR_DEVICE_ATTR_RO(fan8_alarm, fan_alarm, 7);
Dfschmd.c657 SENSOR_ATTR_RO(fan1_alarm, fan_alarm, 0),
662 SENSOR_ATTR_RO(fan2_alarm, fan_alarm, 1),
667 SENSOR_ATTR_RO(fan3_alarm, fan_alarm, 2),
672 SENSOR_ATTR_RO(fan4_alarm, fan_alarm, 3),
677 SENSOR_ATTR_RO(fan5_alarm, fan_alarm, 4),
682 SENSOR_ATTR_RO(fan6_alarm, fan_alarm, 5),
687 SENSOR_ATTR_RO(fan7_alarm, fan_alarm, 6),
Dtc654.c421 static SENSOR_DEVICE_ATTR_RO(fan1_alarm, fan_alarm, 0);
422 static SENSOR_DEVICE_ATTR_RO(fan2_alarm, fan_alarm, 1);
Dsmsc47m1.c425 static SENSOR_DEVICE_ATTR_RO(fan1_alarm, fan_alarm, 0);
431 static SENSOR_DEVICE_ATTR_RO(fan2_alarm, fan_alarm, 1);
437 static SENSOR_DEVICE_ATTR_RO(fan3_alarm, fan_alarm, 2);
Dnct6775.c2279 SENSOR_TEMPLATE(fan_alarm, "fan%d_alarm", S_IRUGO, show_alarm, NULL,