Home
last modified time | relevance | path

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

123

/linux/arch/sparc/include/uapi/asm/
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()
/linux/arch/sparc/kernel/
A Dptrace_64.c299 unsigned long tstate; in genregs64_set() local
303 &tstate, in genregs64_set()
312 regs->tstate |= tstate; in genregs64_set()
465 unsigned long tstate; in setregs64_set() local
483 &tstate, in setregs64_set()
493 regs->tstate |= tstate; in setregs64_set()
644 tstate = regs->tstate; in genregs32_set()
649 regs->tstate = tstate; in genregs32_set()
803 unsigned long tstate; in setregs_set() local
816 tstate = regs->tstate; in setregs_set()
[all …]
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()
296 regs->tstate |= (tstate & (TSTATE_ASI | TSTATE_ICC | TSTATE_XCC)); in do_rt_sigreturn()
459 regs->tstate |= (TSTATE_ICARRY|TSTATE_XCARRY); in syscall_restart()
[all …]
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()
600 unsigned long tstate = regs->tstate; in handle_lddfmna() local
607 if (tstate & TSTATE_PRIV) in handle_lddfmna()
664 unsigned long tstate = regs->tstate; in handle_stdfmna() local
[all …]
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()
A Dprocess_64.c141 if ((regs->tstate & TSTATE_PRIV) || !(test_thread_flag(TIF_32BIT))) { in show_regwindow()
147 if (!(regs->tstate & TSTATE_PRIV)) { in show_regwindow()
169 if (regs->tstate & TSTATE_PRIV) in show_regwindow()
177 printk("TSTATE: %016lx TPC: %016lx TNPC: %016lx Y: %08x %s\n", regs->tstate, in show_regs()
209 rp->tstate = regs->tstate; in __global_reg_self()
214 if (regs->tstate & TSTATE_PRIV) { in __global_reg_self()
282 gp->tstate, gp->tpc, gp->tnpc, in arch_trigger_cpumask_backtrace()
286 if (gp->tstate & TSTATE_PRIV) { in arch_trigger_cpumask_backtrace()
600 (current_pt_regs()->tstate + 1) & TSTATE_CWP; in copy_thread()
615 (regs->tstate + 1) & TSTATE_CWP; in copy_thread()
A Dsignal32.c141 regs->tstate &= ~TSTATE_ASI; in do_sigreturn32()
142 regs->tstate |= ((asi & 0xffUL) << 24UL); in do_sigreturn32()
147 regs->tstate &= ~(TSTATE_ICC|TSTATE_XCC); in do_sigreturn32()
148 regs->tstate |= psr_to_tstate_icc(psr); in do_sigreturn32()
229 regs->tstate &= ~TSTATE_ASI; in do_rt_sigreturn32()
230 regs->tstate |= ((asi & 0xffUL) << 24UL); in do_rt_sigreturn32()
235 regs->tstate &= ~(TSTATE_ICC|TSTATE_XCC); in do_rt_sigreturn32()
236 regs->tstate |= psr_to_tstate_icc(psr); in do_rt_sigreturn32()
395 psr = tstate_to_psr(regs->tstate); in setup_frame32()
529 psr = tstate_to_psr(regs->tstate); in setup_rt_frame32()
[all …]
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
A Dtraps_64.c61 unsigned long tstate; member
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()
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()
2389 if (regs->tstate & TSTATE_PRIV) in do_tof()
2408 if (regs->tstate & TSTATE_PRIV) in do_div0()
2575 unsigned long tstate = regs->tstate; in do_illegal_instruction() local
[all …]
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()
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()
A Dwinfixup.S26 rdpr %tstate, %g1
91 rdpr %tstate, %g1
114 rdpr %tstate, %g1
141 rdpr %tstate, %g1
A Dutrap.S21 rdpr %tstate, %l6
24 wrpr %l6, %l7, %tstate
/linux/fs/xfs/
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 = defq->blk.warn; in xfs_qm_fill_state()
44 tstate->ino_warnlimit = defq->ino.warn; in xfs_qm_fill_state()
[all …]
/linux/arch/sparc/include/asm/
A Dprocessor_64.h100 regs->tstate = (regs->tstate & (TSTATE_CWP)) | (TSTATE_INITIAL_MM|TSTATE_IE) | (__asi << 24UL); \
136 regs->tstate &= ~TSTATE_PEF; \
144 …regs->tstate = (regs->tstate & (TSTATE_CWP))|(TSTATE_INITIAL_MM|TSTATE_IE|TSTATE_AM) | (__asi << 2…
180 regs->tstate &= ~TSTATE_PEF; \
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()
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()
A Dmman.h26 regs->tstate |= TSTATE_MCDE; in ipi_set_tstate_mcde()
38 regs->tstate |= TSTATE_MCDE; in sparc_calc_vm_prot_bits()
/linux/arch/sparc/mm/
A Dfault_64.c187 if (regs->tstate & TSTATE_PRIV) { in get_fault_insn()
202 if ((!insn) && (regs->tstate & TSTATE_PRIV)) in do_kernel_fault()
213 asi = (regs->tstate >> 24); in do_kernel_fault()
231 if (regs->tstate & TSTATE_PRIV) { in do_kernel_fault()
288 if (!(regs->tstate & TSTATE_PRIV)) { in do_sparc64_fault()
298 if (regs->tstate & TSTATE_PRIV) { in do_sparc64_fault()
322 if ((regs->tstate & TSTATE_PRIV) && in do_sparc64_fault()
379 asi = (regs->tstate >> 24); in do_sparc64_fault()
401 WARN_ON(regs->tstate & TSTATE_PRIV); in do_sparc64_fault()
496 if (!(regs->tstate & TSTATE_PRIV)) { in do_sparc64_fault()
[all …]
/linux/drivers/media/dvb-frontends/
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()
/linux/drivers/scsi/aic7xxx/
A Daic7xxx_core.c1071 &tstate); in ahc_handle_seqint()
1860 &tstate); in ahc_handle_scsiint()
1958 &tstate); in ahc_force_renegotiation()
2131 tstate = kmalloc(sizeof(*tstate), GFP_ATOMIC); in ahc_alloc_tstate()
2142 memcpy(tstate, master_tstate, sizeof(*tstate)); in ahc_alloc_tstate()
2143 memset(tstate->enabled_luns, 0, sizeof(tstate->enabled_luns)); in ahc_alloc_tstate()
2152 memset(tstate, 0, sizeof(*tstate)); in ahc_alloc_tstate()
2154 return (tstate); in ahc_alloc_tstate()
2179 kfree(tstate); in ahc_free_tstate()
4506 kfree(tstate); in ahc_free()
[all …]
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()
777 struct ahd_tmode_tstate *tstate; in ahd_linux_dev_reset() local
817 cmd->device->id, &tstate); in ahd_linux_dev_reset()
1292 target_id, &tstate); in ahd_linux_initialize_scsi_bus()
1684 target, &tstate); in ahd_send_async()
2375 struct ahd_tmode_tstate *tstate; in ahd_linux_set_period() local
2428 struct ahd_tmode_tstate *tstate; in ahd_linux_set_offset() local
2463 struct ahd_tmode_tstate *tstate; in ahd_linux_set_dt() local
[all …]
A Daic79xx_core.c3403 &tstate); in ahd_force_renegotiation()
3607 tstate = kmalloc(sizeof(*tstate), GFP_ATOMIC); in ahd_alloc_tstate()
3608 if (tstate == NULL) in ahd_alloc_tstate()
3618 memcpy(tstate, master_tstate, sizeof(*tstate)); in ahd_alloc_tstate()
3619 memset(tstate->enabled_luns, 0, sizeof(tstate->enabled_luns)); in ahd_alloc_tstate()
3627 memset(tstate, 0, sizeof(*tstate)); in ahd_alloc_tstate()
3629 return (tstate); in ahd_alloc_tstate()
3651 kfree(tstate); in ahd_free_tstate()
6158 kfree(tstate); in ahd_free()
8957 &tstate); in ahd_handle_scsi_status()
[all …]
A Daic7xxx_osm.c1162 struct ahc_tmode_tstate *tstate; in ahc_linux_initialize_scsi_bus() local
1176 target_id, &tstate); in ahc_linux_initialize_scsi_bus()
1408 struct ahc_tmode_tstate *tstate; in ahc_linux_run_command() local
1468 if ((tstate->ultraenb & mask) != 0) in ahc_linux_run_command()
1595 struct ahc_tmode_tstate *tstate; in ahc_send_async() local
1604 target, &tstate); in ahc_send_async()
2329 struct ahc_tmode_tstate *tstate; in ahc_linux_set_period() local
2374 struct ahc_tmode_tstate *tstate; in ahc_linux_set_offset() local
2403 struct ahc_tmode_tstate *tstate; in ahc_linux_set_dt() local
2442 struct ahc_tmode_tstate *tstate;
[all …]
/linux/tools/lib/bpf/
A Dbtf_dump.c486 tstate->order_state = ORDERED; in btf_dump_order_type()
491 tstate->order_state = ORDERED; in btf_dump_order_type()
523 tstate->order_state = ORDERED; in btf_dump_order_type()
679 if (tstate->fwd_emitted) in btf_dump_emit_type()
698 tstate->fwd_emitted = 1; in btf_dump_emit_type()
710 tstate->fwd_emitted = 1; in btf_dump_emit_type()
724 tstate->emit_state = EMITTED; in btf_dump_emit_type()
731 tstate->emit_state = EMITTED; in btf_dump_emit_type()
745 tstate->emit_state = EMITTED; in btf_dump_emit_type()
761 tstate->emit_state = EMITTED; in btf_dump_emit_type()
[all …]

Completed in 82 milliseconds

123