Lines Matching +full:dynamic +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-or-later
42 #include <asm/cell-regs.h>
51 .attr = { .name = __stringify(_name), .mode = _mode }, \
63 return ((temp - TEMP_MIN) >> 1) & 0x3f; in temp_to_reg()
82 value.val = in_be64(&reg->val); in spu_read_register_value()
84 return value.spe[spu->spe_id]; in spu_read_register_value()
95 value = spu_read_register_value(dev, &pmd_regs->ts_ctsr1); in spu_show_temp()
104 value = in_be64(&pmd_regs->tm_tpr.val); in show_throttle()
122 return -EINVAL; in store_throttle()
126 reg_value = in_be64(&pmd_regs->tm_tpr.val); in store_throttle()
133 out_be64(&pmd_regs->tm_tpr.val, reg_value); in store_throttle()
178 pmd_regs = cbe_get_cpu_pmd_regs(dev->id); in ppe_show_temp()
179 value = in_be64(&pmd_regs->ts_ctsr2); in ppe_show_temp()
205 return show_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, 32); in ppe_show_throttle_end()
211 return show_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, 40); in ppe_show_throttle_begin()
217 return show_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, 48); in ppe_show_throttle_full_stop()
223 return store_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, size, 32); in ppe_store_throttle_end()
229 return store_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, size, 40); in ppe_store_throttle_begin()
235 return store_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, size, 48); in ppe_store_throttle_full_stop()
240 .attr = {.name = "temperature", .mode = 0400 },
263 .attr = {.name = "temperature0", .mode = 0400 },
268 .attr = {.name = "temperature1", .mode = 0400 },
306 * 1F - no full stop in init_default_values()
307 * 08 - dynamic throttling starts if over 80 degrees in init_default_values()
308 * 03 - dynamic throttling ceases if below 70 degrees */ in init_default_values()
311 * 10 - full stopped when over 96 degrees in init_default_values()
312 * 08 - dynamic throttling starts if over 80 degrees in init_default_values()
313 * 03 - dynamic throttling ceases if below 70 degrees in init_default_values()
319 * 10 - stop 16 of 32 cycles in init_default_values()
323 * 10 - stop 16 of 32 cycles in init_default_values()
329 * 4 - normal operation in init_default_values()
333 * 4 - normal operation in init_default_values()
343 return -EINVAL; in init_default_values()
346 pmd_regs = cbe_get_cpu_pmd_regs(dev->id); in init_default_values()
350 return -EINVAL; in init_default_values()
353 out_be64(&pmd_regs->tm_str2, str2); in init_default_values()
354 out_be64(&pmd_regs->tm_str1.val, str1.val); in init_default_values()
355 out_be64(&pmd_regs->tm_tpr.val, tpr.val); in init_default_values()
356 out_be64(&pmd_regs->tm_cr1.val, cr1.val); in init_default_values()
357 out_be64(&pmd_regs->tm_cr2, cr2); in init_default_values()