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()
744 struct soctherm_throt_cfg *stc; in tegra_soctherm_set_hwtrips() local
777 stc = find_throttle_cfg_by_name(ts, cdev->type); in tegra_soctherm_set_hwtrips()
781 ret = throttrip_program(dev, sg, stc, temperature); in tegra_soctherm_set_hwtrips()
1585 struct soctherm_throt_cfg *stc) in soctherm_oc_cfg_parse() argument
1590 stc->oc_cfg.active_low = 1; in soctherm_oc_cfg_parse()
1592 stc->oc_cfg.active_low = 0; in soctherm_oc_cfg_parse()
1595 stc->oc_cfg.intr_en = 1; in soctherm_oc_cfg_parse()
1596 stc->oc_cfg.alarm_cnt_thresh = val; in soctherm_oc_cfg_parse()
1600 stc->oc_cfg.throt_period = val; in soctherm_oc_cfg_parse()
1603 stc->oc_cfg.alarm_filter = val; in soctherm_oc_cfg_parse()
1606 stc->oc_cfg.mode = OC_THROTTLE_MODE_BRIEF; in soctherm_oc_cfg_parse()
1611 struct soctherm_throt_cfg *stc) in soctherm_throt_cfg_parse() argument
1619 dev_err(dev, "throttle-cfg: %s: invalid priority\n", stc->name); in soctherm_throt_cfg_parse()
1622 stc->priority = val; in soctherm_throt_cfg_parse()
1630 stc->cpu_throt_level = val; in soctherm_throt_cfg_parse()
1632 stc->cpu_throt_depth = val; in soctherm_throt_cfg_parse()
1641 stc->gpu_throt_level = val; in soctherm_throt_cfg_parse()
1649 stc->name); in soctherm_throt_cfg_parse()
1680 struct soctherm_throt_cfg *stc; in soctherm_init_hw_throt_cdev() local
1685 stc = find_throttle_cfg_by_name(ts, name); in soctherm_init_hw_throt_cdev()
1686 if (!stc) { in soctherm_init_hw_throt_cdev()
1692 if (stc->init) { in soctherm_init_hw_throt_cdev()
1698 err = soctherm_throt_cfg_parse(dev, np_stcc, stc); in soctherm_init_hw_throt_cdev()
1702 if (stc->id >= THROTTLE_OC1) { in soctherm_init_hw_throt_cdev()
1703 soctherm_oc_cfg_parse(dev, np_stcc, stc); in soctherm_init_hw_throt_cdev()
1704 stc->init = true; in soctherm_init_hw_throt_cdev()
1716 stc->cdev = tcd; in soctherm_init_hw_throt_cdev()
1717 stc->init = true; in soctherm_init_hw_throt_cdev()
1908 struct soctherm_throt_cfg stc = ts->throt_cfgs[throt]; in soctherm_throttle_program() local
1910 if (!stc.init) in soctherm_throttle_program()
1924 r = REG_SET_MASK(0, THROT_PRIORITY_LITE_PRIO_MASK, stc.priority); in soctherm_throttle_program()
1932 if (r >= stc.priority) in soctherm_throttle_program()
1935 stc.priority); in soctherm_throttle_program()