Lines Matching defs:instance
421 DPRINTF(sc, 2, ("%s: TACH recorded sensor instance number %d->%d\n", __func__,
452 DPRINTF(sc, 2, ("%s: IT recorded sensor instance number %d->%d\n", __func__,
483 DPRINTF(sc, 2, ("%s: VIN4 recorded sensor instance number %d->%d\n", __func__,
516 DPRINTF(sc, 2, ("%s: ET recorded sensor instance number %d->%d\n", __func__,
560 instance)
570 switch(sc->sc_sensor_instances[instance].sc_i_member) {
580 DPRINTF(sc, 2, ("%s: dev=%s, instance=%d, sc_i_member=%d, tach_high_reg=0x%02X, tach_low_reg=0x%02X\n", __func__,
581 device_xname(sc->sc_dev), instance,
582 sc->sc_sensor_instances[instance].sc_i_member,
614 DPRINTF(sc, 2, ("%s: instance=%d, tach_high=%d 0x%02X, tach_low=%d 0x%02X, count=%d\n", __func__,
615 instance, tach_high, tach_high, tach_low, tach_low, count));
641 struct sysmon_envsys *sme, envsys_data_t *edata, int instance)
659 switch(sc->sc_sensor_instances[instance].sc_i_member) {
672 sc->sc_sensor_instances[instance].sc_i_member);
676 switch(sc->sc_sensor_instances[instance].sc_i_member) {
704 sc->sc_sensor_instances[instance].sc_i_member);
709 DPRINTF(sc, 2, ("%s: dev=%s, instance=%d, sc_i_member=%d, fan_config_reg=0x%02X, tach_high_reg=0x%02X, tach_low_reg=0x%02X\n", __func__,
710 device_xname(sc->sc_dev), instance,
711 sc->sc_sensor_instances[instance].sc_i_member,
836 poles = sc->sc_num_poles[sc->sc_sensor_instances[instance].sc_i_member - 1];
838 DPRINTF(sc, 2, ("%s: instance=%d, ftach=%d, m=%d, edges=%d, poles=%d, tach_high=%d 0x%02X, tach_low=%d 0x%02X, count=%d\n", __func__,
839 instance, ftach, m, edges, poles, tach_high, tach_high, tach_low, tach_low, count));
1412 struct sysmon_envsys *sme, envsys_data_t *edata, int instance)
1430 is_internal = sc->sc_sensor_instances[instance].sc_i_flags & EMCFAN_INTERNAL_TEMP;
1431 is_vin4 = sc->sc_sensor_instances[instance].sc_i_flags & EMCFAN_VIN4_TEMP;
1502 switch(sc->sc_sensor_instances[instance].sc_i_member) {
1521 sc->sc_sensor_instances[instance].sc_i_member);
1555 switch(sc->sc_sensor_instances[instance].sc_i_member) {
1582 if (sc->sc_sensor_instances[instance].sc_i_member == 4 &&
1594 sc->sc_sensor_instances[instance].sc_i_member == 3) {
1607 sc->sc_sensor_instances[instance].sc_i_member == 4) {
1707 int instance = -1;
1709 /* Hunt down the instance for this sensor.
1712 * instance is held in sc_sensor_instances in the member
1718 instance = i;
1722 KASSERT(instance > -1);
1724 DPRINTF(sc, 2, ("%s: using sensor instance %d\n", __func__,
1725 instance));
1730 * one will select the sensor based upon the type and instance.
1741 emcfan_refresh_2101_tach(sme, edata, instance);
1747 sme, edata, instance);
1754 sme, edata, instance);
1764 sme, edata, instance);