Lines Matching refs:soc
176 struct soctherm_soc *soc; member
469 cfg = sc->soc->tsensor_cfg; in tsensor_calibration()
518 cfg = sc->soc->tsensor_cfg; in soctherm_init_tsensor()
611 if (id >= sc->soc->ntsensors) in soctherm_get_temp()
613 return(soctherm_read_temp(sc, sc->soc->tsensors + id, val)); in soctherm_get_temp()
616 for (i = 0; i < sc->soc->ntsensors; i++) { in soctherm_get_temp()
617 if (sc->soc->tsensors->id == id) { in soctherm_get_temp()
618 return(soctherm_read_temp(sc, sc->soc->tsensors + id, in soctherm_get_temp()
640 if (id >= sc->soc->ntsensors) in soctherm_sysctl_temperature()
642 rv = soctherm_read_temp(sc, sc->soc->tsensors + id, &val); in soctherm_sysctl_temperature()
667 for (i = sc->soc->ntsensors - 1; i >= 0; i--) { in soctherm_init_sysctl()
669 SYSCTL_CHILDREN(oid), OID_AUTO, sc->soc->tsensors[i].name, in soctherm_init_sysctl()
702 sc->soc = (struct soctherm_soc *)ofw_bus_search_compatible(dev, in soctherm_attach()
768 sc->soc->shared_cal(sc); in soctherm_attach()
770 WR4(sc, TSENSOR_PDIV, sc->soc->tsensor_pdiv); in soctherm_attach()
771 WR4(sc, TSENSOR_HOTSPOT_OFF, sc->soc->tsensor_hotspot_off); in soctherm_attach()
773 for (i = 0; i < sc->soc->ntsensors; i++) in soctherm_attach()
774 soctherm_init_tsensor(sc, sc->soc->tsensors + i); in soctherm_attach()