/illumos-gate/usr/src/uts/common/os/ |
H A D | ip_cksum.c | 83 ssize_t mlen; in ip_cksum() local 121 if ((mlen = dp->db_cksumstart - offset) < 0) in ip_cksum() 122 mlen = 0; in ip_cksum() 123 if (is_odd(mlen)) in ip_cksum() 125 if (mlen && dp->db_cksumstart != dp->db_cksumstuff && in ip_cksum() 134 sum = ip_ocsum(w, mlen >> 1, sum); in ip_cksum() 141 mlen = dp->db_cksumend - dp->db_cksumstuff; in ip_cksum() 149 if (mlen) in ip_cksum() 150 mlen += dp->db_cksumend in ip_cksum() 157 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()
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 32 size_t mlen, olen, clen; local 39 mlen = m->b_wptr - s; 40 olen = min(off, mlen); 41 if ((olen == mlen) || (olen < off)) { 47 mlen -= olen; 49 clen = min(mlen, len); 63 size_t mlen, olen, clen; local 72 mlen = m->b_wptr - s; 73 olen = min(off, mlen); 74 if ((olen == mlen) || (olen < off)) { [all …]
|
H A D | ip_log.c | 243 int types[2], mlen; local 361 mlen = fin->fin_plen - hlen; 363 mlen = (flags & FR_LOGBODY) ? MIN(mlen, 128) : 0; 365 mlen = 0; 367 if (mlen < 0) 368 mlen = 0; 369 ipfl.fl_plen = (u_char)mlen; 395 sizes[1] = hlen + mlen; 399 sizes[1] = hlen + mlen; 404 sizes[1] = hlen + mlen;
|
/illumos-gate/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()
|
/illumos-gate/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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | puttext.c | 53 int wlen, mlen, bdg; in puttext() local 108 mlen = wctomb(mbs, *wp); in puttext() 109 if (mlen == -1) { in puttext() 116 for (i = 0; i < mlen; i++) in puttext() 278 mlen = wcstombs(mbtemp, temp, MWIDTH+1); in puttext() 279 for (i = 0; i < mlen; i++) in puttext() 300 mlen = wcstombs(mbtemp, temp, MWIDTH+1); in puttext() 301 for (i = 0; i < mlen; i++) in puttext()
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_ioctl.c | 1869 uint32_t em, addr_len, maddr, mlen; in validate_mem_range() local 1880 mlen = G_EDRAM0_SIZE(addr_len) << 20; in validate_mem_range() 1881 if (mlen > 0 && addr >= maddr && addr < maddr + mlen && in validate_mem_range() 1882 addr + len <= maddr + mlen) in validate_mem_range() 1888 mlen = G_EDRAM1_SIZE(addr_len) << 20; in validate_mem_range() 1889 if (mlen > 0 && addr >= maddr && addr < maddr + mlen && in validate_mem_range() 1890 addr + len <= maddr + mlen) in validate_mem_range() 1896 mlen = G_EXT_MEM_SIZE(addr_len) << 20; in validate_mem_range() 1897 if (mlen > 0 && addr >= maddr && addr < maddr + mlen && in validate_mem_range() 1898 addr + len <= maddr + mlen) in validate_mem_range() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | lock.c | 44 char *arg1, char *arg2, size_t mlen) in file_lock_error() argument 49 (void) snprintf(msg, mlen, "Could not lock file `%s'; ", file); in file_lock_error() 51 (void) snprintf(&msg[len], (mlen - len), str, arg1, arg2); in file_lock_error() 54 (void) strlcat(msg, errstr, mlen); in file_lock_error()
|
/illumos-gate/usr/src/lib/libmlrpc/common/ |
H A D | ndr_heap.c | 238 int mlen; in ndr_heap_mkvcs() local 255 mlen = sizeof (ndr_vcs_t) + vc->wcsize + sizeof (ndr_wchar_t); in ndr_heap_mkvcs() 256 vc->vcs = ndr_heap_malloc(heap, mlen); in ndr_heap_mkvcs() 269 int mlen; in ndr_heap_mkvcb() local 279 mlen = sizeof (ndr_vcbuf_t) + datalen; in ndr_heap_mkvcb() 281 vcbuf->vcb = ndr_heap_malloc(heap, mlen); in ndr_heap_mkvcb()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_dim.c | 79 int mlen; in di_dim_path_devices() local 95 mlen = len + 1 + strlen(minor_name); in di_dim_path_devices() 97 mlen = len; in di_dim_path_devices() 98 if ((devices = (char *)malloc(mlen)) == NULL) in di_dim_path_devices()
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | regcomp.c | 302 g->mlen = 0; in regcomp() 323 if (g->mlen > 3) { in regcomp() 1623 if (newlen > (sopno)g->mlen) { /* ends one */ in findmust() 1625 g->mlen = newlen; in findmust() 1638 if (newlen > (sopno)g->mlen) { /* ends one */ in findmust() 1640 g->mlen = newlen; in findmust() 1656 if (newlen > (sopno)g->mlen) { /* ends one */ in findmust() 1658 g->mlen = newlen; in findmust() 1680 if (newlen > (sopno)g->mlen) { /* ends one */ in findmust() 1682 g->mlen = newlen; in findmust() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/smbsrv/ |
H A D | smbsrv_pcap.c | 411 int cnt, mlen, n, x; in smb_req_pcap_m() local 414 mlen = m->m_len; in smb_req_pcap_m() 415 if (mlen > st->rem_len) in smb_req_pcap_m() 416 mlen = st->rem_len; in smb_req_pcap_m() 417 if (mlen <= 0) in smb_req_pcap_m() 420 cnt = mlen; in smb_req_pcap_m() 437 st->rem_len -= mlen; in smb_req_pcap_m()
|
/illumos-gate/usr/src/cmd/diff/ |
H A D | diff.c | 620 int mlen; in check() local 649 c = getbufwchar(0, &mlen); in check() 650 ctold += mlen; in check() 651 d = getbufwchar(1, &mlen); in check() 652 ctnew += mlen; in check() 659 c = getbufwchar(0, &mlen); in check() 660 ctold += mlen; in check() 666 d = getbufwchar(1, &mlen); in check() 667 ctnew += mlen; in check() 671 c = getbufwchar(0, &mlen); in check() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | word.c | 291 int i, mlen; in readwc() local 351 mlen = mbtowc(&c, (char *)f->fnxt, i); in readwc() 352 if (mlen > 0) in readwc() 362 mlen = 1; in readwc() 365 f->fnxt += mlen; in readwc() 366 f->nxtoff += mlen; in readwc()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 436 int b = 0, mlen, j, m0; in rn_addmask() local 441 mlen = sizeof (struct sockaddr); in rn_addmask() 444 if (mlen <= skip) in rn_addmask() 448 if ((m0 = mlen) > skip) in rn_addmask() 449 (void) memmove(addmask_key + skip, netmask + skip, mlen - skip); in rn_addmask() 453 for (cp = addmask_key + mlen; (cp > addmask_key) && cp[-1] == 0; ) in rn_addmask() 455 mlen = cp - addmask_key; in rn_addmask() 456 if (mlen <= skip) { in rn_addmask() 458 last_zeroed = mlen; in rn_addmask() 463 *addmask_key = last_zeroed = mlen; in rn_addmask() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | glue3.c | 103 int mlen; in dodeliv() local 110 mlen = findline(in, &mout, outlen, 0L); in dodeliv() 112 if (mlen > 0) { in dodeliv()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | digest_md5.c | 75 int mlen, slen, nclen, urilen, charsetlen; member 267 CONST_UCHAR *hash_a1, const char *method, int mlen, in digest_calc_resp() argument 281 if (mlen == 0 && method != NULL) mlen = strlen(method); in digest_calc_resp() 282 if (mlen) MD5Update(&ctx, (CONST_UCHAR *) method, mlen); in digest_calc_resp() 340 digest_client_resp(const char *method, int mlen, in digest_client_resp() argument 364 if (mlen != 0 && method == NULL) in digest_client_resp() 430 digest_calc_resp(attr, hash_a1, method, mlen, NULL, hexbuf); in digest_client_resp() 538 attr_out->mlen = vlen; in digest_parse()
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_trantcp.c | 88 nb_getmsg_mlen(struct nbpcb *nbp, mblk_t **mpp, size_t mlen) in nb_getmsg_mlen() argument 105 while (dlen < mlen) { in nb_getmsg_mlen() 230 int error, mlen; in nb_snddis() local 237 mlen = sizeof (struct T_discon_req); in nb_snddis() 238 if (!(mp = allocb_cred_wait(mlen, STR_NOSIG, &error, cr, NOPID))) in nb_snddis() 665 uint32_t mlen; in nbssn_send() local 680 mlen = msgdsize(m); in nbssn_send() 721 nb_sethdr(m, NB_SSN_MESSAGE, mlen); in nbssn_send()
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | zfs_lzjb.c | 47 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; in lzjb_decompress() local 52 while (--mlen >= 0 && dst < d_end) in lzjb_decompress()
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | lzjb.c | 61 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; in lzjb_decompress() local 66 while (--mlen >= 0 && dst < d_end) in lzjb_decompress()
|