Lines Matching defs:soc

342 	struct tegra_soctherm_soc *soc;
387 const struct tegra_tsensor *sensor = &tegra->soc->tsensors[i];
485 temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain;
526 temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain;
570 struct tsensor_group_thermtrips *tt = ts->soc->thermtrips;
576 for (i = 0; i < ts->soc->num_ttgs; i++) {
670 lo = enforce_temp_range(zone->dev, lo) / zone->ts->soc->thresh_grain;
671 hi = enforce_temp_range(zone->dev, hi) / zone->ts->soc->thresh_grain;
1258 const struct tegra_tsensor *tsensors = ts->soc->tsensors;
1259 const struct tegra_tsensor_group **ttgs = ts->soc->ttgs;
1265 for (i = 0; i < ts->soc->num_tsensors; i++) {
1335 for (i = 0; i < ts->soc->num_ttgs; i++) {
1346 v = sign_extend32(state, ts->soc->bptt - 1);
1347 v *= ts->soc->thresh_grain;
1352 v = sign_extend32(state, ts->soc->bptt - 1);
1353 v *= ts->soc->thresh_grain;
1413 for (i = 0; i < ts->soc->num_ttgs; i++) {
1417 state *= ts->soc->thresh_grain;
1435 if (ts->soc->use_ccroc) {
1538 struct tsensor_group_thermtrips *tt = ts->soc->thermtrips;
1539 const int max_num_prop = ts->soc->num_ttgs * 2;
1619 ret = of_property_read_u32(np, ts->soc->use_ccroc ?
1623 if (ts->soc->use_ccroc &&
1626 else if (!ts->soc->use_ccroc && val <= 100)
1912 if (ts->soc->use_ccroc)
1941 if (ts->soc->use_ccroc) {
1952 if (ts->soc->use_ccroc) {
2026 const struct tegra_tsensor_group **ttgs = tegra->soc->ttgs;
2031 for (i = 0; i < tegra->soc->num_tsensors; ++i)
2037 for (i = 0; i < tegra->soc->num_ttgs; ++i) {
2083 struct tegra_soctherm_soc *soc;
2091 soc = (struct tegra_soctherm_soc *)match->data;
2092 if (soc->num_ttgs > TEGRA124_SOCTHERM_SENSOR_NUM)
2102 tegra->soc = soc;
2110 if (!tegra->soc->use_ccroc) {
2143 soc->num_tsensors, sizeof(u32),
2149 err = tegra_calc_shared_calib(soc->tfuse, &shared_calib);
2154 for (i = 0; i < soc->num_tsensors; ++i) {
2155 err = tegra_calc_tsensor_calib(&soc->tsensors[i],
2163 soc->num_ttgs, sizeof(z),
2178 for (i = 0; i < soc->num_ttgs; ++i) {
2186 zone->reg = tegra->regs + soc->ttgs[i]->sensor_temp_offset;
2188 zone->sg = soc->ttgs[i];
2192 soc->ttgs[i]->id, zone,
2202 tegra->thermctl_tzs[soc->ttgs[i]->id] = z;
2205 err = tegra_soctherm_set_hwtrips(&pdev->dev, soc->ttgs[i], z);
2244 struct tegra_soctherm_soc *soc = tegra->soc;
2256 for (i = 0; i < soc->num_ttgs; ++i) {
2259 tz = tegra->thermctl_tzs[soc->ttgs[i]->id];
2260 err = tegra_soctherm_set_hwtrips(dev, soc->ttgs[i], tz);