Lines Matching refs:full
125 if (!sr->full) { in sdr_sensor_has_analog_reading()
144 if ( UNITS_ARE_DISCRETE(&sr->full->cmn) ) { in sdr_sensor_has_analog_reading()
147 if ( !IS_THRESHOLD_SENSOR(&sr->full->cmn) ) { in sdr_sensor_has_analog_reading()
150 if ( (sr->full->cmn.unit.pct | sr->full->cmn.unit.modifier | in sdr_sensor_has_analog_reading()
151 sr->full->cmn.unit.type.base | in sdr_sensor_has_analog_reading()
152 sr->full->cmn.unit.type.modifier)) { in sdr_sensor_has_analog_reading()
166 if (sr->full->linearization >= SDR_SENSOR_L_NONLINEAR && in sdr_sensor_has_analog_reading()
167 sr->full->linearization <= 0x7F) { in sdr_sensor_has_analog_reading()
168 if (ipmi_sensor_get_sensor_reading_factors(intf, sr->full, sr->s_reading) < 0){ in sdr_sensor_has_analog_reading()
1298 struct sdr_record_full_sensor *full, in ipmi_sdr_print_sensor_hysteresis() argument
1307 if (!full || UNITS_ARE_DISCRETE(sensor)) { in ipmi_sdr_print_sensor_hysteresis()
1316 double creading = sdr_convert_sensor_hysterisis(full, hysteresis_value); in ipmi_sdr_print_sensor_hysteresis()
1332 print_sensor_min_max(struct sdr_record_full_sensor *full) in print_sensor_min_max() argument
1334 if (!full) { /* No min/max for compact SDR record */ in print_sensor_min_max()
1339 uint8_t is_analog = !UNITS_ARE_DISCRETE(&full->cmn); in print_sensor_min_max()
1341 creading = sdr_convert_sensor_reading(full, full->sensor_min); in print_sensor_min_max()
1342 if ((full->cmn.unit.analog == 0 && full->sensor_min == 0x00) || in print_sensor_min_max()
1343 (full->cmn.unit.analog == 1 && full->sensor_min == 0xff) || in print_sensor_min_max()
1344 (full->cmn.unit.analog == 2 && full->sensor_min == 0x80) || in print_sensor_min_max()
1351 printf(" Minimum sensor range : 0x%02X\n", full->sensor_min); in print_sensor_min_max()
1355 creading = sdr_convert_sensor_reading(full, full->sensor_max); in print_sensor_min_max()
1356 if ((full->cmn.unit.analog == 0 && full->sensor_max == 0xff) || in print_sensor_min_max()
1357 (full->cmn.unit.analog == 1 && full->sensor_max == 0x00) || in print_sensor_min_max()
1358 (full->cmn.unit.analog == 2 && full->sensor_max == 0x7f) || in print_sensor_min_max()
1365 printf(" Maximum sensor range : 0x%02X\n", full->sensor_max); in print_sensor_min_max()
1428 sr.full = (struct sdr_record_full_sensor *)sensor; in ipmi_sdr_read_sensor_value()
1429 idlen = sr.full->id_code & 0x1f; in ipmi_sdr_read_sensor_value()
1432 memcpy(sr.s_id, sr.full->id_string, idlen); in ipmi_sdr_read_sensor_value()
1466 if ( !((sr.full && rsp->ccode == 0xcb) || in ipmi_sdr_read_sensor_value()
1509 sr.s_a_val = sdr_convert_sensor_reading(sr.full, sr.s_reading); in ipmi_sdr_read_sensor_value()
1512 sr.s_a_units = ipmi_sdr_get_unit_string(sr.full->cmn.unit.pct, in ipmi_sdr_read_sensor_value()
1513 sr.full->cmn.unit.modifier, in ipmi_sdr_read_sensor_value()
1514 sr.full->cmn.unit.type.base, in ipmi_sdr_read_sensor_value()
1515 sr.full->cmn.unit.type.modifier); in ipmi_sdr_read_sensor_value()
1590 if (sr->full) { in ipmi_sdr_print_sensor_fc()
1591 SENSOR_PRINT_CSV(sr->full, sr->full->analog_flag.nominal_read, in ipmi_sdr_print_sensor_fc()
1592 sr->full->nominal_read); in ipmi_sdr_print_sensor_fc()
1593 SENSOR_PRINT_CSV(sr->full, sr->full->analog_flag.normal_min, in ipmi_sdr_print_sensor_fc()
1594 sr->full->normal_min); in ipmi_sdr_print_sensor_fc()
1595 SENSOR_PRINT_CSV(sr->full, sr->full->analog_flag.normal_max, in ipmi_sdr_print_sensor_fc()
1596 sr->full->normal_max); in ipmi_sdr_print_sensor_fc()
1597 SENSOR_PRINT_CSV(sr->full, sensor->mask.type.threshold.read.unr, in ipmi_sdr_print_sensor_fc()
1598 sr->full->threshold.upper.non_recover); in ipmi_sdr_print_sensor_fc()
1599 SENSOR_PRINT_CSV(sr->full, sensor->mask.type.threshold.read.ucr, in ipmi_sdr_print_sensor_fc()
1600 sr->full->threshold.upper.critical); in ipmi_sdr_print_sensor_fc()
1601 SENSOR_PRINT_CSV(sr->full, sensor->mask.type.threshold.read.unc, in ipmi_sdr_print_sensor_fc()
1602 sr->full->threshold.upper.non_critical); in ipmi_sdr_print_sensor_fc()
1603 SENSOR_PRINT_CSV(sr->full, sensor->mask.type.threshold.read.lnr, in ipmi_sdr_print_sensor_fc()
1604 sr->full->threshold.lower.non_recover); in ipmi_sdr_print_sensor_fc()
1605 SENSOR_PRINT_CSV(sr->full, sensor->mask.type.threshold.read.lcr, in ipmi_sdr_print_sensor_fc()
1606 sr->full->threshold.lower.critical); in ipmi_sdr_print_sensor_fc()
1607 SENSOR_PRINT_CSV(sr->full, sensor->mask.type.threshold.read.lnc, in ipmi_sdr_print_sensor_fc()
1608 sr->full->threshold.lower.non_critical); in ipmi_sdr_print_sensor_fc()
1611 printf("0x%02X,0x%02X", sr->full->sensor_min, sr->full->sensor_max); in ipmi_sdr_print_sensor_fc()
1615 sdr_convert_sensor_reading(sr->full, in ipmi_sdr_print_sensor_fc()
1616 sr->full->sensor_min), in ipmi_sdr_print_sensor_fc()
1617 sdr_convert_sensor_reading(sr->full, in ipmi_sdr_print_sensor_fc()
1618 sr->full->sensor_max)); in ipmi_sdr_print_sensor_fc()
1652 snprintf(sval, sizeof (sval), sr->full ? "disabled" : "Not Readable"); in ipmi_sdr_print_sensor_fc()
1654 snprintf(sval, sizeof (sval), sr->full ? "no reading" : "Not Readable"); in ipmi_sdr_print_sensor_fc()
1794 sr->full ? sr->full->oem : sr->compact->oem); in ipmi_sdr_print_sensor_fc()
1805 if (sr->full) { in ipmi_sdr_print_sensor_fc()
1806 uint16_t raw_tol = __TO_TOL(sr->full->mtol); in ipmi_sdr_print_sensor_fc()
1812 double tol = sdr_convert_sensor_tolerance(sr->full, raw_tol); in ipmi_sdr_print_sensor_fc()
1829 if(sr->full) { in ipmi_sdr_print_sensor_fc()
1830 SENSOR_PRINT_NORMAL(sr->full, "Nominal Reading", nominal_read); in ipmi_sdr_print_sensor_fc()
1831 SENSOR_PRINT_NORMAL(sr->full, "Normal Minimum", normal_min); in ipmi_sdr_print_sensor_fc()
1832 SENSOR_PRINT_NORMAL(sr->full, "Normal Maximum", normal_max); in ipmi_sdr_print_sensor_fc()
1834 SENSOR_PRINT_THRESH(sr->full, "Upper non-recoverable", upper.non_recover, unr); in ipmi_sdr_print_sensor_fc()
1835 SENSOR_PRINT_THRESH(sr->full, "Upper critical", upper.critical, ucr); in ipmi_sdr_print_sensor_fc()
1836 SENSOR_PRINT_THRESH(sr->full, "Upper non-critical", upper.non_critical, unc); in ipmi_sdr_print_sensor_fc()
1837 SENSOR_PRINT_THRESH(sr->full, "Lower non-recoverable", lower.non_recover, lnr); in ipmi_sdr_print_sensor_fc()
1838 SENSOR_PRINT_THRESH(sr->full, "Lower critical", lower.critical, lcr); in ipmi_sdr_print_sensor_fc()
1839 SENSOR_PRINT_THRESH(sr->full, "Lower non-critical", lower.non_critical, lnc); in ipmi_sdr_print_sensor_fc()
1841 ipmi_sdr_print_sensor_hysteresis(sensor, sr->full, in ipmi_sdr_print_sensor_fc()
1842 sr->full ? sr->full->threshold.hysteresis.positive : in ipmi_sdr_print_sensor_fc()
1845 ipmi_sdr_print_sensor_hysteresis(sensor, sr->full, in ipmi_sdr_print_sensor_fc()
1846 sr->full ? sr->full->threshold.hysteresis.negative : in ipmi_sdr_print_sensor_fc()
1849 print_sensor_min_max(sr->full); in ipmi_sdr_print_sensor_fc()
2509 struct sdr_record_full_sensor *full; in ipmi_sdr_print_name_from_rawentry() member
2525 record.full = (struct sdr_record_full_sensor *) raw; in ipmi_sdr_print_name_from_rawentry()
2526 snprintf(desc, (record.full->id_code & 0x1f) +1, "%s", in ipmi_sdr_print_name_from_rawentry()
2527 (const char *)record.full->id_string); in ipmi_sdr_print_name_from_rawentry()
3798 if (!strncmp((const char *)e->record.full->id_string, in ipmi_sdr_find_sdr_byid()
3800 __max(e->record.full->id_code & 0x1f, idlen))) in ipmi_sdr_find_sdr_byid()
3861 sdrr->record.full = in ipmi_sdr_find_sdr_byid()
3864 (const char *)sdrr->record.full->id_string, in ipmi_sdr_find_sdr_byid()
3866 __max(sdrr->record.full->id_code & 0x1f, idlen))) in ipmi_sdr_find_sdr_byid()