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