Home
last modified time | relevance | path

Searched refs:rptr (Results 1 – 25 of 57) sorted by relevance

123

/titanic_44/usr/src/cmd/ttymon/
H A Dtmparse.c96 register char c,*rptr; local
99 rptr = ptr;
100 switch(*++rptr) {
126 if (*rptr >= '0' && *rptr <= '7') {
128 c = c*8 + (*rptr - '0');
129 if (*++rptr < '0' || *rptr > '7') break;
131 rptr--;
136 } else if (*rptr == '\0') {
138 rptr--;
141 } else c = *rptr;
[all …]
/titanic_44/usr/src/cmd/csh/
H A Dsh.misc.c446 char *rptr, *bp; in xalloc() local
448 if ((rptr = malloc(size)) == NULL) in xalloc()
450 bp = rptr + size; in xalloc()
453 return (rptr); in xalloc()
459 char *rptr = ptr, *bp; in xrealloc() local
463 if (rptr < end) { in xrealloc()
468 rptr = xalloc(size); in xrealloc()
470 (void) memcpy(rptr, ptr, size); in xrealloc()
471 return (rptr); in xrealloc()
473 if (rptr < xalloc_bottom) { in xrealloc()
[all …]
/titanic_44/usr/src/uts/common/io/ppp/spppcomp/
H A Ddeflate.c303 uchar_t *rptr, *rmax; in z_compress() local
317 if (rptr != NULL) { \ in z_compress()
318 while (rptr >= rmax) { \ in z_compress()
320 rptr = NULL; \ in z_compress()
323 rptr = mp->b_rptr; \ in z_compress()
330 if (rptr != NULL) { \ in z_compress()
331 (v) = *rptr++; \ in z_compress()
340 rptr = mp->b_rptr; in z_compress()
353 if (rptr == NULL) in z_compress()
355 r = *rptr; in z_compress()
[all …]
H A Dbsd-comp.c571 uchar_t *rptr, *rmax; in bsd_compress() local
613 if (rptr != NULL) { \ in bsd_compress()
614 while (rptr >= rmax) { \ in bsd_compress()
616 rptr = NULL; \ in bsd_compress()
619 rptr = mp->b_rptr; \ in bsd_compress()
626 if (rptr != NULL) { \ in bsd_compress()
627 (v) = *rptr++; \ in bsd_compress()
639 rptr = mp->b_rptr; in bsd_compress()
658 if (rptr == NULL || ent == PPP_COMP || ent == PPP_COMPFRAG) in bsd_compress()
728 if (rptr == NULL) in bsd_compress()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c233 u_char *rptr, *wptr; local
237 rptr = mi;
238 if (*rptr == 0)
239 ++rptr;
240 ++rptr;
243 seq = (rptr[0] << 8) + rptr[1];
244 rptr += 2;
259 state->strm.next_in = rptr;
260 state->strm.avail_in = mi + inlen - rptr;
305 u_char *rptr; local
[all …]
H A Dbsd-comp.c444 u_char *rptr; local
447 rptr = dmsg;
448 ent = rptr[0]; /* get the protocol */
450 ++rptr;
452 ent = rptr[0];
459 ++rptr;
460 slen = dmsg + mlen - rptr;
463 c = *rptr++;
563 u_char *p, *rptr, *wptr; local
567 rptr = cmsg;
[all …]
/titanic_44/usr/src/lib/libast/common/uwin/
H A Drandom.c180 static long int *rptr = &randtbl[1]; variable
219 rptr = &state[0]; in srandom()
243 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
287 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
310 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in setstate()
332 rptr = &state[rear]; in setstate()
362 *fptr += *rptr; in random()
369 ++rptr; in random()
373 ++rptr; in random()
374 if (rptr >= end_ptr) in random()
[all …]
/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A Drandom.c127 long *fptr, *rptr; member
218 rp->rptr = &rp->state[0]; in srandom()
259 MAX_TYPES*(rp->rptr - rp->state) + rp->rand_type; in initstate()
290 : MAX_TYPES * (rp->rptr - rp->state) + rp->rand_type; in initstate()
324 : MAX_TYPES*(rp->rptr - rp->state) + rp->rand_type; in setstate()
341 rp->rptr = &rp->state[rear]; in setstate()
375 *rp->fptr += *rp->rptr; in random()
379 ++rp->rptr; in random()
380 } else if (++rp->rptr >= rp->end_ptr) in random()
381 rp->rptr = rp->state; in random()
/titanic_44/usr/src/uts/common/inet/ipf/netinet/
H A Dip_ftp_pxy.c433 char *rptr, *wptr, cmd[6], c; local
439 rptr = f->ftps_rptr;
443 c = rptr[i];
491 while ((*rptr++ != '\n') && (rptr < wptr))
493 f->ftps_rptr = rptr;
796 char *rptr, *wptr; local
802 rptr = f->ftps_rptr;
805 if (*rptr == ' ')
807 if (!ISDIGIT(*rptr) || !ISDIGIT(*(rptr + 1)) || !ISDIGIT(*(rptr + 2)))
810 if (!strncmp(rptr, "227 ", 4))
[all …]
/titanic_44/usr/src/lib/libc/port/gen/
H A Drandom.c144 unsigned int *fptr, *rptr; member
242 (unsigned int)(MAX_TYPES*(rp->rptr - rp->state) + rp->rand_type); in initstate()
281 (rp->rptr - rp->state) + rp->rand_type); in initstate()
318 (rp->rptr - rp->state) + rp->rand_type); in setstate()
335 rp->rptr = &rp->state[ rear ]; in setstate()
370 *rp->fptr += *rp->rptr; in random()
374 ++rp->rptr; in random()
376 if (++rp->rptr >= rp->end_ptr) rp->rptr = rp->state; in random()
411 rp->rptr = &rp->state[ 0 ]; in srandom()
/titanic_44/usr/src/uts/common/io/ib/clients/rds/
H A Drdsddi.c611 uchar_t *rptr = mp->b_rptr; in rds_wput_other() local
623 if ((uintptr_t)mp->b_wptr - (uintptr_t)rptr < in rds_wput_other()
628 switch (((union T_primitives *)(uintptr_t)rptr)->type) { in rds_wput_other()
655 if (((union T_primitives *)(uintptr_t)rptr)->type == in rds_wput_other()
673 ((union T_primitives *)(uintptr_t)rptr)->type); in rds_wput_other()
677 if (*rptr & FLUSHW) in rds_wput_other()
714 uchar_t *rptr = mp->b_rptr; in rds_wput() local
720 ASSERT(((uintptr_t)mp->b_wptr - (uintptr_t)rptr) <= in rds_wput()
722 if ((uintptr_t)mp->b_wptr - (uintptr_t)rptr >= in rds_wput()
724 if (((union T_primitives *)(uintptr_t)rptr)->type in rds_wput()
[all …]
/titanic_44/usr/src/uts/common/inet/tcp/
H A Dtcp_output.c90 uchar_t *rptr; in tcp_wput() local
125 rptr = mp->b_rptr; in tcp_wput()
126 if ((mp->b_wptr - rptr) >= sizeof (t_scalar_t)) { in tcp_wput()
127 type = ((union T_primitives *)rptr)->type; in tcp_wput()
894 uchar_t *rptr; in tcp_wput_proto() local
910 rptr = mp->b_rptr; in tcp_wput_proto()
911 ASSERT((uintptr_t)(mp->b_wptr - rptr) <= (uintptr_t)INT_MAX); in tcp_wput_proto()
912 if ((mp->b_wptr - rptr) >= sizeof (t_scalar_t)) { in tcp_wput_proto()
913 type = ((union T_primitives *)rptr)->type; in tcp_wput_proto()
1085 uchar_t *rptr; in tcp_output() local
[all …]
/titanic_44/usr/src/uts/sparc/os/
H A Dbootdev.c217 char *rptr, *optr, *offline; in i_devname_to_promname() local
263 rptr = ret_buf; in i_devname_to_promname()
272 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname()
353 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname()
354 rlen -= strlen(rptr) + 1; in i_devname_to_promname()
355 rptr += strlen(rptr) + 1; in i_devname_to_promname()
374 bcopy(offline, rptr, rlen); in i_devname_to_promname()
/titanic_44/usr/src/uts/common/io/
H A Di8042.c147 int rptr; member
916 port->rptr = 0; in i8042_map()
1034 if (new_wptr == port->rptr) { in i8042_intr()
1185 ret = port->rptr != port->wptr; in i8042_get8()
1192 if (port->rptr != port->wptr) { in i8042_get8()
1193 ret = port->buf[port->rptr]; in i8042_get8()
1194 port->rptr = (port->rptr + 1) % BUFSIZ; in i8042_get8()
1218 if (port->rptr != port->wptr) in i8042_get8()
1248 if (port->rptr != port->wptr) { in i8042_get8()
1249 ret = port->buf[port->rptr]; in i8042_get8()
[all …]
/titanic_44/usr/src/cmd/sgs/rtld/sparc/
H A Dsparc_elf.c113 elf_plt_write(uintptr_t addr, uintptr_t vaddr, void *rptr, uintptr_t symval, in elf_plt_write() argument
116 Rela *rel = (Rela *)rptr; in elf_plt_write()
238 elf_plt_trace_write(caddr_t addr, Rela *rptr, Rt_map *rlmp, Rt_map *dlmp, in elf_plt_trace_write() argument
253 rptr, (uintptr_t)to, pltndx); in elf_plt_trace_write()
329 (void) elf_plt_write((uintptr_t)addr, (uintptr_t)addr, rptr, in elf_plt_trace_write()
355 Rela *rptr; in elf_bndr() local
410 rptr = (Rela *)(addr + reloff); in elf_bndr()
411 rsymndx = ELF_R_SYM(rptr->r_info); in elf_bndr()
476 rptr, lmp, nlmp, nsym, symndx, pltndx, in elf_bndr()
486 (uintptr_t)vaddr, rptr, symval, pltndx); in elf_bndr()
/titanic_44/usr/src/uts/common/sys/
H A Dmultidata.h123 #define PDESC_PLD_SPAN_ADD(p, pbuf_idx, rptr, len) { \ argument
126 (p)->pld_ary[(p)->pld_cnt].pld_rptr = (rptr); \
127 (p)->pld_ary[(p)->pld_cnt].pld_wptr = (rptr) + (len); \
/titanic_44/usr/src/stand/lib/tcp/
H A Dtcp.c2614 uchar_t *rptr; in tcp_rput_data() local
2645 rptr = mp->b_rptr; in tcp_rput_data()
2646 iph = (struct ip *)rptr; in tcp_rput_data()
2647 ip_hdr_len = IPH_HDR_LENGTH(rptr); in tcp_rput_data()
2658 tcph = (tcpha_t *)&rptr[ip_hdr_len]; in tcp_rput_data()
2661 assert((uintptr_t)(mp->b_wptr - rptr) <= (uintptr_t)INT_MAX); in tcp_rput_data()
2662 seg_len = (int)(mp->b_wptr - rptr) - in tcp_rput_data()
3153 uchar_t tos = ((struct ip *)rptr)->ip_tos; in tcp_rput_data()
4614 uchar_t *rptr; in tcp_wput_data() local
4917 rptr = xmit_tail->b_wptr - tail_unsent; in tcp_wput_data()
[all …]
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip6_input.c526 #define rptr ((uchar_t *)ip6h) in ill_input_short_v6() macro
555 len = mp->b_wptr - rptr; in ill_input_short_v6()
561 mp = ip_check_length(mp, rptr, len, pkt_len, IPV6_HDR_LEN, ira); in ill_input_short_v6()
657 rptr + IPV6_HDR_LEN + MIN_EHDR_LEN > mp->b_wptr) { in ill_input_short_v6()
676 rptr + IPV6_HDR_LEN + ehdrlen > mp->b_wptr) { in ill_input_short_v6()
822 #undef rptr
1994 #define rptr ((uchar_t *)ip6h) in ip_fanout_v6() macro
2065 len = mp->b_wptr - rptr; in ip_fanout_v6()
2075 len = mp->b_wptr - rptr; in ip_fanout_v6()
2129 len = mp->b_wptr - rptr; in ip_fanout_v6()
[all …]
/titanic_44/usr/src/cmd/sgs/rtld/sparcv9/
H A Dsparc_elf.c145 elf_plt_write(uintptr_t addr, uintptr_t vaddr, void *rptr, uintptr_t symval, in elf_plt_write() argument
148 Rela *rel = (Rela *)rptr; in elf_plt_write()
386 elf_plt_trace_write(caddr_t addr, Rela *rptr, Rt_map *rlmp, Rt_map *dlmp, in elf_plt_trace_write() argument
401 rptr, (uintptr_t)to, pltndx); in elf_plt_trace_write()
456 (void) elf_plt_write((uintptr_t)addr, (uintptr_t)addr, rptr, in elf_plt_trace_write()
482 Rela *rptr; in elf_bndr() local
551 rptr = (Rela *)(addr + reloff); in elf_bndr()
552 rsymndx = ELF_R_SYM(rptr->r_info); in elf_bndr()
619 rptr, lmp, nlmp, nsym, symndx, pltndx, in elf_bndr()
629 (uintptr_t)vaddr, rptr, symval, pltndx); in elf_bndr()
/titanic_44/usr/src/cmd/diskscan/
H A Ddiskscan.c176 char *rptr; in scandisk() local
246 rptr = fgets(replybuf, 64*sizeof (char), stdin); in scandisk()
247 if (!rptr || !((replybuf[0] == 'Y') || (replybuf[0] == 'y'))) in scandisk()
/titanic_44/usr/src/cmd/sgs/rtld/amd64/
H A Damd64_elf.c217 Rela *rptr; in elf_bndr() local
259 rptr = (Rela *)(addr + reloff); in elf_bndr()
260 rsymndx = ELF_R_SYM(rptr->r_info); in elf_bndr()
310 addr = rptr->r_offset; in elf_bndr()
940 elf_plt_write(uintptr_t addr, uintptr_t vaddr, void *rptr, uintptr_t symval, in elf_plt_write() argument
943 Rela *rel = (Rela*)rptr; in elf_plt_write()
/titanic_44/usr/src/ucbcmd/sed/
H A Dsed0.c797 union reptr *rptr, *trptr; in dechain() local
807 rptr = lptr->chain; in dechain()
808 while(trptr = rptr->r2.lb1) { in dechain()
809 rptr->r2.lb1 = lptr->address; in dechain()
810 rptr = trptr; in dechain()
812 rptr->r2.lb1 = lptr->address; in dechain()
/titanic_44/usr/src/cmd/sgs/rtld/i386/
H A Di386_elf.c198 Rel *rptr; in elf_bndr() local
238 rptr = (Rel *)(addr + reloff); in elf_bndr()
239 rsymndx = ELF_R_SYM(rptr->r_info); in elf_bndr()
289 addr = rptr->r_offset; in elf_bndr()
1004 elf_plt_write(uintptr_t addr, uintptr_t vaddr, void *rptr, uintptr_t symval, in elf_plt_write() argument
1007 Rel *rel = (Rel*)rptr; in elf_plt_write()
/titanic_44/usr/src/uts/common/rpc/
H A Drpcmod.c2289 uchar_t *rptr = mp->b_rptr; in mir_wput() local
2312 if ((rptr - mp->b_datap->db_base) < sizeof (uint32_t) || in mir_wput()
2323 (int)(rptr - mp->b_datap->db_base)); in mir_wput()
2327 rptr -= sizeof (uint32_t); in mir_wput()
2328 *(uint32_t *)rptr = htonl(frag_header); in mir_wput()
2329 mp->b_rptr = rptr; in mir_wput()
2397 uchar_t *rptr = mp->b_rptr; in mir_wput_other() local
2403 iocp = (struct iocblk *)rptr; in mir_wput_other()
2488 if ((mp->b_wptr - rptr) < sizeof (uint32_t) || in mir_wput_other()
2489 !IS_P2ALIGNED(rptr, sizeof (uint32_t))) in mir_wput_other()
[all …]
/titanic_44/usr/src/uts/common/io/nge/
H A Dnge_rx.c146 uint8_t *rptr; in nge_recv_packet() local
204 rptr = DMA_VPTR(*srbdp->bufp); in nge_recv_packet()
206 bcopy(rptr + NGE_HEADROOM, mp->b_rptr, len); in nge_recv_packet()

123