Home
last modified time | relevance | path

Searched refs:rps (Results 1 – 25 of 63) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_rps.c26 static struct intel_gt *rps_to_gt(struct intel_rps *rps) in rps_to_gt() argument
28 return container_of(rps, struct intel_gt, rps); in rps_to_gt()
31 static struct drm_i915_private *rps_to_i915(struct intel_rps *rps) in rps_to_i915() argument
33 return rps_to_gt(rps)->i915; in rps_to_i915()
36 static struct intel_uncore *rps_to_uncore(struct intel_rps *rps) in rps_to_uncore() argument
38 return rps_to_gt(rps)->uncore; in rps_to_uncore()
41 static u32 rps_pm_sanitize_mask(struct intel_rps *rps, u32 mask) in rps_pm_sanitize_mask() argument
43 return mask & ~rps->pm_intrmsk_mbz; in rps_pm_sanitize_mask()
53 struct intel_rps *rps = from_timer(rps, t, timer); in rps_timer() local
60 for_each_engine(engine, rps_to_gt(rps), id) { in rps_timer()
[all …]
Dintel_rps.h14 void intel_rps_init_early(struct intel_rps *rps);
15 void intel_rps_init(struct intel_rps *rps);
16 void intel_rps_sanitize(struct intel_rps *rps);
18 void intel_rps_driver_register(struct intel_rps *rps);
19 void intel_rps_driver_unregister(struct intel_rps *rps);
21 void intel_rps_enable(struct intel_rps *rps);
22 void intel_rps_disable(struct intel_rps *rps);
24 void intel_rps_park(struct intel_rps *rps);
25 void intel_rps_unpark(struct intel_rps *rps);
28 int intel_rps_set(struct intel_rps *rps, u8 val);
[all …]
Dselftest_rps.c147 static u8 wait_for_freq(struct intel_rps *rps, u8 freq, int timeout_ms) in wait_for_freq() argument
162 act = read_cagf(rps); in wait_for_freq()
184 static u8 rps_set_check(struct intel_rps *rps, u8 freq) in rps_set_check() argument
186 mutex_lock(&rps->lock); in rps_set_check()
187 GEM_BUG_ON(!intel_rps_is_active(rps)); in rps_set_check()
188 intel_rps_set(rps, freq); in rps_set_check()
189 GEM_BUG_ON(rps->last_freq != freq); in rps_set_check()
190 mutex_unlock(&rps->lock); in rps_set_check()
192 return wait_for_freq(rps, freq, 50); in rps_set_check()
195 static void show_pstate_limits(struct intel_rps *rps) in show_pstate_limits() argument
[all …]
Ddebugfs_gt_pm.c247 struct intel_rps *rps = &gt->rps; in frequency_show() local
282 intel_gpu_freq(rps, (freq_sts >> 8) & 0xff)); in frequency_show()
285 intel_gpu_freq(rps, rps->cur_freq)); in frequency_show()
288 intel_gpu_freq(rps, rps->max_freq)); in frequency_show()
291 intel_gpu_freq(rps, rps->min_freq)); in frequency_show()
294 intel_gpu_freq(rps, rps->idle_freq)); in frequency_show()
297 intel_gpu_freq(rps, rps->efficient_freq)); in frequency_show()
332 reqf = intel_gpu_freq(rps, reqf); in frequency_show()
352 cagf = intel_rps_read_actual_frequency(rps); in frequency_show()
392 rps->pm_intrmsk_mbz); in frequency_show()
[all …]
Dintel_llc.c51 struct intel_rps *rps = &llc_to_gt(llc)->rps; in get_ia_constants() local
56 if (rps->max_freq <= rps->min_freq) in get_ia_constants()
66 consts->min_gpu_freq = rps->min_freq; in get_ia_constants()
67 consts->max_gpu_freq = rps->max_freq; in get_ia_constants()
Dselftest_llc.c27 struct intel_rps *rps = &llc_to_gt(llc)->rps; in gen6_verify_ring_freq() local
48 intel_gpu_freq(rps, gpu_freq * (INTEL_GEN(i915) >= 9 ? GEN9_FREQ_SCALER : 1)), in gen6_verify_ring_freq()
58 intel_gpu_freq(rps, gpu_freq * (INTEL_GEN(i915) >= 9 ? GEN9_FREQ_SCALER : 1)), in gen6_verify_ring_freq()
Dintel_gt_pm.c66 intel_rps_unpark(&gt->rps); in __gt_unpark()
86 intel_rps_park(&gt->rps); in __gt_park()
119 intel_rps_init(&gt->rps); in intel_gt_pm_init()
174 intel_rps_sanitize(&gt->rps); in gt_sanitize()
222 intel_rps_enable(&gt->rps); in intel_gt_resume()
316 intel_rps_disable(&gt->rps); in intel_gt_suspend_late()
Dselftest_engine_cs.c29 atomic_inc(&gt->rps.num_waiters); in perf_begin()
30 schedule_work(&gt->rps.work); in perf_begin()
31 flush_work(&gt->rps.work); in perf_begin()
36 atomic_dec(&gt->rps.num_waiters); in perf_end()
/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-oxnas-rps.c62 struct oxnas_rps_timer *rps = dev_id; in oxnas_rps_timer_irq() local
64 writel_relaxed(0, rps->clkevt_base + TIMER_CLRINT_REG); in oxnas_rps_timer_irq()
66 rps->clkevent.event_handler(&rps->clkevent); in oxnas_rps_timer_irq()
71 static void oxnas_rps_timer_config(struct oxnas_rps_timer *rps, in oxnas_rps_timer_config() argument
75 uint32_t cfg = rps->timer_prescaler; in oxnas_rps_timer_config()
83 writel_relaxed(period, rps->clkevt_base + TIMER_LOAD_REG); in oxnas_rps_timer_config()
84 writel_relaxed(cfg, rps->clkevt_base + TIMER_CTRL_REG); in oxnas_rps_timer_config()
89 struct oxnas_rps_timer *rps = in oxnas_rps_timer_shutdown() local
92 oxnas_rps_timer_config(rps, 0, 0); in oxnas_rps_timer_shutdown()
99 struct oxnas_rps_timer *rps = in oxnas_rps_timer_set_periodic() local
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_sysfs.c264 struct intel_rps *rps = &i915->gt.rps; in gt_act_freq_mhz_show() local
267 intel_rps_read_actual_frequency(rps)); in gt_act_freq_mhz_show()
274 struct intel_rps *rps = &i915->gt.rps; in gt_cur_freq_mhz_show() local
277 intel_gpu_freq(rps, rps->cur_freq)); in gt_cur_freq_mhz_show()
283 struct intel_rps *rps = &i915->gt.rps; in gt_boost_freq_mhz_show() local
286 intel_gpu_freq(rps, rps->boost_freq)); in gt_boost_freq_mhz_show()
294 struct intel_rps *rps = &dev_priv->gt.rps; in gt_boost_freq_mhz_store() local
304 val = intel_freq_opcode(rps, val); in gt_boost_freq_mhz_store()
305 if (val < rps->min_freq || val > rps->max_freq) in gt_boost_freq_mhz_store()
308 mutex_lock(&rps->lock); in gt_boost_freq_mhz_store()
[all …]
Di915_debugfs.c787 struct intel_rps *rps = &dev_priv->gt.rps; in i915_frequency_info() local
823 intel_gpu_freq(rps, (freq_sts >> 8) & 0xff)); in i915_frequency_info()
826 intel_gpu_freq(rps, rps->cur_freq)); in i915_frequency_info()
829 intel_gpu_freq(rps, rps->max_freq)); in i915_frequency_info()
832 intel_gpu_freq(rps, rps->min_freq)); in i915_frequency_info()
835 intel_gpu_freq(rps, rps->idle_freq)); in i915_frequency_info()
839 intel_gpu_freq(rps, rps->efficient_freq)); in i915_frequency_info()
873 reqf = intel_gpu_freq(rps, reqf); in i915_frequency_info()
886 cagf = intel_rps_read_actual_frequency(rps); in i915_frequency_info()
926 rps->pm_intrmsk_mbz); in i915_frequency_info()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Drs780_dpm.c35 static struct igp_ps *rs780_get_ps(struct radeon_ps *rps) in rs780_get_ps() argument
37 struct igp_ps *ps = rps->ps_priv; in rs780_get_ps()
719 struct radeon_ps *rps, in rs780_parse_pplib_non_clock_info() argument
723 rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); in rs780_parse_pplib_non_clock_info()
724 rps->class = le16_to_cpu(non_clock_info->usClassification); in rs780_parse_pplib_non_clock_info()
725 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); in rs780_parse_pplib_non_clock_info()
728 rps->vclk = le32_to_cpu(non_clock_info->ulVCLK); in rs780_parse_pplib_non_clock_info()
729 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in rs780_parse_pplib_non_clock_info()
731 rps->vclk = 0; in rs780_parse_pplib_non_clock_info()
732 rps->dclk = 0; in rs780_parse_pplib_non_clock_info()
[all …]
Dtrinity_dpm.c348 static struct trinity_ps *trinity_get_ps(struct radeon_ps *rps) in trinity_get_ps() argument
350 struct trinity_ps *ps = rps->ps_priv; in trinity_get_ps()
870 struct radeon_ps *rps) in trinity_setup_uvd_clock_table() argument
872 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_setup_uvd_clock_table()
896 static bool trinity_uvd_clocks_zero(struct radeon_ps *rps) in trinity_uvd_clocks_zero() argument
898 if ((rps->vclk == 0) && (rps->dclk == 0)) in trinity_uvd_clocks_zero()
1068 struct radeon_ps *rps) in trinity_update_current_ps() argument
1070 struct trinity_ps *new_ps = trinity_get_ps(rps); in trinity_update_current_ps()
1073 pi->current_rps = *rps; in trinity_update_current_ps()
1079 struct radeon_ps *rps) in trinity_update_requested_ps() argument
[all …]
Dsumo_dpm.c74 static struct sumo_ps *sumo_get_ps(struct radeon_ps *rps) in sumo_get_ps() argument
76 struct sumo_ps *ps = rps->ps_priv; in sumo_get_ps()
342 struct radeon_ps *rps) in sumo_program_bsp() argument
345 struct sumo_ps *ps = sumo_get_ps(rps); in sumo_program_bsp()
385 struct radeon_ps *rps) in sumo_program_at() argument
388 struct sumo_ps *ps = sumo_get_ps(rps); in sumo_program_at()
664 struct radeon_ps *rps) in sumo_patch_boost_state() argument
667 struct sumo_ps *new_ps = sumo_get_ps(rps); in sumo_patch_boost_state()
714 struct radeon_ps *rps, in sumo_enable_boost() argument
717 struct sumo_ps *new_ps = sumo_get_ps(rps); in sumo_enable_boost()
[all …]
Drv770_dpm.c47 struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps) in rv770_get_ps() argument
49 struct rv7xx_ps *ps = rps->ps_priv; in rv770_get_ps()
2144 struct radeon_ps *rps, in rv7xx_parse_pplib_non_clock_info() argument
2148 rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); in rv7xx_parse_pplib_non_clock_info()
2149 rps->class = le16_to_cpu(non_clock_info->usClassification); in rv7xx_parse_pplib_non_clock_info()
2150 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); in rv7xx_parse_pplib_non_clock_info()
2153 rps->vclk = le32_to_cpu(non_clock_info->ulVCLK); in rv7xx_parse_pplib_non_clock_info()
2154 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in rv7xx_parse_pplib_non_clock_info()
2156 rps->vclk = 0; in rv7xx_parse_pplib_non_clock_info()
2157 rps->dclk = 0; in rv7xx_parse_pplib_non_clock_info()
[all …]
Drv6xx_dpm.c36 static struct rv6xx_ps *rv6xx_get_ps(struct radeon_ps *rps) in rv6xx_get_ps() argument
38 struct rv6xx_ps *ps = rps->ps_priv; in rv6xx_get_ps()
1795 struct radeon_ps *rps, in rv6xx_parse_pplib_non_clock_info() argument
1798 rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); in rv6xx_parse_pplib_non_clock_info()
1799 rps->class = le16_to_cpu(non_clock_info->usClassification); in rv6xx_parse_pplib_non_clock_info()
1800 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); in rv6xx_parse_pplib_non_clock_info()
1802 if (r600_is_uvd_state(rps->class, rps->class2)) { in rv6xx_parse_pplib_non_clock_info()
1803 rps->vclk = RV6XX_DEFAULT_VCLK_FREQ; in rv6xx_parse_pplib_non_clock_info()
1804 rps->dclk = RV6XX_DEFAULT_DCLK_FREQ; in rv6xx_parse_pplib_non_clock_info()
1806 rps->vclk = 0; in rv6xx_parse_pplib_non_clock_info()
[all …]
Dni_dpm.c734 struct ni_ps *ni_get_ps(struct radeon_ps *rps) in ni_get_ps() argument
736 struct ni_ps *ps = rps->ps_priv; in ni_get_ps()
787 struct radeon_ps *rps) in ni_apply_state_adjust_rules() argument
789 struct ni_ps *ps = ni_get_ps(rps); in ni_apply_state_adjust_rules()
3560 struct radeon_ps *rps) in ni_update_current_ps() argument
3562 struct ni_ps *new_ps = ni_get_ps(rps); in ni_update_current_ps()
3566 eg_pi->current_rps = *rps; in ni_update_current_ps()
3572 struct radeon_ps *rps) in ni_update_requested_ps() argument
3574 struct ni_ps *new_ps = ni_get_ps(rps); in ni_update_requested_ps()
3578 eg_pi->requested_rps = *rps; in ni_update_requested_ps()
[all …]
Dkv_dpm.c243 static struct kv_ps *kv_get_ps(struct radeon_ps *rps) in kv_get_ps() argument
245 struct kv_ps *ps = rps->ps_priv; in kv_get_ps()
1140 struct radeon_ps *rps) in kv_update_current_ps() argument
1142 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps()
1145 pi->current_rps = *rps; in kv_update_current_ps()
1151 struct radeon_ps *rps) in kv_update_requested_ps() argument
1153 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps()
1156 pi->requested_rps = *rps; in kv_update_requested_ps()
2584 struct radeon_ps *rps, in kv_parse_pplib_non_clock_info() argument
2588 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_non_clock_info()
[all …]
Dbtc_dpm.c51 struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps);
2096 struct radeon_ps *rps) in btc_apply_state_adjust_rules() argument
2098 struct rv7xx_ps *ps = rv770_get_ps(rps); in btc_apply_state_adjust_rules()
2259 struct radeon_ps *rps) in btc_update_current_ps() argument
2261 struct rv7xx_ps *new_ps = rv770_get_ps(rps); in btc_update_current_ps()
2264 eg_pi->current_rps = *rps; in btc_update_current_ps()
2270 struct radeon_ps *rps) in btc_update_requested_ps() argument
2272 struct rv7xx_ps *new_ps = rv770_get_ps(rps); in btc_update_requested_ps()
2275 eg_pi->requested_rps = *rps; in btc_update_requested_ps()
2739 struct radeon_ps *rps = &eg_pi->current_rps; in btc_dpm_debugfs_print_current_performance_level() local
[all …]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Ds626.c1280 u32 *rps; in s626_reset_adc() local
1290 rps = (u32 *)devpriv->rps_buf.logical_base; in s626_reset_adc()
1299 *rps++ = S626_RPS_PAUSE | S626_RPS_SIGADC; in s626_reset_adc()
1300 *rps++ = S626_RPS_CLRSIGNAL | S626_RPS_SIGADC; in s626_reset_adc()
1312 *rps++ = S626_RPS_LDREG | (S626_P_DEBICMD >> 2); in s626_reset_adc()
1313 *rps++ = S626_DEBI_CMD_WRWORD | S626_LP_GSEL; in s626_reset_adc()
1314 *rps++ = S626_RPS_LDREG | (S626_P_DEBIAD >> 2); in s626_reset_adc()
1316 *rps++ = S626_GSEL_BIPOLAR5V; /* arbitrary immediate data value. */ in s626_reset_adc()
1317 *rps++ = S626_RPS_CLRSIGNAL | S626_RPS_DEBI; in s626_reset_adc()
1320 *rps++ = S626_RPS_UPLOAD | S626_RPS_DEBI; in s626_reset_adc()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/timer/
Doxsemi,rps-timer.txt5 - compatible: Should be "oxsemi,ox810se-rps-timer" or "oxsemi,ox820-rps-timer"
13 compatible = "oxsemi,ox810se-rps-timer";
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/
Dkv_dpm.c370 static struct kv_ps *kv_get_ps(struct amdgpu_ps *rps) in kv_get_ps() argument
372 struct kv_ps *ps = rps->ps_priv; in kv_get_ps()
1223 struct amdgpu_ps *rps) in kv_update_current_ps() argument
1225 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps()
1228 pi->current_rps = *rps; in kv_update_current_ps()
1235 struct amdgpu_ps *rps) in kv_update_requested_ps() argument
1237 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps()
1240 pi->requested_rps = *rps; in kv_update_requested_ps()
2641 struct amdgpu_ps *rps, in kv_parse_pplib_non_clock_info() argument
2645 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_non_clock_info()
[all …]
/kernel/linux/linux-5.10/kernel/
Dtest_kprobes.c242 struct kretprobe *rps[2] = {&rp, &rp2}; in test_kretprobes() local
247 ret = register_kretprobes(rps, 2); in test_kretprobes()
266 unregister_kretprobes(rps, 2); in test_kretprobes()
/kernel/linux/linux-5.10/include/linux/
Dkprobes.h386 int register_kretprobes(struct kretprobe **rps, int num);
387 void unregister_kretprobes(struct kretprobe **rps, int num);
442 static inline int register_kretprobes(struct kretprobe **rps, int num) in register_kretprobes() argument
449 static inline void unregister_kretprobes(struct kretprobe **rps, int num) in unregister_kretprobes() argument
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dox820.dtsi231 rps@400000 {
238 compatible = "oxsemi,ox820-rps-irq", "oxsemi,ox810se-rps-irq";
248 compatible = "oxsemi,ox820-rps-timer";

123