Home
last modified time | relevance | path

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

123

/Linux-v6.6/arch/sh/drivers/
Dpush-switch.c28 struct push_switch *psw = from_timer(psw, t, debounce); in switch_timer() local
30 schedule_work(&psw->work); in switch_timer()
35 struct push_switch *psw = container_of(work, struct push_switch, work); in switch_work_handler() local
36 struct platform_device *pdev = psw->pdev; in switch_work_handler()
38 psw->state = 0; in switch_work_handler()
46 struct push_switch *psw; in switch_drv_probe() local
49 psw = kzalloc(sizeof(struct push_switch), GFP_KERNEL); in switch_drv_probe()
50 if (unlikely(!psw)) in switch_drv_probe()
77 INIT_WORK(&psw->work, switch_work_handler); in switch_drv_probe()
78 timer_setup(&psw->debounce, switch_timer, 0); in switch_drv_probe()
[all …]
/Linux-v6.6/arch/s390/include/asm/
Dprocessor.h218 regs->psw.mask = PSW_USER_BITS | PSW_MASK_EA | PSW_MASK_BA; \
219 regs->psw.addr = new_psw; \
225 regs->psw.mask = PSW_USER_BITS | PSW_MASK_BA; \
226 regs->psw.addr = new_psw; \
247 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->psw.addr)
300 static inline void __load_psw(psw_t psw) in __load_psw() argument
302 asm volatile("lpswe %0" : : "Q" (psw) : "cc"); in __load_psw()
312 psw_t psw; in __load_psw_mask() local
314 psw.mask = mask; in __load_psw_mask()
321 : "=&d" (addr), "=Q" (psw.addr) : "Q" (psw) : "memory", "cc"); in __load_psw_mask()
[all …]
Dptrace.h117 psw_t psw; member
212 #define user_mode(regs) (((regs)->psw.mask & PSW_MASK_PSTATE) != 0)
213 #define instruction_pointer(regs) ((regs)->psw.addr)
225 regs->psw.addr = val; in instruction_pointer_set()
Dftrace.h77 return fregs->regs.psw.addr; in ftrace_regs_get_instruction_pointer()
84 fregs->regs.psw.addr = ip; in ftrace_regs_set_instruction_pointer()
/Linux-v6.6/arch/s390/kernel/
Ddumpstack.c156 struct psw_bits *psw = &psw_bits(regs->psw); in show_registers() local
160 printk("%s PSW : %px %px", mode, (void *)regs->psw.mask, (void *)regs->psw.addr); in show_registers()
162 pr_cont(" (%pSR)", (void *)regs->psw.addr); in show_registers()
165 "P:%x AS:%x CC:%x PM:%x", psw->per, psw->dat, psw->io, psw->ext, in show_registers()
166 psw->key, psw->mcheck, psw->wait, psw->pstate, psw->as, psw->cc, psw->pm); in show_registers()
167 pr_cont(" RI:%x EA:%x\n", psw->ri, psw->eaba); in show_registers()
Duprobes.c31 if (psw_bits(regs->psw).eaba == PSW_BITS_AMODE_24BIT) in arch_uprobe_pre_xol()
33 if (!is_compat_task() && psw_bits(regs->psw).eaba == PSW_BITS_AMODE_31BIT) in arch_uprobe_pre_xol()
36 auprobe->saved_per = psw_bits(regs->psw).per; in arch_uprobe_pre_xol()
39 regs->psw.addr = current->utask->xol_vaddr; in arch_uprobe_pre_xol()
57 if (!(regs->psw.mask & PSW_MASK_PER)) in check_per_event()
71 regs->psw.addr >= current->thread.per_user.start && in check_per_event()
72 regs->psw.addr <= current->thread.per_user.end) in check_per_event()
85 psw_bits(regs->psw).per = auprobe->saved_per; in arch_uprobe_post_xol()
89 regs->psw.addr += utask->vaddr - utask->xol_vaddr; in arch_uprobe_post_xol()
98 if (regs->psw.addr - utask->xol_vaddr == ilen) in arch_uprobe_post_xol()
[all …]
Dsignal.c127 user_sregs.regs.psw.mask = PSW_USER_BITS | in save_sigregs()
128 (regs->psw.mask & (PSW_MASK_USER | PSW_MASK_RI)); in save_sigregs()
129 user_sregs.regs.psw.addr = regs->psw.addr; in save_sigregs()
149 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW_MASK_RI)) in restore_sigregs()
157 regs->psw.mask = (regs->psw.mask & ~(PSW_MASK_USER | PSW_MASK_RI)) | in restore_sigregs()
158 (user_sregs.regs.psw.mask & (PSW_MASK_USER | PSW_MASK_RI)); in restore_sigregs()
160 if ((regs->psw.mask & PSW_MASK_ASC) == PSW_ASC_HOME) in restore_sigregs()
161 regs->psw.mask = PSW_ASC_PRIMARY | in restore_sigregs()
162 (regs->psw.mask & ~PSW_MASK_ASC); in restore_sigregs()
164 if (regs->psw.mask & PSW_MASK_EA) in restore_sigregs()
[all …]
Dcompat_signal.c72 user_sregs.regs.psw.mask = (__u32)(regs->psw.mask >> 32); in save_sigregs32()
73 user_sregs.regs.psw.mask &= PSW32_MASK_USER | PSW32_MASK_RI; in save_sigregs32()
74 user_sregs.regs.psw.mask |= PSW32_USER_BITS; in save_sigregs32()
75 user_sregs.regs.psw.addr = (__u32) regs->psw.addr | in save_sigregs32()
76 (__u32)(regs->psw.mask & PSW_MASK_BA); in save_sigregs32()
98 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW32_MASK_RI)) in restore_sigregs32()
106 regs->psw.mask = (regs->psw.mask & ~(PSW_MASK_USER | PSW_MASK_RI)) | in restore_sigregs32()
107 (__u64)(user_sregs.regs.psw.mask & PSW32_MASK_USER) << 32 | in restore_sigregs32()
108 (__u64)(user_sregs.regs.psw.mask & PSW32_MASK_RI) << 32 | in restore_sigregs32()
109 (__u64)(user_sregs.regs.psw.addr & PSW32_ADDR_AMODE); in restore_sigregs32()
[all …]
Dkprobes.c236 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep()
241 regs->psw.mask |= PSW_MASK_PER; in enable_singlestep()
242 regs->psw.mask &= ~(PSW_MASK_IO | PSW_MASK_EXT); in enable_singlestep()
243 regs->psw.addr = ip; in enable_singlestep()
253 regs->psw.mask &= ~PSW_MASK_PER; in disable_singlestep()
254 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep()
255 regs->psw.addr = ip; in disable_singlestep()
319 p = get_kprobe((void *)(regs->psw.addr - 2)); in kprobe_handler()
376 unsigned long ip = regs->psw.addr; in resume_execution()
419 if (regs->psw.mask & PSW_MASK_PER) in post_kprobe_handler()
[all …]
Dtraps.c42 address = regs->psw.addr; in get_trap_ip()
239 regs->psw.mask |= PSW_ASC_HOME; in space_switch_exception()
249 switch (report_bug(regs->psw.addr - (regs->int_code >> 16), regs)) { in monitor_event_exception()
329 __arch_local_irq_ssm(regs->psw.mask & ~PSW_MASK_PER); in __do_pgm_check()
335 if (!irqs_disabled_flags(regs->psw.mask)) in __do_pgm_check()
337 __arch_local_irq_ssm(regs->psw.mask & ~PSW_MASK_PER); in __do_pgm_check()
Dptrace.c103 regs->psw.mask &= ~PSW_MASK_PER; in update_cr_regs()
106 regs->psw.mask |= PSW_MASK_PER; in update_cr_regs()
202 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); in __peek_user()
203 if (addr == offsetof(struct user, regs.psw.mask)) { in __peek_user()
333 if (addr == offsetof(struct user, regs.psw.mask)) { in __poke_user()
354 *(addr_t *)((addr_t) &regs->psw + addr) = data; in __poke_user()
581 if (addr == offsetof(struct compat_user, regs.psw.mask)) { in __peek_user_compat()
583 tmp = (__u32)(regs->psw.mask >> 32); in __peek_user_compat()
586 } else if (addr == offsetof(struct compat_user, regs.psw.addr)) { in __peek_user_compat()
588 tmp = (__u32) regs->psw.addr | in __peek_user_compat()
[all …]
Drelocate_kernel.S63 la %r4,load_psw-.base(%r13) # load psw-address into the register
64 o %r3,4(%r4) # or load address into psw
66 mvc 0(8,%r0),0(%r4) # copy psw to absolute address 0
Dearly.c183 psw_t psw; in setup_lowcore_early() local
185 psw.addr = (unsigned long)early_pgm_check_handler; in setup_lowcore_early()
186 psw.mask = PSW_KERNEL_BITS; in setup_lowcore_early()
187 S390_lowcore.program_new_psw = psw; in setup_lowcore_early()
Dperf_regs.c29 return regs->psw.mask; in perf_reg_value()
31 return regs->psw.addr; in perf_reg_value()
Dunwind_bc.c49 READ_ONCE_NOCHECK(regs->psw.mask) & PSW_MASK_PSTATE; in is_final_pt_regs()
92 ip = READ_ONCE_NOCHECK(regs->psw.addr); in unwind_next_frame()
140 ip = regs->psw.addr; in __unwind_start()
/Linux-v6.6/arch/s390/boot/
Dpgm_check_info.c149 struct psw_bits *psw = &psw_bits(S390_lowcore.psw_save_area); in print_pgm_check_info() local
164 psw->per, psw->dat, psw->io, psw->ext, psw->key, psw->mcheck, in print_pgm_check_info()
165 psw->wait, psw->pstate, psw->as, psw->cc, psw->pm, psw->ri, in print_pgm_check_info()
166 psw->eaba); in print_pgm_check_info()
Dstartup.c286 psw_t psw; in startup_kernel() local
375 psw.addr = vmlinux.entry; in startup_kernel()
376 psw.mask = PSW_KERNEL_BITS; in startup_kernel()
377 __load_psw(psw); in startup_kernel()
/Linux-v6.6/arch/sh/boards/mach-highlander/
Dpsw.c19 struct push_switch *psw = platform_get_drvdata(pdev); in psw_irq_handler() local
27 if (psw->state) { in psw_irq_handler()
35 psw->state = !!(mask & (1 << psw_info->bit)); in psw_irq_handler()
36 if (psw->state) /* debounce */ in psw_irq_handler()
37 mod_timer(&psw->debounce, jiffies + 50); in psw_irq_handler()
/Linux-v6.6/arch/sh/boards/mach-landisk/
Dpsw.c20 struct push_switch *psw = platform_get_drvdata(pdev); in psw_irq_handler() local
28 if (psw->state) { in psw_irq_handler()
35 psw->state = 1; in psw_irq_handler()
36 mod_timer(&psw->debounce, jiffies + 50); in psw_irq_handler()
/Linux-v6.6/arch/s390/mm/
Dextable.c25 regs->psw.addr = extable_fixup(ex); in ex_handler_fixup()
34 regs->psw.addr = extable_fixup(ex); in ex_handler_ua_store()
46 regs->psw.addr = extable_fixup(ex); in ex_handler_ua_load_mem()
60 regs->psw.addr = extable_fixup(ex); in ex_handler_ua_load_reg()
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/engine/sw/
Dnv10.c65 nv10_sw_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_sw **psw) in nv10_sw_new() argument
67 return nvkm_sw_new_(&nv10_sw, device, type, inst, psw); in nv10_sw_new()
Dnv04.c136 nv04_sw_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_sw **psw) in nv04_sw_new() argument
138 return nvkm_sw_new_(&nv04_sw, device, type, inst, psw); in nv04_sw_new()
Dbase.c99 enum nvkm_subdev_type type, int inst, struct nvkm_sw **psw) in nvkm_sw_new_() argument
103 if (!(sw = *psw = kzalloc(sizeof(*sw), GFP_KERNEL))) in nvkm_sw_new_()
/Linux-v6.6/arch/s390/kvm/
Dgaccess.h63 static inline unsigned long _kvm_s390_logical_to_effective(psw_t *psw, in _kvm_s390_logical_to_effective() argument
66 if (psw_bits(*psw).eaba == PSW_BITS_AMODE_64BIT) in _kvm_s390_logical_to_effective()
68 if (psw_bits(*psw).eaba == PSW_BITS_AMODE_31BIT) in _kvm_s390_logical_to_effective()
Dgaccess.c576 struct psw_bits psw = psw_bits(vcpu->arch.sie_block->gpsw); in get_vcpu_asce() local
578 if (!psw.dat) { in get_vcpu_asce()
584 if ((mode == GACC_IFETCH) && (psw.as != PSW_BITS_AS_HOME)) in get_vcpu_asce()
585 psw.as = PSW_BITS_AS_PRIMARY; in get_vcpu_asce()
587 switch (psw.as) { in get_vcpu_asce()
806 psw_t *psw = &vcpu->arch.sie_block->gpsw; in low_address_protection_enabled() local
810 if (psw_bits(*psw).dat && asce.p) in low_address_protection_enabled()
847 psw_t *psw = &vcpu->arch.sie_block->gpsw; in fetch_prot_override_applicable() local
855 override = override && !(psw_bits(*psw).dat && asce.p); in fetch_prot_override_applicable()
957 psw_t *psw = &vcpu->arch.sie_block->gpsw; in guest_range_to_gpas() local
[all …]

123