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;
617 struct soctherm_throt_cfg *stc;
624 stc = find_throttle_cfg_by_name(ts, cdev->type);
628 return throttrip_program(dev, sg, stc, temp);
739 struct soctherm_throt_cfg *stc;
772 stc = find_throttle_cfg_by_name(ts, cdev->type);
776 ret = throttrip_program(dev, sg, stc, temperature);
1580 struct soctherm_throt_cfg *stc)
1585 stc->oc_cfg.active_low = 1;
1587 stc->oc_cfg.active_low = 0;
1590 stc->oc_cfg.intr_en = 1;
1591 stc->oc_cfg.alarm_cnt_thresh = val;
1595 stc->oc_cfg.throt_period = val;
1598 stc->oc_cfg.alarm_filter = val;
1601 stc->oc_cfg.mode = OC_THROTTLE_MODE_BRIEF;
1606 struct soctherm_throt_cfg *stc)
1614 dev_err(dev, "throttle-cfg: %s: invalid priority\n", stc->name);
1617 stc->priority = val;
1625 stc->cpu_throt_level = val;
1627 stc->cpu_throt_depth = val;
1636 stc->gpu_throt_level = val;
1644 stc->name);
1675 struct soctherm_throt_cfg *stc;
1680 stc = find_throttle_cfg_by_name(ts, name);
1681 if (!stc) {
1687 if (stc->init) {
1693 err = soctherm_throt_cfg_parse(dev, np_stcc, stc);
1697 if (stc->id >= THROTTLE_OC1) {
1698 soctherm_oc_cfg_parse(dev, np_stcc, stc);
1699 stc->init = true;
1711 stc->cdev = tcd;
1712 stc->init = true;
1903 struct soctherm_throt_cfg stc = ts->throt_cfgs[throt];
1905 if (!stc.init)
1919 r = REG_SET_MASK(0, THROT_PRIORITY_LITE_PRIO_MASK, stc.priority);
1927 if (r >= stc.priority)
1930 stc.priority);