Searched refs:mcp (Results 1 - 25 of 51) sorted by relevance

123

/netbsd-6-1-5-RELEASE/lib/libc/arch/m68k/gen/
H A Dmakecontext.c47 mcontext_t *mcp = &ucp->uc_mcontext; local
51 mcp->__gregs[_REG_PC] = (__greg_t)func;
56 mcp->__gregs[_REG_A7] = (__greg_t)sp;
57 mcp->__gregs[_REG_A6] = 0; /* Wipe out frame pointer. */
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/gssapi/mech/
H A Dgss_inquire_cred_by_mech.c44 struct _gss_mechanism_cred *mcp; local
65 HEIM_SLIST_FOREACH(mcp, &cred->gc_mc, gmc_link)
66 if (mcp->gmc_mech == m)
68 if (!mcp)
70 mc = mcp->gmc_cred;
/netbsd-6-1-5-RELEASE/sys/arch/evbmips/malta/
H A Dmachdep.c153 struct malta_config *mcp = &malta_configuration; local
199 gt_pci_init(&mcp->mc_pc, &mcp->mc_gt);
200 malta_bus_io_init(&mcp->mc_iot, mcp);
201 malta_bus_mem_init(&mcp->mc_memt, mcp);
202 malta_dma_init(mcp);
208 bus_space_map(&mcp->mc_iot, MALTA_RTCADR, 2, 0, &sh);
209 malta_cal_timer(&mcp
[all...]
H A Dmalta_intr.c113 struct malta_config * const mcp = &malta_configuration; local
123 mcp->mc_pc.pc_intr_v = NULL;
124 mcp->mc_pc.pc_intr_map = malta_pci_intr_map;
125 mcp->mc_pc.pc_intr_string = malta_pci_intr_string;
126 mcp->mc_pc.pc_intr_evcnt = malta_pci_intr_evcnt;
127 mcp->mc_pc.pc_intr_establish = malta_pci_intr_establish;
128 mcp->mc_pc.pc_intr_disestablish = malta_pci_intr_disestablish;
129 mcp->mc_pc.pc_conf_interrupt = malta_pci_conf_interrupt;
130 mcp->mc_pc.pc_pciide_compat_intr_establish =
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/powerpc/
H A Dsig_machdep.c149 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flagp) argument
152 __greg_t * const gr = mcp->__gregs;
178 if (!fpu_save_to_mcontext(l, mcp, flagp))
180 memset(&mcp->__fpregs, 0, sizeof(mcp->__fpregs));
184 if (!vec_save_to_mcontext(l, mcp, flagp))
186 memset(&mcp->__vrf, 0, sizeof (mcp->__vrf));
190 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
196 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigne argument
[all...]
H A Dfpu.c212 fpu_save_to_mcontext(lwp_t *l, mcontext_t *mcp, unsigned int *flagp) argument
225 (void)memcpy(mcp->__fpregs.__fpu_regs, pcb->pcb_fpu.fpreg,
226 sizeof (mcp->__fpregs.__fpu_regs));
227 mcp->__fpregs.__fpu_fpscr =
229 mcp->__fpregs.__fpu_valid = 1;
235 fpu_restore_from_mcontext(lwp_t *l, const mcontext_t *mcp) argument
237 if (!mcp->__fpregs.__fpu_valid)
247 (void)memcpy(&pcb->pcb_fpu.fpreg, &mcp->__fpregs.__fpu_regs,
249 ((int *)&pcb->pcb_fpu.fpscr)[_QUAD_LOWWORD] = mcp->__fpregs.__fpu_fpscr;
/netbsd-6-1-5-RELEASE/sys/arch/m68k/m68k/
H A Dsig_machdep.c229 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, u_int *flags) argument
231 __greg_t *gr = mcp->__gregs;
262 mcp->_mc_tlsbase = (uintptr_t)l->l_private;
266 mcp->__mc_pad.__mc_frame.__mcf_format = format;
268 mcp->__mc_pad.__mc_frame.__mcf_vector = frame->f_vector;
269 (void)memcpy(&mcp->__mc_pad.__mc_frame.__mcf_exframe,
290 mcp->__mc_pad.__mc_frame.__mcf_fpf_u1 = fpf->FPF_u1;
294 mcp->__mc_pad.__mc_frame.__mcf_fpf_u2 = fpf->FPF_u2;
295 (void)memcpy(mcp->__fpregs.__fp_fpregs,
297 mcp
306 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
316 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, u_int flags) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/booke/
H A Dspe.c148 vec_restore_from_mcontext(lwp_t *l, const mcontext_t *mcp) argument
151 const union __vr *vr = mcp->__vrf.__vrs;
170 l->l_md.md_utf->tf_spefscr = pcb->pcb_vr.vscr = mcp->__vrf.__vscr;
171 pcb->pcb_vr.vrsave = mcp->__vrf.__vrsave;
175 vec_save_to_mcontext(lwp_t *l, mcontext_t *mcp, unsigned int *flagp) argument
186 mcp->__gregs[_REG_MSR] |= PSL_SPV;
188 union __vr *vr = mcp->__vrf.__vrs;
209 mcp->__vrf.__vrs[0].__vr32[2] = pcb->pcb_vr.vreg[8][0];
210 mcp->__vrf.__vrs[0].__vr32[3] = pcb->pcb_vr.vreg[8][1];
212 mcp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/arm/arm/
H A Dsig_machdep.c166 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) argument
169 __greg_t *gr = mcp->__gregs;
199 arm_fpe_getcontext(p, (struct fpreg *)(void *)&mcp->fpregs);
203 mcp->_mc_tlsbase = (uintptr_t)l->l_private;
208 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
210 const __greg_t *gr = mcp->__gregs;
219 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags) argument
222 const __greg_t *gr = mcp->__gregs;
228 error = cpu_mcontext_validate(l, mcp);
254 arm_fpe_setcontext(p, (struct fpreg *)(void *)&mcp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/evbmips/malta/dev/
H A Dgt.c69 gt_pci_init(pci_chipset_tag_t pc, struct gt_config *mcp) argument
72 pc->pc_conf_v = mcp;
104 struct malta_config *mcp = &malta_configuration; local
113 pba.pba_iot = &mcp->mc_iot;
114 pba.pba_memt = &mcp->mc_memt;
115 pba.pba_dmat = &mcp->mc_pci_dmat; /* pci_bus_dma_tag */
117 pba.pba_pc = &mcp->mc_pc;
H A Dmainbus.c115 struct malta_config *mcp = &malta_configuration; local
116 pci_chipset_tag_t pc = &mcp->mc_pc;
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/oea/
H A Daltivec.c160 vec_restore_from_mcontext(struct lwp *l, const mcontext_t *mcp) argument
168 memcpy(pcb->pcb_vr.vreg, &mcp->__vrf.__vrs, sizeof (pcb->pcb_vr.vreg));
169 pcb->pcb_vr.vscr = mcp->__vrf.__vscr;
170 pcb->pcb_vr.vrsave = mcp->__vrf.__vrsave;
175 vec_save_to_mcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flagp) argument
190 mcp->__gregs[_REG_MSR] |= PSL_VEC;
191 mcp->__vrf.__vscr = pcb->pcb_vr.vscr;
192 mcp->__vrf.__vrsave = l->l_md.md_utf->tf_vrsave;
193 memcpy(mcp->__vrf.__vrs, pcb->pcb_vr.vreg, sizeof (mcp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/alpha/alpha/
H A Dinterrupt.c314 struct mchkinfo *mcp; local
317 mcp = &curcpu()->ci_mcinfo;
327 if (!mcp->mc_expected) {
331 mcp->mc_expected = 0;
332 mcp->mc_received = 1;
382 struct mchkinfo *mcp = &curcpu()->ci_mcinfo; local
390 mcp->mc_received = 0;
391 mcp->mc_expected = 1;
422 mcp->mc_expected = 0;
424 rv = mcp
[all...]
H A Ddec_kn20aa.c282 struct mchkinfo *mcp; local
289 mcp = &curcpu()->ci_mcinfo;
290 if (mcp->mc_expected) {
/netbsd-6-1-5-RELEASE/sys/arch/alpha/pci/
H A Dmcpcia.c131 struct mcpcia_softc *mcp = device_private(self); local
140 mcp->mcpcia_cc = NULL;
160 mcp->mcpcia_dev = self;
161 mcp->mcpcia_cc = ccp;
162 ccp->cc_sc = mcp;
307 struct mcpcia_softc *mcp; local
316 if ((mcp = device_lookup_private(&mcpcia_cd, i)) == NULL)
319 ccp = mcp->mcpcia_cc;
H A Dpci_kn300.c231 struct mcpcia_softc *mcp; local
247 * If we haven't finished configuring yet, or there is no mcp
250 mcp = alpha_shared_intr_get_private(kn300_pci_intr, irq);
251 if (mcp == NULL || mcp->mcpcia_cc == NULL)
270 kn300_disable_intr(mcp->mcpcia_cc, savirqs[irq]);
/netbsd-6-1-5-RELEASE/sys/arch/sparc64/sparc64/
H A Dnetbsd32_machdep.c784 /* netbsd32_mcontext_t XXX */mcontext_t *mcp,
789 greg32_t *gr = mcp->__gregs;
800 (void)memset(mcp, 0, sizeof (*mcp));
824 mcp->__gwins = 0;
830 netbsd32_fpregset_t *fpr = &mcp->__fpregs;
841 mcp->__fpregs.__fpu_q = NULL; /* `Need more info.' */
842 mcp->__fpregs.__fpu_fsr = fs.fs_fsr;
843 mcp->__fpregs.__fpu_qcnt = 0 /*fs.fs_qsize*/; /* See above */
844 mcp
782 netbsd32_cpu_getmcontext( struct lwp *l, mcontext_t *mcp, unsigned int *flags) argument
859 netbsd32_cpu_setmcontext( struct lwp *l, mcontext_t *mcp, unsigned int flags) argument
1198 cpu_setmcontext32(struct lwp *l, const mcontext32_t *mcp, unsigned int flags) argument
1291 cpu_getmcontext32(struct lwp *l, mcontext32_t *mcp, unsigned int *flags) argument
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/conf/mtab/
H A Dmtab_file.c257 char mcp[128]; local
259 xstrlcpy(mcp, mnttabname, sizeof(mcp));
260 cp = strrchr(mcp, '/');
262 memmove(tmpname, mcp, cp - mcp);
263 tmpname[cp - mcp] = '\0';
H A Dmtab_linux.c339 char mcp[128]; local
349 xstrlcpy(mcp, mnttabname, sizeof(mcp));
350 cp = strrchr(mcp, '/');
352 memmove(tmpname, mcp, cp - mcp);
353 tmpname[cp - mcp] = '\0';
H A Dmtab_mach3.c322 char *mcp = mnttabname; local
324 cp = strrchr(mcp, '/');
326 memmove(tmpname, mcp, cp - mcp);
327 tmpname[cp - mcp] = '\0';
/netbsd-6-1-5-RELEASE/sys/arch/hppa/hppa/
H A Dhppa_machdep.c141 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) argument
145 __greg_t *gr = mcp->__gregs;
211 memcpy(&mcp->__fpregs, pcb->pcb_fpregs, sizeof(mcp->__fpregs));
216 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
218 const __greg_t *gr = mcp->__gregs;
254 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags) argument
259 const __greg_t *gr = mcp->__gregs;
263 error = cpu_mcontext_validate(l, mcp);
339 memcpy(pcb->pcb_fpregs, &mcp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/usermode/dev/
H A Dcpu.c276 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) argument
284 memcpy(mcp, &ucp->uc_mcontext, sizeof(mcontext_t));
289 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
299 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags) argument
307 memcpy(&ucp->uc_mcontext, mcp, sizeof(mcontext_t));
/netbsd-6-1-5-RELEASE/sys/arch/sh3/sh3/
H A Dsh3_machdep.c444 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) argument
447 __greg_t *gr = mcp->__gregs;
481 memset(&mcp->__fpregs, 0, sizeof (mcp->__fpregs));
485 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
488 const __greg_t *gr = mcp->__gregs;
497 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags) argument
500 const __greg_t *gr = mcp->__gregs;
507 error = cpu_mcontext_validate(l, mcp);
/netbsd-6-1-5-RELEASE/sys/arch/mips/mips/
H A Dcpu_subr.c388 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) argument
391 __greg_t *gr = mcp->__gregs;
402 mcp->_mc_tlsbase = (intptr_t)l->l_private;
434 memcpy(&mcp->__fpregs, &pcb->pcb_fpregs, fplen);
440 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
447 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags) argument
451 const __greg_t *gr = mcp->__gregs;
456 error = cpu_mcontext_validate(l, mcp);
465 const mcontext_o32_t *mcp32 = (const mcontext_o32_t *)mcp;
484 lwp_setprivate(l, (void *)(intptr_t)mcp
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/vax/vax/
H A Dmachdep.c673 cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) argument
676 __greg_t *gr = mcp->__gregs;
699 cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp) argument
701 const __greg_t *gr = mcp->__gregs;
712 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags) argument
715 const __greg_t *gr = mcp->__gregs;
721 error = cpu_mcontext_validate(l, mcp);

Completed in 196 milliseconds

123