Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/drivers/scsi/
Dscsi_common.c272 u8 *ucp, len; in scsi_set_sense_information() local
275 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 0); in scsi_set_sense_information()
276 if (!ucp) { in scsi_set_sense_information()
278 ucp = buf + 8 + len; in scsi_set_sense_information()
285 ucp[0] = 0; in scsi_set_sense_information()
286 ucp[1] = 0xa; in scsi_set_sense_information()
287 ucp[2] = 0x80; /* Valid bit */ in scsi_set_sense_information()
288 ucp[3] = 0; in scsi_set_sense_information()
289 put_unaligned_be64(info, &ucp[4]); in scsi_set_sense_information()
321 u8 *ucp, len; in scsi_set_sense_field_pointer() local
[all …]
Dwd33c93.c741 uchar asr, sr, phs, id, lun, *ucp, msg; in wd33c93_intr() local
861 ucp = hostdata->outgoing_msg + 1; in wd33c93_intr()
863 ucp[0], ucp[2], ucp[3], ucp[4]); in wd33c93_intr()
994 ucp = hostdata->incoming_msg; in wd33c93_intr()
997 printk("%02x", ucp[hostdata->incoming_ptr]); in wd33c93_intr()
1002 (hostdata->incoming_ptr == (ucp[1] + 1))) { in wd33c93_intr()
1004 switch (ucp[2]) { /* what's the EXTENDED code? */ in wd33c93_intr()
1033 if (ucp[4]) /* well, sync transfer */ in wd33c93_intr()
1034 id = calc_sync_xfer(ucp[3], ucp[4], in wd33c93_intr()
1037 else if (ucp[3]) /* very unlikely... */ in wd33c93_intr()
[all …]
Dscsi_error.c2489 const u8 * ucp; in scsi_get_sense_info_fld() local
2503 ucp = scsi_sense_desc_find(sense_buffer, sb_len, in scsi_get_sense_info_fld()
2505 if (ucp && (0xa == ucp[1])) { in scsi_get_sense_info_fld()
2506 *info_out = get_unaligned_be64(&ucp[4]); in scsi_get_sense_info_fld()
Dst.c324 const u8 *ucp; in st_analyze_sense() local
348 ucp = scsi_sense_desc_find(sense, SCSI_SENSE_BUFFERSIZE, 4); in st_analyze_sense()
349 s->flags = ucp ? (ucp[3] & 0xe0) : 0; in st_analyze_sense()
/linux-6.1.9/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-6.1.9/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-6.1.9/tools/testing/selftests/arm64/signal/testcases/
Dtestcases.h40 #define GET_UCP_RESV_SIZE(ucp) \ argument
41 sizeof((ucp)->uc_mcontext.__reserved)
/linux-6.1.9/arch/m68k/mvme16x/
Dconfig.c321 volatile unsigned char uc, *ucp; in mvme16x_abort_int() local
326 ucp = (volatile unsigned char *)0xfff42043; in mvme16x_abort_int()
327 uc = *ucp | 8; in mvme16x_abort_int()
328 *ucp = uc; in mvme16x_abort_int()
/linux-6.1.9/arch/powerpc/kernel/
Dsignal_32.c917 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext() argument
922 if (!user_read_access_begin(ucp, sizeof(*ucp))) in do_setcontext()
925 unsafe_get_sigset_t(&set, &ucp->uc_sigmask, failed); in do_setcontext()
930 unsafe_get_user(cmcp, &ucp->uc_regs, failed); in do_setcontext()
934 unsafe_get_user(mcp, &ucp->uc_regs, failed); in do_setcontext()
950 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm() argument
960 if (!user_read_access_begin(ucp, sizeof(*ucp))) in do_setcontext_tm()
963 unsafe_get_sigset_t(&set, &ucp->uc_sigmask, failed); in do_setcontext_tm()
964 unsafe_get_user(cmcp, &ucp->uc_regs, failed); in do_setcontext_tm()
/linux-6.1.9/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-6.1.9/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-6.1.9/tools/testing/selftests/powerpc/alignment/
Dalignment_handler.c62 ucontext_t *ucp = ctx; in sighandler() local
71 u32 inst = *(u32 *)ucp->uc_mcontext.gp_regs[PT_NIP]; in sighandler()
72 ucp->uc_mcontext.gp_regs[PT_NIP] += ((inst >> 26 == 1) ? 8 : 4); in sighandler()
74 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in sighandler()
77 ucp->uc_mcontext.uc_regs->gregs[PT_NIP] += 4; in sighandler()
/linux-6.1.9/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-6.1.9/drivers/scsi/sym53c8xx_2/
Dsym_glue.c491 struct sym_ucmd *ucp = SYM_UCMD_PTR(cmd); in sym53c8xx_queue_command_lck() local
494 memset(ucp, 0, sizeof(*ucp)); in sym53c8xx_queue_command_lck()
/linux-6.1.9/drivers/s390/crypto/
Dpkey_api.c1201 struct pkey_clr2protk __user *ucp = (void __user *)arg; in pkey_unlocked_ioctl() local
1204 if (copy_from_user(&kcp, ucp, sizeof(kcp))) in pkey_unlocked_ioctl()
1211 if (copy_to_user(ucp, &kcp, sizeof(kcp))) in pkey_unlocked_ioctl()