Home
last modified time | relevance | path

Searched refs:tstate (Results 1 – 25 of 74) sorted by relevance

123

/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dpsrcompat.h28 static inline unsigned int tstate_to_psr(unsigned long tstate) in tstate_to_psr() argument
30 return ((tstate & TSTATE_CWP) | in tstate_to_psr()
32 ((tstate & TSTATE_ICC) >> 12) | in tstate_to_psr()
33 ((tstate & TSTATE_XCC) >> 20) | in tstate_to_psr()
34 ((tstate & TSTATE_SYSCALL) ? PSR_SYSCALL : 0) | in tstate_to_psr()
40 unsigned long tstate = ((unsigned long)(psr & PSR_ICC)) << 12; in psr_to_tstate_icc() local
42 tstate |= ((unsigned long)(psr & PSR_XCC)) << 20; in psr_to_tstate_icc()
43 return tstate; in psr_to_tstate_icc()
/openbmc/linux/arch/sparc/kernel/
H A Dptrace_64.c263 membuf_write(&to, &regs->tstate, 3 * sizeof(u64)); in genregs64_get()
298 unsigned long tstate; in genregs64_set() local
302 &tstate, in genregs64_set()
309 tstate &= (TSTATE_ICC | TSTATE_XCC | TSTATE_SYSCALL); in genregs64_set()
310 regs->tstate &= ~(TSTATE_ICC | TSTATE_XCC | TSTATE_SYSCALL); in genregs64_set()
311 regs->tstate |= tstate; in genregs64_set()
453 membuf_write(&to, &regs->tstate, 3 * sizeof(u64)); in getregs64_get()
464 unsigned long tstate; in setregs64_set() local
480 &tstate, in setregs64_set()
488 tstate &= (TSTATE_ICC | TSTATE_XCC | TSTATE_SYSCALL); in setregs64_set()
[all …]
H A Dsignal_64.c47 unsigned long pc, npc, tstate; in sparc64_set_context() local
81 err |= __get_user(tstate, &((*grp)[MC_TSTATE])); in sparc64_set_context()
82 regs->tstate &= ~(TSTATE_ASI | TSTATE_ICC | TSTATE_XCC); in sparc64_set_context()
83 regs->tstate |= (tstate & (TSTATE_ASI | TSTATE_ICC | TSTATE_XCC)); in sparc64_set_context()
128 regs->tstate &= ~TSTATE_PEF; in sparc64_set_context()
180 err |= __put_user(regs->tstate, &((*grp)[MC_TSTATE])); in sparc64_get_context()
257 unsigned long tpc, tnpc, tstate, ufp; in do_rt_sigreturn() local
291 err |= __get_user(tstate, &sf->regs.tstate); in do_rt_sigreturn()
295 regs->tstate &= ~(TSTATE_ASI | TSTATE_ICC | TSTATE_XCC); in do_rt_sigreturn()
296 regs->tstate |= (tstate & (TSTATE_ASI | TSTATE_ICC | TSTATE_XCC)); in do_rt_sigreturn()
[all …]
H A Dunaligned_64.c91 return (unsigned char)(regs->tstate >> 24); /* %asi */ in decode_asi()
129 if (regs->tstate & TSTATE_PRIV) { in fetch_reg()
154 if (regs->tstate & TSTATE_PRIV) { in fetch_reg_addr()
172 int from_kernel = (regs->tstate & TSTATE_PRIV) != 0; in compute_effective_address()
291 regs->tstate &= ~TSTATE_ASI; in kernel_mna_trap_fault()
292 regs->tstate |= (ASI_AIUS << 24UL); in kernel_mna_trap_fault()
398 int from_kernel = (regs->tstate & TSTATE_PRIV) != 0; in handle_popc()
573 int from_kernel = (regs->tstate & TSTATE_PRIV) != 0; in handle_ld_nf()
600 unsigned long tstate = regs->tstate; in handle_lddfmna() local
607 if (tstate & TSTATE_PRIV) in handle_lddfmna()
[all …]
H A Dkprobes.c98 kcb->kprobe_orig_tstate_pil = (regs->tstate & TSTATE_PIL); in set_current_kprobe()
104 regs->tstate |= TSTATE_PIL; in prepare_singlestep()
134 regs->tstate = ((regs->tstate & ~TSTATE_PIL) | in kprobe_handler()
289 regs->tstate = ((regs->tstate & ~TSTATE_PIL) | in resume_execution()
338 regs->tstate = ((regs->tstate & ~TSTATE_PIL) | in kprobe_fault_handler()
H A Dprocess_64.c136 if ((regs->tstate & TSTATE_PRIV) || !(test_thread_flag(TIF_32BIT))) { in show_regwindow()
142 if (!(regs->tstate & TSTATE_PRIV)) { in show_regwindow()
160 if (regs->tstate & TSTATE_PRIV) in show_regwindow()
168 printk("TSTATE: %016lx TPC: %016lx TNPC: %016lx Y: %08x %s\n", regs->tstate, in show_regs()
200 rp->tstate = regs->tstate; in __global_reg_self()
205 if (regs->tstate & TSTATE_PRIV) { in __global_reg_self()
273 gp->tstate, gp->tpc, gp->tnpc, in arch_trigger_cpumask_backtrace()
277 if (gp->tstate & TSTATE_PRIV) { in arch_trigger_cpumask_backtrace()
593 (current_pt_regs()->tstate + 1) & TSTATE_CWP; in copy_thread()
607 (regs->tstate + 1) & TSTATE_CWP; in copy_thread()
H A Dsignal32.c140 regs->tstate &= ~TSTATE_ASI; in do_sigreturn32()
141 regs->tstate |= ((asi & 0xffUL) << 24UL); in do_sigreturn32()
146 regs->tstate &= ~(TSTATE_ICC|TSTATE_XCC); in do_sigreturn32()
147 regs->tstate |= psr_to_tstate_icc(psr); in do_sigreturn32()
228 regs->tstate &= ~TSTATE_ASI; in do_rt_sigreturn32()
229 regs->tstate |= ((asi & 0xffUL) << 24UL); in do_rt_sigreturn32()
234 regs->tstate &= ~(TSTATE_ICC|TSTATE_XCC); in do_rt_sigreturn32()
235 regs->tstate |= psr_to_tstate_icc(psr); in do_rt_sigreturn32()
396 psr = tstate_to_psr(regs->tstate); in setup_frame32()
407 err |= __put_user((regs->tstate & TSTATE_ASI) >> 24UL, in setup_frame32()
[all …]
H A Detrap_64.S35 rdpr %tstate, %g1
182 wrpr %l7, (TSTATE_PRIV | TSTATE_IE), %tstate
224 rdpr %tstate, %g3
234 rdpr %tstate, %g3
249 rdpr %tstate, %g3
259 rdpr %tstate, %g3
278 rdpr %tstate, %g1
H A Dtraps_64.c61 unsigned long tstate; member
82 p->trapstack[i].tstate, p->trapstack[i].tpc, in dump_tl1_traplog()
102 if (regs->tstate & TSTATE_PRIV) { in bad_trap()
195 if (regs->tstate & TSTATE_PRIV) { in spitfire_insn_access_exception()
228 if (regs->tstate & TSTATE_PRIV) { in sun4v_insn_access_exception()
274 asi = (regs->tstate >> 24); /* saved %asi */ in is_no_fault_exception()
298 if (regs->tstate & TSTATE_PRIV) { in spitfire_data_access_exception()
347 if (regs->tstate & TSTATE_PRIV) { in sun4v_data_access_exception()
552 if (regs->tstate & TSTATE_PRIV) { in spitfire_ue_log()
1180 regs->tpc, regs->tnpc, regs->u_regs[UREG_I7], regs->tstate); in cheetah_log_errors()
[all …]
H A Dkgdb_64.c39 gdb_regs[GDB_STATE] = regs->tstate; in pt_regs_to_gdb_regs()
99 if (regs->tstate != gdb_regs[GDB_STATE]) { in gdb_regs_to_pt_regs()
100 unsigned long cwp = regs->tstate & TSTATE_CWP; in gdb_regs_to_pt_regs()
102 regs->tstate = (gdb_regs[GDB_STATE] & ~TSTATE_CWP) | cwp; in gdb_regs_to_pt_regs()
H A Dvisemul.c160 if (regs->tstate & TSTATE_PRIV) { in fetch_reg()
182 BUG_ON(regs->tstate & TSTATE_PRIV); in __fetch_reg_addr_user()
199 BUG_ON(regs->tstate & TSTATE_PRIV); in __fetch_reg_addr_kern()
359 unsigned long ccr, tstate; in edge() local
366 tstate = regs->tstate & ~(TSTATE_XCC | TSTATE_ICC); in edge()
367 regs->tstate = tstate | (ccr << 32UL); in edge()
809 BUG_ON(regs->tstate & TSTATE_PRIV); in vis_emul()
H A Dutrap.S21 rdpr %tstate, %l6
24 wrpr %l6, %l7, %tstate
H A Dwinfixup.S26 rdpr %tstate, %g1
91 rdpr %tstate, %g1
114 rdpr %tstate, %g1
141 rdpr %tstate, %g1
/openbmc/linux/fs/xfs/
H A Dxfs_quotaops.c21 struct qc_type_state *tstate, in xfs_qm_fill_state() argument
29 tstate->ino = ino; in xfs_qm_fill_state()
37 tstate->flags |= QCI_SYSFILE; in xfs_qm_fill_state()
38 tstate->blocks = ip->i_nblocks; in xfs_qm_fill_state()
39 tstate->nextents = ip->i_df.if_nextents; in xfs_qm_fill_state()
40 tstate->spc_timelimit = (u32)defq->blk.time; in xfs_qm_fill_state()
41 tstate->ino_timelimit = (u32)defq->ino.time; in xfs_qm_fill_state()
42 tstate->rt_spc_timelimit = (u32)defq->rtb.time; in xfs_qm_fill_state()
43 tstate->spc_warnlimit = 0; in xfs_qm_fill_state()
44 tstate->ino_warnlimit = 0; in xfs_qm_fill_state()
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Dprocessor_64.h96 regs->tstate = (regs->tstate & (TSTATE_CWP)) | (TSTATE_INITIAL_MM|TSTATE_IE) | (__asi << 24UL); \
132 regs->tstate &= ~TSTATE_PEF; \
140 …regs->tstate = (regs->tstate & (TSTATE_CWP))|(TSTATE_INITIAL_MM|TSTATE_IE|TSTATE_AM) | (__asi << 2…
176 regs->tstate &= ~TSTATE_PEF; \
H A Dptrace.h21 return (regs->tstate & TSTATE_SYSCALL); in pt_regs_is_syscall()
26 return (regs->tstate &= ~TSTATE_SYSCALL); in pt_regs_clear_syscall()
41 unsigned long tstate; member
64 #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
73 return !(regs->tstate & (TSTATE_XCARRY | TSTATE_ICARRY)); in is_syscall_success()
H A Dsyscall.h56 return (regs->tstate & (TSTATE_XCARRY | TSTATE_ICARRY)) ? true : false; in syscall_has_error()
60 regs->tstate |= (TSTATE_XCARRY | TSTATE_ICARRY); in syscall_set_error()
64 regs->tstate &= ~(TSTATE_XCARRY | TSTATE_ICARRY); in syscall_clear_error()
/openbmc/linux/arch/sparc/mm/
H A Dfault_64.c190 if (regs->tstate & TSTATE_PRIV) { in get_fault_insn()
205 if ((!insn) && (regs->tstate & TSTATE_PRIV)) in do_kernel_fault()
216 asi = (regs->tstate >> 24); in do_kernel_fault()
234 if (regs->tstate & TSTATE_PRIV) { in do_kernel_fault()
291 if (!(regs->tstate & TSTATE_PRIV)) { in do_sparc64_fault()
301 if (regs->tstate & TSTATE_PRIV) { in do_sparc64_fault()
325 if ((regs->tstate & TSTATE_PRIV) && in do_sparc64_fault()
382 asi = (regs->tstate >> 24); in do_sparc64_fault()
405 WARN_ON(regs->tstate & TSTATE_PRIV); in do_sparc64_fault()
432 if (regs->tstate & TSTATE_PRIV) { in do_sparc64_fault()
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-pybluez/
H A Dpy-3.11.patch283 +PyThreadState_GetInterpreter(PyThreadState *tstate)
285 + assert(tstate != NULL);
286 + return tstate->interp;
294 +PyThreadState_GetFrame(PyThreadState *tstate)
296 + assert(tstate != NULL);
297 + return (PyFrameObject *)Py_XNewRef(tstate->frame);
303 +_PyThreadState_GetFrameBorrow(PyThreadState *tstate)
305 + return (PyFrameObject *)_Py_XStealRef(PyThreadState_GetFrame(tstate));
315 + PyThreadState *tstate;
318 + tstate = PyThreadState_GET();
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Das102_fe.c305 struct as10x_tune_status tstate = { 0 }; in as102_fe_read_status() local
308 ret = state->ops->get_status(state->priv, &tstate); in as102_fe_read_status()
312 state->signal_strength = tstate.signal_strength; in as102_fe_read_status()
313 state->ber = tstate.BER; in as102_fe_read_status()
315 switch (tstate.tune_state) { in as102_fe_read_status()
332 tstate.tune_state, tstate.signal_strength, in as102_fe_read_status()
333 tstate.PER, tstate.BER); in as102_fe_read_status()
/openbmc/qemu/target/sparc/
H A Dwin_helper.c438 cpu_put_ccr(env, tsptr->tstate >> 32); in helper_done()
439 env->asi = (tsptr->tstate >> 24) & 0xff; in helper_done()
440 cpu_change_pstate(env, (tsptr->tstate >> 8) & 0xf3f); in helper_done()
441 cpu_put_cwp64(env, tsptr->tstate & 0xff); in helper_done()
443 uint32_t new_gl = (tsptr->tstate >> 40) & 7; in helper_done()
467 cpu_put_ccr(env, tsptr->tstate >> 32); in helper_retry()
468 env->asi = (tsptr->tstate >> 24) & 0xff; in helper_retry()
469 cpu_change_pstate(env, (tsptr->tstate >> 8) & 0xf3f); in helper_retry()
470 cpu_put_cwp64(env, tsptr->tstate & 0xff); in helper_retry()
472 uint32_t new_gl = (tsptr->tstate >> 40) & 7; in helper_retry()
/openbmc/linux/drivers/scsi/aic7xxx/
H A Daic7xxx_core.c444 u_int remote_id, struct ahc_tmode_tstate **tstate) in ahc_fetch_transinfo() argument
454 *tstate = ahc->enabled_targets[our_id]; in ahc_fetch_transinfo()
455 return (&(*tstate)->transinfo[remote_id]); in ahc_fetch_transinfo()
1054 struct ahc_tmode_tstate *tstate; in ahc_handle_seqint() local
1071 &tstate); in ahc_handle_seqint()
1123 tstate, targ_info, in ahc_handle_seqint()
1126 if (tstate->auto_negotiate & devinfo.target_mask) { in ahc_handle_seqint()
1850 struct ahc_tmode_tstate *tstate; in ahc_handle_scsiint() local
1860 &tstate); in ahc_handle_scsiint()
1952 struct ahc_tmode_tstate *tstate; in ahc_force_renegotiation() local
[all …]
H A Daic79xx_osm.c615 struct ahd_tmode_tstate *tstate; in ahd_linux_target_alloc() local
628 starget->id, &tstate); in ahd_linux_target_alloc()
648 starget->id, &tstate); in ahd_linux_target_alloc()
773 struct ahd_tmode_tstate *tstate; in ahd_linux_dev_reset() local
813 cmd->device->id, &tstate); in ahd_linux_dev_reset()
1285 struct ahd_tmode_tstate *tstate; in ahd_linux_initialize_scsi_bus() local
1288 target_id, &tstate); in ahd_linux_initialize_scsi_bus()
1291 ahd_update_neg_request(ahd, &devinfo, tstate, in ahd_linux_initialize_scsi_bus()
1540 struct ahd_tmode_tstate *tstate; in ahd_linux_run_command() local
1556 cmd->device->id, &tstate); in ahd_linux_run_command()
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dbtf_dump.c482 struct btf_dump_type_aux_state *tstate = &d->type_states[id]; in btf_dump_order_type() local
488 if (tstate->order_state == ORDERED) in btf_dump_order_type()
493 if (tstate->order_state == ORDERING) { in btf_dump_order_type()
504 tstate->order_state = ORDERED; in btf_dump_order_type()
509 tstate->order_state = ORDERED; in btf_dump_order_type()
526 tstate->order_state = ORDERING; in btf_dump_order_type()
541 tstate->order_state = ORDERED; in btf_dump_order_type()
552 if (t->name_off != 0 || !tstate->referenced) { in btf_dump_order_type()
557 tstate->order_state = ORDERED; in btf_dump_order_type()
687 struct btf_dump_type_aux_state *tstate = &d->type_states[id]; in btf_dump_emit_type() local
[all …]
/openbmc/qemu/linux-user/sparc/
H A Dsignal.c130 __put_user(sparc64_tstate(env), &regs->tstate); in save_pt_regs()
155 uint64_t tstate; in restore_pt_regs() local
156 __get_user(tstate, &regs->tstate); in restore_pt_regs()
157 cpu_put_ccr(env, tstate >> 32); in restore_pt_regs()
158 env->asi = extract64(tstate, 24, 8); in restore_pt_regs()
591 target_ulong pc, npc, tstate; in sparc64_set_context() local
625 __get_user(tstate, &((*grp)[SPARC_MC_TSTATE])); in sparc64_set_context()
627 env->asi = (tstate >> 24) & 0xff; in sparc64_set_context()
628 cpu_put_ccr(env, (tstate >> 32) & 0xff); in sparc64_set_context()

123