Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/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-6.3-rc2/arch/sparc/kernel/
A Dptrace_64.c298 unsigned long tstate; in genregs64_set() local
302 &tstate, in genregs64_set()
311 regs->tstate |= tstate; in genregs64_set()
464 unsigned long tstate; in setregs64_set() local
480 &tstate, in setregs64_set()
490 regs->tstate |= tstate; in setregs64_set()
641 tstate = regs->tstate; in genregs32_set()
646 regs->tstate = tstate; in genregs32_set()
801 unsigned long tstate; in setregs_set() local
814 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.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()
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 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()
394 psr = tstate_to_psr(regs->tstate); in setup_frame32()
528 psr = tstate_to_psr(regs->tstate); in setup_rt_frame32()
[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 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()
2573 unsigned long tstate = regs->tstate; in do_illegal_instruction() local
[all …]
A Dutrap.S21 rdpr %tstate, %l6
24 wrpr %l6, %l7, %tstate
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
/linux-6.3-rc2/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 = 0; in xfs_qm_fill_state()
44 tstate->ino_warnlimit = 0; in xfs_qm_fill_state()
[all …]
/linux-6.3-rc2/arch/sparc/include/asm/
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; \
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-6.3-rc2/arch/sparc/mm/
A Dfault_64.c187 if (regs->tstate & TSTATE_PRIV) { in get_fault_insn()
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()
428 if (regs->tstate & TSTATE_PRIV) { in do_sparc64_fault()
504 if (!(regs->tstate & TSTATE_PRIV)) { in do_sparc64_fault()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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()
773 struct ahd_tmode_tstate *tstate; in ahd_linux_dev_reset() local
813 cmd->device->id, &tstate); in ahd_linux_dev_reset()
1288 target_id, &tstate); in ahd_linux_initialize_scsi_bus()
1680 target, &tstate); in ahd_send_async()
2371 struct ahd_tmode_tstate *tstate; in ahd_linux_set_period() local
2424 struct ahd_tmode_tstate *tstate; in ahd_linux_set_offset() local
2459 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-6.3-rc2/tools/lib/bpf/
A Dbtf_dump.c504 tstate->order_state = ORDERED; in btf_dump_order_type()
509 tstate->order_state = ORDERED; in btf_dump_order_type()
541 tstate->order_state = ORDERED; in btf_dump_order_type()
699 if (tstate->fwd_emitted) in btf_dump_emit_type()
718 tstate->fwd_emitted = 1; in btf_dump_emit_type()
730 tstate->fwd_emitted = 1; in btf_dump_emit_type()
744 tstate->emit_state = EMITTED; in btf_dump_emit_type()
752 tstate->emit_state = EMITTED; in btf_dump_emit_type()
767 tstate->emit_state = EMITTED; in btf_dump_emit_type()
783 tstate->emit_state = EMITTED; in btf_dump_emit_type()
[all …]

Completed in 66 milliseconds

123