Home
last modified time | relevance | path

Searched refs:pstate (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/phosphor-fan-presence/presence/test/
H A Dfallbacktest.cpp10 int pstate = -1; variable
22 pstate = 1; in setPresence()
26 pstate = 0; in setPresence()
72 pstate = -1; in TEST()
80 ASSERT_EQ(pstate, 1); in TEST()
86 ASSERT_EQ(pstate, 0); in TEST()
92 ASSERT_EQ(pstate, 1); in TEST()
103 pstate = -1; in TEST()
113 ASSERT_EQ(pstate, 1); in TEST()
124 ASSERT_EQ(pstate, 0); in TEST()
[all …]
/openbmc/qemu/qga/
H A Dmain.c126 GAPersistentState pstate; member
875 static void set_persistent_state_defaults(GAPersistentState *pstate) in set_persistent_state_defaults() argument
877 g_assert(pstate); in set_persistent_state_defaults()
878 pstate->fd_counter = QGA_PSTATE_DEFAULT_FD_COUNTER; in set_persistent_state_defaults()
881 static void persistent_state_from_keyfile(GAPersistentState *pstate, in persistent_state_from_keyfile() argument
884 g_assert(pstate); in persistent_state_from_keyfile()
892 set_persistent_state_defaults(pstate); in persistent_state_from_keyfile()
895 pstate->fd_counter = in persistent_state_from_keyfile()
900 static void persistent_state_to_keyfile(const GAPersistentState *pstate, in persistent_state_to_keyfile() argument
903 g_assert(pstate); in persistent_state_to_keyfile()
[all …]
/openbmc/qemu/bsd-user/aarch64/
H A Dsignal.c125 uint32_t pstate = pstate_read(regs); in get_ucontext_sigreturn() local
129 if ((pstate & PSTATE_M) != PSTATE_MODE_EL0t || in get_ucontext_sigreturn()
130 (pstate & (PSTATE_F | PSTATE_I | PSTATE_A | PSTATE_D)) != 0) { in get_ucontext_sigreturn()
H A Dtarget_syscall.h45 uint64_t pstate; member
/openbmc/qemu/tests/functional/acpi-bits/bits-tests/
H A Dtestacpi.py2107 for index, pstate in enumerate(pss.pstates):
108 testsuite.print_detail("P[{}]: {}".format(index, pstate))
154 for n, pstate in enumerate(pss.pstates):
160 bits.wrmsr(apicid, IA32_PERF_CTL, pstate.control)
166 … turbo = (n == 0 and pstate.core_frequency == (pss.pstates[1].core_frequency + 1))
182 if aperf >= pstate.core_frequency:
185 if aperf == pstate.core_frequency:
189 …asured frequency {} >= expected {} MHz".format(n, aperf, pstate.core_frequency), aperf >= pstate.c…
191 …ed frequency {} MHz == expected {} MHz".format(n, aperf, pstate.core_frequency), aperf == pstate.c…
/openbmc/qemu/target/arm/
H A Darch_dump.c33 uint64_t pstate; member
240 uint64_t pstate, sp; in arm_cpu_write_elf64_note() local
250 pstate = cpsr_read(env); in arm_cpu_write_elf64_note()
253 pstate = pstate_read(env); in arm_cpu_write_elf64_note()
262 note.prstatus.pr_reg.pstate = cpu_to_dump64(s, pstate); in arm_cpu_write_elf64_note()
H A Dinternals.h467 return extract32(env->pstate, 2, 2); in arm_current_el()
537 if (env->pstate & PSTATE_SP) { in aarch64_save_sp()
546 if (env->pstate & PSTATE_SP) { in aarch64_restore_sp()
559 if (!((imm ^ env->pstate) & PSTATE_SP)) { in update_spsel()
563 env->pstate = deposit32(env->pstate, 0, 1, imm); in update_spsel()
/openbmc/qemu/target/sparc/
H A Dwin_helper.c319 static inline uint64_t *get_gregset(CPUSPARCState *env, uint32_t pstate) in get_gregset() argument
325 switch (pstate) { in get_gregset()
327 trace_win_helper_gregset_error(pstate); in get_gregset()
372 env->pstate = new_pstate; in cpu_change_pstate()
376 pstate_regs = env->pstate & 0xc01; in cpu_change_pstate()
390 env->pstate = new_pstate; in cpu_change_pstate()
H A Dgdbstub.c98 ((env->pstate & 0xfff) << 8) | in sparc_cpu_gdb_read_register()
199 env->pstate = (tmp >> 8) & 0xfff; in sparc_cpu_gdb_write_register()
H A Dcpu.c55 env->pstate = PS_RMO | PS_PEF | PS_IE; in sparc_cpu_reset_hold()
65 env->pstate = PS_PRIV | PS_RED | PS_PEF; in sparc_cpu_reset_hold()
67 env->pstate |= PS_AG; in sparc_cpu_reset_hold()
666 qemu_fprintf(f, "pstate: %08x ccr: %02x (icc: ", env->pstate, in sparc_cpu_dump_state()
735 if (env->pstate & PS_AM) { in sparc_get_tb_cpu_state()
738 if ((env->pstate & PS_PEF) && (env->fprs & FPRS_FEF)) { in sparc_get_tb_cpu_state()
804 ? (env->lsu & IMMU_E) == 0 || (env->pstate & PS_RED) != 0 in sparc_cpu_mmu_index()
1010 return cpu_env(cs)->pstate & PS_AM ? (uint32_t)result : result; in sparc_pointer_wrap()
H A Dtrace-events27 win_helper_gregset_error(uint32_t pstate) "ERROR in get_gregset: active pstate bits=0x%x"
H A Dint64_helper.c187 env->pstate |= PS_RED; in sparc_cpu_do_interrupt()
226 env->pstate = PS_PEF | PS_PRIV; in sparc_cpu_do_interrupt()
H A Dcpu.h517 uint32_t pstate; member
695 return env1->pstate & PS_PRIV; in cpu_supervisor_mode()
710 if ((env1->pstate & PS_IE) && !cpu_hypervisor_mode(env1)) { in cpu_interrupts_enabled()
772 ((env->asi & 0xff) << 24) | ((env->pstate & 0xf3f) << 8) | in sparc64_tstate()
/openbmc/qemu/linux-user/aarch64/
H A Dtarget_syscall.h8 uint64_t pstate; member
H A Dsignal.c32 uint64_t pstate; member
173 __put_user(pstate_read(env), &sf->uc.tuc_mcontext.pstate); in target_setup_general_frame()
314 uint64_t pstate; in target_restore_general_frame() local
326 __get_user(pstate, &sf->uc.tuc_mcontext.pstate); in target_restore_general_frame()
327 pstate_write(env, pstate); in target_restore_general_frame()
/openbmc/qemu/tests/tcg/aarch64/
H A Dbti-3.c10 uc->uc_mcontext.pstate = 1; in skip2_sigill()
H A Dbti-1.c10 uc->uc_mcontext.pstate = 1; in skip2_sigill()
H A Dbti-2.c19 uc->uc_mcontext.pstate = 1; in skip2_sigill()
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/external/libunwind/
H A Duser_pt_regs.patch20 + __u64 pstate;
/openbmc/qemu/target/arm/tcg/
H A Dhflags.c343 if (!(env->pstate & PSTATE_UAO)) { in rebuild_hflags_a64()
367 if (env->pstate & PSTATE_IL) { in rebuild_hflags_a64()
414 && !(env->pstate & PSTATE_TCO) in rebuild_hflags_a64()
431 && !(env->pstate & PSTATE_TCO) in rebuild_hflags_a64()
655 if (EX_TBFLAG_ANY(flags, SS_ACTIVE) && (env->pstate & PSTATE_SS)) { in arm_get_tb_cpu_state()
H A Dhelper-a64.c86 env->pstate |= PSTATE_ALLINT; in HELPER()
623 env->pstate = (env->pstate & ~PSTATE_SS) | (val & PSTATE_SS); in cpsr_write_from_spsr_elx()
709 env->pstate &= ~PSTATE_SS; in HELPER()
729 env->pstate &= ~PSTATE_SS; in HELPER()
778 env->pstate |= PSTATE_IL; in HELPER()
784 env->pstate &= ~PSTATE_SS; in HELPER()
H A Dtranslate.h381 tcg_gen_ld_i32(p, tcg_env, offsetof(CPUARMState, pstate)); in set_pstate_bits()
383 tcg_gen_st_i32(p, tcg_env, offsetof(CPUARMState, pstate)); in set_pstate_bits()
393 tcg_gen_ld_i32(p, tcg_env, offsetof(CPUARMState, pstate)); in clear_pstate_bits()
395 tcg_gen_st_i32(p, tcg_env, offsetof(CPUARMState, pstate)); in clear_pstate_bits()
/openbmc/qemu/hw/usb/
H A Dhcd-uhci-pci.c
H A Dhcd-ehci.c253 if (s->astate == EST_INACTIVE && s->pstate == EST_INACTIVE) { in ehci_update_halt()
272 s->pstate = state; in ehci_set_state()
273 if (s->pstate == EST_INACTIVE) { in ehci_set_state()
284 return async ? s->astate : s->pstate; in ehci_get_state()
878 s->pstate = EST_INACTIVE; in ehci_reset()
1057 if (s->pstate == EST_INACTIVE) { in ehci_opreg_write()
2233 "Resetting to active\n", ehci->pstate); in ehci_advance_periodic_state()
2240 if (!ehci_enabled(ehci) && ehci->pstate == EST_INACTIVE) { in ehci_update_frindex()
2282 if (ehci_periodic_enabled(ehci) || ehci->pstate != EST_INACTIVE) { in ehci_work_bh()
2502 VMSTATE_UINT32(pstate, EHCIState),
/openbmc/u-boot/arch/arm/include/asm/
H A Domap_mmc.h53 unsigned int pstate; /* 0x124 */ member

12