Home
last modified time | relevance | path

Searched full:psw (Results 1 – 25 of 78) sorted by relevance

1234

/linux/arch/sh/drivers/
H A Dpush-switch.c28 struct push_switch *psw = timer_container_of(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_obj(struct push_switch); 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/arch/s390/include/asm/
H A Dprocessor.h225 regs->psw.mask = PSW_USER_BITS | PSW_MASK_EA | PSW_MASK_BA; \
226 regs->psw.addr = new_psw; \
232 regs->psw.mask = PSW_USER_BITS | PSW_MASK_BA; \
233 regs->psw.addr = new_psw; \
253 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->psw.addr)
304 * Set PSW to specified value.
306 static inline void __load_psw(psw_t psw) in __load_psw() argument
308 asm volatile("lpswe %0" : : "Q" (psw) : "cc"); in __load_psw()
312 * Set PSW mask to specified value, while leaving the
313 * PSW addr pointing to the next instruction.
[all …]
H A Dnmi.h60 u64 wp : 1; /* 20 psw mwp validity */
61 u64 ms : 1; /* 21 psw mask and key validity */
62 u64 pm : 1; /* 22 psw program mask and cc validity */
63 u64 ia : 1; /* 23 psw instruction address validity */
H A Dperf_event.h52 (regs)->psw.mask = 0; \
53 (regs)->psw.addr = (__ip); \
/linux/arch/sh/boards/mach-highlander/
H A Dpsw.c3 * arch/sh/boards/renesas/r7780rp/psw.c
19 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()
H A Dirq-r7780rp.c20 PSW, /* Push Switch */ enumerator
35 INTC_IRQ(PSW, IRQ_PSW),
42 0, 0, 0, 0, 0, 0, PSW, AX88796 } },
H A Dirq-r7780mp.c25 PSW, /* Push Switch */ enumerator
39 INTC_IRQ(PSW, IRQ_PSW),
49 0, EXT6, EXT5, EXT4, EXT2, EXT1, PSW, AX88796 } },
/linux/arch/sh/boards/mach-landisk/
H A Dpsw.c3 * arch/sh/boards/landisk/psw.c
20 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/tools/perf/util/
H A Ds390-cpumsf-kernel.h20 unsigned int T:1; /* 26 PSW DAT mode */
21 unsigned int W:1; /* 27 PSW wait state */
22 unsigned int P:1; /* 28 PSW Problem state */
23 unsigned int AS:2; /* 29-30 PSW address-space control */
/linux/arch/s390/kernel/
H A 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
H A Dunwind_bc.c51 READ_ONCE_NOCHECK(regs->psw.mask) & PSW_MASK_PSTATE; in is_final_pt_regs()
71 /* skip bogus %r14 or if is the same as regs->psw.addr */ in unwind_next_frame()
96 ip = READ_ONCE_NOCHECK(regs->psw.addr); in unwind_next_frame()
146 ip = regs->psw.addr; in __unwind_start()
H A Dptrace.c108 /* Take care of the PER enablement bit in the PSW. */ in update_cr_regs()
110 regs->psw.mask &= ~PSW_MASK_PER; in update_cr_regs()
113 regs->psw.mask |= PSW_MASK_PER; in update_cr_regs()
207 * psw and gprs are stored on the stack in __peek_user()
209 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); in __peek_user()
210 if (addr == offsetof(struct user, regs.psw.mask)) { in __peek_user()
211 /* Return a clean psw mask. */ in __peek_user()
331 * psw and gprs are stored on the stack in __poke_user()
333 if (addr == offsetof(struct user, regs.psw.mask)) { in __poke_user()
338 /* Invalid psw mask. */ in __poke_user()
[all …]
H A Druntime_instr.c46 * Make sure the RI bit is deleted from the PSW. If the user did not in disable_runtime_instr()
50 regs->psw.mask &= ~PSW_MASK_RI; in disable_runtime_instr()
H A Dcrash_dump.c44 u64 psw[2]; member
92 memcpy(&sa->psw, &lc->psw_save_area, sizeof(sa->psw)); in save_area_add_regs()
304 memcpy(&nt_prstatus.pr_reg.psw, sa->psw, sizeof(sa->psw)); in fill_cpu_elf_notes()
H A Dsyscall.c102 regs->psw = get_lowcore()->svc_old_psw; in __do_syscall()
121 regs->psw.addr = current->restart_block.arch_data; in __do_syscall()
/linux/arch/s390/mm/
H A Dfault.c204 print_vma_addr(KERN_CONT "in ", regs->psw.addr); in report_user_fault()
372 * Protection exceptions are suppressing, decrement psw address. in do_protection_exception()
374 * the PSW already points to the correct location. in do_protection_exception()
377 regs->psw.addr = __rewind_psw(regs->psw, regs->int_code >> 16); in do_protection_exception()
393 regs->int_parm_long = (teid.addr * PAGE_SIZE) | (regs->psw.addr & PAGE_MASK); in do_protection_exception()
/linux/arch/parisc/kernel/
H A Dhpmc.S34 #include <asm/psw.h>
104 * Do this before turning the PSW M bit off.
125 ldi PSW_SM_Q,%r4 /* PSW Q on, PSW M off */
/linux/Documentation/translations/zh_CN/arch/parisc/
H A Dregisters.rst37 CR22 中断 PSW
102 PSW W 默认值 0
103 PSW E 默认值 0
/linux/Documentation/translations/zh_TW/arch/parisc/
H A Dregisters.rst37 CR22 中斷 PSW
102 PSW W 默認值 0
103 PSW E 默認值 0
/linux/arch/parisc/include/uapi/asm/
H A Dptrace.h25 unsigned long gr[32]; /* PSW is in gr[0] */
52 unsigned long gr[32]; /* PSW is in gr[0] */
/linux/drivers/gpu/drm/nouveau/nvkm/engine/sw/
H A 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()
H A Dbase.c99 enum nvkm_subdev_type type, int inst, struct nvkm_sw **psw) in nvkm_sw_new_() argument
103 if (!(sw = *psw = kzalloc_obj(*sw))) in nvkm_sw_new_()
/linux/arch/s390/kvm/
H A Dsigp.c72 psw_t *psw; in __sigp_conditional_emergency() local
76 psw = &dst_vcpu->arch.sie_block->gpsw; in __sigp_conditional_emergency()
82 || (psw->mask & psw_int_mask) != psw_int_mask in __sigp_conditional_emergency()
83 || (idle && psw->addr != 0) in __sigp_conditional_emergency()
H A Dgaccess.c414 struct psw_bits psw = psw_bits(vcpu->arch.sie_block->gpsw); in get_vcpu_asce() local
416 if (!psw.dat) { in get_vcpu_asce()
422 if ((mode == GACC_IFETCH) && (psw.as != PSW_BITS_AS_HOME)) in get_vcpu_asce()
423 psw.as = PSW_BITS_AS_PRIMARY; in get_vcpu_asce()
425 switch (psw.as) { in get_vcpu_asce()
644 psw_t *psw = &vcpu->arch.sie_block->gpsw; in low_address_protection_enabled() local
648 if (psw_bits(*psw).dat && asce.p) in low_address_protection_enabled()
673 psw_t *psw = &vcpu->arch.sie_block->gpsw; in fetch_prot_override_applicable() local
681 override = override && !(psw_bits(*psw).dat && asce.p); in fetch_prot_override_applicable()
779 psw_t *psw = &vcpu->arch.sie_block->gpsw; in guest_range_to_gpas() local
[all …]
H A Dguestdbg.c149 * TODO: if guest psw has per enabled, otherwise 0s! in kvm_s390_patch_guest_per_regs()
151 * Need to intercept all psw changes! in kvm_s390_patch_guest_per_regs()
507 * The PSW points to the next instruction, therefore the intercepted in kvm_s390_handle_per_ifetch_icpt()
509 * points at the previous PSW address (could be an EXECUTE function). in kvm_s390_handle_per_ifetch_icpt()
561 * on icpt code 8 very complex (as PSW was already rewound). in filter_guest_per_event()

1234