Lines Matching refs:in_status
211 u8 in_status[14]; /* Register value */ member
331 data->in_status[i] = pc87360_read_value(data, LD_IN, i, in pc87360_update_device()
336 data->in_status[i]); in pc87360_update_device()
337 if ((data->in_status[i] & CHAN_READY) == CHAN_READY) { in pc87360_update_device()
341 if (data->in_status[i] & CHAN_ENA) { in pc87360_update_device()
434 return sprintf(buf, "%u\n", data->in_status[attr->index]); in in_status_show()
437 static struct sensor_device_attribute in_status[] = { variable
438 SENSOR_ATTR_RO(in0_status, in_status, 0),
439 SENSOR_ATTR_RO(in1_status, in_status, 1),
440 SENSOR_ATTR_RO(in2_status, in_status, 2),
441 SENSOR_ATTR_RO(in3_status, in_status, 3),
442 SENSOR_ATTR_RO(in4_status, in_status, 4),
443 SENSOR_ATTR_RO(in5_status, in_status, 5),
444 SENSOR_ATTR_RO(in6_status, in_status, 6),
445 SENSOR_ATTR_RO(in7_status, in_status, 7),
446 SENSOR_ATTR_RO(in8_status, in_status, 8),
447 SENSOR_ATTR_RO(in9_status, in_status, 9),
448 SENSOR_ATTR_RO(in10_status, in_status, 10),
557 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MIN)); in in_min_alarm_show()
580 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MAX)); in in_max_alarm_show()
599 &in_status[X].dev_attr.attr, \
692 return sprintf(buf, "%u\n", data->in_status[attr->index]); in therm_status_show()
820 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MIN)); in therm_min_alarm_show()
836 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MAX)); in therm_max_alarm_show()
852 return sprintf(buf, "%u\n", !!(data->in_status[nr] & TEMP_ALM_CRIT)); in therm_crit_alarm_show()