Lines Matching defs:conf
361 struct aw_thermal_config *conf;
402 calib[0] &= sc->conf->calib0_mask;
403 calib[1] &= sc->conf->calib1_mask;
413 WR4(sc, THS_CTRL0, sc->conf->adc_acquire_time);
414 WR4(sc, THS_CTRL2, sc->conf->adc_acquire_time << SENSOR_ACQ1_SHIFT);
417 WR4(sc, THS_INTC, sc->conf->thermal_per << THS_THERMAL_PER_SHIFT);
420 WR4(sc, THS_FILTER, sc->conf->filter);
439 return (sc->conf->to_temp(val, sensor));
450 return (sc->conf->to_temp(val, sensor));
460 val |= (sc->conf->to_reg(temp, sensor) << SHUT_T_HOT_SHIFT);
472 return (sc->conf->to_temp(val, sensor));
483 return (sc->conf->to_temp(val, sensor));
493 val |= (sc->conf->to_reg(temp, sensor) << ALARM_T_HOT_SHIFT);
619 sc->conf = THS_CONF(dev);
636 error = clk_set_freq(sc->clk_ths, sc->conf->clk_rate, 0);
663 for (i = 0; i < sc->conf->nsensors; i++) {
664 if (sc->conf->sensors[i].init_alarm > 0)
666 sc->conf->sensors[i].init_alarm);
667 if (sc->conf->sensors[i].init_shut > 0)
669 sc->conf->sensors[i].init_shut);
675 for (i = 0; i < sc->conf->nsensors; i++)
678 OID_AUTO, sc->conf->sensors[i].name,
681 sc->conf->sensors[i].desc);
684 for (i = 0; i < sc->conf->nsensors; i++) {
687 sc->conf->sensors[i].name,