| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | base.c | 42 u8 pstate, u8 domain, u32 input) in nvkm_clk_adjust() argument 49 data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); in nvkm_clk_adjust() 112 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() argument 119 if (!pstate || !cstate) in nvkm_cstate_find_best() 136 list_for_each_entry_from_reverse(cstate, &pstate->list, head) { in nvkm_cstate_find_best() 145 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() argument 149 return list_last_entry(&pstate->list, typeof(*cstate), head); in nvkm_cstate_get() 151 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_cstate_get() 160 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() argument 169 if (!list_empty(&pstate->list)) { in nvkm_cstate_prog() [all …]
|
| /OK3568_Linux_fs/kernel/tools/power/cpupower/utils/helpers/ |
| H A D | amd.c | 42 static int get_did(int family, union msr_pstate pstate) in get_did() argument 47 t = pstate.val & 0xf; in get_did() 49 t = pstate.fam17h_bits.did; in get_did() 51 t = pstate.bits.did; in get_did() 56 static int get_cof(int family, union msr_pstate pstate) in get_cof() argument 61 did = get_did(family, pstate); in get_cof() 63 fid = pstate.fam17h_bits.fid; in get_cof() 67 fid = pstate.bits.fid; in get_cof() 92 union msr_pstate pstate; in decode_pstates() local 120 if (read_msr(cpu, MSR_AMD_PSTATE + i, &pstate.val)) in decode_pstates() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_plane.c | 145 struct dpu_plane_state *pstate; in _dpu_plane_calc_bw() local 156 pstate = to_dpu_plane_state(plane->state); in _dpu_plane_calc_bw() 181 pstate->plane_fetch_bw = max(plane_bw, plane_prefill_bw); in _dpu_plane_calc_bw() 193 struct dpu_plane_state *pstate; in _dpu_plane_calc_clk() local 197 pstate = to_dpu_plane_state(plane->state); in _dpu_plane_calc_clk() 205 pstate->plane_clk = in _dpu_plane_calc_clk() 209 pstate->plane_clk *= src_height; in _dpu_plane_calc_clk() 210 do_div(pstate->plane_clk, dst_height); in _dpu_plane_calc_clk() 225 struct dpu_plane_state *pstate; in _dpu_plane_calc_fill_level() local 235 pstate = to_dpu_plane_state(plane->state); in _dpu_plane_calc_fill_level() [all …]
|
| H A D | dpu_crtc.c | 69 struct dpu_plane_state *pstate, struct dpu_format *format) in _dpu_crtc_setup_blend_cfg() argument 86 lm->ops.setup_blend_config(lm, pstate->stage, in _dpu_crtc_setup_blend_cfg() 125 struct dpu_plane_state *pstate = NULL; in _dpu_crtc_blend_setup_mixer() local 140 pstate = to_dpu_plane_state(state); in _dpu_crtc_blend_setup_mixer() 147 pstate->stage, in _dpu_crtc_blend_setup_mixer() 152 format = to_dpu_format(msm_framebuffer_format(pstate->base.fb)); in _dpu_crtc_blend_setup_mixer() 154 if (pstate->stage == DPU_STAGE_BASE && format->alpha_enable) in _dpu_crtc_blend_setup_mixer() 157 stage_idx = zpos_cnt[pstate->stage]++; in _dpu_crtc_blend_setup_mixer() 158 stage_cfg->stage[pstate->stage][stage_idx] = in _dpu_crtc_blend_setup_mixer() 160 stage_cfg->multirect_index[pstate->stage][stage_idx] = in _dpu_crtc_blend_setup_mixer() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/include/asm/ |
| H A D | ptrace.h | 151 unsigned long pstate; in compat_psr_to_pstate() local 153 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate() 156 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate() 158 return pstate; in compat_psr_to_pstate() 161 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate) in pstate_to_compat_psr() argument 165 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr() 167 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr() 185 u64 pstate; member 217 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate) 223 (((regs)->pstate & PSR_AA32_T_BIT)) [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/kernel/ |
| H A D | process.c | 233 u64 pstate = regs->pstate; in print_pstate() local 237 pstate, in print_pstate() 238 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate() 239 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate() 240 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate() 241 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate() 242 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate() 243 pstate & PSR_AA32_T_BIT ? "T32" : "A32", in print_pstate() 244 pstate & PSR_AA32_E_BIT ? "BE" : "LE", in print_pstate() 245 pstate & PSR_AA32_A_BIT ? 'A' : 'a', in print_pstate() [all …]
|
| H A D | insn.c | 1435 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument 1437 return (pstate & PSR_Z_BIT) != 0; in __check_eq() 1440 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument 1442 return (pstate & PSR_Z_BIT) == 0; in __check_ne() 1445 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument 1447 return (pstate & PSR_C_BIT) != 0; in __check_cs() 1450 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument 1452 return (pstate & PSR_C_BIT) == 0; in __check_cc() 1455 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument 1457 return (pstate & PSR_N_BIT) != 0; in __check_mi() [all …]
|
| H A D | traps.c | 223 u32 it, pstate = regs->pstate; in compat_get_it_state() local 225 it = (pstate & PSTATE_IT_1_0_MASK) >> PSTATE_IT_1_0_SHIFT; in compat_get_it_state() 226 it |= ((pstate & PSTATE_IT_7_2_MASK) >> PSTATE_IT_7_2_SHIFT) << 2; in compat_get_it_state() 238 regs->pstate &= ~PSR_AA32_IT_MASK; in compat_set_it_state() 239 regs->pstate |= pstate_it; in compat_set_it_state() 247 if (!(regs->pstate & PSR_AA32_T_BIT) || in advance_itstate() 248 !(regs->pstate & PSR_AA32_IT_MASK)) in advance_itstate() 284 regs->pstate &= ~PSR_BTYPE_MASK; in arm64_skip_faulting_instruction() 346 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook() 608 return aarch32_opcode_cond_checks[cond](regs->pstate); in cp15_cond_valid()
|
| /OK3568_Linux_fs/buildroot/package/efl/ |
| H A D | 0008-ecore_drm2-Ignore-other-primary-planes-and-support-Z.patch | 19 @@ -495,6 +495,11 @@ _drm2_atomic_state_plane_fill(Ecore_Drm2_Plane_State *pstate, int fd) 25 + pstate->zpos.id = prop->prop_id; 26 + pstate->zpos.value = oprops->prop_values[i]; 36 pstate->fid.id, pstate->fid.value); 39 + sym_drmModeAtomicAddProperty(req, pstate->obj_id, 40 + pstate->zpos.id, pstate->zpos.value); 43 sym_drmModeAtomicAddProperty(req, pstate->obj_id, 44 pstate->sx.id, pstate->sx.value); 51 Ecore_Drm2_Plane_State *pstate; 58 pstate = &state->plane_states[i]; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/cpufreq/ |
| H A D | intel_pstate.c | 239 struct pstate_data pstate; member 292 u64 (*get_val)(struct cpudata*, int pstate); 511 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state() 517 int turbo_pstate = cpu->pstate.turbo_pstate; in min_perf_pct_min() 520 (cpu->pstate.min_pstate * 100 / turbo_pstate) : 0; in min_perf_pct_min() 820 return sprintf(buf, "%d\n", ratio * cpu->pstate.scaling); in show_base_frequency() 1025 cpudata->pstate.max_freq : cpudata->pstate.turbo_freq; in intel_pstate_update_max_freq() 1105 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct() 1106 no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct() 1129 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates() [all …]
|
| H A D | brcmstb-avs-cpufreq.c | 388 static int brcm_avs_get_pstate(struct private_data *priv, unsigned int *pstate) in brcm_avs_get_pstate() argument 396 *pstate = args[0]; in brcm_avs_get_pstate() 401 static int brcm_avs_set_pstate(struct private_data *priv, unsigned int pstate) in brcm_avs_set_pstate() argument 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() 452 ret = brcm_avs_set_pstate(priv, pstate); in brcm_avs_get_freq_table() 637 unsigned int pstate; in brcm_avs_cpufreq_init() local 639 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_cpufreq_init() 641 policy->cur = freq_table[pstate].frequency; in brcm_avs_cpufreq_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/arm/ |
| H A D | malidp_crtc.c | 256 const struct drm_plane_state *pstate; in malidp_crtc_atomic_check_scaling() local 271 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, state) { in malidp_crtc_atomic_check_scaling() 282 h_upscale_factor = div_u64((u64)pstate->crtc_w << 32, in malidp_crtc_atomic_check_scaling() 283 pstate->src_w); in malidp_crtc_atomic_check_scaling() 284 v_upscale_factor = div_u64((u64)pstate->crtc_h << 32, in malidp_crtc_atomic_check_scaling() 285 pstate->src_h); in malidp_crtc_atomic_check_scaling() 290 if (pstate->rotation & MALIDP_ROTATED_MASK) { in malidp_crtc_atomic_check_scaling() 291 s->input_w = pstate->src_h >> 16; in malidp_crtc_atomic_check_scaling() 292 s->input_h = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling() 294 s->input_w = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling() [all …]
|
| /OK3568_Linux_fs/kernel/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, prev_state, 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 prev_state = *pstate; in bpf_prog2() 236 *pstate = ctx->state; in bpf_prog2() 268 pstate_idx = find_cpu_pstate_idx(*pstate); in bpf_prog2()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_plane.c | 104 struct mdp5_plane_state *pstate; in mdp5_plane_atomic_set_property() local 108 pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_set_property() 112 pstate->name = (type)val; \ in mdp5_plane_atomic_set_property() 132 struct mdp5_plane_state *pstate; in mdp5_plane_atomic_get_property() local 136 pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_get_property() 140 *val = pstate->name; \ in mdp5_plane_atomic_get_property() 159 struct mdp5_plane_state *pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_print_state() local 162 drm_printf(p, "\thwpipe=%s\n", pstate->hwpipe ? in mdp5_plane_atomic_print_state() 163 pstate->hwpipe->name : "(null)"); in mdp5_plane_atomic_print_state() 166 pstate->r_hwpipe ? pstate->r_hwpipe->name : in mdp5_plane_atomic_print_state() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | pwm-regulator.c | 93 struct pwm_state pstate; in pwm_regulator_set_voltage_sel() local 96 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel() 97 pwm_set_relative_duty_cycle(&pstate, in pwm_regulator_set_voltage_sel() 100 ret = pwm_apply_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel() 165 struct pwm_state pstate; in pwm_regulator_get_voltage() local 169 pwm_get_state(drvdata->pwm, &pstate); in pwm_regulator_get_voltage() 171 voltage = pwm_get_relative_duty_cycle(&pstate, duty_unit); in pwm_regulator_get_voltage() 202 struct pwm_state pstate; in pwm_regulator_set_voltage() local 207 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage() 228 pwm_set_relative_duty_cycle(&pstate, dutycycle, duty_unit); in pwm_regulator_set_voltage() [all …]
|
| /OK3568_Linux_fs/kernel/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
|
| H A D | tsb.S | 147 661: rdpr %pstate, %g5 148 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate 254 661: rdpr %pstate, %g5 255 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate 320 rdpr %pstate, %o5 321 wrpr %o5, PSTATE_IE, %pstate 324 wrpr %o5, %pstate 374 rdpr %pstate, %g1 375 wrpr %g1, PSTATE_IE, %pstate 457 wrpr %g1, %pstate
|
| /OK3568_Linux_fs/kernel/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_cma_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_cma_get_gem_addr(fb, pstate, 0), in tve200_display_update() 275 writel(drm_fb_cma_get_gem_addr(fb, pstate, 1), in tve200_display_update() 277 writel(drm_fb_cma_get_gem_addr(fb, pstate, 2), in tve200_display_update()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_xgmi.c | 374 hive->pstate = AMDGPU_XGMI_PSTATE_UNKNOWN; in amdgpu_get_xgmi_hive() 396 int amdgpu_xgmi_set_pstate(struct amdgpu_device *adev, int pstate) in amdgpu_xgmi_set_pstate() argument 402 bool is_hi_req = pstate == AMDGPU_XGMI_PSTATE_MAX_VEGA20; in amdgpu_xgmi_set_pstate() 403 bool init_low = hive->pstate == AMDGPU_XGMI_PSTATE_UNKNOWN; in amdgpu_xgmi_set_pstate() 423 if (hive->pstate == pstate || in amdgpu_xgmi_set_pstate() 427 dev_dbg(request_adev->dev, "Set xgmi pstate %d.\n", pstate); in amdgpu_xgmi_set_pstate() 429 ret = amdgpu_dpm_set_xgmi_pstate(request_adev, pstate); in amdgpu_xgmi_set_pstate() 439 hive->pstate = hive->hi_req_count ? in amdgpu_xgmi_set_pstate() 440 hive->pstate : AMDGPU_XGMI_PSTATE_MIN; in amdgpu_xgmi_set_pstate() 442 hive->pstate = pstate; in amdgpu_xgmi_set_pstate() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/include/hyp/ |
| H A D | sysreg-sr.h | 62 ctxt->regs.pstate = read_sysreg_el2(SYS_SPSR); in __sysreg_save_el2_return_state() 140 u64 pstate = ctxt->regs.pstate; in __sysreg_restore_el2_return_state() local 141 u64 mode = pstate & PSR_AA32_MODE_MASK; in __sysreg_restore_el2_return_state() 155 pstate = PSR_MODE_EL2h | PSR_IL_BIT; in __sysreg_restore_el2_return_state() 158 write_sysreg_el2(pstate, SYS_SPSR); in __sysreg_restore_el2_return_state()
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/mce/ |
| H A D | therm_throt.c | 318 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in therm_throt_process() local 323 state = &pstate->core_throttle; in therm_throt_process() 325 state = &pstate->core_power_limit; in therm_throt_process() 330 state = &pstate->package_throttle; in therm_throt_process() 332 state = &pstate->package_power_limit; in therm_throt_process() 378 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in thresh_event_valid() local 382 state = (event == 0) ? &pstate->pkg_thresh0 : in thresh_event_valid() 383 &pstate->pkg_thresh1; in thresh_event_valid() 385 state = (event == 0) ? &pstate->core_thresh0 : in thresh_event_valid() 386 &pstate->core_thresh1; in thresh_event_valid()
|
| /OK3568_Linux_fs/kernel/arch/sparc/mm/ |
| H A D | ultra.S | 60 rdpr %pstate, %g7 62 wrpr %g2, %pstate 77 wrpr %g7, 0x0, %pstate 87 rdpr %pstate, %g7 90 wrpr %g2, %pstate 109 wrpr %g7, 0x0, %pstate 174 rdpr %pstate, %g1 175 wrpr %g1, PSTATE_IE, %pstate 184 wrpr %g1, 0, %pstate 251 rdpr %pstate, %g7 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | cstep.c | 78 info->pstate = (nvbios_rd16(bios, data + 0x00) & 0x01e0) >> 5; in nvbios_cstepEp() 85 nvbios_cstepEm(struct nvkm_bios *bios, u8 pstate, u8 *ver, u8 *hdr, in nvbios_cstepEm() argument 90 if (info->pstate == pstate) in nvbios_cstepEm()
|