Home
last modified time | relevance | path

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

12

/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 …]
/arch/s390/include/asm/
Dprocessor.h172 regs->psw.mask = PSW_USER_BITS | PSW_MASK_EA | PSW_MASK_BA; \
173 regs->psw.addr = new_psw; \
179 regs->psw.mask = PSW_USER_BITS | PSW_MASK_BA; \
180 regs->psw.addr = new_psw; \
204 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->psw.addr)
248 static inline void __load_psw(psw_t psw) in __load_psw() argument
250 asm volatile("lpswe %0" : : "Q" (psw) : "cc"); in __load_psw()
260 psw_t psw; in __load_psw_mask() local
262 psw.mask = mask; in __load_psw_mask()
269 : "=&d" (addr), "=Q" (psw.addr) : "Q" (psw) : "memory", "cc"); in __load_psw_mask()
[all …]
Dptrace.h81 psw_t psw; member
161 #define user_mode(regs) (((regs)->psw.mask & PSW_MASK_PSTATE) != 0)
162 #define instruction_pointer(regs) ((regs)->psw.addr)
174 regs->psw.addr = val; in instruction_pointer_set()
Dlivepatch.h18 regs->psw.addr = ip; in klp_arch_set_pc()
/arch/s390/boot/
Dpgm_check_info.c28 struct psw_bits *psw = &psw_bits(S390_lowcore.psw_save_area); in print_pgm_check_info() local
53 *p++ = hex_asc_lo(psw->per); in print_pgm_check_info()
55 *p++ = hex_asc_lo(psw->dat); in print_pgm_check_info()
57 *p++ = hex_asc_lo(psw->io); in print_pgm_check_info()
59 *p++ = hex_asc_lo(psw->ext); in print_pgm_check_info()
61 *p++ = hex_asc_lo(psw->key); in print_pgm_check_info()
63 *p++ = hex_asc_lo(psw->mcheck); in print_pgm_check_info()
65 *p++ = hex_asc_lo(psw->wait); in print_pgm_check_info()
67 *p++ = hex_asc_lo(psw->pstate); in print_pgm_check_info()
69 *p++ = hex_asc_lo(psw->as); in print_pgm_check_info()
[all …]
/arch/s390/kernel/
Ddumpstack.c148 struct psw_bits *psw = &psw_bits(regs->psw); in show_registers() local
152 printk("%s PSW : %px %px", mode, (void *)regs->psw.mask, (void *)regs->psw.addr); in show_registers()
154 pr_cont(" (%pSR)", (void *)regs->psw.addr); in show_registers()
157 "P:%x AS:%x CC:%x PM:%x", psw->per, psw->dat, psw->io, psw->ext, in show_registers()
158 psw->key, psw->mcheck, psw->wait, psw->pstate, psw->as, psw->cc, psw->pm); in show_registers()
159 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 …]
Dcompat_signal.c71 user_sregs.regs.psw.mask = (__u32)(regs->psw.mask >> 32); in save_sigregs32()
72 user_sregs.regs.psw.mask &= PSW32_MASK_USER | PSW32_MASK_RI; in save_sigregs32()
73 user_sregs.regs.psw.mask |= PSW32_USER_BITS; in save_sigregs32()
74 user_sregs.regs.psw.addr = (__u32) regs->psw.addr | in save_sigregs32()
75 (__u32)(regs->psw.mask & PSW_MASK_BA); in save_sigregs32()
97 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW32_MASK_RI)) in restore_sigregs32()
105 regs->psw.mask = (regs->psw.mask & ~(PSW_MASK_USER | PSW_MASK_RI)) | in restore_sigregs32()
106 (__u64)(user_sregs.regs.psw.mask & PSW32_MASK_USER) << 32 | in restore_sigregs32()
107 (__u64)(user_sregs.regs.psw.mask & PSW32_MASK_RI) << 32 | in restore_sigregs32()
108 (__u64)(user_sregs.regs.psw.addr & PSW32_ADDR_AMODE); in restore_sigregs32()
[all …]
Dsignal.c126 user_sregs.regs.psw.mask = PSW_USER_BITS | in save_sigregs()
127 (regs->psw.mask & (PSW_MASK_USER | PSW_MASK_RI)); in save_sigregs()
128 user_sregs.regs.psw.addr = regs->psw.addr; in save_sigregs()
148 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW_MASK_RI)) in restore_sigregs()
156 regs->psw.mask = (regs->psw.mask & ~(PSW_MASK_USER | PSW_MASK_RI)) | in restore_sigregs()
157 (user_sregs.regs.psw.mask & (PSW_MASK_USER | PSW_MASK_RI)); in restore_sigregs()
159 if ((regs->psw.mask & PSW_MASK_ASC) == PSW_ASC_HOME) in restore_sigregs()
160 regs->psw.mask = PSW_ASC_PRIMARY | in restore_sigregs()
161 (regs->psw.mask & ~PSW_MASK_ASC); in restore_sigregs()
163 if (regs->psw.mask & PSW_MASK_EA) in restore_sigregs()
[all …]
Dkprobes.c213 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep()
218 regs->psw.mask |= PSW_MASK_PER; in enable_singlestep()
219 regs->psw.mask &= ~(PSW_MASK_IO | PSW_MASK_EXT); in enable_singlestep()
220 regs->psw.addr = ip; in enable_singlestep()
230 regs->psw.mask &= ~PSW_MASK_PER; in disable_singlestep()
231 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep()
232 regs->psw.addr = ip; in disable_singlestep()
305 p = get_kprobe((void *)(regs->psw.addr - 2)); in kprobe_handler()
437 regs->psw.addr = orig_ret_address; in trampoline_probe_handler()
465 unsigned long ip = regs->psw.addr; in resume_execution()
[all …]
Dearly.c169 psw_t psw; in setup_lowcore_early() local
171 psw.mask = PSW_MASK_BASE | PSW_DEFAULT_KEY | PSW_MASK_EA | PSW_MASK_BA; in setup_lowcore_early()
173 psw.mask |= PSW_MASK_DAT; in setup_lowcore_early()
174 psw.addr = (unsigned long) s390_base_ext_handler; in setup_lowcore_early()
175 S390_lowcore.external_new_psw = psw; in setup_lowcore_early()
176 psw.addr = (unsigned long) s390_base_pgm_handler; in setup_lowcore_early()
177 S390_lowcore.program_new_psw = psw; in setup_lowcore_early()
Dtraps.c36 address = regs->psw.addr; in get_trap_ip()
52 fixup = s390_search_extables(regs->psw.addr); in do_report_trap()
54 regs->psw.addr = extable_fixup(fixup); in do_report_trap()
58 btt = report_bug(regs->psw.addr, regs); in do_report_trap()
243 regs->psw.mask |= PSW_ASC_HOME; in space_switch_exception()
Dperf_regs.c29 return regs->psw.mask; in perf_reg_value()
31 return regs->psw.addr; in perf_reg_value()
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
Dunwind_bc.c86 if (READ_ONCE_NOCHECK(regs->psw.mask) & PSW_MASK_PSTATE) in unwind_next_frame()
88 ip = READ_ONCE_NOCHECK(regs->psw.addr); in unwind_next_frame()
145 ip = READ_ONCE_NOCHECK(regs->psw.addr); in __unwind_start()
Dptrace.c108 regs->psw.mask &= ~PSW_MASK_PER; in update_cr_regs()
111 regs->psw.mask |= PSW_MASK_PER; in update_cr_regs()
210 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); in __peek_user()
211 if (addr == (addr_t) &dummy->regs.psw.mask) { in __peek_user()
336 if (ptrace_access_vm(child, regs->psw.addr - (regs->int_code >> 16), in fixup_int_code()
363 if (addr == (addr_t) &dummy->regs.psw.mask) { in __poke_user()
381 *(addr_t *)((addr_t) &regs->psw + addr) = data; in __poke_user()
613 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __peek_user_compat()
615 tmp = (__u32)(regs->psw.mask >> 32); in __peek_user_compat()
618 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __peek_user_compat()
[all …]
/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()
DMakefile11 obj-$(CONFIG_PUSH_SWITCH) += psw.o
/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()
DMakefile6 obj-y := setup.o irq.o psw.o gio.o
/arch/s390/mm/
Dinit.c92 psw_t psw; in paging_init() local
113 psw.mask = __extract_psw(); in paging_init()
114 psw_bits(psw).dat = 1; in paging_init()
115 psw_bits(psw).as = PSW_BITS_AS_HOME; in paging_init()
116 __load_psw_mask(psw.mask); in paging_init()
Dfault.c222 print_vma_addr(KERN_CONT "in ", regs->psw.addr); in report_user_fault()
257 fixup = s390_search_extables(regs->psw.addr); in do_no_context()
259 regs->psw.addr = extable_fixup(fixup); in do_no_context()
282 if (regs->psw.mask & PSW_MASK_PSTATE) { in do_low_address()
306 rc = __get_user(instruction, (u16 __user *) regs->psw.addr); in signal_return()
560 regs->psw.addr = __rewind_psw(regs->psw, regs->int_code >> 16); in do_protection_exception()
572 (regs->psw.addr & PAGE_MASK); in do_protection_exception()
Dkasan_init.c218 psw_t psw; in kasan_enable_dat() local
220 psw.mask = __extract_psw(); in kasan_enable_dat()
221 psw_bits(psw).dat = 1; in kasan_enable_dat()
222 psw_bits(psw).as = PSW_BITS_AS_HOME; in kasan_enable_dat()
223 __load_psw_mask(psw.mask); in kasan_enable_dat()
/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()
/arch/s390/include/uapi/asm/
Dptrace.h283 psw_t psw; member
295 psw_t psw; member
441 psw_t psw; member

12