Lines Matching defs:stc
501 * @stc: pointer to the throttle need to be triggered
515 struct soctherm_throt_cfg *stc,
523 if (!sg || !stc || !stc->init)
529 throt = stc->id;
618 struct soctherm_throt_cfg *stc;
625 stc = find_throttle_cfg_by_name(ts, cdev->type);
629 return throttrip_program(dev, sg, stc, temp);
777 struct soctherm_throt_cfg *stc;
810 stc = find_throttle_cfg_by_name(ts, cdev->type);
814 ret = throttrip_program(dev, sg, stc, temperature);
1618 struct soctherm_throt_cfg *stc)
1623 stc->oc_cfg.active_low = 1;
1625 stc->oc_cfg.active_low = 0;
1628 stc->oc_cfg.intr_en = 1;
1629 stc->oc_cfg.alarm_cnt_thresh = val;
1633 stc->oc_cfg.throt_period = val;
1636 stc->oc_cfg.alarm_filter = val;
1639 stc->oc_cfg.mode = OC_THROTTLE_MODE_BRIEF;
1644 struct soctherm_throt_cfg *stc)
1652 dev_err(dev, "throttle-cfg: %s: invalid priority\n", stc->name);
1655 stc->priority = val;
1663 stc->cpu_throt_level = val;
1665 stc->cpu_throt_depth = val;
1674 stc->gpu_throt_level = val;
1682 stc->name);
1713 struct soctherm_throt_cfg *stc;
1718 stc = find_throttle_cfg_by_name(ts, name);
1719 if (!stc) {
1725 if (stc->init) {
1731 err = soctherm_throt_cfg_parse(dev, np_stcc, stc);
1735 if (stc->id >= THROTTLE_OC1) {
1736 soctherm_oc_cfg_parse(dev, np_stcc, stc);
1737 stc->init = true;
1749 stc->cdev = tcd;
1750 stc->init = true;
1941 struct soctherm_throt_cfg stc = ts->throt_cfgs[throt];
1943 if (!stc.init)
1957 r = REG_SET_MASK(0, THROT_PRIORITY_LITE_PRIO_MASK, stc.priority);
1965 if (r >= stc.priority)
1968 stc.priority);