Lines Matching refs:throt

216 #define THROT_PSKIP_CTRL(throt, dev)	(THROT_PSKIP_CTRL_LITE_CPU + \  argument
217 (THROT_OFFSET * throt) + (8 * dev))
218 #define THROT_PSKIP_RAMP(throt, dev) (THROT_PSKIP_RAMP_LITE_CPU + \ argument
219 (THROT_OFFSET * throt) + (8 * dev))
222 #define THROT_PRIORITY_CTRL(throt) (THROT_PRIORITY_LITE + \ argument
223 (THROT_OFFSET * throt))
224 #define THROT_DELAY_CTRL(throt) (THROT_DELAY_LITE + \ argument
225 (THROT_OFFSET * throt))
228 #define ALARM_CFG(throt) (OC1_CFG + \ argument
229 (ALARM_OFFSET * (throt - THROTTLE_OC1)))
231 #define ALARM_CNT_THRESHOLD(throt) (OC1_CNT_THRESHOLD + \ argument
232 (ALARM_OFFSET * (throt - THROTTLE_OC1)))
234 #define ALARM_THROTTLE_PERIOD(throt) (OC1_THROTTLE_PERIOD + \ argument
235 (ALARM_OFFSET * (throt - THROTTLE_OC1)))
237 #define ALARM_ALARM_COUNT(throt) (OC1_ALARM_COUNT + \ argument
238 (ALARM_OFFSET * (throt - THROTTLE_OC1)))
240 #define ALARM_FILTER(throt) (OC1_FILTER + \ argument
241 (ALARM_OFFSET * (throt - THROTTLE_OC1)))
243 #define ALARM_STATS(throt) (OC1_STATS + \ argument
244 (4 * (throt - THROTTLE_OC1)))
520 unsigned int throt; in throttrip_program() local
529 throt = stc->id; in throttrip_program()
530 reg_off = THERMCTL_LVL_REG(sg->thermctl_lvl0_offset, throt + 1); in throttrip_program()
532 if (throt == THROTTLE_LIGHT) { in throttrip_program()
538 if (throt != THROTTLE_HEAVY) in throttrip_program()
541 throt); in throttrip_program()
1781 enum soctherm_throttle_id throt) in throttlectl_cpu_level_select() argument
1786 switch (ts->throt_cfgs[throt].cpu_throt_level) { in throttlectl_cpu_level_select()
1801 r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); in throttlectl_cpu_level_select()
1805 writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); in throttlectl_cpu_level_select()
1809 writel(r, ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU)); in throttlectl_cpu_level_select()
1825 enum soctherm_throttle_id throt) in throttlectl_cpu_mn() argument
1831 depth = ts->throt_cfgs[throt].cpu_throt_depth; in throttlectl_cpu_mn()
1834 r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); in throttlectl_cpu_mn()
1838 writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); in throttlectl_cpu_mn()
1840 r = readl(ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU)); in throttlectl_cpu_mn()
1843 writel(r, ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU)); in throttlectl_cpu_mn()
1857 enum soctherm_throttle_id throt) in throttlectl_gpu_level_select() argument
1861 level = ts->throt_cfgs[throt].gpu_throt_level; in throttlectl_gpu_level_select()
1863 r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_GPU)); in throttlectl_gpu_level_select()
1866 writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_GPU)); in throttlectl_gpu_level_select()
1870 enum soctherm_throttle_id throt) in soctherm_oc_cfg_program() argument
1873 struct soctherm_oc_cfg *oc = &ts->throt_cfgs[throt].oc_cfg; in soctherm_oc_cfg_program()
1882 writel(r, ts->regs + ALARM_CFG(throt)); in soctherm_oc_cfg_program()
1883 writel(oc->throt_period, ts->regs + ALARM_THROTTLE_PERIOD(throt)); in soctherm_oc_cfg_program()
1884 writel(oc->alarm_cnt_thresh, ts->regs + ALARM_CNT_THRESHOLD(throt)); in soctherm_oc_cfg_program()
1885 writel(oc->alarm_filter, ts->regs + ALARM_FILTER(throt)); in soctherm_oc_cfg_program()
1886 soctherm_oc_intr_enable(ts, throt, oc->intr_en); in soctherm_oc_cfg_program()
1900 enum soctherm_throttle_id throt) in soctherm_throttle_program() argument
1903 struct soctherm_throt_cfg stc = ts->throt_cfgs[throt]; in soctherm_throttle_program()
1908 if ((throt >= THROTTLE_OC1) && (soctherm_oc_cfg_program(ts, throt))) in soctherm_throttle_program()
1913 throttlectl_cpu_level_select(ts, throt); in soctherm_throttle_program()
1915 throttlectl_cpu_mn(ts, throt); in soctherm_throttle_program()
1917 throttlectl_gpu_level_select(ts, throt); in soctherm_throttle_program()
1920 writel(r, ts->regs + THROT_PRIORITY_CTRL(throt)); in soctherm_throttle_program()
1923 writel(r, ts->regs + THROT_DELAY_CTRL(throt)); in soctherm_throttle_program()