Lines Matching full:stc

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