| /illumos-gate/usr/src/cmd/ttymon/ |
| H A D | tmparse.c | 93 char c, *rptr; in quoted() local 96 rptr = ptr; in quoted() 97 switch (*++rptr) { in quoted() 123 if (*rptr >= '0' && *rptr <= '7') { in quoted() 125 c = c * 8 + (*rptr - '0'); in quoted() 126 if (*++rptr < '0' || *rptr > '7') in quoted() 129 rptr--; in quoted() 134 } else if (*rptr == '\0') { in quoted() 136 rptr--; in quoted() 140 c = *rptr; in quoted() [all …]
|
| /illumos-gate/usr/src/cmd/csh/ |
| H A D | sh.misc.c | 444 char *rptr, *bp; in xalloc() local 446 if ((rptr = malloc(size)) == NULL) in xalloc() 448 bp = rptr + size; in xalloc() 451 return (rptr); in xalloc() 457 char *rptr = ptr, *bp; in xrealloc() local 461 if (rptr < end) { in xrealloc() 466 rptr = xalloc(size); in xrealloc() 468 (void) memcpy(rptr, ptr, size); in xrealloc() 469 return (rptr); in xrealloc() 471 if (rptr < xalloc_bottom) { in xrealloc() [all …]
|
| /illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
| H A D | deflate.c | 303 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 D | bsd-comp.c | 569 uchar_t *rptr, *rmax; in bsd_compress() local 611 if (rptr != NULL) { \ in bsd_compress() 612 while (rptr >= rmax) { \ in bsd_compress() 614 rptr = NULL; \ in bsd_compress() 617 rptr = mp->b_rptr; \ in bsd_compress() 624 if (rptr != NULL) { \ in bsd_compress() 625 (v) = *rptr++; \ in bsd_compress() 637 rptr = mp->b_rptr; in bsd_compress() 656 if (rptr == NULL || ent == PPP_COMP || ent == PPP_COMPFRAG) in bsd_compress() 726 if (rptr == NULL) in bsd_compress() [all …]
|
| /freebsd/sys/dev/sfxge/common/ |
| H A D | siena_sram.c | 89 unsigned int rptr; in siena_sram_test() local 114 for (wptr = 0, rptr = 0; wptr < rows; ++wptr) { in siena_sram_test() 118 if ((wptr - rptr) < 64 && wptr < rows - 1) in siena_sram_test() 123 for (; rptr <= wptr; ++rptr) { in siena_sram_test() 124 func(rptr, B_FALSE, &qword); in siena_sram_test() 125 EFX_BAR_TBL_READQ(enp, FR_AZ_BUF_HALF_TBL, rptr, in siena_sram_test() 136 for (wptr = 0, rptr = 0; wptr < rows; ++wptr) { in siena_sram_test() 140 if ((wptr - rptr) < 64 && wptr < rows - 1) in siena_sram_test() 145 for (; rptr <= wptr; ++rptr) { in siena_sram_test() 146 func(rptr, B_TRUE, &qword); in siena_sram_test() [all …]
|
| /illumos-gate/usr/src/uts/common/io/sfxge/common/ |
| H A D | siena_sram.c | 86 unsigned int rptr; in siena_sram_test() local 111 for (wptr = 0, rptr = 0; wptr < rows; ++wptr) { in siena_sram_test() 115 if ((wptr - rptr) < 64 && wptr < rows - 1) in siena_sram_test() 120 for (; rptr <= wptr; ++rptr) { in siena_sram_test() 121 func(rptr, B_FALSE, &qword); in siena_sram_test() 122 EFX_BAR_TBL_READQ(enp, FR_AZ_BUF_HALF_TBL, rptr, in siena_sram_test() 133 for (wptr = 0, rptr = 0; wptr < rows; ++wptr) { in siena_sram_test() 137 if ((wptr - rptr) < 64 && wptr < rows - 1) in siena_sram_test() 142 for (; rptr <= wptr; ++rptr) { in siena_sram_test() 143 func(rptr, B_TRUE, &qword); in siena_sram_test() [all …]
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
| H A D | deflate.c | 233 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 D | bsd-comp.c | 444 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 …]
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
| H A D | random.c | 180 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 …]
|
| /illumos-gate/usr/src/uts/common/inet/ipf/netinet/ |
| H A D | ip_ftp_pxy.c | 433 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 …]
|
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | random.c | 142 unsigned int *fptr, *rptr; member 240 (unsigned int)(MAX_TYPES*(rp->rptr - rp->state) + rp->rand_type); in initstate() 279 (rp->rptr - rp->state) + rp->rand_type); in initstate() 316 (rp->rptr - rp->state) + rp->rand_type); in setstate() 333 rp->rptr = &rp->state[ rear ]; in setstate() 368 *rp->fptr += *rp->rptr; in random() 372 ++rp->rptr; in random() 374 if (++rp->rptr >= rp->end_ptr) rp->rptr = rp->state; in random() 409 rp->rptr = &rp->state[ 0 ]; in srandom()
|
| /freebsd/crypto/openssl/crypto/bn/asm/ |
| H A D | x86_64-mont.pl | 823 my $rptr="%rdi"; # const BN_ULONG *rptr, 830 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr); 920 movq $rptr,%xmm1 # save $rptr 937 movq %xmm1,$rptr 953 movq %xmm1,$rptr 969 mov %r12,8*0($rptr) 970 mov %r13,8*1($rptr) 971 mov %r14,8*2($rptr) 972 mov %r15,8*3($rptr) 973 lea 8*4($rptr),$rptr [all …]
|
| H A D | armv4-mont.pl | 309 my ($rptr,$aptr,$bptr,$nptr,$n0,$num)=map("r$_",(0..5)); 698 stmia $rptr!, {r8-r11} 707 sub $rptr,$rptr,r11 @ rewind $rptr 713 ldmia $rptr, {r8-r11} 724 stmia $rptr!, {r8-r11} 726 ldmia $rptr, {r8-r11} 737 stmia $rptr!, {r8-r11}
|
| H A D | x86_64-mont5.pl | 509 # Ensure that stack frame doesn't alias with $rptr+3*$num 1089 my $rptr="%rdi"; # BN_ULONG *rptr, 1097 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr); 1138 # Ensure that stack frame doesn't alias with $rptr+3*$num 1146 sub $rptr,%r11 1196 movq $rptr,%xmm1 # save $rptr, used in sqr8x 1214 mov $aptr,$rptr 2057 movq %xmm1,$rptr # restore $rptr 2090 mov %r12,8*0($rptr) 2092 mov %r13,8*1($rptr) [all …]
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | ntp_random.c | 195 static unsigned long *rptr = &randtbl[1]; variable 273 rptr = &state[0]; in ntp_srandom() 360 state[-1] = MAX_TYPES * (rptr - state) + rand_type; in ntp_initstate() 393 long_arg_state[0] = MAX_TYPES * (rptr - state) + rand_type; in ntp_initstate() 429 state[-1] = MAX_TYPES * (rptr - state) + rand_type; in ntp_setstate() 446 rptr = &state[rear]; in ntp_setstate() 485 f = fptr; r = rptr; in ntp_random() 496 fptr = f; rptr = r; in ntp_random()
|
| /freebsd/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_ftp_pxy.c | 590 char *rptr, *wptr, cmd[6], c; in ipf_p_ftp_client() local 596 rptr = f->ftps_rptr; in ipf_p_ftp_client() 600 c = rptr[i]; in ipf_p_ftp_client() 658 while ((*rptr++ != '\n') && (rptr < wptr)) in ipf_p_ftp_client() 660 f->ftps_rptr = rptr; in ipf_p_ftp_client() 946 char *rptr, *wptr; in ipf_p_ftp_server() local 952 rptr = f->ftps_rptr; in ipf_p_ftp_server() 955 DT2(ftp_server_response, char *, rptr, int, ftp->ftp_passok); in ipf_p_ftp_server() 956 if (*rptr == ' ') in ipf_p_ftp_server() 958 if (!ISDIGIT(*rptr) || !ISDIGIT(*(rptr + 1)) || !ISDIGIT(*(rptr + 2))) in ipf_p_ftp_server() [all …]
|
| /illumos-gate/usr/src/uts/common/inet/tcp/ |
| H A D | tcp_output.c | 105 uchar_t *rptr; in tcp_wput() local 140 rptr = mp->b_rptr; in tcp_wput() 141 if ((mp->b_wptr - rptr) >= sizeof (t_scalar_t)) { in tcp_wput() 142 type = ((union T_primitives *)rptr)->type; in tcp_wput() 911 uchar_t *rptr; in tcp_wput_proto() local 927 rptr = mp->b_rptr; in tcp_wput_proto() 928 ASSERT((uintptr_t)(mp->b_wptr - rptr) <= (uintptr_t)INT_MAX); in tcp_wput_proto() 929 if ((mp->b_wptr - rptr) >= sizeof (t_scalar_t)) { in tcp_wput_proto() 930 type = ((union T_primitives *)rptr)->type; in tcp_wput_proto() 1102 uchar_t *rptr; in tcp_output() local [all …]
|
| /illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
| H A D | rdsddi.c | 616 uchar_t *rptr = mp->b_rptr; in rds_wput_other() local 628 if ((uintptr_t)mp->b_wptr - (uintptr_t)rptr < in rds_wput_other() 633 switch (((union T_primitives *)(uintptr_t)rptr)->type) { in rds_wput_other() 660 if (((union T_primitives *)(uintptr_t)rptr)->type == in rds_wput_other() 678 ((union T_primitives *)(uintptr_t)rptr)->type); in rds_wput_other() 682 if (*rptr & FLUSHW) in rds_wput_other() 719 uchar_t *rptr = mp->b_rptr; in rds_wput() local 725 ASSERT(((uintptr_t)mp->b_wptr - (uintptr_t)rptr) <= in rds_wput() 727 if ((uintptr_t)mp->b_wptr - (uintptr_t)rptr >= in rds_wput() 729 if (((union T_primitives *)(uintptr_t)rptr)->type in rds_wput() [all …]
|
| /illumos-gate/usr/src/uts/sparc/os/ |
| H A D | bootdev.c | 221 char *rptr, *optr, *offline; in i_devname_to_promname() local 266 rptr = ret_buf; in i_devname_to_promname() 275 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname() 356 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname() 357 rlen -= strlen(rptr) + 1; in i_devname_to_promname() 358 rptr += strlen(rptr) + 1; in i_devname_to_promname() 377 bcopy(offline, rptr, rlen); in i_devname_to_promname()
|
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | i8042.c | 151 int rptr; member 920 port->rptr = 0; in i8042_map() 1038 if (new_wptr == port->rptr) { in i8042_intr() 1189 ret = port->rptr != port->wptr; in i8042_get8() 1196 if (port->rptr != port->wptr) { in i8042_get8() 1197 ret = port->buf[port->rptr]; in i8042_get8() 1198 port->rptr = (port->rptr + 1) % BUFSIZ; in i8042_get8() 1222 if (port->rptr != port->wptr) in i8042_get8() 1252 if (port->rptr != port->wptr) { in i8042_get8() 1253 ret = port->buf[port->rptr]; in i8042_get8() [all …]
|
| /illumos-gate/usr/src/cmd/sgs/rtld/sparc/ |
| H A D | sparc_elf.c | 113 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()
|
| /illumos-gate/usr/src/stand/lib/tcp/ |
| H A D | tcp.c | 2613 uchar_t *rptr; in tcp_rput_data() local 2644 rptr = mp->b_rptr; in tcp_rput_data() 2645 iph = (struct ip *)rptr; in tcp_rput_data() 2646 ip_hdr_len = IPH_HDR_LENGTH(rptr); in tcp_rput_data() 2657 tcph = (tcpha_t *)&rptr[ip_hdr_len]; in tcp_rput_data() 2660 assert((uintptr_t)(mp->b_wptr - rptr) <= (uintptr_t)INT_MAX); in tcp_rput_data() 2661 seg_len = (int)(mp->b_wptr - rptr) - in tcp_rput_data() 3152 uchar_t tos = ((struct ip *)rptr)->ip_tos; in tcp_rput_data() 4612 uchar_t *rptr; in tcp_wput_data() local 4915 rptr = xmit_tail->b_wptr - tail_unsent; in tcp_wput_data() [all …]
|
| /illumos-gate/usr/src/uts/common/inet/ip/ |
| H A D | ip6_input.c | 525 #define rptr ((uchar_t *)ip6h) in ill_input_short_v6() macro 554 len = mp->b_wptr - rptr; in ill_input_short_v6() 560 mp = ip_check_length(mp, rptr, len, pkt_len, IPV6_HDR_LEN, ira); in ill_input_short_v6() 656 rptr + IPV6_HDR_LEN + MIN_EHDR_LEN > mp->b_wptr) { in ill_input_short_v6() 675 rptr + IPV6_HDR_LEN + ehdrlen > mp->b_wptr) { in ill_input_short_v6() 821 #undef rptr 1993 #define rptr ((uchar_t *)ip6h) in ip_fanout_v6() macro 2064 len = mp->b_wptr - rptr; in ip_fanout_v6() 2074 len = mp->b_wptr - rptr; in ip_fanout_v6() 2128 len = mp->b_wptr - rptr; in ip_fanout_v6() [all …]
|
| /illumos-gate/usr/src/cmd/sgs/rtld/sparcv9/ |
| H A D | sparc_elf.c | 145 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()
|
| /illumos-gate/usr/src/cmd/diskscan/ |
| H A D | diskscan.c | 176 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()
|