Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/powerpc/signal/
Dsigfuz.c91 ucontext_t *ucp = uc; in trap_signal_handler() local
93 ucp->uc_link = tmp_uc; in trap_signal_handler()
102 memset(ucp->uc_link, rand(), sizeof(ucontext_t)); in trap_signal_handler()
104 memcpy(ucp->uc_link, uc, sizeof(ucontext_t)); in trap_signal_handler()
111 ucp->uc_link = tmp_uc; in trap_signal_handler()
113 madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in trap_signal_handler()
119 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler()
122 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
125 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
132 ucp->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler()
[all …]
/Linux-v5.10/drivers/scsi/
Dscsi_common.c263 u8 *ucp, len; in scsi_set_sense_information() local
266 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 0); in scsi_set_sense_information()
267 if (!ucp) { in scsi_set_sense_information()
269 ucp = buf + 8 + len; in scsi_set_sense_information()
276 ucp[0] = 0; in scsi_set_sense_information()
277 ucp[1] = 0xa; in scsi_set_sense_information()
278 ucp[2] = 0x80; /* Valid bit */ in scsi_set_sense_information()
279 ucp[3] = 0; in scsi_set_sense_information()
280 put_unaligned_be64(info, &ucp[4]); in scsi_set_sense_information()
312 u8 *ucp, len; in scsi_set_sense_field_pointer() local
[all …]
Dwd33c93.c799 uchar asr, sr, phs, id, lun, *ucp, msg; in wd33c93_intr() local
918 ucp = hostdata->outgoing_msg + 1; in wd33c93_intr()
920 ucp[0], ucp[2], ucp[3], ucp[4]); in wd33c93_intr()
1051 ucp = hostdata->incoming_msg; in wd33c93_intr()
1054 printk("%02x", ucp[hostdata->incoming_ptr]); in wd33c93_intr()
1059 (hostdata->incoming_ptr == (ucp[1] + 1))) { in wd33c93_intr()
1061 switch (ucp[2]) { /* what's the EXTENDED code? */ in wd33c93_intr()
1090 if (ucp[4]) /* well, sync transfer */ in wd33c93_intr()
1091 id = calc_sync_xfer(ucp[3], ucp[4], in wd33c93_intr()
1094 else if (ucp[3]) /* very unlikely... */ in wd33c93_intr()
[all …]
Dscsi_error.c2458 const u8 * ucp; in scsi_get_sense_info_fld() local
2472 ucp = scsi_sense_desc_find(sense_buffer, sb_len, in scsi_get_sense_info_fld()
2474 if (ucp && (0xa == ucp[1])) { in scsi_get_sense_info_fld()
2475 *info_out = get_unaligned_be64(&ucp[4]); in scsi_get_sense_info_fld()
Dst.c328 const u8 *ucp; in st_analyze_sense() local
352 ucp = scsi_sense_desc_find(sense, SCSI_SENSE_BUFFERSIZE, 4); in st_analyze_sense()
353 s->flags = ucp ? (ucp[3] & 0xe0) : 0; in st_analyze_sense()
/Linux-v5.10/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-force-tm.c52 ucontext_t *ucp = uc; in usr_signal_handler() local
60 ucp->uc_link = mmap(NULL, sizeof(ucontext_t), in usr_signal_handler()
63 if (ucp->uc_link == (void *)-1) { in usr_signal_handler()
69 ret = madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in usr_signal_handler()
75 memcpy(&ucp->uc_link->uc_mcontext, &ucp->uc_mcontext, in usr_signal_handler()
76 sizeof(ucp->uc_mcontext)); in usr_signal_handler()
79 UCONTEXT_MSR(ucp) |= MSR_TS_S; in usr_signal_handler()
Dtm-trap.c63 ucontext_t *ucp = uc; in trap_signal_handler() local
67 thread_endianness = MSR_LE & ucp->uc_mcontext.gp_regs[PT_MSR]; in trap_signal_handler()
116 ucp->uc_mcontext.gp_regs[PT_NIP] += 16; in trap_signal_handler()
123 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
124 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in trap_signal_handler()
141 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
171 ucp->uc_mcontext.gp_regs[PT_MSR] &= ~1UL; in trap_signal_handler()
172 ucp->uc_mcontext.gp_regs[PT_NIP] += 8; in trap_signal_handler()
Dtm-signal-msr-resv.c35 ucontext_t *ucp = uc; in signal_usr1() local
38 ucp->uc_link = ucp; in signal_usr1()
41 ucp->uc_mcontext.gp_regs[PT_MSR] |= (7ULL << 32); in signal_usr1()
43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL); in signal_usr1()
Dtm-signal-pagefault.c199 ucontext_t *ucp = uc; in signal_handler() local
202 ucp->uc_link->uc_mcontext.regs->nip += 4; in signal_handler()
204 ucp->uc_mcontext.v_regs = in signal_handler()
205 get_uf_mem(sizeof(elf_vrreg_t), ucp->uc_mcontext.v_regs); in signal_handler()
207 ucp->uc_link->uc_mcontext.v_regs = in signal_handler()
208 get_uf_mem(sizeof(elf_vrreg_t), ucp->uc_link->uc_mcontext.v_regs); in signal_handler()
210 ucp->uc_link = get_uf_mem(sizeof(ucontext_t), ucp->uc_link); in signal_handler()
Dtm-signal-context-chk-fpu.c50 ucontext_t *ucp = uc; in signal_usr1() local
51 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1()
55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1()
59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1()
Dtm-signal-context-chk-gpr.c52 ucontext_t *ucp = uc; in signal_usr1() local
53 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1()
57 fail = (ucp->uc_mcontext.gp_regs[R14 + i] != gprs[i]); in signal_usr1()
61 R14 + i, ucp->uc_mcontext.gp_regs[R14 + i], gprs[i]); in signal_usr1()
Dtm-signal-context-chk-vmx.c59 ucontext_t *ucp = uc; in signal_usr1() local
60 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1()
64 fail = memcmp(ucp->uc_mcontext.v_regs->vrregs[VMX20 + i], in signal_usr1()
71 printf("%08x", ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); in signal_usr1()
Dtm-signal-context-chk-vsx.c62 ucontext_t *ucp = uc; in signal_usr1() local
63 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1()
96 long *vsx_ptr = (long *)(ucp->uc_mcontext.v_regs + 1); in signal_usr1()
106 memcpy(vsx, &ucp->uc_mcontext.fp_regs[FPR20 + i], 8); in signal_usr1()
Dtm-signal-sigreturn-nt.c22 ucontext_t *ucp = (ucontext_t *) uc; in trap_signal_handler() local
27 ucp->uc_mcontext.regs->nip += 4; in trap_signal_handler()
/Linux-v5.10/arch/sparc/kernel/
Dsignal_64.c43 struct ucontext __user *ucp = (struct ucontext __user *) in sparc64_set_context() local
54 (((unsigned long)ucp) & (sizeof(unsigned long)-1)) || in sparc64_set_context()
55 (!__access_ok(ucp, sizeof(*ucp)))) in sparc64_set_context()
57 grp = &ucp->uc_mcontext.mc_gregs; in sparc64_set_context()
66 if (__get_user(set.sig[0], &ucp->uc_sigmask.sig[0])) in sparc64_set_context()
69 if (__copy_from_user(&set, &ucp->uc_sigmask, sizeof(sigset_t))) in sparc64_set_context()
102 err |= __get_user(fp, &(ucp->uc_mcontext.mc_fp)); in sparc64_set_context()
103 err |= __get_user(i7, &(ucp->uc_mcontext.mc_i7)); in sparc64_set_context()
109 err |= __get_user(fenab, &(ucp->uc_mcontext.mc_fpregs.mcfpu_enab)); in sparc64_set_context()
115 err |= __get_user(fprs, &(ucp->uc_mcontext.mc_fpregs.mcfpu_fprs)); in sparc64_set_context()
[all …]
/Linux-v5.10/tools/testing/selftests/arm64/signal/testcases/
Dtestcases.h32 #define GET_UCP_RESV_SIZE(ucp) \ argument
33 sizeof((ucp)->uc_mcontext.__reserved)
/Linux-v5.10/arch/m68k/mvme16x/
Dconfig.c322 volatile unsigned char uc, *ucp; in mvme16x_abort_int() local
327 ucp = (volatile unsigned char *)0xfff42043; in mvme16x_abort_int()
328 uc = *ucp | 8; in mvme16x_abort_int()
329 *ucp = uc; in mvme16x_abort_int()
/Linux-v5.10/arch/sh/boards/mach-highlander/
Dsetup.c400 unsigned char *ucp = highlander_plat_irq_setup(); in highlander_init_irq() local
402 if (ucp) { in highlander_init_irq()
404 memcpy(irl2irq, ucp, HL_NR_IRL); in highlander_init_irq()
/Linux-v5.10/fs/ext4/
Dhash.c106 const unsigned char *ucp = (const unsigned char *) name; in dx_hack_hash_unsigned() local
109 hash = hash1 + (hash0 ^ (((int) *ucp++) * 7152373)); in dx_hack_hash_unsigned()
165 const unsigned char *ucp = (const unsigned char *) msg; in str2hashbuf_unsigned() local
174 val = ((int) ucp[i]) + (val << 8); in str2hashbuf_unsigned()
/Linux-v5.10/tools/testing/selftests/powerpc/alignment/
Dalignment_handler.c71 ucontext_t *ucp = ctx; in sighandler() local
80 u32 inst = *(u32 *)ucp->uc_mcontext.gp_regs[PT_NIP]; in sighandler()
81 ucp->uc_mcontext.gp_regs[PT_NIP] += ((inst >> 26 == 1) ? 8 : 4); in sighandler()
83 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in sighandler()
86 ucp->uc_mcontext.uc_regs->gregs[PT_NIP] += 4; in sighandler()
/Linux-v5.10/arch/powerpc/kernel/
Dsignal_32.c848 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext() argument
853 if (get_sigset_t(&set, &ucp->uc_sigmask)) in do_setcontext()
859 if (__get_user(cmcp, &ucp->uc_regs)) in do_setcontext()
865 if (__get_user(mcp, &ucp->uc_regs)) in do_setcontext()
878 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm() argument
888 if (get_sigset_t(&set, &ucp->uc_sigmask)) in do_setcontext_tm()
891 if (__get_user(cmcp, &ucp->uc_regs) || in do_setcontext_tm()
/Linux-v5.10/Documentation/powerpc/
Dtransactional_memory.rst131 ucontext_t *ucp = uc;
132 ucontext_t *transactional_ucp = ucp->uc_link;
135 u64 msr = ucp->uc_mcontext.regs->msr;
144 ucp->uc_mcontext.regs->nip,
149 fix_the_problem(ucp->dar);
/Linux-v5.10/drivers/scsi/sym53c8xx_2/
Dsym_glue.c495 struct sym_ucmd *ucp = SYM_UCMD_PTR(cmd); in sym53c8xx_queue_command_lck() local
499 memset(ucp, 0, sizeof(*ucp)); in sym53c8xx_queue_command_lck()
/Linux-v5.10/drivers/s390/crypto/
Dpkey_api.c1179 struct pkey_clr2protk __user *ucp = (void __user *) arg; in pkey_unlocked_ioctl() local
1182 if (copy_from_user(&kcp, ucp, sizeof(kcp))) in pkey_unlocked_ioctl()
1189 if (copy_to_user(ucp, &kcp, sizeof(kcp))) in pkey_unlocked_ioctl()
/Linux-v5.10/Documentation/filesystems/caching/
Dfscache.rst400 | |ucp=N |Number of in-progress uncache_page() cache ops |