Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rps.c36 static struct intel_gt *rps_to_gt(struct intel_rps *rps) in rps_to_gt() argument
38 return container_of(rps, struct intel_gt, rps); in rps_to_gt()
41 static struct drm_i915_private *rps_to_i915(struct intel_rps *rps) in rps_to_i915() argument
43 return rps_to_gt(rps)->i915; in rps_to_i915()
46 static struct intel_uncore *rps_to_uncore(struct intel_rps *rps) in rps_to_uncore() argument
48 return rps_to_gt(rps)->uncore; in rps_to_uncore()
51 static struct intel_guc_slpc *rps_to_slpc(struct intel_rps *rps) in rps_to_slpc() argument
53 struct intel_gt *gt = rps_to_gt(rps); in rps_to_slpc()
58 static bool rps_uses_slpc(struct intel_rps *rps) in rps_uses_slpc() argument
60 struct intel_gt *gt = rps_to_gt(rps); in rps_uses_slpc()
[all …]
H A Dintel_rps.h18 void intel_rps_init_early(struct intel_rps *rps);
19 void intel_rps_init(struct intel_rps *rps);
20 void intel_rps_sanitize(struct intel_rps *rps);
22 void intel_rps_driver_register(struct intel_rps *rps);
23 void intel_rps_driver_unregister(struct intel_rps *rps);
25 void intel_rps_enable(struct intel_rps *rps);
26 void intel_rps_disable(struct intel_rps *rps);
28 void intel_rps_park(struct intel_rps *rps);
29 void intel_rps_unpark(struct intel_rps *rps);
31 void intel_rps_dec_waiters(struct intel_rps *rps);
[all …]
H A Dselftest_rps.c151 static u8 wait_for_freq(struct intel_rps *rps, u8 freq, int timeout_ms) in wait_for_freq() argument
166 act = read_cagf(rps); in wait_for_freq()
188 static u8 rps_set_check(struct intel_rps *rps, u8 freq) in rps_set_check() argument
190 mutex_lock(&rps->lock); in rps_set_check()
191 GEM_BUG_ON(!intel_rps_is_active(rps)); in rps_set_check()
192 if (wait_for(!intel_rps_set(rps, freq), 50)) { in rps_set_check()
193 mutex_unlock(&rps->lock); in rps_set_check()
196 GEM_BUG_ON(rps->last_freq != freq); in rps_set_check()
197 mutex_unlock(&rps->lock); in rps_set_check()
199 return wait_for_freq(rps, freq, 50); in rps_set_check()
[all …]
H A Dintel_gt_pm_debugfs.c343 struct intel_rps *rps = &gt->rps; in intel_gt_pm_frequency_dump() local
376 intel_gpu_freq(rps, (freq_sts >> 8) & 0xff)); in intel_gt_pm_frequency_dump()
379 intel_gpu_freq(rps, rps->cur_freq)); in intel_gt_pm_frequency_dump()
382 intel_gpu_freq(rps, rps->max_freq)); in intel_gt_pm_frequency_dump()
385 intel_gpu_freq(rps, rps->min_freq)); in intel_gt_pm_frequency_dump()
388 intel_gpu_freq(rps, rps->idle_freq)); in intel_gt_pm_frequency_dump()
391 intel_gpu_freq(rps, rps->efficient_freq)); in intel_gt_pm_frequency_dump()
393 gen6_rps_frequency_dump(rps, p); in intel_gt_pm_frequency_dump()
417 struct intel_rps *rps = &gt->rps; in llc_show() local
426 min_gpu_freq = rps->min_freq; in llc_show()
[all …]
H A Dintel_gt_sysfs_pm.c315 return intel_rps_read_actual_frequency(&gt->rps); in __act_freq_mhz_show()
320 return intel_rps_get_requested_frequency(&gt->rps); in __cur_freq_mhz_show()
325 return intel_rps_get_boost_frequency(&gt->rps); in __boost_freq_mhz_show()
330 return intel_rps_set_boost_frequency(&gt->rps, val); in __boost_freq_mhz_store()
335 return intel_rps_get_rp0_frequency(&gt->rps); in __RP0_freq_mhz_show()
340 return intel_rps_get_rpn_frequency(&gt->rps); in __RPn_freq_mhz_show()
345 return intel_rps_get_rp1_frequency(&gt->rps); in __RP1_freq_mhz_show()
350 return intel_rps_get_max_frequency(&gt->rps); in __max_freq_mhz_show()
355 return intel_rps_set_max_frequency(&gt->rps, val); in __set_max_freq()
360 return intel_rps_get_min_frequency(&gt->rps); in __min_freq_mhz_show()
[all …]
H A Dselftest_slpc.c105 *freq = intel_rps_read_actual_frequency(&gt->rps); in measure_power_at_freq()
106 *power = measure_power(&gt->rps, freq); in measure_power_at_freq()
111 static int vary_max_freq(struct intel_guc_slpc *slpc, struct intel_rps *rps, in vary_max_freq() argument
127 req_freq = intel_rps_read_punit_req_frequency(rps); in vary_max_freq()
136 act_freq = intel_rps_read_actual_frequency(rps); in vary_max_freq()
147 static int vary_min_freq(struct intel_guc_slpc *slpc, struct intel_rps *rps, in vary_min_freq() argument
163 req_freq = intel_rps_read_punit_req_frequency(rps); in vary_min_freq()
172 act_freq = intel_rps_read_actual_frequency(rps); in vary_min_freq()
235 static int max_granted_freq(struct intel_guc_slpc *slpc, struct intel_rps *rps, u32 *max_act_freq) in max_granted_freq() argument
237 struct intel_gt *gt = rps_to_gt(rps); in max_granted_freq()
[all …]
H A Dselftest_llc.c25 struct intel_rps *rps = &llc_to_gt(llc)->rps; in gen6_verify_ring_freq() local
45 intel_gpu_freq(rps, gpu_freq * (GRAPHICS_VER(i915) >= 9 ? GEN9_FREQ_SCALER : 1)), in gen6_verify_ring_freq()
55 intel_gpu_freq(rps, gpu_freq * (GRAPHICS_VER(i915) >= 9 ? GEN9_FREQ_SCALER : 1)), in gen6_verify_ring_freq()
H A Dintel_llc.c54 struct intel_rps *rps = &llc_to_gt(llc)->rps; in get_ia_constants() local
66 consts->min_gpu_freq = intel_rps_get_min_raw_freq(rps); in get_ia_constants()
67 consts->max_gpu_freq = intel_rps_get_max_raw_freq(rps); in get_ia_constants()
H A Dintel_gt_pm.c91 intel_rps_unpark(&gt->rps); in __gt_unpark()
115 intel_rps_park(&gt->rps); in __gt_park()
154 intel_rps_init(&gt->rps); in intel_gt_pm_init()
210 intel_rps_sanitize(&gt->rps); in gt_sanitize()
275 intel_rps_enable(&gt->rps); in intel_gt_resume()
370 intel_rps_disable(&gt->rps); in intel_gt_suspend_late()
H A Dselftest_engine_cs.c29 atomic_inc(&gt->rps.num_waiters); in perf_begin()
30 queue_work(gt->i915->unordered_wq, &gt->rps.work); in perf_begin()
31 flush_work(&gt->rps.work); in perf_begin()
38 atomic_dec(&gt->rps.num_waiters); in perf_end()
/linux/drivers/gpu/drm/i915/
H A Di915_debugfs.c384 struct intel_rps *rps = &to_gt(dev_priv)->rps; in i915_rps_boost_info() local
387 str_yes_no(intel_rps_is_enabled(rps))); in i915_rps_boost_info()
389 str_yes_no(intel_rps_is_active(rps))); in i915_rps_boost_info()
392 atomic_read(&rps->num_waiters)); in i915_rps_boost_info()
393 seq_printf(m, "Interactive? %d\n", READ_ONCE(rps->power.interactive)); in i915_rps_boost_info()
395 intel_gpu_freq(rps, rps->cur_freq), in i915_rps_boost_info()
396 intel_rps_read_actual_frequency(rps)); in i915_rps_boost_info()
398 intel_gpu_freq(rps, rps->min_freq), in i915_rps_boost_info()
399 intel_gpu_freq(rps, rps->min_freq_softlimit), in i915_rps_boost_info()
400 intel_gpu_freq(rps, rps->max_freq_softlimit), in i915_rps_boost_info()
[all …]
/linux/drivers/gpu/drm/radeon/
H A 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()
718 struct radeon_ps *rps, in rs780_parse_pplib_non_clock_info() argument
722 rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); in rs780_parse_pplib_non_clock_info()
723 rps->class = le16_to_cpu(non_clock_info->usClassification); in rs780_parse_pplib_non_clock_info()
724 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); in rs780_parse_pplib_non_clock_info()
727 rps->vclk = le32_to_cpu(non_clock_info->ulVCLK); in rs780_parse_pplib_non_clock_info()
728 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in rs780_parse_pplib_non_clock_info()
730 rps->vclk = 0; in rs780_parse_pplib_non_clock_info()
731 rps->dclk = 0; in rs780_parse_pplib_non_clock_info()
[all …]
H A Dsumo_dpm.c72 static struct sumo_ps *sumo_get_ps(struct radeon_ps *rps) in sumo_get_ps() argument
74 struct sumo_ps *ps = rps->ps_priv; in sumo_get_ps()
340 struct radeon_ps *rps) in sumo_program_bsp() argument
343 struct sumo_ps *ps = sumo_get_ps(rps); in sumo_program_bsp()
383 struct radeon_ps *rps) in sumo_program_at() argument
386 struct sumo_ps *ps = sumo_get_ps(rps); in sumo_program_at()
662 struct radeon_ps *rps) in sumo_patch_boost_state() argument
665 struct sumo_ps *new_ps = sumo_get_ps(rps); in sumo_patch_boost_state()
712 struct radeon_ps *rps, in sumo_enable_boost() argument
715 struct sumo_ps *new_ps = sumo_get_ps(rps); in sumo_enable_boost()
[all …]
H A Dtrinity_dpm.c300 static struct trinity_ps *trinity_get_ps(struct radeon_ps *rps) in trinity_get_ps() argument
302 struct trinity_ps *ps = rps->ps_priv; in trinity_get_ps()
822 struct radeon_ps *rps) in trinity_setup_uvd_clock_table() argument
824 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_setup_uvd_clock_table()
848 static bool trinity_uvd_clocks_zero(struct radeon_ps *rps) in trinity_uvd_clocks_zero() argument
850 if ((rps->vclk == 0) && (rps->dclk == 0)) in trinity_uvd_clocks_zero()
1020 struct radeon_ps *rps) in trinity_update_current_ps() argument
1022 struct trinity_ps *new_ps = trinity_get_ps(rps); in trinity_update_current_ps()
1025 pi->current_rps = *rps; in trinity_update_current_ps()
1031 struct radeon_ps *rps) in trinity_update_requested_ps() argument
[all …]
H A Drv770_dpm.c49 struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps) in rv770_get_ps() argument
51 struct rv7xx_ps *ps = rps->ps_priv; in rv770_get_ps()
2146 struct radeon_ps *rps, in rv7xx_parse_pplib_non_clock_info() argument
2150 rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); in rv7xx_parse_pplib_non_clock_info()
2151 rps->class = le16_to_cpu(non_clock_info->usClassification); in rv7xx_parse_pplib_non_clock_info()
2152 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); in rv7xx_parse_pplib_non_clock_info()
2155 rps->vclk = le32_to_cpu(non_clock_info->ulVCLK); in rv7xx_parse_pplib_non_clock_info()
2156 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in rv7xx_parse_pplib_non_clock_info()
2158 rps->vclk = 0; in rv7xx_parse_pplib_non_clock_info()
2159 rps->dclk = 0; in rv7xx_parse_pplib_non_clock_info()
[all …]
H A 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 …]
H A Dkv_dpm.c143 static struct kv_ps *kv_get_ps(struct radeon_ps *rps) in kv_get_ps() argument
145 struct kv_ps *ps = rps->ps_priv; in kv_get_ps()
981 struct radeon_ps *rps) in kv_update_current_ps() argument
983 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps()
986 pi->current_rps = *rps; in kv_update_current_ps()
992 struct radeon_ps *rps) in kv_update_requested_ps() argument
994 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps()
997 pi->requested_rps = *rps; in kv_update_requested_ps()
2380 struct radeon_ps *rps, in kv_parse_pplib_non_clock_info() argument
2384 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_non_clock_info()
[all …]
H A Dni_dpm.c733 struct ni_ps *ni_get_ps(struct radeon_ps *rps) in ni_get_ps() argument
735 struct ni_ps *ps = rps->ps_priv; in ni_get_ps()
786 struct radeon_ps *rps) in ni_apply_state_adjust_rules() argument
788 struct ni_ps *ps = ni_get_ps(rps); in ni_apply_state_adjust_rules()
3562 struct radeon_ps *rps) in ni_update_current_ps() argument
3564 struct ni_ps *new_ps = ni_get_ps(rps); in ni_update_current_ps()
3568 eg_pi->current_rps = *rps; in ni_update_current_ps()
3574 struct radeon_ps *rps) in ni_update_requested_ps() argument
3576 struct ni_ps *new_ps = ni_get_ps(rps); in ni_update_requested_ps()
3580 eg_pi->requested_rps = *rps; in ni_update_requested_ps()
[all …]
H A Dni_dpm.h233 struct radeon_ps *rps);
235 struct radeon_ps *rps);
247 struct ni_ps *ni_get_ps(struct radeon_ps *rps);
/linux/drivers/comedi/drivers/
H A Ds626.c1279 u32 *rps; in s626_reset_adc() local
1289 rps = (u32 *)devpriv->rps_buf.logical_base; in s626_reset_adc()
1298 *rps++ = S626_RPS_PAUSE | S626_RPS_SIGADC; in s626_reset_adc()
1299 *rps++ = S626_RPS_CLRSIGNAL | S626_RPS_SIGADC; in s626_reset_adc()
1311 *rps++ = S626_RPS_LDREG | (S626_P_DEBICMD >> 2); in s626_reset_adc()
1312 *rps++ = S626_DEBI_CMD_WRWORD | S626_LP_GSEL; in s626_reset_adc()
1313 *rps++ = S626_RPS_LDREG | (S626_P_DEBIAD >> 2); in s626_reset_adc()
1315 *rps++ = S626_GSEL_BIPOLAR5V; /* arbitrary immediate data value. */ in s626_reset_adc()
1316 *rps++ = S626_RPS_CLRSIGNAL | S626_RPS_DEBI; in s626_reset_adc()
1319 *rps++ = S626_RPS_UPLOAD | S626_RPS_DEBI; in s626_reset_adc()
[all …]
/linux/tools/perf/arch/x86/util/
H A Diostat.c70 struct iio_root_port **rps; member
104 zfree(&list->rps[idx]); in iio_root_ports_list_free()
105 zfree(&list->rps); in iio_root_ports_list_free()
118 rp = list->rps[idx]; in iio_root_port_find_by_notation()
133 tmp_buf = realloc(list->rps, in iio_root_ports_list_insert()
134 list->nr_entries * sizeof(*list->rps)); in iio_root_ports_list_insert()
140 list->rps = tmp_buf; in iio_root_ports_list_insert()
270 (*list)->rps[rp->idx] = NULL; in iio_root_ports_list_filter()
318 list->rps[idx]->pmu_idx, list->rps[idx]->pmu_idx, in iostat_event_group()
319 list->rps[idx]->pmu_idx, list->rps[idx]->pmu_idx); in iostat_event_group()
[all …]
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_fw.c188 before_freq = intel_rps_read_actual_frequency(&gt->rps); in guc_wait_ucode()
196 count, intel_rps_read_actual_frequency(&gt->rps), status, in guc_wait_ucode()
208 status, delta_ms, intel_rps_read_actual_frequency(&gt->rps), ret); in guc_wait_ucode()
263 intel_rps_read_actual_frequency(&gt->rps), before_freq, in guc_wait_ucode()
267 delta_ms, intel_rps_read_actual_frequency(&gt->rps), in guc_wait_ucode()
/linux/lib/
H A Dtest_kprobes.c226 struct kretprobe *rps[2] = {&rp, &rp2}; in test_kretprobes() local
232 KUNIT_EXPECT_EQ(test, 0, register_kretprobes(rps, 2)); in test_kretprobes()
241 unregister_kretprobes(rps, 2); in test_kretprobes()
352 struct kretprobe *rps[2] = {&rp3, &rp4}; in test_stacktrace_on_nested_kretprobe() local
360 KUNIT_ASSERT_EQ(test, 0, register_kretprobes(rps, 2)); in test_stacktrace_on_nested_kretprobe()
362 unregister_kretprobes(rps, 2); in test_stacktrace_on_nested_kretprobe()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_gen4_hw_data.c343 enum adf_cfg_service_type rps[RP_GROUP_COUNT] = { }; in adf_gen4_get_ring_to_svc_map() enum
355 rps[i] = COMP; in adf_gen4_get_ring_to_svc_map()
371 rps[rp_group] = SYM; in adf_gen4_get_ring_to_svc_map()
374 rps[rp_group] = ASYM; in adf_gen4_get_ring_to_svc_map()
377 rps[rp_group] = COMP; in adf_gen4_get_ring_to_svc_map()
380 rps[rp_group] = 0; in adf_gen4_get_ring_to_svc_map()
386 ring_to_svc_map = rps[RP_GROUP_0] << ADF_CFG_SERV_RING_PAIR_0_SHIFT | in adf_gen4_get_ring_to_svc_map()
387 rps[RP_GROUP_1] << ADF_CFG_SERV_RING_PAIR_1_SHIFT | in adf_gen4_get_ring_to_svc_map()
388 rps[RP_GROUP_0] << ADF_CFG_SERV_RING_PAIR_2_SHIFT | in adf_gen4_get_ring_to_svc_map()
389 rps[RP_GROUP_1] << ADF_CFG_SERV_RING_PAIR_3_SHIFT; in adf_gen4_get_ring_to_svc_map()
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dkv_dpm.c360 static struct kv_ps *kv_get_ps(struct amdgpu_ps *rps) in kv_get_ps() argument
362 struct kv_ps *ps = rps->ps_priv; in kv_get_ps()
1213 struct amdgpu_ps *rps) in kv_update_current_ps() argument
1215 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps()
1218 pi->current_rps = *rps; in kv_update_current_ps()
1225 struct amdgpu_ps *rps) in kv_update_requested_ps() argument
1227 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps()
1230 pi->requested_rps = *rps; in kv_update_requested_ps()
2645 struct amdgpu_ps *rps, in kv_parse_pplib_non_clock_info() argument
2649 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_non_clock_info()
[all …]

123