/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | base.c | 41 u8 pstate, u8 domain, u32 input) in nvkm_clk_adjust() argument 48 data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); in nvkm_clk_adjust() 78 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() argument 85 if (!list_empty(&pstate->list)) { in nvkm_cstate_prog() 86 cstate = list_entry(pstate->list.prev, typeof(*cstate), head); in nvkm_cstate_prog() 88 cstate = &pstate->base; in nvkm_cstate_prog() 92 ret = nvkm_therm_cstate(ptherm, pstate->fanspeed, +1); in nvkm_cstate_prog() 120 ret = nvkm_therm_cstate(ptherm, pstate->fanspeed, -1); in nvkm_cstate_prog() 136 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new() argument 153 *cstate = pstate->base; in nvkm_cstate_new() [all …]
|
D | gk20a.c | 648 gk20a_pstates[i].pstate = i + 1; in gk20a_clk_ctor()
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | ptrace.h | 114 u64 pstate; member 125 (((regs)->pstate & COMPAT_PSR_T_BIT)) 131 (((regs)->pstate & PSR_MODE_MASK) == PSR_MODE_EL0t) 134 (((regs)->pstate & (PSR_MODE32_BIT | PSR_MODE_MASK)) == \ 138 ((regs)->pstate & PSR_MODE_MASK) 141 (!((regs)->pstate & PSR_I_BIT)) 144 (!((regs)->pstate & PSR_F_BIT)) 160 if (user_mode(regs) && (regs->pstate & PSR_I_BIT) == 0) { in valid_user_regs() 161 regs->pstate &= ~(PSR_F_BIT | PSR_A_BIT); in valid_user_regs() 164 if (!(regs->pstate & PSR_MODE32_BIT)) in valid_user_regs() [all …]
|
D | processor.h | 101 regs->pstate = PSR_MODE_EL0t; in start_thread() 110 regs->pstate = COMPAT_PSR_MODE_USR; in compat_start_thread() 112 regs->pstate |= COMPAT_PSR_T_BIT; in compat_start_thread() 115 regs->pstate |= COMPAT_PSR_E_BIT; in compat_start_thread()
|
D | kvm_emulate.h | 73 return (unsigned long *)&vcpu_gp_regs(vcpu)->regs.pstate; in vcpu_cpsr()
|
/linux-4.1.27/tools/power/cpupower/utils/helpers/ |
D | amd.c | 32 static int get_did(int family, union msr_pstate pstate) in get_did() argument 37 t = pstate.val & 0xf; in get_did() 39 t = pstate.bits.did; in get_did() 44 static int get_cof(int family, union msr_pstate pstate) in get_cof() argument 49 did = get_did(family, pstate); in get_cof() 52 fid = pstate.bits.fid; in get_cof() 76 union msr_pstate pstate; in decode_pstates() local 104 if (read_msr(cpu, MSR_AMD_PSTATE + i, &pstate.val)) in decode_pstates() 106 pstates[i] = get_cof(cpu_family, pstate); in decode_pstates()
|
/linux-4.1.27/drivers/cpufreq/ |
D | intel_pstate.c | 105 struct pstate_data pstate; member 130 void (*set)(struct cpudata*, int pstate); 257 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state() 355 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct() 356 no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct() 369 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates() 516 static void byt_set_pstate(struct cpudata *cpudata, int pstate) in byt_set_pstate() argument 522 val = pstate << 8; in byt_set_pstate() 527 int_tofp(pstate - cpudata->pstate.min_pstate), in byt_set_pstate() 533 if (pstate > cpudata->pstate.max_pstate) in byt_set_pstate() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | ctrl.c | 54 args->v0.pstate = clk->pstate; in nvkm_control_mthd_pstate_info() 60 args->v0.pstate = NVIF_CONTROL_PSTATE_INFO_V0_PSTATE_UNKNOWN; in nvkm_control_mthd_pstate_info() 74 struct nvkm_pstate *pstate; in nvkm_control_mthd_pstate_attr() local 105 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr() 110 lo = pstate->base.domain[domain->name]; in nvkm_control_mthd_pstate_attr() 112 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_control_mthd_pstate_attr() 117 args->v0.state = pstate->pstate; in nvkm_control_mthd_pstate_attr()
|
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/ |
D | therm_throt.c | 157 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in therm_throt_process() local 162 state = &pstate->core_throttle; in therm_throt_process() 164 state = &pstate->core_power_limit; in therm_throt_process() 169 state = &pstate->package_throttle; in therm_throt_process() 171 state = &pstate->package_power_limit; in therm_throt_process() 214 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in thresh_event_valid() local 218 state = (event == 0) ? &pstate->pkg_thresh0 : in thresh_event_valid() 219 &pstate->pkg_thresh1; in thresh_event_valid() 221 state = (event == 0) ? &pstate->core_thresh0 : in thresh_event_valid() 222 &pstate->core_thresh1; in thresh_event_valid()
|
/linux-4.1.27/arch/sparc/kernel/ |
D | spiterrs.S | 159 rdpr %pstate, %g4 160 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate 188 rdpr %pstate, %g4 189 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate 209 rdpr %pstate, %g4 210 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate 229 rdpr %pstate, %g4 230 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
|
D | rtrap_64.S | 31 wrpr %g0, RTRAP_PSTATE, %pstate 33 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 37 wrpr %g0, RTRAP_PSTATE, %pstate 39 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 54 wrpr %g0, RTRAP_PSTATE, %pstate 55 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 127 to_user: wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 169 661: wrpr %g0, RTRAP_PSTATE_AG_IRQOFF, %pstate 173 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate 276 wrpr %g0, RTRAP_PSTATE, %pstate
|
D | helpers.S | 27 rdpr %pstate, %o0 28 wrpr %o0, PSTATE_IE, %pstate 43 wrpr %o0, %pstate
|
D | tsb.S | 157 661: rdpr %pstate, %g5 158 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate 264 661: rdpr %pstate, %g5 265 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate 326 rdpr %pstate, %o5 327 wrpr %o5, PSTATE_IE, %pstate 330 wrpr %o5, %pstate 379 rdpr %pstate, %g1 380 wrpr %g1, PSTATE_IE, %pstate 451 wrpr %g1, %pstate
|
D | smp_64.c | 390 static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, unsigned long cpu) in spitfire_xcall_helper() argument 425 : "r" (pstate), "i" (PSTATE_IE), "i" (ASI_INTR_W), in spitfire_xcall_helper() 438 : : "r" (pstate)); in spitfire_xcall_helper() 446 : : "r" (pstate)); in spitfire_xcall_helper() 460 u64 pstate; in spitfire_xcall_deliver() local 463 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in spitfire_xcall_deliver() 470 spitfire_xcall_helper(data0, data1, data2, pstate, cpu_list[i]); in spitfire_xcall_deliver() 480 u64 *mondo, pstate, ver, busy_mask; in cheetah_xcall_deliver() local 494 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in cheetah_xcall_deliver() 499 : : "r" (pstate), "i" (PSTATE_IE)); in cheetah_xcall_deliver() [all …]
|
D | dtlb_prot.S | 20 rdpr %pstate, %g5 ! Move into alt-globals 21 wrpr %g5, PSTATE_AG|PSTATE_MG, %pstate
|
D | ktlb.S | 81 661: rdpr %pstate, %g5 82 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate 235 661: rdpr %pstate, %g5 236 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
|
D | hvtramp.S | 81 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF), %pstate 124 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF | PSTATE_IE), %pstate
|
D | asm-offsets.c | 36 OFFSET(SC_REG_PSTATE, saved_context, pstate); in sparc64_foo()
|
D | syscalls.S | 139 1: rdpr %pstate, %g2 140 wrpr %g2, PSTATE_IE, %pstate 146 wrpr %g2, 0x0, %pstate
|
D | time_64.c | 748 unsigned long pstate; in setup_sparc64_timer() local 755 : "=r" (pstate) in setup_sparc64_timer() 763 : "r" (pstate)); in setup_sparc64_timer()
|
D | head_64.S | 94 rdpr %pstate, %g1 96 wrpr %g1, 0x0, %pstate 531 wrpr %g0, (PSTATE_PRIV|PSTATE_PEF|PSTATE_IE), %pstate 744 rdpr %pstate, %l0 746 wrpr %o1, 0x0, %pstate 841 wrpr %l0, 0, %pstate
|
D | trampoline_64.S | 250 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF), %pstate 401 rdpr %pstate, %o1 403 wrpr %o1, 0, %pstate
|
D | signal32.c | 355 unsigned long pstate, paddr; in flush_signal_insns() local 370 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in flush_signal_insns() 372 : : "r" (pstate), "i" (PSTATE_IE)); in flush_signal_insns() 400 __asm__ __volatile__("wrpr %0, 0x0, %%pstate" : : "r" (pstate)); in flush_signal_insns()
|
D | process_64.c | 63 unsigned long pstate; in arch_cpu_idle() local 74 : "=&r" (pstate) in arch_cpu_idle() 85 : "=&r" (pstate) in arch_cpu_idle()
|
D | irq_64.c | 811 unsigned long pstate, bucket_pa; in handler_irq() local 826 : "=&r" (pstate), "=&r" (bucket_pa) in handler_irq()
|
D | etrap_64.S | 119 661: wrpr %g0, ETRAP_PSTATE1, %pstate
|
D | cherrs.S | 122 wrpr PSTATE_IG | PSTATE_PEF | PSTATE_PRIV, %pstate 164 wrpr PSTATE_IG | PSTATE_PEF | PSTATE_PRIV, %pstate
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | cstep.c | 78 info->pstate = (nv_ro16(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()
|
D | boost.c | 81 info->pstate = (nv_ro16(bios, data + 0x00) & 0x01e0) >> 5; in nvbios_boostEp() 89 nvbios_boostEm(struct nvkm_bios *bios, u8 pstate, in nvbios_boostEm() argument 94 if (info->pstate == pstate) in nvbios_boostEm()
|
D | perf.c | 101 info->pstate = nv_ro08(bios, perf + 0x00); in nvbios_perfEp()
|
/linux-4.1.27/arch/sparc/mm/ |
D | ultra.S | 59 rdpr %pstate, %g7 61 wrpr %g2, %pstate 76 wrpr %g7, 0x0, %pstate 86 rdpr %pstate, %g7 89 wrpr %g2, %pstate 108 wrpr %g7, 0x0, %pstate 136 rdpr %pstate, %g1 137 wrpr %g1, PSTATE_IE, %pstate 146 wrpr %g1, 0, %pstate 213 rdpr %pstate, %g7 [all …]
|
D | init_64.c | 2586 unsigned long pstate; in __flush_tlb_all() local 2592 : "=r" (pstate) in __flush_tlb_all() 2639 : : "r" (pstate)); in __flush_tlb_all()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_sysfs.c | 31 MODULE_PARM_DESC(pstate, "enable sysfs pstate file, which will be moved in the future"); 33 module_param_named(pstate, nouveau_pstate, int, 0400); 101 if (info.pstate == state) in nouveau_sysfs_pstate_get() 157 static DEVICE_ATTR(pstate, S_IRUGO | S_IWUSR,
|
/linux-4.1.27/arch/sparc/lib/ |
D | clear_page.S | 62 rdpr %pstate, %o4 63 wrpr %o4, PSTATE_IE, %pstate 68 wrpr %o4, 0x0, %pstate
|
D | copy_page.S | 77 rdpr %pstate, %o2 78 wrpr %o2, PSTATE_IE, %pstate 85 wrpr %o2, 0x0, %pstate
|
/linux-4.1.27/arch/arm64/kvm/ |
D | reset.c | 37 .regs.pstate = (PSR_MODE_EL1h | PSR_A_BIT | PSR_I_BIT | 42 .regs.pstate = (COMPAT_PSR_MODE_SVC | COMPAT_PSR_A_BIT |
|
D | guest.c | 98 if (off == KVM_REG_ARM_CORE_REG(regs.pstate)) { in set_core_reg()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | cstep.h | 7 u8 pstate; member 14 u16 nvbios_cstepEm(struct nvkm_bios *, u8 pstate, u8 *ver, u8 *hdr,
|
D | boost.h | 6 u8 pstate; member
|
D | perf.h | 7 u8 pstate; member
|
/linux-4.1.27/arch/arm64/kernel/ |
D | debug-monitors.c | 170 spsr = regs->pstate; in set_regs_spsr_ss() 173 regs->pstate = spsr; in set_regs_spsr_ss() 180 spsr = regs->pstate; in clear_regs_spsr_ss() 182 regs->pstate = spsr; in clear_regs_spsr_ss()
|
D | signal.c | 111 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in restore_sigframe() 181 __put_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in setup_sigframe()
|
D | armv8_deprecated.c | 379 switch (arm_check_condition(instr, regs->pstate)) { in swp_handler() 460 switch (arm_check_condition(instr, regs->pstate)) { in cp15barrier_handler() 573 regs->pstate |= COMPAT_PSR_E_BIT; in compat_setend_handler() 576 regs->pstate &= ~COMPAT_PSR_E_BIT; in compat_setend_handler()
|
D | process.c | 193 regs->pc, lr, regs->pstate); in __show_regs() 288 childregs->pstate = PSR_MODE_EL1h; in copy_thread()
|
D | signal32.c | 352 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_restore_sigframe() 466 compat_ulong_t spsr = regs->pstate & ~(PSR_f | COMPAT_PSR_E_BIT); in compat_setup_return() 501 regs->pstate = spsr; in compat_setup_return() 526 __put_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_setup_sigframe()
|
D | kgdb.c | 61 { "pstate", 8, offsetof(struct pt_regs, pstate)},
|
D | asm-offsets.c | 57 DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate)); in main()
|
D | traps.c | 318 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
|
D | ptrace.c | 694 reg = task_pt_regs(target)->pstate; in compat_gpr_get() 762 newregs.pstate = reg; in compat_gpr_set()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | clk.h | 60 u8 pstate; member 88 int pstate; /* current */ member
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | hibernate.h | 16 unsigned long pstate; member
|
/linux-4.1.27/arch/arm64/include/asm/xen/ |
D | events.h | 16 return raw_irqs_disabled_flags((unsigned long) regs->pstate); in xen_irqs_disabled()
|
/linux-4.1.27/arch/sparc/power/ |
D | hibernate_asm.S | 30 rdpr %pstate, %g2 110 wrpr %g2, %pstate
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sp.h | 87 unsigned long *pstate; /* pointer to state buffer */ member 473 unsigned long *pstate; member 1389 unsigned long *pstate, bnx2x_obj_type type, 1396 unsigned long *pstate, bnx2x_obj_type type, 1435 int state, unsigned long *pstate, 1475 int state, unsigned long *pstate,
|
D | bnx2x_sp.c | 256 return !!test_bit(o->state, o->pstate); in bnx2x_raw_check_pending() 262 clear_bit(o->state, o->pstate); in bnx2x_raw_clear_pending() 269 set_bit(o->state, o->pstate); in bnx2x_raw_set_pending() 282 unsigned long *pstate) in bnx2x_state_wait() argument 294 if (!test_bit(state, pstate)) { in bnx2x_state_wait() 318 return bnx2x_state_wait(bp, raw->state, raw->pstate); in bnx2x_raw_wait() 1911 unsigned long *pstate, bnx2x_obj_type type) in bnx2x_init_raw_obj() argument 1919 raw->pstate = pstate; in bnx2x_init_raw_obj() 1929 int state, unsigned long *pstate, bnx2x_obj_type type, in bnx2x_init_vlan_mac_common() argument 1947 state, pstate, type); in bnx2x_init_vlan_mac_common() [all …]
|
D | bnx2x_sriov.c | 644 ramrod->pstate = &vf->filter_state; in bnx2x_vf_prep_rx_mode()
|
D | bnx2x_main.c | 6120 ramrod_param.pstate = &bp->sp_state; in bnx2x_set_q_rx_mode()
|
/linux-4.1.27/arch/arm64/include/uapi/asm/ |
D | sigcontext.h | 31 __u64 pstate; member
|
D | ptrace.h | 71 __u64 pstate; member
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | gk20a.c | 63 *state = clk->pstate; in gk20a_pmu_dvfs_get_cur_state() 76 level = cur_level = clk->pstate; in gk20a_pmu_dvfs_get_target_state()
|
/linux-4.1.27/drivers/media/platform/blackfin/ |
D | ppi.c | 212 struct pinctrl_state *pstate; in ppi_set_params() local 217 pstate = pinctrl_lookup_state(pctrl, in ppi_set_params() 219 if (pinctrl_select_state(pctrl, pstate)) in ppi_set_params()
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_crtc.c | 337 struct drm_plane_state *pstate; in mdp5_crtc_atomic_check() local 344 pstate = state->state->plane_states[drm_plane_index(plane)]; in mdp5_crtc_atomic_check() 349 if (!pstate) in mdp5_crtc_atomic_check() 350 pstate = plane->state; in mdp5_crtc_atomic_check() 353 pstates[cnt].state = to_mdp5_plane_state(pstate); in mdp5_crtc_atomic_check()
|
/linux-4.1.27/arch/s390/include/asm/ |
D | runtime_instr.h | 13 __u32 pstate : 1; member
|
/linux-4.1.27/arch/s390/kernel/ |
D | runtime_instr.c | 44 cb->pstate = 1; in init_runtime_instr_cb()
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
D | Kbuild | 30 header-y += pstate.h
|
/linux-4.1.27/drivers/net/ethernet/dec/tulip/ |
D | tulip_core.c | 1838 pci_power_t pstate; in tulip_suspend() local 1857 pstate = pci_choose_state(pdev, state); in tulip_suspend() 1858 if (state.event == PM_EVENT_SUSPEND && pstate != PCI_D0) { in tulip_suspend() 1862 rc = pci_enable_wake(pdev, pstate, tp->wolinfo.wolopts); in tulip_suspend() 1866 pci_set_power_state(pdev, pstate); in tulip_suspend()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/ |
D | class.h | 302 __s8 pstate; /* out: current pstate index */ member
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | cl_object.c | 458 static const char *pstate[] = { in cl_site_stats_print() local 484 seq_printf(m, "%s: %u ", pstate[i], in cl_site_stats_print()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
D | qla_attr.c | 1447 uint32_t pstate; in qla2x00_fw_state_show() local 1450 pstate = qlafx00_fw_state_show(dev, attr, buf); in qla2x00_fw_state_show() 1451 return scnprintf(buf, PAGE_SIZE, "0x%x\n", pstate); in qla2x00_fw_state_show()
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | sysfs-devices-system-cpu | 226 More details can be found in Documentation/cpu-freq/intel-pstate.txt
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | r600_dpm.c | 1125 rdev->pm.dpm.vce_states[i].pstate = in r600_parse_extended_power_table()
|
D | radeon.h | 1543 u8 pstate; member
|