/src/games/robots/ |
move_robs.c | 53 COORD *rp; local in function:move_robots 63 for (rp = Robots; rp < &Robots[MAXROBOTS]; rp++) { 64 if (rp->y < 0) 66 mvaddch(rp->y, rp->x, ' '); 67 Field[rp->y][rp->x]--; 68 rp->y += sign(My_pos.y - rp->y) [all...] |
/src/sys/arch/hp300/stand/common/ |
ite_tc.c | 117 struct tcboxfb *rp = (void *)ip->regbase; local in function:topcat_windowmove 121 tc_waitbusy(rp, ip->planemask); 122 rp->wmrr = func; 123 rp->source_y = sy; 124 rp->source_x = sx; 125 rp->dest_y = dy; 126 rp->dest_x = dx; 127 rp->wheight = h; 128 rp->wwidth = w; 129 rp->wmove = ip->planemask [all...] |
ite_rb.c | 131 struct rboxfb *rp = (void *)ip->regbase; local in function:rbox_windowmove 136 rb_waitbusy(rp); 137 rp->rep_rule = func << 4 | func; 138 rp->source_y = sy; 139 rp->source_x = sx; 140 rp->dest_y = dy; 141 rp->dest_x = dx; 142 rp->wheight = h; 143 rp->wwidth = w; 144 rp->wmove = 1 [all...] |
/src/usr.bin/talk/ |
look_up.c | 52 CTL_RESPONSE *rp = &response; local in function:check_local 64 if (!look_for_invite(rp)) 72 if (rp->addr.sa_family != AF_INET) 75 (void)memcpy(&addr, &rp->addr.sa_family, sizeof(addr)); 76 addr.sa_family = rp->addr.sa_family; 90 ctl_transact(his_machine_addr, msg, DELETE, rp); 104 look_for_invite(CTL_RESPONSE *rp) 107 ctl_transact(his_machine_addr, msg, LOOK_UP, rp); 109 switch (rp->answer) { 112 msg.id_num = htonl(rp->id_num) [all...] |
/src/sys/arch/amiga/dev/ |
empsc.c | 120 volatile u_char *rp; local in function:empscattach 130 rp = (u_char *)zap->va + 0x5000; 133 sc->sci_data = rp; 134 sc->sci_odata = rp; 135 sc->sci_icmd = rp + 0x10; 136 sc->sci_mode = rp + 0x20; 137 sc->sci_tcmd = rp + 0x30; 138 sc->sci_bus_csr = rp + 0x40; 139 sc->sci_sel_enb = rp + 0x40; 140 sc->sci_csr = rp + 0x50 [all...] |
zssc.c | 108 siop_regmap_p rp; local in function:zsscattach 115 sc->sc_siopp = rp = (siop_regmap_p)((char *)zap->va + 0x4000); 167 siop_regmap_p rp; local in function:zssc_dmaintr 172 rp = sc->sc_siopp; 173 istat = rp->siop_istat; 180 sc->sc_sstat0 = rp->siop_sstat0; 182 sc->sc_dstat = rp->siop_dstat; 187 rp->siop_sien = 0; 188 rp->siop_dien = 0;
|
bppcsc.c | 119 siop_regmap_p rp; local in function:bppcscattach 129 sc->sc_siopp = rp = ztwomap(BPPC_SCSI_OFF); 179 siop_regmap_p rp; local in function:bppcsc_dmaintr 185 rp = sc->sc_siopp; 187 istat = rp->siop_istat; 194 sc->sc_sstat0 = rp->siop_sstat0; 196 sc->sc_dstat = rp->siop_dstat;
|
cbiiisc.c | 117 siop_regmap_p rp; local in function:cbiiiscattach 124 sc->sc_siopp = rp = ztwomap(0xf40000); 176 siop_regmap_p rp; local in function:cbiiisc_dmaintr 181 rp = sc->sc_siopp; 183 istat = rp->siop_istat; 190 sc->sc_sist = rp->siop_sist; 192 sc->sc_dstat = rp->siop_dstat;
|
drsc.c | 118 siop_regmap_p rp; local in function:drscattach 125 sc->sc_siopp = rp = (siop_regmap_p)(DRCCADDR+PAGE_SIZE*DRSCSIPG); 189 siop_regmap_p rp; local in function:drsc_handler 195 rp = sc->sc_siopp; 196 istat = rp->siop_istat; 205 sc->sc_sstat0 = rp->siop_sstat0; 207 sc->sc_dstat = rp->siop_dstat; 216 rp->siop_sien = 0; 217 rp->siop_dien = 0;
|
mgnsc.c | 112 siop_regmap_p rp; local in function:mgnscattach 121 sc->sc_siopp = rp = (siop_regmap_p)((char *)zap->va + 0x8000); 179 siop_regmap_p rp; local in function:mgnsc_dmaintr 184 rp = sc->sc_siopp; 185 istat = rp->siop_istat; 192 sc->sc_sstat0 = rp->siop_sstat0; 194 sc->sc_dstat = rp->siop_dstat; 199 rp->siop_sien = 0; 200 rp->siop_dien = 0;
|
wesc.c | 112 siop_regmap_p rp; local in function:wescattach 122 sc->sc_siopp = rp = (siop_regmap_p)((char *)zap->va + 0x40000); 170 siop_regmap_p rp; local in function:wesc_dmaintr 175 rp = sc->sc_siopp; 176 istat = rp->siop_istat; 183 sc->sc_sstat0 = rp->siop_sstat0; 185 sc->sc_dstat = rp->siop_dstat;
|
afsc.c | 104 siop_regmap_p rp; local in function:afscmatch 112 rp = ztwomap(0xdd0040); 113 if (badaddr((void *)__UNVOLATILE(&rp->siop_scratch)) || 114 badaddr((void *)__UNVOLATILE(&rp->siop_temp))) { 117 scratch = rp->siop_scratch; 118 temp = rp->siop_temp; 119 rp->siop_scratch = 0xdeadbeef; 120 rp->siop_temp = 0xaaaa5555; 121 if (rp->siop_scratch != 0xdeadbeef || rp->siop_temp != 0xaaaa5555 135 siop_regmap_p rp; local in function:afscattach 196 siop_regmap_p rp; local in function:afsc_dmaintr [all...] |
/src/sys/arch/amiga/stand/dumpfont/ |
dumpfont.c | 28 struct RastPort rp; local in function:main 37 InitRastPort (& rp); 38 rp.BitMap = &bm; 55 SetFont (&rp, tf); 60 Move (&rp, 0, 6); 62 Text (&rp, str, 256 - 32);
|
fontdumper.c | 48 struct RastPort rp; local in function:main 120 InitRastPort (&rp); 121 rp.BitMap = &bm; 134 SetFont (&rp, tf); 135 SetSoftStyle(&rp, ta.ta_Style ^ tf->tf_Style, 137 Move (&rp, 0, tf->tf_Baseline); 138 ClearEOL(&rp); 141 Move (&rp, NetBSDwidth - tf->tf_XSize, tf->tf_Baseline); 144 Text (&rp, &str[i], 1); 145 Move (&rp, rp.cp_x + (NetBSDwidth - tf->tf_XSize), rp.cp_y) [all...] |
/src/sys/dev/wscons/ |
wscons_rinit.c | 100 struct raster *rp = rc->rc_sp; local in function:rcons_init 105 i = rp->height / rc->rc_font->height; 108 i = rp->width / rc->rc_font->width; 113 ((rp->width - rc->rc_maxcol * rc->rc_font->width) / 2) & ~0x1f; 115 (rp->height - rc->rc_maxrow * rc->rc_font->height) / 2; 123 if (rc->rc_xorigin + i <= rp->width)
|
/src/sys/net/ |
raw_cb.c | 69 struct rawcb *rp; local in function:raw_attach 78 rp = sotorawcb(so); 79 KASSERT(rp != NULL); 85 rp->rcb_socket = so; 86 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family; 87 rp->rcb_proto.sp_protocol = proto; 88 LIST_INSERT_HEAD(rawcbhead, rp, rcb_list); 100 struct rawcb *rp = sotorawcb(so); local in function:raw_detach 101 const size_t rcb_len = rp->rcb_len; 103 KASSERT(rp != NULL) [all...] |
raw_usrreq.c | 70 struct rawcb *rp; local in function:raw_input 75 LIST_FOREACH(rp, rawcbhead, rcb_list) { 76 if (rp->rcb_proto.sp_family != proto->sp_family) 78 if (rp->rcb_proto.sp_protocol && 79 rp->rcb_proto.sp_protocol != proto->sp_protocol) 89 if (rp->rcb_laddr && !equal(rp->rcb_laddr, dst)) 91 if (rp->rcb_faddr && !equal(rp->rcb_faddr, src)) 94 if (rp->rcb_filter != NULL && rp->rcb_filter(m, proto, rp) != 0 149 struct rawcb *rp = sotorawcb(so); local in function:raw_send [all...] |
/src/usr.sbin/btattach/ |
init_unistone.c | 56 hci_status_rp rp; local in function:infineon_manufacturer_mode 64 n = uart_recv_cc(fd, 0xfc11, &rp, sizeof(rp)); 65 if (n != sizeof(rp) || rp.status != 0x00)
|
init_swave.c | 66 hci_param_access_set_rp rp; local in function:init_swave 92 n = uart_recv_ev(fd, HCI_EVENT_VENDOR, &rp, sizeof(rp)); 93 } while (n != sizeof(rp) || rp.d0 != 0x0b); 95 if (memcmp(&cp, &rp.cp, sizeof(cp)))
|
/src/lib/libc/arch/hppa/gen/ |
makecontext.c | 55 __greg_t *gp, rp, fp; local in function:makecontext 71 rp = (__greg_t)__resumecontext; 72 if (rp & 2) { 73 gp = (__greg_t *)(rp & ~3); 74 rp = gp[0]; 77 gr[_REG_RP] = rp;
|
/src/lib/libc/time/ |
getdate.c | 64 char *datemsk, *line, *rp; local in function:getdate 94 rp = NULL; 102 rp = strptime(str, line, rtmp); 104 if (rp != NULL) 116 if (feof(fp) || (rp != NULL && *rp != '\0')) {
|
/src/sys/dev/rasops/ |
rasops1_putchar_width.h | 44 * rp and hp are always half-word aligned, whereas 69 SUBST_UNIT tmp, *rp, *hp; local in function:NAME 87 rp = (SUBST_UNIT *)(ri->ri_bits + row * ri->ri_yscale + 99 *rp = bg; 104 DELTA(rp, ri->ri_stride, SUBST_UNIT *); 115 *rp = tmp; 122 DELTA(rp, ri->ri_stride, SUBST_UNIT *); 128 DELTA(rp, - ri->ri_stride * ri->ri_ul.off, SUBST_UNIT *); 134 DELTA(rp, - ri->ri_stride, SUBST_UNIT *); 135 *rp = fg [all...] |
/src/tests/kernel/ |
t_extent.c | 88 struct extent_region *rp; local in function:h_require 101 LIST_FOREACH(rp, &ex->ex_regions, er_link) 103 "0x%lx - 0x%lx\n", rp->er_start, rp->er_end);
|
/src/usr.bin/btpin/ |
btpin.c | 53 bthcid_pin_response_t rp; local in function:main 59 memset(&rp, 0, sizeof(rp)); 71 if (!bt_aton(optarg, &rp.raddr)) { 78 bdaddr_copy(&rp.raddr, (bdaddr_t *)he->h_addr); 83 if (!bt_devaddr(optarg, &rp.laddr)) 118 if (bdaddr_any(&rp.raddr)) 127 pin = (char *)rp.pin; 131 printf("PIN: %.*s\n", HCI_PIN_SIZE, rp.pin); 139 memcpy(rp.pin, pin, len) [all...] |
/src/usr.sbin/gspa/gspa/ |
gsp_eval.c | 50 expr lp, rp; local in function:fold 60 x->e_right = rp = fold(x->e_right); 62 rp = NULL; 63 if( lp->e_op == CONST && (rp == NULL || rp->e_op == CONST) ){ 65 if( rp != NULL ){ 66 l = eval_op(x->e_op, lp->e_val, rp->e_val); 67 free(rp);
|