Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/powerpc/signal/
A Dsigfuz.c91 ucontext_t *ucp = uc; in trap_signal_handler() local
93 ucp->uc_link = tmp_uc; in trap_signal_handler()
111 ucp->uc_link = tmp_uc; in trap_signal_handler()
135 ucp->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
138 ucp->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
153 ucp->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
163 ucp->uc_mcontext.gp_regs[PT_DAR] = random(); in trap_signal_handler()
165 ucp->uc_mcontext.gp_regs[PT_XER] = random(); in trap_signal_handler()
169 ucp->uc_mcontext.gp_regs[PT_CTR] = random(); in trap_signal_handler()
170 ucp->uc_mcontext.gp_regs[PT_LNK] = random(); in trap_signal_handler()
[all …]
/linux-6.3-rc2/drivers/scsi/
A Dscsi_common.c272 u8 *ucp, len; in scsi_set_sense_information() local
276 if (!ucp) { in scsi_set_sense_information()
285 ucp[0] = 0; in scsi_set_sense_information()
286 ucp[1] = 0xa; in scsi_set_sense_information()
288 ucp[3] = 0; in scsi_set_sense_information()
321 u8 *ucp, len; in scsi_set_sense_field_pointer() local
326 if (!ucp) { in scsi_set_sense_field_pointer()
335 ucp[0] = 2; in scsi_set_sense_field_pointer()
336 ucp[1] = 6; in scsi_set_sense_field_pointer()
339 ucp[4] |= 0x40; in scsi_set_sense_field_pointer()
[all …]
A 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()
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()
1038 id = calc_sync_xfer(ucp[3], ucp[4], in wd33c93_intr()
[all …]
A Dscsi_error.c2500 const u8 * ucp; in scsi_get_sense_info_fld() local
2514 ucp = scsi_sense_desc_find(sense_buffer, sb_len, in scsi_get_sense_info_fld()
2516 if (ucp && (0xa == ucp[1])) { in scsi_get_sense_info_fld()
2517 *info_out = get_unaligned_be64(&ucp[4]); in scsi_get_sense_info_fld()
A 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.3-rc2/tools/testing/selftests/powerpc/tm/
A 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()
A 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()
A 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()
A 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()
A 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()
A 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()
A 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()
A 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()
A 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.3-rc2/arch/sparc/kernel/
A Dsignal_64.c55 (!__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()
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()
118 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs), in sparc64_set_context()
125 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fsr)); in sparc64_set_context()
127 &(ucp->uc_mcontext.mc_fpregs.mcfpu_gsr)); in sparc64_set_context()
152 if (get_thread_wsaved() || clear_user(ucp, sizeof(*ucp))) in sparc64_get_context()
161 mcp = &ucp->uc_mcontext; in sparc64_get_context()
[all …]
/linux-6.3-rc2/tools/testing/selftests/arm64/signal/testcases/
A Dtestcases.h41 #define GET_UCP_RESV_SIZE(ucp) \ argument
42 sizeof((ucp)->uc_mcontext.__reserved)
/linux-6.3-rc2/arch/m68k/mvme16x/
A 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.3-rc2/arch/powerpc/kernel/
A 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.3-rc2/arch/sh/boards/mach-highlander/
A 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.3-rc2/fs/ext4/
A 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.3-rc2/tools/testing/selftests/powerpc/alignment/
A 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.3-rc2/Documentation/powerpc/
A 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.3-rc2/drivers/scsi/sym53c8xx_2/
A 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.3-rc2/drivers/s390/crypto/
A 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()

Completed in 46 milliseconds