Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/powerpc/signal/
H 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 …]
/openbmc/linux/drivers/scsi/
H A Dscsi_common.c314 u8 *ucp, len; in scsi_set_sense_information() local
318 if (!ucp) { in scsi_set_sense_information()
327 ucp[0] = 0; in scsi_set_sense_information()
328 ucp[1] = 0xa; in scsi_set_sense_information()
330 ucp[3] = 0; in scsi_set_sense_information()
363 u8 *ucp, len; in scsi_set_sense_field_pointer() local
368 if (!ucp) { in scsi_set_sense_field_pointer()
377 ucp[0] = 2; in scsi_set_sense_field_pointer()
378 ucp[1] = 6; in scsi_set_sense_field_pointer()
381 ucp[4] |= 0x40; in scsi_set_sense_field_pointer()
[all …]
H 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 …]
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H 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()
H 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()
H 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()
H 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()
H 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()
H 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()
H 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()
H 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()
H 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()
/openbmc/openbmc/poky/meta/recipes-devtools/m4/m4/
H A D0001-sigsegv-Fix-build-on-ppc-musl.patch9 … 223 | # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_re…
22 # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gp_regs[1]
26 -# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
28 +# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_regs->gregs[1]
30 -# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
31 +# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
/openbmc/linux/arch/sparc/kernel/
H 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 …]
/openbmc/qemu/linux-user/sparc/
H A Dsignal.c588 struct target_ucontext *ucp; in sparc64_set_context() local
599 grp = &ucp->tuc_mcontext.mc_gregs; in sparc64_set_context()
613 src = ucp->tuc_sigmask.sig; in sparc64_set_context()
657 fpup = &ucp->tuc_mcontext.mc_fpregs; in sparc64_set_context()
695 unlock_user_struct(ucp, ucp_addr, 0); in sparc64_set_context()
698 unlock_user_struct(ucp, ucp_addr, 0); in sparc64_set_context()
705 struct target_ucontext *ucp; in sparc64_get_context() local
718 memset(ucp, 0, sizeof(*ucp)); in sparc64_get_context()
720 mcp = &ucp->tuc_mcontext; in sparc64_get_context()
741 dst = ucp->tuc_sigmask.sig; in sparc64_get_context()
[all …]
/openbmc/u-boot/drivers/core/
H A Duclass.c50 static int uclass_add(enum uclass_id id, struct uclass **ucp) in uclass_add() argument
56 *ucp = NULL; in uclass_add()
89 *ucp = uc; in uclass_add()
138 int uclass_get(enum uclass_id id, struct uclass **ucp) in uclass_get() argument
142 *ucp = NULL; in uclass_get()
145 return uclass_add(id, ucp); in uclass_get()
146 *ucp = uc; in uclass_get()
174 int dev_get_uclass_index(struct udevice *dev, struct uclass **ucp) in dev_get_uclass_index() argument
185 if (ucp) in dev_get_uclass_index()
186 *ucp = uc; in dev_get_uclass_index()
/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dtestcases.h41 #define GET_UCP_RESV_SIZE(ucp) \ argument
42 sizeof((ucp)->uc_mcontext.__reserved)
/openbmc/linux/arch/m68k/mvme16x/
H 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()
/openbmc/linux/arch/powerpc/kernel/
H A Dsignal_32.c920 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext() argument
925 if (!user_read_access_begin(ucp, sizeof(*ucp))) in do_setcontext()
928 unsafe_get_sigset_t(&set, &ucp->uc_sigmask, failed); in do_setcontext()
933 unsafe_get_user(cmcp, &ucp->uc_regs, failed); in do_setcontext()
937 unsafe_get_user(mcp, &ucp->uc_regs, failed); in do_setcontext()
953 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm() argument
963 if (!user_read_access_begin(ucp, sizeof(*ucp))) in do_setcontext_tm()
966 unsafe_get_sigset_t(&set, &ucp->uc_sigmask, failed); in do_setcontext_tm()
967 unsafe_get_user(cmcp, &ucp->uc_regs, failed); in do_setcontext_tm()
/openbmc/linux/arch/sh/boards/mach-highlander/
H 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()
/openbmc/linux/fs/ext4/
H 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()
/openbmc/linux/tools/testing/selftests/powerpc/alignment/
H 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()
/openbmc/u-boot/include/dm/
H A Duclass-internal.h48 int dev_get_uclass_index(struct udevice *dev, struct uclass **ucp);
/openbmc/qemu/linux-user/ppc/
H A Dsignal.c610 static int do_setcontext(struct target_ucontext *ucp, CPUPPCState *env, int sig) in do_setcontext() argument
617 if (copy_from_user(&set, h2g(ucp) + offsetof(struct target_ucontext, tuc_sigmask), in do_setcontext()
622 mcp_addr = h2g(ucp) + in do_setcontext()
625 __get_user(mcp_addr, &ucp->tuc_regs); in do_setcontext()
/openbmc/linux/Documentation/powerpc/
H 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);

12