Lines Matching refs:limits
420 * Check the HTC register and populate v->limits[HTC].
429 tc_limit_t *limits = &v->limits[HTC];
430 limits->flags = 0;
431 limits->tcrit = limits->threshold = INT32_MAX;
444 limits->tcrit = 63 * 1000;
446 limits->tcrit = 70 * 1000;
452 limits->tcrit = 70 * 1000;
458 limits->tcrit = 70 * 1000;
473 limits->flags |= TC_ENABLED;
482 limits->flags |= TC_SLEWED;
485 limits->tcrit = 52000 + BITS(data, 22, 16) * 500; /* 52 + val/2 */
487 limits->threshold = limits->tcrit - BITS(data, 27, 24) * 500;
491 * Check the STC or LHTC register and populate v->limits[STC].
500 tc_limit_t *limits = &v->limits[STC];
501 limits->flags = 0;
502 limits->tcrit = limits->threshold = INT32_MAX;
522 limits->tcrit = 52000 + val * 2000;
524 limits->threshold = limits->tcrit - (BITS(data, 27, 24) + 1) * 2000;
525 limits->flags |= TC_ENABLED;
531 limits->tcrit = 52000 + val * 500;
533 limits->threshold = limits->tcrit
535 limits->flags |= TC_ENABLED;
539 limits->flags |= TC_SLEWED;
543 limits->tcrit = 52000 + BITS(data, 22, 16) * 500;
545 limits->threshold = limits->tcrit - BITS(data, 27, 24) * 500;
548 limits->flags |= TC_ENABLED;
552 limits->flags |= TC_SLEWED;
673 PRINT_ENABLED(buf, "HTC", v->limits[HTC].flags & TC_ENABLED)
675 PRINT_YORN(buf, "HTC slew-controlled", v->limits[HTC].flags & TC_SLEWED)
677 PRINT_VAL(buf, "HTC Limit [C]", v->limits[HTC].tcrit)
679 PRINT_VAL(buf, "HTC Hysteresis [C]", v->limits[HTC].threshold)
684 PRINT_ENABLED(buf, stc ? "STC" : "LHTC", v->limits[STC].flags & TC_ENABLED)
687 v->limits[STC].flags & TC_SLEWED)
690 v->limits[STC].tcrit)
693 v->limits[STC].threshold)