Home
last modified time | relevance | path

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

123

/linux-6.1.9/arch/sparc/include/uapi/asm/
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.1.9/arch/sparc/kernel/
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
482 &tstate, in setregs64_set()
490 tstate &= (TSTATE_ICC | TSTATE_XCC | TSTATE_SYSCALL); in setregs64_set()
[all …]
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 …]
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 …]
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()
Dprocess_64.c135 if ((regs->tstate & TSTATE_PRIV) || !(test_thread_flag(TIF_32BIT))) { in show_regwindow()
141 if (!(regs->tstate & TSTATE_PRIV)) { in show_regwindow()
159 if (regs->tstate & TSTATE_PRIV) in show_regwindow()
167 printk("TSTATE: %016lx TPC: %016lx TNPC: %016lx Y: %08x %s\n", regs->tstate, in show_regs()
199 rp->tstate = regs->tstate; in __global_reg_self()
204 if (regs->tstate & TSTATE_PRIV) { in __global_reg_self()
272 gp->tstate, gp->tpc, gp->tnpc, in arch_trigger_cpumask_backtrace()
276 if (gp->tstate & TSTATE_PRIV) { in arch_trigger_cpumask_backtrace()
592 (current_pt_regs()->tstate + 1) & TSTATE_CWP; in copy_thread()
606 (regs->tstate + 1) & TSTATE_CWP; in copy_thread()
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
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()
405 err |= __put_user((regs->tstate & TSTATE_ASI) >> 24UL, in setup_frame32()
[all …]
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()
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 …]
Dutrap.S21 rdpr %tstate, %l6
24 wrpr %l6, %l7, %tstate
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()
Dwinfixup.S26 rdpr %tstate, %g1
91 rdpr %tstate, %g1
114 rdpr %tstate, %g1
141 rdpr %tstate, %g1
/linux-6.1.9/fs/xfs/
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.1.9/arch/sparc/include/asm/
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; \
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()
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()
Dmman.h26 regs->tstate |= TSTATE_MCDE; in ipi_set_tstate_mcde()
38 regs->tstate |= TSTATE_MCDE; in sparc_calc_vm_prot_bits()
/linux-6.1.9/arch/sparc/mm/
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()
499 if (!(regs->tstate & TSTATE_PRIV)) { in do_sparc64_fault()
[all …]
/linux-6.1.9/drivers/media/dvb-frontends/
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.1.9/drivers/scsi/aic7xxx/
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 …]
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 …]
Daic79xx_core.c564 u_int remote_id, struct ahd_tmode_tstate **tstate) in ahd_fetch_transinfo() argument
574 *tstate = ahd->enabled_targets[our_id]; in ahd_fetch_transinfo()
575 return (&(*tstate)->transinfo[remote_id]); in ahd_fetch_transinfo()
3104 struct ahd_tmode_tstate *tstate; in ahd_handle_nonpkt_busfree() local
3122 devinfo.target, &tstate); in ahd_handle_nonpkt_busfree()
3391 struct ahd_tmode_tstate *tstate; in ahd_force_renegotiation() local
3403 &tstate); in ahd_force_renegotiation()
3404 ahd_update_neg_request(ahd, devinfo, tstate, in ahd_force_renegotiation()
3599 struct ahd_tmode_tstate *tstate; in ahd_alloc_tstate() local
3607 tstate = kmalloc(sizeof(*tstate), GFP_ATOMIC); in ahd_alloc_tstate()
[all …]
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()
1179 ahc_update_neg_request(ahc, &devinfo, tstate, in ahc_linux_initialize_scsi_bus()
1408 struct ahc_tmode_tstate *tstate; in ahc_linux_run_command() local
1465 SCB_GET_TARGET(ahc, scb), &tstate); in ahc_linux_run_command()
1468 if ((tstate->ultraenb & mask) != 0) in ahc_linux_run_command()
1474 if ((tstate->auto_negotiate & 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
[all …]
/linux-6.1.9/tools/lib/bpf/
Dbtf_dump.c481 struct btf_dump_type_aux_state *tstate = &d->type_states[id]; in btf_dump_order_type() local
487 if (tstate->order_state == ORDERED) in btf_dump_order_type()
492 if (tstate->order_state == ORDERING) { in btf_dump_order_type()
503 tstate->order_state = ORDERED; in btf_dump_order_type()
508 tstate->order_state = ORDERED; in btf_dump_order_type()
525 tstate->order_state = ORDERING; in btf_dump_order_type()
540 tstate->order_state = ORDERED; in btf_dump_order_type()
551 if (t->name_off != 0 || !tstate->referenced) { in btf_dump_order_type()
556 tstate->order_state = ORDERED; in btf_dump_order_type()
686 struct btf_dump_type_aux_state *tstate = &d->type_states[id]; in btf_dump_emit_type() local
[all …]

123