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()
612 struct soctherm_throt_cfg *stc; in tegra_thermctl_set_trip_temp() local
619 stc = find_throttle_cfg_by_name(ts, cdev->type); in tegra_thermctl_set_trip_temp()
623 return throttrip_program(dev, sg, stc, temp); in tegra_thermctl_set_trip_temp()
736 struct soctherm_throt_cfg *stc; in tegra_soctherm_set_hwtrips() local
769 stc = find_throttle_cfg_by_name(ts, cdev->type); in tegra_soctherm_set_hwtrips()
773 ret = throttrip_program(dev, sg, stc, temperature); in tegra_soctherm_set_hwtrips()
1577 struct soctherm_throt_cfg *stc) in soctherm_oc_cfg_parse() argument
1582 stc->oc_cfg.active_low = 1; in soctherm_oc_cfg_parse()
1584 stc->oc_cfg.active_low = 0; in soctherm_oc_cfg_parse()
1587 stc->oc_cfg.intr_en = 1; in soctherm_oc_cfg_parse()
1588 stc->oc_cfg.alarm_cnt_thresh = val; in soctherm_oc_cfg_parse()
1592 stc->oc_cfg.throt_period = val; in soctherm_oc_cfg_parse()
1595 stc->oc_cfg.alarm_filter = val; in soctherm_oc_cfg_parse()
1598 stc->oc_cfg.mode = OC_THROTTLE_MODE_BRIEF; in soctherm_oc_cfg_parse()
1603 struct soctherm_throt_cfg *stc) in soctherm_throt_cfg_parse() argument
1611 dev_err(dev, "throttle-cfg: %s: invalid priority\n", stc->name); in soctherm_throt_cfg_parse()
1614 stc->priority = val; in soctherm_throt_cfg_parse()
1622 stc->cpu_throt_level = val; in soctherm_throt_cfg_parse()
1624 stc->cpu_throt_depth = val; in soctherm_throt_cfg_parse()
1633 stc->gpu_throt_level = val; in soctherm_throt_cfg_parse()
1641 stc->name); in soctherm_throt_cfg_parse()
1672 struct soctherm_throt_cfg *stc; in soctherm_init_hw_throt_cdev() local
1677 stc = find_throttle_cfg_by_name(ts, name); in soctherm_init_hw_throt_cdev()
1678 if (!stc) { in soctherm_init_hw_throt_cdev()
1684 if (stc->init) { in soctherm_init_hw_throt_cdev()
1690 err = soctherm_throt_cfg_parse(dev, np_stcc, stc); in soctherm_init_hw_throt_cdev()
1694 if (stc->id >= THROTTLE_OC1) { in soctherm_init_hw_throt_cdev()
1695 soctherm_oc_cfg_parse(dev, np_stcc, stc); in soctherm_init_hw_throt_cdev()
1696 stc->init = true; in soctherm_init_hw_throt_cdev()
1708 stc->cdev = tcd; in soctherm_init_hw_throt_cdev()
1709 stc->init = true; in soctherm_init_hw_throt_cdev()
1900 struct soctherm_throt_cfg stc = ts->throt_cfgs[throt]; in soctherm_throttle_program() local
1902 if (!stc.init) in soctherm_throttle_program()
1916 r = REG_SET_MASK(0, THROT_PRIORITY_LITE_PRIO_MASK, stc.priority); in soctherm_throttle_program()
1924 if (r >= stc.priority) in soctherm_throttle_program()
1927 stc.priority); in soctherm_throttle_program()