Lines Matching refs:fan_status
202 u8 fan_status[3]; /* Register value */ member
259 if ((data->fan_status[nr] & 0x04) /* overflow flag */ in pc87360_autodiv()
261 if ((data->fan_status[nr] & 0x60) != 0x60) { in pc87360_autodiv()
262 data->fan_status[nr] += 0x20; in pc87360_autodiv()
267 FAN_DIV_FROM_REG(data->fan_status[nr]), nr + 1); in pc87360_autodiv()
273 && (data->fan_status[nr] & 0x60) != 0x00) { in pc87360_autodiv()
274 data->fan_status[nr] -= 0x20; in pc87360_autodiv()
279 FAN_DIV_FROM_REG(data->fan_status[nr]), in pc87360_autodiv()
305 data->fan_status[i] = in pc87360_update_device()
318 data->fan_status[i]); in pc87360_update_device()
1120 FAN_DIV_FROM_REG(data->fan_status[attr->index]))); in fan_input_show()
1135 FAN_STATUS_FROM_REG(data->fan_status[attr->index])); in fan_status_show()
1138 static struct sensor_device_attribute fan_status[] = { variable
1139 SENSOR_ATTR_RO(fan1_status, fan_status, 0),
1140 SENSOR_ATTR_RO(fan2_status, fan_status, 1),
1141 SENSOR_ATTR_RO(fan3_status, fan_status, 2),
1150 FAN_DIV_FROM_REG(data->fan_status[attr->index])); in fan_div_show()
1165 FAN_DIV_FROM_REG(data->fan_status[attr->index]))); in fan_min_show()
1183 FAN_DIV_FROM_REG(data->fan_status[attr->index])); in fan_min_store()
1187 && (data->fan_status[attr->index] & 0x60) != 0x60) { in fan_min_store()
1190 data->fan_status[attr->index] += 0x20; in fan_min_store()
1200 data->fan_status[attr->index] & 0xF9); in fan_min_store()
1214 &fan_status[X].dev_attr.attr, \
1519 data->fan_status[i] = pc87360_read_value(data, in pc87360_probe()