/src/games/robots/ |
score.c | 70 SCORE *scp; local in function:read_score 75 for (scp = Top; scp < &Top[MAXSCORES]; scp++) { 76 scp->s_uid = ntohl(scp->s_uid); 77 scp->s_score = ntohl(scp->s_score); 78 scp->s_auto = ntohl(scp->s_auto) 96 SCORE *scp; local in function:write_score 123 SCORE *scp; local in function:score 224 SCORE *scp; local in function:show_score [all...] |
/src/tests/usr.bin/xlint/lint1/ |
msg_116.c | 28 subtract_character_pointers(signed char *scp, unsigned char *ucp) 31 return scp - ucp > 0;
|
/src/sys/arch/sparc64/sparc64/ |
compat_13_machdep.c | 69 struct sigcontext13 sc, *scp; local in function:compat_13_sys_sigreturn 96 scp = SCARG(uap, sigcntxp); 97 if ((vaddr_t)scp & 3 || (copyin((void *)scp, &sc, sizeof sc) != 0)) 100 printf("compat_13_sys_sigreturn: copyin failed: scp=%p\n", scp); 110 scp = ≻ 118 if (((scp->sc_pc | scp->sc_npc) & 3) != 0 || scp->sc_pc == 0 || scp->sc_npc == 0 [all...] |
sunos_machdep.c | 116 printf("sunos_sendsig: %s[%d] sig %d newusp %p scp %p oldsp %p\n", 189 printf("sunos_sendsig: %s[%d] sig %d scp %p\n", 216 struct sunos_sigcontext sc, *scp; local in function:sunos_sys_sigreturn 236 scp = (struct sunos_sigcontext *)SCARG(uap, sigcntxp); 237 if ((vaddr_t)scp & 3 || (copyin((void *)scp, &sc, sizeof sc) != 0)) 239 scp = ≻ 247 if (((scp->sc_pc | scp->sc_npc) & 3) != 0 || scp->sc_pc == 0 || scp->sc_npc == 0 [all...] |
sunos32_machdep.c | 169 struct sunos32_sigcontext *scp; local in function:sunos32_sendsig 199 printf("sunos32_sendsig: %s[%d] sig %d newusp %p scp %p oldsp %p\n", 214 scp = &fp->sf_sc; 215 if ((u_long)scp >= 0x100000000) 216 printf("sunos32_sendsig: sf_scp overflow %p > 0x100000000\n", scp); 217 sf.sf_scp = (uint32_t)(u_long)scp; 274 printf("sunos32_sendsig: %s[%d] sig %d scp %p\n", 306 struct sunos32_sigcontext sc, *scp; local in function:sunos32_sys_sigreturn 326 scp = (struct sunos32_sigcontext *)(u_long)SCARG(uap, sigcntxp); 327 if ((vaddr_t)scp & 3 || (copyin((void *)scp, &sc, sizeof sc) != 0) [all...] |
/src/sys/dev/ic/ |
hd64570.c | 182 msci_write_1(sca_port_t *scp, u_int reg, u_int8_t val) 184 sca_write_1(scp->sca, scp->msci_off + reg, val); 188 msci_read_1(sca_port_t *scp, u_int reg) 190 return sca_read_1(scp->sca, scp->msci_off + reg); 194 dmac_write_1(sca_port_t *scp, u_int reg, u_int8_t val) 196 sca_write_1(scp->sca, scp->dmac_off + reg, val); 200 dmac_write_2(sca_port_t *scp, u_int reg, u_int16_t val 410 sca_port_t *scp = &sc->sc_ports[port]; local in function:sca_port_attach 1000 sca_port_t *scp = ifp->if_softc; local in function:sca_start 2075 struct sca_port *scp; local in function:sca_print_clock_info [all...] |
/src/sys/arch/m68k/m68k/ |
compat_13_machdep.c | 76 struct sigcontext13 *scp; local in function:compat_13_sys_sigreturn 86 scp = SCARG(uap, sigcntxp); 87 if ((int)scp & 1) 90 if (copyin(scp, &tsigc, sizeof(tsigc)) != 0) 92 scp = &tsigc; 95 if ((scp->sc_ps & (PSL_MBZ|PSL_IPL|PSL_S)) != 0) 106 if (scp->sc_ap != 0) 116 frame->f_regs[SP] = scp->sc_sp; 117 frame->f_regs[A6] = scp->sc_fp; 118 frame->f_pc = scp->sc_pc [all...] |
sunos_machdep.c | 128 printf("sunos_sendsig(%d): sig %d ssp %p usp %p scp %p ft %d\n", 169 printf("sunos_sendsig(%d): sig %d scp %p sc_sp %x\n", 201 struct sunos_sigcontext *scp; local in function:sunos_sys_sigreturn 206 scp = (struct sunos_sigcontext *) SCARG(uap, sigcntxp); 209 printf("sunos_sigreturn: pid %d, scp %p\n", p->p_pid, scp); 211 if ((int)scp & 1) 213 if (copyin((void *)scp, (void *)&tsigc, sizeof(tsigc)) != 0) 215 scp = &tsigc; 218 if ((scp->sc_ps & (PSL_MBZ|PSL_IPL|PSL_S)) != 0 [all...] |
/src/sys/dev/wsfb/ |
genfb.c | 169 struct genfb_private *scp; local in function:genfb_init 175 scp = sc->sc_private = kmem_zalloc(sizeof(*sc->sc_private), KM_SLEEP); 208 scp->sc_shadowfb = NULL; 210 &scp->sc_enable_shadowfb)) 212 scp->sc_enable_shadowfb = true; 214 scp->sc_enable_shadowfb = false; 230 scp->sc_devcmap = NULL; 233 scp->sc_devcmap = (uint32_t *)(uintptr_t)devcmap; 237 scp->sc_cmcb = NULL; 240 scp->sc_cmcb = (void *)(vaddr_t)cmap_cb 296 struct genfb_private *scp = sc->sc_private; local in function:genfb_attach 471 struct genfb_private *scp = sc->sc_private; local in function:genfb_ioctl 616 struct genfb_private *scp = sc->sc_private; local in function:genfb_mmap 644 struct genfb_private *scp = sc->sc_private; local in function:genfb_init_screen 795 struct genfb_private *scp = sc->sc_private; local in function:genfb_putcmap 837 struct genfb_private *scp = sc->sc_private; local in function:genfb_getcmap 861 struct genfb_private *scp = sc->sc_private; local in function:genfb_restore_palette 875 struct genfb_private *scp = sc->sc_private; local in function:genfb_init_palette 918 struct genfb_private *scp = sc->sc_private; local in function:genfb_putpalreg 980 struct genfb_private *scp = sc->sc_private; local in function:genfb_brightness_up 993 struct genfb_private *scp = sc->sc_private; local in function:genfb_brightness_down 1006 struct genfb_private *scp = sc->sc_private; local in function:genfb_enable_polling 1024 struct genfb_private *scp = sc->sc_private; local in function:genfb_disable_polling 1051 struct genfb_private *scp = sc->sc_private; local in function:genfb_setup_glyphcache 1118 struct genfb_private *scp = sc->sc_private; local in function:genfb_putchar [all...] |
/src/sys/arch/sparc/sparc/ |
compat_13_machdep.c | 70 struct sigcontext13 sc, *scp; local in function:compat_13_sys_sigreturn 84 scp = ≻ 92 if (((scp->sc_pc | scp->sc_npc) & 3) != 0) 95 tf->tf_psr = (tf->tf_psr & ~PSR_ICC) | (scp->sc_psr & PSR_ICC); 96 tf->tf_pc = scp->sc_pc; 97 tf->tf_npc = scp->sc_npc; 98 tf->tf_global[1] = scp->sc_g1; 99 tf->tf_out[0] = scp->sc_o0; 100 tf->tf_out[6] = scp->sc_sp [all...] |
sunos_sigcode.s | 71 call %g1 ! (*sa->sa_handler)(sig,code,scp,arg3) 72 add %fp, 64 + 16, %o2 ! scp 78 add %sp, 64 + 16, %o0 ! compute scp 79 t ST_SYSCALL ! sigreturn(scp)
|
compat_16_machdep.c | 147 printf("sendsig_sigcontext: %s[%d] sig %d newusp %p scp %p\n", 212 printf("sendsig_siginfo: %s[%d] sig %d scp %p\n", 265 struct sigcontext sc, *scp; local in function:compat_16_sys___sigreturn14 285 scp = ≻ 293 if (((scp->sc_pc | scp->sc_npc) & 3) != 0) 297 tf->tf_psr = (tf->tf_psr & ~PSR_ICC) | (scp->sc_psr & PSR_ICC); 298 tf->tf_pc = scp->sc_pc; 299 tf->tf_npc = scp->sc_npc; 300 tf->tf_global[1] = scp->sc_g1 [all...] |
/src/sys/arch/mips/mips/ |
compat_13_machdep.c | 53 struct sigcontext13 *scp, ksc; local in function:compat_13_sys_sigreturn 69 scp = SCARG(uap, sigcntxp); 72 printf("sigreturn13: pid %d, scp %p\n", p->p_pid, scp); 74 if ((error = copyin(scp, &ksc, sizeof(ksc))) != 0) 85 memcpy(&tf->tf_regs[1], &scp->sc_regs[1], 86 sizeof(scp->sc_regs) - sizeof(scp->sc_regs[0])); 88 for (size_t i = 1; i < __arraycount(scp->sc_regs); i++) 89 tf->tf_regs[i] = scp->sc_regs[i] [all...] |
compat_16_machdep.c | 99 struct sigcontext *scp = getframe(l, sig, &onstack, local in function:sendsig_sigcontext 100 sizeof(*scp), _Alignof(*scp)); 113 printf("sendsig(%d): sig %d ssp %p scp %p\n", 114 p->p_pid, sig, &onstack, scp); 161 error = copyout(&ksc, (void *)scp, sizeof(ksc)); 186 tf->tf_regs[_R_A2] = (intptr_t)scp; 191 tf->tf_regs[_R_SP] = (intptr_t)scp; 237 struct sigcontext *scp, ksc; local in function:compat_16_sys___sigreturn14 253 scp = SCARG(uap, sigcntxp) [all...] |
/src/sys/dev/pci/ |
chipsfb.c | 89 struct chipsfb_pci_softc *scp = device_private(self); local in function:chipsfb_pci_attach 90 struct chipsfb_softc *sc = &scp->sc_chips; 94 scp->sc_pc = pa->pa_pc; 95 scp->sc_pcitag = pa->pa_tag; 98 screg = pci_conf_read(scp->sc_pc, scp->sc_pcitag, 101 pci_conf_write(scp->sc_pc, scp->sc_pcitag, PCI_COMMAND_STATUS_REG, 112 sc->sc_fb = (pci_conf_read(scp->sc_pc, scp->sc_pcitag, PCI_BAR0) & 144 struct chipsfb_pci_softc *scp = vd->cookie; local in function:chipsfb_pci_ioctl [all...] |
/src/games/atc/ |
graphics.c | 148 setup_screen(const C_SCREEN *scp) 159 radar = newwin(scp->height, scp->width * 2, 0, 0); 163 cleanradar = newwin(scp->height, scp->width * 2, 0, 0); 175 for (i = 1; i < scp->height - 1; i++) { 176 for (j = 1; j < scp->width - 1; j++) { 187 for (iu = 0; iu < scp->num_lines; iu++) { 189 draw_line(radar, scp->line[iu].p1.x, scp->line[iu].p1.y [all...] |
/src/lib/libcurses/ |
ins_wstr.c | 135 const wchar_t *scp; local in function:wins_nwstr 157 scp = wstr + 1; 168 while (*scp) { 171 switch (*scp) { 175 cw = wcwidth(*(scp - 1)); 179 scp++; 185 scp++; 196 scp++; 206 scp++; 209 w = wcwidth(*scp); [all...] |
insstr.c | 146 const char *scp; local in function:winsnstr 158 for (scp = str, len = 0; n-- && *scp++; ++len); 160 for (scp = str, len = 0; *scp++; ++len); 186 for (scp = str, temp1 = end, x = win->curx; 187 *scp && x < len + win->curx && x < win->maxx; 188 scp++, temp1++, x++) 190 temp1->ch = (wchar_t)*scp & __CHARTEXT;
|
/src/sys/arch/alpha/alpha/ |
compat_13_machdep.c | 66 struct sigcontext13 *scp, ksc; local in function:compat_13_sys_sigreturn 77 scp = SCARG(uap, sigcntxp); 78 if (ALIGN(scp) != (uint64_t)scp) 81 if (copyin((void *)scp, &ksc, sizeof(ksc)) != 0)
|
/src/sys/arch/acorn32/podulebus/ |
simide.c | 160 struct simide_channel *scp; local in function:simide_attach 252 scp = &sc->simide_channels[channel]; 253 sc->sc_chanarray[channel] = &scp->sc_channel; 254 cp = &scp->sc_channel; 281 scp->sc_irqmask = simide_info[channel].irq_mask; 282 sc->sc_ctl_reg &= ~scp->sc_irqmask; 285 ihp = &scp->sc_ih; 287 ihp->ih_arg = scp; 291 ihp->ih_maskbits = scp->sc_irqmask; 296 sc->sc_ctl_reg |= scp->sc_irqmask 330 struct simide_channel *scp = arg; local in function:simide_intr [all...] |
/src/sys/compat/linux32/arch/amd64/ |
linux32_machdep.c | 381 syscallarg(linux32_sigcontextp_t) scp; 386 if ((error = copyin(SCARG_P32(uap, scp), &ctx, sizeof(ctx))) != 0) 409 linux32_restore_sigcontext(struct lwp *l, struct linux32_sigcontext *scp, 429 if (((scp->sc_eflags ^ tf->tf_rflags) & PSL_USERSTATIC) != 0) 431 if (!VALID_USER_CSEL32(scp->sc_cs)) 434 if (scp->sc_fs != 0 && !VALID_USER_DSEL32(scp->sc_fs) && 435 !(VALID_USER_FSEL32(scp->sc_fs) && pcb->pcb_fs != 0)) 438 if (scp->sc_gs != 0 && !VALID_USER_DSEL32(scp->sc_gs) & [all...] |
/src/sys/arch/arm/arm/ |
compat_13_machdep.c | 61 struct sigcontext13 *scp, context; local in function:compat_13_sys_sigreturn 71 scp = SCARG(uap, sigcntxp); 72 if (copyin((void *)scp, &context, sizeof(*scp)) != 0)
|
/src/sys/arch/i386/i386/ |
compat_13_machdep.c | 53 struct sigcontext13 *scp, context; local in function:compat_13_sys_sigreturn 62 scp = SCARG(uap, sigcntxp); 63 if (copyin((void *)scp, &context, sizeof(*scp)) != 0)
|
/src/sys/net/ |
if_spppsubr.c | 696 if (sp->scp[IDX_LCP].state == STATE_OPENED) { 701 ++sp->scp[IDX_LCP].seq, m->m_pkthdr.len + 2, 746 if (sp->scp[IDX_IPCP].state == STATE_OPENED) { 770 if (sp->scp[IDX_IPV6CP].state == STATE_OPENED) { 847 sppp_wq_add(sp->wq_cp, &sp->scp[IDX_LCP].work_open); 953 if (sp->scp[IDX_IPCP].state != STATE_OPENED) { 980 if (sp->scp[IDX_IPV6CP].state != STATE_OPENED) { 1083 memset(sp->scp, 0, sizeof(sp->scp)); 1258 sppp_wq_add(sp->wq_cp, &sp->scp[IDX_LCP].work_close) 1494 struct sppp_cp *scp; local in function:sppp_cp_init 1529 struct sppp_cp *scp; local in function:sppp_cp_fini 1561 struct sppp_cp *scp; local in function:sppp_cp_input 2105 struct sppp_cp *scp; local in function:sppp_rcr_event 2200 struct sppp_cp *scp; local in function:sppp_rcn_event 3098 struct sppp_cp *scp; local in function:sppp_lcp_tlu 3177 struct sppp_cp *scp; local in function:sppp_lcp_tld [all...] |
/src/sys/dev/cardbus/ |
siisata_cardbus.c | 111 const struct siisata_cardbus_product *scp; local in function:siisata_cardbus_lookup 113 for (scp = siisata_cardbus_products; scp->scp_ports > 0; scp++) { 114 if (PCI_VENDOR(ca->ca_id) == scp->scp_vendor && 115 PCI_PRODUCT(ca->ca_id) == scp->scp_product) 116 return scp; 142 const struct siisata_cardbus_product *scp; local in function:siisata_cardbus_attach 231 scp = siisata_cardbus_lookup(ca); 232 if (scp != NULL [all...] |