Lines Matching refs:tz_zone
112 struct acpi_tz_zone tz_zone; /*Thermal zone parameters*/
281 sc, offsetof(struct acpi_tz_softc, tz_zone.psv),
285 sc, offsetof(struct acpi_tz_softc, tz_zone.hot),
290 sc, offsetof(struct acpi_tz_softc, tz_zone.crt),
295 &sc->tz_zone.ac, sizeof(sc->tz_zone.ac),
299 sc, offsetof(struct acpi_tz_softc, tz_zone.tc1),
304 sc, offsetof(struct acpi_tz_softc, tz_zone.tc2),
309 sc, offsetof(struct acpi_tz_softc, tz_zone.tsp),
383 if (sc->tz_zone.al[i].Pointer != NULL)
384 AcpiOsFree(sc->tz_zone.al[i].Pointer);
385 if (sc->tz_zone.psl.Pointer != NULL)
386 AcpiOsFree(sc->tz_zone.psl.Pointer);
392 bzero(sc->tz_zone.ac, sizeof(sc->tz_zone.ac));
393 bzero(sc->tz_zone.al, sizeof(sc->tz_zone.al));
394 bzero(&sc->tz_zone.psl, sizeof(sc->tz_zone.psl));
399 acpi_tz_getparam(sc, nbuf, &sc->tz_zone.ac[i]);
401 sc->tz_zone.al[i].Length = ACPI_ALLOCATE_BUFFER;
402 sc->tz_zone.al[i].Pointer = NULL;
403 AcpiEvaluateObject(sc->tz_handle, nbuf, NULL, &sc->tz_zone.al[i]);
404 obj = (ACPI_OBJECT *)sc->tz_zone.al[i].Pointer;
414 acpi_tz_getparam(sc, "_CRT", &sc->tz_zone.crt);
415 acpi_tz_getparam(sc, "_HOT", &sc->tz_zone.hot);
416 sc->tz_zone.psl.Length = ACPI_ALLOCATE_BUFFER;
417 sc->tz_zone.psl.Pointer = NULL;
418 AcpiEvaluateObject(sc->tz_handle, "_PSL", NULL, &sc->tz_zone.psl);
419 acpi_tz_getparam(sc, "_PSV", &sc->tz_zone.psv);
420 acpi_tz_getparam(sc, "_TC1", &sc->tz_zone.tc1);
421 acpi_tz_getparam(sc, "_TC2", &sc->tz_zone.tc2);
422 acpi_tz_getparam(sc, "_TSP", &sc->tz_zone.tsp);
423 acpi_tz_getparam(sc, "_TZP", &sc->tz_zone.tzp);
431 acpi_tz_sanity(sc, &sc->tz_zone.crt, "_CRT");
432 acpi_tz_sanity(sc, &sc->tz_zone.hot, "_HOT");
433 acpi_tz_sanity(sc, &sc->tz_zone.psv, "_PSV");
435 acpi_tz_sanity(sc, &sc->tz_zone.ac[i], "_ACx");
514 if (sc->tz_zone.ac[i] != -1 && temp >= sc->tz_zone.ac[i])
539 if (sc->tz_zone.psv != -1 && temp >= sc->tz_zone.psv)
541 if (sc->tz_zone.hot != -1 && temp >= sc->tz_zone.hot)
543 if (sc->tz_zone.crt != -1 && temp >= sc->tz_zone.crt)
554 if (sc->tz_zone.al[i].Pointer != NULL) {
556 (ACPI_OBJECT *)sc->tz_zone.al[i].Pointer,
569 (ACPI_OBJECT *)sc->tz_zone.al[i].Pointer,
576 (ACPI_OBJECT *)sc->tz_zone.al[i].Pointer,
1140 if (curr_temp >= sc->tz_zone.psv)
1143 perf = sc->tz_zone.tc1 * (curr_temp - prev_temp) +
1144 sc->tz_zone.tc2 * (curr_temp - sc->tz_zone.psv);
1163 hz * sc->tz_zone.tsp / 10);
1184 return (sc->tz_zone.tc1 != -1 && sc->tz_zone.tc2 != -1 &&
1185 sc->tz_zone.tsp != -1 && sc->tz_zone.tsp != 0 &&
1186 sc->tz_zone.psv != -1);