| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | base.c | 316 pstate = (pstate < 0) ? clk->astate : pstate; in nvkm_pstate_work() 317 pstate = min(pstate, clk->state_nr - 1); in nvkm_pstate_work() 318 pstate = max(pstate, clk->dstate); in nvkm_pstate_work() 320 pstate = clk->pstate = -1; in nvkm_pstate_work() 324 if (pstate != clk->pstate) { in nvkm_pstate_work() 355 if (pstate->pstate != 0xff) in nvkm_pstate_info() 419 pstate = kzalloc(sizeof(*pstate), GFP_KERNEL); in nvkm_pstate_new() 425 pstate->pstate = perfE.pstate; in nvkm_pstate_new() 447 pstate->pstate, in nvkm_pstate_new() 483 if (pstate->pstate == req) in nvkm_clk_ustate_update() [all …]
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | traps.c | 54 return (pstate & PSR_Z_BIT) != 0; in __check_eq() 59 return (pstate & PSR_Z_BIT) == 0; in __check_ne() 64 return (pstate & PSR_C_BIT) != 0; in __check_cs() 94 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */ in __check_hi() 100 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */ in __check_ls() 106 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */ in __check_ge() 112 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */ in __check_lt() 119 unsigned long temp = pstate ^ (pstate << 3); in __check_gt() 128 unsigned long temp = pstate ^ (pstate << 3); in __check_le() 311 u32 it, pstate = regs->pstate; in compat_get_it_state() local [all …]
|
| H A D | process.c | 162 u64 pstate = regs->pstate; in print_pstate() local 166 pstate, in print_pstate() 184 pstate, in print_pstate() 185 pstate & PSR_N_BIT ? 'N' : 'n', in print_pstate() 186 pstate & PSR_Z_BIT ? 'Z' : 'z', in print_pstate() 187 pstate & PSR_C_BIT ? 'C' : 'c', in print_pstate() 188 pstate & PSR_V_BIT ? 'V' : 'v', in print_pstate() 189 pstate & PSR_D_BIT ? 'D' : 'd', in print_pstate() 190 pstate & PSR_A_BIT ? 'A' : 'a', in print_pstate() 191 pstate & PSR_I_BIT ? 'I' : 'i', in print_pstate() [all …]
|
| /linux-6.15/tools/power/cpupower/utils/helpers/ |
| H A D | amd.c | 33 } pstate; member 66 t = pstate.pstatedef.did; in get_did() 68 t = pstate.val & 0xf; in get_did() 70 t = pstate.pstate.did; in get_did() 80 did = get_did(pstate); in get_cof() 83 fid = pstate.pstatedef2.fid; in get_cof() 87 fid = pstate.pstatedef.fid; in get_cof() 92 fid = pstate.pstate.fid; in get_cof() 116 union core_pstate pstate; in decode_pstates() local 140 if (!pstate.pstatedef.en) in decode_pstates() [all …]
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | ptrace.h | 130 unsigned long pstate; in compat_psr_to_pstate() local 132 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate() 135 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate() 137 return pstate; in compat_psr_to_pstate() 144 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr() 146 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr() 163 u64 pstate; member 197 (((regs)->pstate & PSR_AA32_T_BIT)) 210 ((regs)->pstate & PSR_MODE_MASK) 221 (!((regs)->pstate & PSR_F_BIT)) [all …]
|
| /linux-6.15/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_plane.c | 635 _dpu_plane_color_fill_pipe(pstate, &pstate->pipe, &pstate->pipe_cfg.dst_rect, in _dpu_plane_color_fill() 639 _dpu_plane_color_fill_pipe(pstate, &pstate->r_pipe, &pstate->r_pipe_cfg.dst_rect, in _dpu_plane_color_fill() 667 if (pstate->aspace) { in dpu_plane_prepare_fb() 669 pstate->aspace, pstate->needs_dirtyfb); in dpu_plane_prepare_fb() 849 pstate->stage = DPU_STAGE_0 + pstate->base.normalized_zpos; in dpu_plane_atomic_check_nosspp() 1123 pipe = &pstate->pipe; in dpu_plane_virtual_assign_resources() 1356 dpu_format_populate_addrs(pstate->aspace, new_state->fb, &pstate->layout); in dpu_plane_sspp_atomic_update() 1451 if (!pstate) { in dpu_plane_duplicate_state() 1462 return &pstate->base; in dpu_plane_duplicate_state() 1544 pstate = kzalloc(sizeof(*pstate), GFP_KERNEL); in dpu_plane_reset() [all …]
|
| H A D | dpu_crtc.c | 470 pstate->stage, in _dpu_crtc_blend_setup_mixer() 474 if (pstate->r_pipe.sspp) { in _dpu_crtc_blend_setup_mixer() 478 pstate->stage, in _dpu_crtc_blend_setup_mixer() 491 1 << pstate->stage; in _dpu_crtc_blend_setup_mixer() 1476 rc = PTR_ERR(pstate); in dpu_crtc_atomic_check() 1482 if (!pstate->visible) in dpu_crtc_atomic_check() 1599 if (!pstate || !state) in _dpu_debugfs_status_show() 1603 pstate->stage); in _dpu_debugfs_status_show() 1641 pstate->pipe.multirect_mode, pstate->pipe.multirect_index); in _dpu_debugfs_status_show() 1642 if (pstate->r_pipe.sspp) { in _dpu_debugfs_status_show() [all …]
|
| /linux-6.15/drivers/cpufreq/ |
| H A D | intel_pstate.c | 927 if (cpu->pstate.scaling != cpu->pstate.perf_ctl_scaling) in show_base_frequency() 1111 cpu->pstate.max_freq = rounddown(cpu->pstate.max_freq, in intel_pstate_get_hwp_cap() 2027 int_tofp(pstate - cpudata->pstate.min_pstate), in atom_get_val() 2033 if (pstate > cpudata->pstate.max_pstate) in atom_get_val() 2244 cpu->pstate.current_pstate = pstate; in intel_pstate_set_pstate() 2492 cpu->pstate.max_pstate : cpu->pstate.turbo_pstate; in get_target_pstate() 2522 if (pstate == cpu->pstate.current_pstate) in intel_pstate_update_pstate() 2525 cpu->pstate.current_pstate = pstate; in intel_pstate_update_pstate() 2760 cpu->pstate.max_freq : cpu->pstate.turbo_freq; in intel_pstate_get_max_freq() 2897 cpu->pstate.max_freq : cpu->pstate.turbo_freq; in intel_pstate_verify_cpu_policy() [all …]
|
| H A D | brcmstb-avs-cpufreq.c | 396 *pstate = args[0]; in brcm_avs_get_pstate() 405 args[0] = pstate; in brcm_avs_set_pstate() 429 unsigned int pstate; in brcm_avs_get_freq_table() local 433 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_get_freq_table() 456 ret = brcm_avs_set_pstate(priv, pstate); in brcm_avs_get_freq_table() 646 unsigned int pstate; in brcm_avs_cpufreq_init() local 648 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_cpufreq_init() 650 policy->cur = freq_table[pstate].frequency; in brcm_avs_cpufreq_init() 664 unsigned int pstate; in show_brcm_avs_pstate() local 666 if (brcm_avs_get_pstate(priv, &pstate)) in show_brcm_avs_pstate() [all …]
|
| H A D | apple-soc-cpufreq.c | 140 unsigned int pstate; in apple_soc_cpufreq_get_rate() local 151 pstate = (reg & priv->info->cur_pstate_mask) >> priv->info->cur_pstate_shift; in apple_soc_cpufreq_get_rate() 159 pstate = FIELD_GET(APPLE_DVFS_CMD_PS1, reg); in apple_soc_cpufreq_get_rate() 163 if (p->driver_data == pstate) in apple_soc_cpufreq_get_rate() 167 pstate); in apple_soc_cpufreq_get_rate() 175 unsigned int pstate = policy->freq_table[index].driver_data; in apple_soc_cpufreq_set_target() local 189 reg |= pstate << priv->info->ps1_shift; in apple_soc_cpufreq_set_target() 192 reg |= FIELD_PREP(APPLE_DVFS_CMD_PS2, pstate); in apple_soc_cpufreq_set_target()
|
| /linux-6.15/drivers/regulator/ |
| H A D | pwm-regulator.c | 86 struct pwm_state pstate; in pwm_regulator_set_voltage_sel() local 90 pwm_set_relative_duty_cycle(&pstate, in pwm_regulator_set_voltage_sel() 154 struct pwm_state pstate; in pwm_regulator_get_voltage() local 160 if (!pstate.enabled) { in pwm_regulator_get_voltage() 162 pstate.duty_cycle = pstate.period; in pwm_regulator_get_voltage() 164 pstate.duty_cycle = 0; in pwm_regulator_get_voltage() 201 struct pwm_state pstate; in pwm_regulator_set_voltage() local 328 struct pwm_state pstate; in pwm_regulator_init_boot_on() local 334 if (pstate.enabled) in pwm_regulator_init_boot_on() 343 pstate.duty_cycle = pstate.period; in pwm_regulator_init_boot_on() [all …]
|
| /linux-6.15/drivers/gpu/drm/arm/ |
| H A D | malidp_crtc.c | 259 const struct drm_plane_state *pstate; in malidp_crtc_atomic_check_scaling() local 286 pstate->src_w); in malidp_crtc_atomic_check_scaling() 288 pstate->src_h); in malidp_crtc_atomic_check_scaling() 294 s->input_w = pstate->src_h >> 16; in malidp_crtc_atomic_check_scaling() 295 s->input_h = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling() 297 s->input_w = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling() 298 s->input_h = pstate->src_h >> 16; in malidp_crtc_atomic_check_scaling() 301 s->output_w = pstate->crtc_w; in malidp_crtc_atomic_check_scaling() 302 s->output_h = pstate->crtc_h; in malidp_crtc_atomic_check_scaling() 348 const struct drm_plane_state *pstate; in malidp_crtc_atomic_check() local [all …]
|
| /linux-6.15/Documentation/admin-guide/pm/ |
| H A D | amd-pstate.rst | 5 ``amd-pstate`` CPU Performance Scaling Driver 175 ``amd-pstate`` to the ``schedutil`` with CPU CFS scheduler. ``amd-pstate`` 315 ``amd-pstate`` vs ``acpi-cpufreq`` 383 ``amd-pstate`` Preferred Core 399 The priority metric will be initialized by the ``amd-pstate`` driver. The ``amd-pstate`` 410 ``amd-pstate`` Preferred Core Switch 479 driver: amd-pstate 545 pstate tracer. 564 Unit Tests for amd-pstate 567 ``amd-pstate-ut`` is a test module for testing the ``amd-pstate`` driver. [all …]
|
| /linux-6.15/samples/bpf/ |
| H A D | cpustat_kern.c | 106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local 131 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1() 132 if (!pstate) in bpf_prog1() 171 pstate_idx = find_cpu_pstate_idx(*pstate); in bpf_prog1() 214 u64 *pts, *cstate, *pstate, cur_ts, delta; in bpf_prog2() local 226 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2() 227 if (!pstate) in bpf_prog2() 235 *pstate = ctx->state; in bpf_prog2() 267 pstate_idx = find_cpu_pstate_idx(*pstate); in bpf_prog2()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
| H A D | ctrl.c | 55 args->v0.pstate = clk->pstate; in nvkm_control_mthd_pstate_info() 61 args->v0.pstate = NVIF_CONTROL_PSTATE_INFO_V0_PSTATE_UNKNOWN; in nvkm_control_mthd_pstate_info() 75 struct nvkm_pstate *pstate; in nvkm_control_mthd_pstate_attr() local 106 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr() 111 lo = pstate->base.domain[domain->name]; in nvkm_control_mthd_pstate_attr() 113 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_control_mthd_pstate_attr() 118 args->v0.state = pstate->pstate; in nvkm_control_mthd_pstate_attr()
|
| /linux-6.15/drivers/pinctrl/sophgo/ |
| H A D | pinctrl-cv1800b.c | 40 u32 pstate = psmap[pin->power_domain]; in cv1800b_get_pull_up() local 47 if (pstate == PIN_POWER_STATE_1V8) in cv1800b_get_pull_up() 49 if (pstate == PIN_POWER_STATE_3V3) in cv1800b_get_pull_up() 61 u32 pstate = psmap[pin->power_domain]; in cv1800b_get_pull_down() local 68 if (pstate == PIN_POWER_STATE_1V8) in cv1800b_get_pull_down() 70 if (pstate == PIN_POWER_STATE_3V3) in cv1800b_get_pull_down() 118 u32 pstate = psmap[pin->power_domain]; in cv1800b_get_oc_map() local 126 if (pstate == PIN_POWER_STATE_1V8) { in cv1800b_get_oc_map() 129 } else if (pstate == PIN_POWER_STATE_3V3) { in cv1800b_get_oc_map() 164 u32 pstate = psmap[pin->power_domain]; in cv1800b_get_schmitt_map() local [all …]
|
| H A D | pinctrl-sg2002.c | 40 u32 pstate = psmap[pin->power_domain]; in sg2002_get_pull_up() local 47 if (pstate == PIN_POWER_STATE_1V8) in sg2002_get_pull_up() 49 if (pstate == PIN_POWER_STATE_3V3) in sg2002_get_pull_up() 61 u32 pstate = psmap[pin->power_domain]; in sg2002_get_pull_down() local 68 if (pstate == PIN_POWER_STATE_1V8) in sg2002_get_pull_down() 70 if (pstate == PIN_POWER_STATE_3V3) in sg2002_get_pull_down() 118 u32 pstate = psmap[pin->power_domain]; in sg2002_get_oc_map() local 126 if (pstate == PIN_POWER_STATE_1V8) { in sg2002_get_oc_map() 129 } else if (pstate == PIN_POWER_STATE_3V3) { in sg2002_get_oc_map() 164 u32 pstate = psmap[pin->power_domain]; in sg2002_get_schmitt_map() local [all …]
|
| /linux-6.15/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_plane.c | 71 pstate->hwpipe->name : "(null)"); in mdp5_plane_atomic_print_state() 74 pstate->r_hwpipe ? pstate->r_hwpipe->name : in mdp5_plane_atomic_print_state() 123 kfree(pstate); in mdp5_plane_destroy_state() 966 if (WARN_ON(!pstate->hwpipe)) in mdp5_plane_pipe() 969 return pstate->hwpipe->pipe; in mdp5_plane_pipe() 976 if (!pstate->r_hwpipe) in mdp5_plane_right_pipe() 979 return pstate->r_hwpipe->pipe; in mdp5_plane_right_pipe() 987 if (WARN_ON(!pstate->hwpipe)) in mdp5_plane_get_flush() 990 mask = pstate->hwpipe->flush_mask; in mdp5_plane_get_flush() 992 if (pstate->r_hwpipe) in mdp5_plane_get_flush() [all …]
|
| /linux-6.15/tools/testing/selftests/amd-pstate/ |
| H A D | basic.sh | 27 if ! /sbin/modprobe -q -n amd-pstate-ut; then 31 if /sbin/modprobe -q amd-pstate-ut; then 32 /sbin/modprobe -q -r amd-pstate-ut
|
| /linux-6.15/drivers/net/wwan/ |
| H A D | wwan_hwsim.c | 64 } pstate; member 108 port->pstate = AT_PARSER_WAIT_A; in wwan_hwsim_port_start() 145 if (port->pstate == AT_PARSER_WAIT_A) { in wwan_hwsim_port_tx() 147 port->pstate = AT_PARSER_WAIT_T; in wwan_hwsim_port_tx() 149 port->pstate = AT_PARSER_SKIP_LINE; in wwan_hwsim_port_tx() 150 } else if (port->pstate == AT_PARSER_WAIT_T) { in wwan_hwsim_port_tx() 152 port->pstate = AT_PARSER_WAIT_TERM; in wwan_hwsim_port_tx() 154 port->pstate = AT_PARSER_SKIP_LINE; in wwan_hwsim_port_tx() 155 } else if (port->pstate == AT_PARSER_WAIT_TERM) { in wwan_hwsim_port_tx() 165 port->pstate = AT_PARSER_WAIT_A; in wwan_hwsim_port_tx() [all …]
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | rtrap_64.S | 28 661: wrpr %g0, RTRAP_PSTATE, %pstate 36 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate 39 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 44 661: wrpr %g0, RTRAP_PSTATE, %pstate 52 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate 55 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 70 661: wrpr %g0, RTRAP_PSTATE, %pstate 78 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate 80 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 159 to_user: wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate [all …]
|
| H A D | spiterrs.S | 159 rdpr %pstate, %g4 160 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate 187 rdpr %pstate, %g4 188 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate 207 rdpr %pstate, %g4 208 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate 226 rdpr %pstate, %g4 227 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
|
| /linux-6.15/arch/arm64/kvm/ |
| H A D | reset.c | 192 u32 pstate; in kvm_reset_vcpu() local 212 pstate = VCPU_RESET_PSTATE_SVC; in kvm_reset_vcpu() 214 pstate = VCPU_RESET_PSTATE_EL2; in kvm_reset_vcpu() 216 pstate = VCPU_RESET_PSTATE_EL1; in kvm_reset_vcpu() 225 vcpu_gp_regs(vcpu)->pstate = pstate; in kvm_reset_vcpu()
|
| /linux-6.15/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_drm_vop2.c | 458 struct drm_rect *src = &pstate->src; in vop2_afbc_transform_offset() 484 switch (pstate->rotation & in vop2_afbc_transform_offset() 732 struct drm_plane_state *pstate) in vop2_setup_csc_mode() argument 1040 if (!pstate->visible) in vop2_plane_atomic_check() 1052 pstate->visible = false; in vop2_plane_atomic_check() 1185 if (!pstate->visible) { in vop2_plane_atomic_update() 1927 if (!pstate || !pstate->fb) in vop2_plane_state_dump() 1930 fb = pstate->fb; in vop2_plane_state_dump() 1931 src = &pstate->src; in vop2_plane_state_dump() 1932 dst = &pstate->dst; in vop2_plane_state_dump() [all …]
|
| /linux-6.15/drivers/gpu/drm/tve200/ |
| H A D | tve200_display.c | 72 struct drm_plane_state *pstate, in tve200_display_check() argument 77 struct drm_framebuffer *fb = pstate->fb; in tve200_display_check() 93 u32 offset = drm_fb_dma_get_gem_addr(fb, pstate, 0); in tve200_display_check() 265 struct drm_plane_state *pstate = plane->state; in tve200_display_update() local 266 struct drm_framebuffer *fb = pstate->fb; in tve200_display_update() 270 writel(drm_fb_dma_get_gem_addr(fb, pstate, 0), in tve200_display_update() 275 writel(drm_fb_dma_get_gem_addr(fb, pstate, 1), in tve200_display_update() 277 writel(drm_fb_dma_get_gem_addr(fb, pstate, 2), in tve200_display_update()
|