Searched refs:mlen (Results 1 - 25 of 68) sorted by relevance

123

/illumos-gate/usr/src/uts/common/os/
H A Dip_cksum.c84 ssize_t mlen; local
122 if ((mlen = dp->db_cksumstart - offset) < 0)
123 mlen = 0;
124 if (is_odd(mlen))
126 if (mlen && dp->db_cksumstart != dp->db_cksumstuff &&
135 sum = ip_ocsum(w, mlen >> 1, sum);
142 mlen = dp->db_cksumend - dp->db_cksumstuff;
150 if (mlen)
151 mlen += dp->db_cksumend
158 mlen
428 ssize_t mlen, i; local
[all...]
H A Dcompress.c134 int mlen, offset; local
141 mlen = s_len;
142 for (src = s_start, dst = d_start; mlen; mlen--)
162 for (mlen = MATCH_MIN; mlen < MATCH_MAX; mlen++)
163 if (src[mlen] != cpy[mlen])
165 *dst++ = ((mlen
199 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; local
[all...]
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dmisc.c36 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) || (ole
[all...]
H A Dip_log.c238 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;
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dlzjb.c57 int mlen, offset, hash; local
83 for (mlen = MATCH_MIN; mlen < MATCH_MAX; mlen++)
84 if (src[mlen] != cpy[mlen])
86 *dst++ = ((mlen - MATCH_MIN) << (NBBY - MATCH_BITS)) |
89 src += mlen;
114 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; local
119 while (--mlen >
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_ssn.c70 int mtype, int mlen)
84 hdr = (mtype << 24) | mlen;
121 int err, mtype, mlen; local
122 err = nb_ssn_recv(ctx, mbp, &mtype, &mlen);
130 if (mlen == 0) {
145 int *mtype, int *mlen)
179 *mlen = hdr & 0xffffff;
181 if (mlen == 0)
187 if ((err = mb_init_sz(mb, *mlen)) != 0)
190 len = *mlen;
69 nb_ssn_send(struct smb_ctx *ctx, struct mbdata *mbp, int mtype, int mlen) argument
144 nb_ssn_recv(struct smb_ctx *ctx, struct mbdata *mb, int *mtype, int *mlen) argument
277 int err, mtype, mlen; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dzfs_lzjb.c49 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; local
54 while (--mlen >= 0 && dst < d_end)
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dlzjb.c62 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; local
67 while (--mlen >= 0 && dst < d_end)
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_dim.c81 int mlen; local
97 mlen = len + 1 + strlen(minor_name);
99 mlen = len;
100 if ((devices = (char *)malloc(mlen)) == NULL)
/illumos-gate/usr/src/cmd/sgs/libldmake/common/
H A Dlock.c45 char *arg1, char *arg2, size_t mlen)
50 (void) snprintf(msg, mlen, "Could not lock file `%s'; ", file);
52 (void) snprintf(&msg[len], (mlen - len), str, arg1, arg2);
55 (void) strlcat(msg, errstr, mlen);
44 file_lock_error(char *msg, char *file, int err, const char *str, char *arg1, char *arg2, size_t mlen) argument
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c89 Elf32_Off mlen; /* total mapping claim */ local
195 mlen = ROUND((lph->p_vaddr + lph->p_memsz) -
197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
207 (void) MUNMAP(maddr, mlen);
208 mlen = ROUND((lph->p_vaddr + lph->p_memsz) -
211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
259 mlen -= addr - maddr;
306 mlen -= maddr - addr;
312 if (mlen > 0)
313 (void) MUNMAP(maddr, mlen);
[all...]
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c88 Elf32_Off mlen; /* total mapping claim */ local
195 mlen = ROUND((lph->p_vaddr + lph->p_memsz) -
197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
207 (void) MUNMAP(maddr, mlen);
208 mlen = ROUND((lph->p_vaddr + lph->p_memsz) -
211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
259 mlen -= addr - maddr;
307 mlen -= maddr - addr;
313 if (mlen != 0)
314 (void) MUNMAP(maddr, mlen);
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dputtext.c54 int wlen, mlen, bdg; local
109 mlen = wctomb(mbs, *wp);
110 if (mlen == -1) {
117 for (i = 0; i < mlen; i++)
279 mlen = wcstombs(mbtemp, temp, MWIDTH+1);
280 for (i = 0; i < mlen; i++)
301 mlen = wcstombs(mbtemp, temp, MWIDTH+1);
302 for (i = 0; i < mlen; i++)
H A Dckdate.c171 int mlen; local
177 mlen = 3;
181 mlen = 9;
189 (isupper((unsigned char)*copy))) && (imnth < mlen)) {
/illumos-gate/usr/src/cmd/refer/
H A Dglue3.c106 int mlen; local
113 mlen = findline(in, &mout, outlen, 0L);
115 if (mlen > 0) {
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200_hw.c373 uint32_t mlen; local
426 mlen = min(IPW2200_CB_MAXDATALEN, len);
427 mlen = min(mlen, dr[cnt].dr_size - off);
429 (void) memcpy(dr[cnt].dr_base + off, v, mlen);
430 (void) ddi_dma_sync(dr[cnt].dr_hnd, off, mlen,
433 ctl = IPW2200_CB_DEFAULT_CTL | mlen;
443 off += mlen;
444 src += mlen;
445 dst += mlen;
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_heap.c210 int mlen; local
215 mlen = sizeof (ndr_vcs_t) + vc->wcsize + sizeof (smb_wchar_t);
217 vc->vcs = ndr_heap_malloc(heap, mlen);
231 int mlen; local
241 mlen = sizeof (ndr_vcbuf_t) + datalen;
243 vcbuf->vcb = ndr_heap_malloc(heap, mlen);
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/
H A Drtld.4.x.c229 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);
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dword.c292 int i, mlen; local
352 mlen = mbtowc(&c, (char *)f->fnxt, i);
353 if (mlen > 0)
363 mlen = 1;
366 f->fnxt += mlen;
367 f->nxtoff += mlen;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dregcomp.c226 g->mlen = 0;
249 if (g->mlen > 3) {
1353 * findmust - fill in must and mlen with longest mandatory literal string
1359 * Note that must and mlen got initialized during setup.
1433 if (newlen > g->mlen) { /* ends one */
1435 g->mlen = newlen;
1448 if (newlen > g->mlen) { /* ends one */
1450 g->mlen = newlen;
1466 if (newlen > g->mlen) { /* ends one */
1468 g->mlen
[all...]
/illumos-gate/usr/src/cmd/diff/
H A Ddiff.c608 int mlen; local
637 c = getbufwchar(0, &mlen);
638 ctold += mlen;
639 d = getbufwchar(1, &mlen);
640 ctnew += mlen;
647 c = getbufwchar(0, &mlen);
648 ctold += mlen;
654 d = getbufwchar(1, &mlen);
655 ctnew += mlen;
659 c = getbufwchar(0, &mlen);
728 int mlen; local
745 int mlen; local
921 int mlen = 0; local
1007 int mlen; local
[all...]
/illumos-gate/usr/src/uts/common/net/
H A Dvjcompress.h143 extern uint_t vj_compress_tcp __P((struct ip *ip, uint_t mlen,
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_ftp_pxy.c1039 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
[all...]
/illumos-gate/usr/src/common/net/patricia/
H A Dradix.c566 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/cmd/cmd-inet/usr.sbin/in.routed/
H A Dradix.c438 int b = 0, mlen, j, m0; local
443 mlen = sizeof (struct sockaddr);
446 if (mlen <= skip)
450 if ((m0 = mlen) > skip)
451 (void) memmove(addmask_key + skip, netmask + skip, mlen - skip);
455 for (cp = addmask_key + mlen; (cp > addmask_key) && cp[-1] == 0; )
457 mlen = cp - addmask_key;
458 if (mlen <= skip) {
460 last_zeroed = mlen;
465 *addmask_key = last_zeroed = mlen;
[all...]

Completed in 200 milliseconds

123