/titanic_41/usr/src/uts/common/os/ |
H A D | ip_cksum.c | 84 ssize_t mlen; in ip_cksum() local 122 if ((mlen = dp->db_cksumstart - offset) < 0) in ip_cksum() 123 mlen = 0; in ip_cksum() 124 if (is_odd(mlen)) in ip_cksum() 126 if (mlen && dp->db_cksumstart != dp->db_cksumstuff && in ip_cksum() 135 sum = ip_ocsum(w, mlen >> 1, sum); in ip_cksum() 142 mlen = dp->db_cksumend - dp->db_cksumstuff; in ip_cksum() 150 if (mlen) in ip_cksum() 151 mlen += dp->db_cksumend in ip_cksum() 158 mlen = dp->db_cksumend in ip_cksum() [all …]
|
H A D | compress.c | 134 int mlen, offset; in compress() local 141 mlen = s_len; in compress() 142 for (src = s_start, dst = d_start; mlen; mlen--) in compress() 162 for (mlen = MATCH_MIN; mlen < MATCH_MAX; mlen++) in compress() 163 if (src[mlen] != cpy[mlen]) in compress() 165 *dst++ = ((mlen - MATCH_MIN) << (NBBY - MATCH_BITS)) | in compress() 168 src += mlen; in compress() 199 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; in decompress() local 203 while (--mlen >= 0 && dst < d_end) in decompress()
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 36 size_t mlen, olen, clen; local 43 mlen = m->b_wptr - s; 44 olen = min(off, mlen); 45 if ((olen == mlen) || (olen < off)) { 51 mlen -= olen; 53 clen = min(mlen, len); 67 size_t mlen, olen, clen; local 76 mlen = m->b_wptr - s; 77 olen = min(off, mlen); 78 if ((olen == mlen) || (olen < off)) { [all …]
|
H A D | ip_log.c | 238 int types[2], mlen; local 356 mlen = fin->fin_plen - hlen; 358 mlen = (flags & FR_LOGBODY) ? MIN(mlen, 128) : 0; 360 mlen = 0; 362 if (mlen < 0) 363 mlen = 0; 364 ipfl.fl_plen = (u_char)mlen; 390 sizes[1] = hlen + mlen; 394 sizes[1] = hlen + mlen; 399 sizes[1] = hlen + mlen;
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | lzjb.c | 57 int mlen, offset, hash; in lzjb_compress() local 83 for (mlen = MATCH_MIN; mlen < MATCH_MAX; mlen++) in lzjb_compress() 84 if (src[mlen] != cpy[mlen]) in lzjb_compress() 86 *dst++ = ((mlen - MATCH_MIN) << (NBBY - MATCH_BITS)) | in lzjb_compress() 89 src += mlen; in lzjb_compress() 114 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; in lzjb_decompress() local 119 while (--mlen >= 0 && dst < d_end) in lzjb_decompress()
|
/titanic_41/usr/src/lib/libsmbfs/smb/ |
H A D | nb_ssn.c | 70 int mtype, int mlen) in nb_ssn_send() argument 84 hdr = (mtype << 24) | mlen; in nb_ssn_send() 121 int err, mtype, mlen; in smb_ssn_recv() local 122 err = nb_ssn_recv(ctx, mbp, &mtype, &mlen); in smb_ssn_recv() 130 if (mlen == 0) { in smb_ssn_recv() 145 int *mtype, int *mlen) in nb_ssn_recv() argument 179 *mlen = hdr & 0xffffff; in nb_ssn_recv() 181 if (mlen == 0) in nb_ssn_recv() 187 if ((err = mb_init_sz(mb, *mlen)) != 0) in nb_ssn_recv() 190 len = *mlen; in nb_ssn_recv() [all …]
|
/titanic_41/usr/src/lib/libc/i386/crt/ |
H A D | _rtld.c | 89 Elf32_Off mlen; /* total mapping claim */ in __rtld() local 195 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld() 197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 207 (void) MUNMAP(maddr, mlen); in __rtld() 208 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld() 211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 259 mlen -= addr - maddr; in __rtld() 306 mlen -= maddr - addr; in __rtld() 312 if (mlen > 0) in __rtld() 313 (void) MUNMAP(maddr, mlen); in __rtld()
|
/titanic_41/usr/src/lib/libc/sparc/crt/ |
H A D | _rtld.c | 88 Elf32_Off mlen; /* total mapping claim */ in __rtld() local 195 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld() 197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 207 (void) MUNMAP(maddr, mlen); in __rtld() 208 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld() 211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 259 mlen -= addr - maddr; in __rtld() 307 mlen -= maddr - addr; in __rtld() 313 if (mlen != 0) in __rtld() 314 (void) MUNMAP(maddr, mlen); in __rtld()
|
/titanic_41/usr/src/lib/libadm/common/ |
H A D | puttext.c | 54 int wlen, mlen, bdg; in puttext() local 109 mlen = wctomb(mbs, *wp); in puttext() 110 if (mlen == -1) { in puttext() 117 for (i = 0; i < mlen; i++) in puttext() 279 mlen = wcstombs(mbtemp, temp, MWIDTH+1); in puttext() 280 for (i = 0; i < mlen; i++) in puttext() 301 mlen = wcstombs(mbtemp, temp, MWIDTH+1); in puttext() 302 for (i = 0; i < mlen; i++) in puttext()
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | msg.c | 39 u_int mlen = buffer_len(m); in ssh_msg_send() local 43 PUT_32BIT(buf, mlen + 1); in ssh_msg_send() 47 if (atomicio(write, fd, buffer_ptr(m), mlen) != mlen) in ssh_msg_send()
|
/titanic_41/usr/src/uts/common/io/iwi/ |
H A D | ipw2200_hw.c | 373 uint32_t mlen; in ipw2200_load_fw() local 426 mlen = min(IPW2200_CB_MAXDATALEN, len); in ipw2200_load_fw() 427 mlen = min(mlen, dr[cnt].dr_size - off); in ipw2200_load_fw() 429 (void) memcpy(dr[cnt].dr_base + off, v, mlen); in ipw2200_load_fw() 430 (void) ddi_dma_sync(dr[cnt].dr_hnd, off, mlen, in ipw2200_load_fw() 433 ctl = IPW2200_CB_DEFAULT_CTL | mlen; in ipw2200_load_fw() 443 off += mlen; in ipw2200_load_fw() 444 src += mlen; in ipw2200_load_fw() 445 dst += mlen; in ipw2200_load_fw() 446 v += mlen; in ipw2200_load_fw() [all …]
|
/titanic_41/usr/src/cmd/sgs/libldmake/common/ |
H A D | lock.c | 45 char *arg1, char *arg2, size_t mlen) in file_lock_error() argument 50 (void) snprintf(msg, mlen, "Could not lock file `%s'; ", file); in file_lock_error() 52 (void) snprintf(&msg[len], (mlen - len), str, arg1, arg2); in file_lock_error() 55 (void) strlcat(msg, errstr, mlen); in file_lock_error()
|
/titanic_41/usr/src/cmd/sgs/rtld.4.x/ |
H A D | rtld.4.x.c | 229 Elf32_Off mlen; /* total mapping claim */ local 441 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - 443 maddr = (caddr_t)mmap(0, mlen, PROT_READ | PROT_EXEC, 453 (void) munmap(maddr, mlen); 454 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - 457 maddr = (caddr_t)mmap(0, mlen, PROT_READ | PROT_EXEC, 496 mlen -= addr - maddr; 538 mlen -= maddr - addr; 544 if (mlen > 0) 545 (void) munmap(maddr, mlen);
|
/titanic_41/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_heap.c | 210 int mlen; in ndr_heap_mkvcs() local 215 mlen = sizeof (ndr_vcs_t) + vc->wcsize + sizeof (smb_wchar_t); in ndr_heap_mkvcs() 217 vc->vcs = ndr_heap_malloc(heap, mlen); in ndr_heap_mkvcs() 231 int mlen; in ndr_heap_mkvcb() local 241 mlen = sizeof (ndr_vcbuf_t) + datalen; in ndr_heap_mkvcb() 243 vcbuf->vcb = ndr_heap_malloc(heap, mlen); in ndr_heap_mkvcb()
|
/titanic_41/usr/src/lib/libdevinfo/ |
H A D | devinfo_dim.c | 81 int mlen; in di_dim_path_devices() local 97 mlen = len + 1 + strlen(minor_name); in di_dim_path_devices() 99 mlen = len; in di_dim_path_devices() 100 if ((devices = (char *)malloc(mlen)) == NULL) in di_dim_path_devices()
|
/titanic_41/usr/src/lib/libc/port/locale/ |
H A D | regcomp.c | 226 g->mlen = 0; in regcomp() 249 if (g->mlen > 3) { in regcomp() 1433 if (newlen > g->mlen) { /* ends one */ in findmust() 1435 g->mlen = newlen; in findmust() 1448 if (newlen > g->mlen) { /* ends one */ in findmust() 1450 g->mlen = newlen; in findmust() 1466 if (newlen > g->mlen) { /* ends one */ in findmust() 1468 g->mlen = newlen; in findmust() 1490 if (newlen > g->mlen) { /* ends one */ in findmust() 1492 g->mlen = newlen; in findmust() [all …]
|
/titanic_41/usr/src/cmd/diff/ |
H A D | diff.c | 608 int mlen; in check() local 637 c = getbufwchar(0, &mlen); in check() 638 ctold += mlen; in check() 639 d = getbufwchar(1, &mlen); in check() 640 ctnew += mlen; in check() 647 c = getbufwchar(0, &mlen); in check() 648 ctold += mlen; in check() 654 d = getbufwchar(1, &mlen); in check() 655 ctnew += mlen; in check() 659 c = getbufwchar(0, &mlen); in check() [all …]
|
/titanic_41/usr/src/cmd/sh/ |
H A D | word.c | 292 int i, mlen; in readwc() local 352 mlen = mbtowc(&c, (char *)f->fnxt, i); in readwc() 353 if (mlen > 0) in readwc() 363 mlen = 1; in readwc() 366 f->fnxt += mlen; in readwc() 367 f->nxtoff += mlen; in readwc()
|
/titanic_41/usr/src/cmd/refer/ |
H A D | glue3.c | 106 int mlen; in dodeliv() local 113 mlen = findline(in, &mout, outlen, 0L); in dodeliv() 115 if (mlen > 0) { in dodeliv()
|
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_trantcp.c | 94 nb_getmsg_mlen(struct nbpcb *nbp, mblk_t **mpp, size_t mlen) in nb_getmsg_mlen() argument 111 while (dlen < mlen) { in nb_getmsg_mlen() 236 int error, mlen; in nb_snddis() local 243 mlen = sizeof (struct T_discon_req); in nb_snddis() 244 if (!(mp = allocb_cred_wait(mlen, STR_NOSIG, &error, cr, NOPID))) in nb_snddis() 685 uint32_t mlen; in nbssn_send() local 700 mlen = msgdsize(m); in nbssn_send() 741 nb_sethdr(m, NB_SSN_MESSAGE, mlen); in nbssn_send()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 438 int b = 0, mlen, j, m0; in rn_addmask() local 443 mlen = sizeof (struct sockaddr); in rn_addmask() 446 if (mlen <= skip) in rn_addmask() 450 if ((m0 = mlen) > skip) in rn_addmask() 451 (void) memmove(addmask_key + skip, netmask + skip, mlen - skip); in rn_addmask() 455 for (cp = addmask_key + mlen; (cp > addmask_key) && cp[-1] == 0; ) in rn_addmask() 457 mlen = cp - addmask_key; in rn_addmask() 458 if (mlen <= skip) { in rn_addmask() 460 last_zeroed = mlen; in rn_addmask() 465 *addmask_key = last_zeroed = mlen; in rn_addmask() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | zfs_lzjb.c | 49 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; in lzjb_decompress() local 54 while (--mlen >= 0 && dst < d_end) in lzjb_decompress()
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | digest_md5.c | 77 int mlen, slen, nclen, urilen, charsetlen; member 269 CONST_UCHAR *hash_a1, const char *method, int mlen, in digest_calc_resp() argument 283 if (mlen == 0 && method != NULL) mlen = strlen(method); in digest_calc_resp() 284 if (mlen) MD5Update(&ctx, (CONST_UCHAR *) method, mlen); in digest_calc_resp() 342 digest_client_resp(const char *method, int mlen, in digest_client_resp() argument 366 if (mlen != 0 && method == NULL) in digest_client_resp() 432 digest_calc_resp(attr, hash_a1, method, mlen, NULL, hexbuf); in digest_client_resp() 540 attr_out->mlen = vlen; in digest_parse()
|
/titanic_41/usr/src/common/net/patricia/ |
H A D | radix.c | 566 int b = 0, mlen, j; local 572 if ((mlen = LEN(netmask)) > max_keylen) 573 mlen = max_keylen; 576 if (mlen <= skip) 580 if ((m0 = mlen) > skip) 581 bcopy(netmask + skip, addmask_key + skip, mlen - skip); 585 for (cp = addmask_key + mlen; (cp > addmask_key) && cp[-1] == 0; ) 587 mlen = cp - addmask_key; 588 if (mlen <= skip) { 590 last_zeroed = mlen; [all …]
|
/titanic_41/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_ftp_pxy.c | 1039 int mlen, len, off, inc, i, sel, sel2, ok, ackoff, seqoff; local 1059 mlen = fin->fin_plen - off; 1061 mlen = MSGDSIZE(m) - off; 1064 printf("ippr_ftp_process: mlen %d\n", mlen); 1066 if (mlen <= 0) { 1107 thack, ackoff, mlen, fin->fin_plen, off); 1158 if (!mlen) { 1195 } else if ((thseq + mlen == f->ftps_seq[0]) || 1196 (thseq + mlen == f->ftps_seq[1])) { 1219 f->ftps_seq[1] = f->ftps_seq[0] + mlen; [all …]
|