Home
last modified time | relevance | path

Searched refs:psw (Results 1 – 25 of 50) 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.h169 regs->psw.mask = PSW_USER_BITS | PSW_MASK_EA | PSW_MASK_BA; \
170 regs->psw.addr = new_psw; \
176 regs->psw.mask = PSW_USER_BITS | PSW_MASK_BA; \
177 regs->psw.addr = new_psw; \
200 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->psw.addr)
244 static inline void __load_psw(psw_t psw) in __load_psw() argument
246 asm volatile("lpswe %0" : : "Q" (psw) : "cc"); in __load_psw()
256 psw_t psw; in __load_psw_mask() local
258 psw.mask = mask; in __load_psw_mask()
265 : "=&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.c29 struct psw_bits *psw = &psw_bits(S390_lowcore.psw_save_area); in print_pgm_check_info() local
62 *p++ = hex_asc_lo(psw->per); in print_pgm_check_info()
64 *p++ = hex_asc_lo(psw->dat); in print_pgm_check_info()
66 *p++ = hex_asc_lo(psw->io); in print_pgm_check_info()
68 *p++ = hex_asc_lo(psw->ext); in print_pgm_check_info()
70 *p++ = hex_asc_lo(psw->key); in print_pgm_check_info()
72 *p++ = hex_asc_lo(psw->mcheck); in print_pgm_check_info()
74 *p++ = hex_asc_lo(psw->wait); in print_pgm_check_info()
76 *p++ = hex_asc_lo(psw->pstate); in print_pgm_check_info()
78 *p++ = hex_asc_lo(psw->as); in print_pgm_check_info()
[all …]
/arch/s390/kernel/
Ddumpstack.c150 struct psw_bits *psw = &psw_bits(regs->psw); in show_registers() local
154 printk("%s PSW : %px %px", mode, (void *)regs->psw.mask, (void *)regs->psw.addr); in show_registers()
156 pr_cont(" (%pSR)", (void *)regs->psw.addr); in show_registers()
159 "P:%x AS:%x CC:%x PM:%x", psw->per, psw->dat, psw->io, psw->ext, in show_registers()
160 psw->key, psw->mcheck, psw->wait, psw->pstate, psw->as, psw->cc, psw->pm); in show_registers()
161 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.c199 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep()
204 regs->psw.mask |= PSW_MASK_PER; in enable_singlestep()
205 regs->psw.mask &= ~(PSW_MASK_IO | PSW_MASK_EXT); in enable_singlestep()
206 regs->psw.addr = ip; in enable_singlestep()
216 regs->psw.mask &= ~PSW_MASK_PER; in disable_singlestep()
217 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep()
218 regs->psw.addr = ip; in disable_singlestep()
292 p = get_kprobe((void *)(regs->psw.addr - 2)); in kprobe_handler()
355 regs->psw.addr = __kretprobe_trampoline_handler(regs, &kretprobe_trampoline, NULL); in trampoline_probe_handler()
376 unsigned long ip = regs->psw.addr; in resume_execution()
[all …]
Dearly.c170 psw_t psw; in setup_lowcore_early() local
172 psw.mask = PSW_MASK_BASE | PSW_DEFAULT_KEY | PSW_MASK_EA | PSW_MASK_BA; in setup_lowcore_early()
174 psw.mask |= PSW_MASK_DAT; in setup_lowcore_early()
175 psw.addr = (unsigned long) s390_base_ext_handler; in setup_lowcore_early()
176 S390_lowcore.external_new_psw = psw; in setup_lowcore_early()
177 psw.addr = (unsigned long) s390_base_pgm_handler; in setup_lowcore_early()
178 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()
235 regs->psw.mask |= PSW_ASC_HOME; in space_switch_exception()
247 switch (report_bug(regs->psw.addr - (regs->int_code >> 16), regs)) { in monitor_event_exception()
249 fixup = s390_search_extables(regs->psw.addr); in monitor_event_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
Dptrace.c106 regs->psw.mask &= ~PSW_MASK_PER; in update_cr_regs()
109 regs->psw.mask |= PSW_MASK_PER; in update_cr_regs()
208 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); in __peek_user()
209 if (addr == (addr_t) &dummy->regs.psw.mask) { in __peek_user()
334 if (ptrace_access_vm(child, regs->psw.addr - (regs->int_code >> 16), in fixup_int_code()
361 if (addr == (addr_t) &dummy->regs.psw.mask) { in __poke_user()
379 *(addr_t *)((addr_t) &regs->psw + addr) = data; in __poke_user()
611 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __peek_user_compat()
613 tmp = (__u32)(regs->psw.mask >> 32); in __peek_user_compat()
616 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __peek_user_compat()
[all …]
Dprocess.c133 frame->childregs.psw.mask = PSW_KERNEL_BITS | PSW_MASK_DAT | in copy_thread()
135 frame->childregs.psw.addr = in copy_thread()
153 frame->childregs.psw.mask &= ~PSW_MASK_RI; in copy_thread()
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()
142 ip = regs->psw.addr; in __unwind_start()
/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()
/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.c93 psw_t psw; in paging_init() local
114 psw.mask = __extract_psw(); in paging_init()
115 psw_bits(psw).dat = 1; in paging_init()
116 psw_bits(psw).as = PSW_BITS_AS_HOME; in paging_init()
117 __load_psw_mask(psw.mask); in paging_init()
Dkasan_init.c240 psw_t psw; in kasan_enable_dat() local
242 psw.mask = __extract_psw(); in kasan_enable_dat()
243 psw_bits(psw).dat = 1; in kasan_enable_dat()
244 psw_bits(psw).as = PSW_BITS_AS_HOME; in kasan_enable_dat()
245 __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/lib/
Derror-inject.c12 regs->psw.addr = regs->gprs[14]; in override_function_with_return()
/arch/s390/include/uapi/asm/
Dptrace.h283 psw_t psw; member
295 psw_t psw; member
441 psw_t psw; member

12