/freebsd-10.0-release/sys/netinet/ |
H A D | in_cksum.c | 53 register int mlen = 0; local 69 if (mlen == -1) { 81 mlen = m->m_len - 1; 84 mlen = m->m_len; 85 if (len < mlen) 86 mlen = len; 87 len -= mlen; 91 if ((1 & (uintptr_t) w) && (mlen > 0)) { 96 mlen--; 103 while ((mlen [all...] |
/freebsd-10.0-release/sys/sparc64/sparc64/ |
H A D | in_cksum.c | 117 int mlen = 0; local 124 mlen = m->m_len - skip; 135 if (mlen == -1) { 143 * found mlen == -1 147 mlen = m->m_len - 1; 150 mlen = m->m_len; 152 if (len < mlen) 153 mlen = len; 154 len -= mlen; 161 if (((u_long)w & 1) != 0 && mlen > [all...] |
/freebsd-10.0-release/contrib/tcpdump/ |
H A D | in_cksum.c | 61 register int mlen = 0; local 77 if (mlen == -1) { 89 mlen = vec->len - 1; 91 mlen = vec->len; 95 if ((1 & (unsigned long) w) && (mlen > 0)) { 100 mlen--; 107 while ((mlen -= 32) >= 0) { 114 mlen += 32; 115 while ((mlen -= 8) >= 0) { 119 mlen [all...] |
/freebsd-10.0-release/sys/i386/i386/ |
H A D | in_cksum.c | 202 int mlen = 0; local 211 mlen = m->m_len - skip; 222 mlen = m->m_len; 225 if (len < mlen) 226 mlen = len; 228 sum += in_cksumdata((const u_int32_t *)addr, mlen) << 8; 230 sum += in_cksumdata((const u_int32_t *)addr, mlen); 232 clen += mlen; 233 len -= mlen; 268 register int mlen local [all...] |
/freebsd-10.0-release/sys/netinet6/ |
H A D | in6_cksum.c | 154 int byte_swapped, mlen; local 217 mlen = m->m_len - off; 218 if (len < mlen) 219 mlen = len; 220 len -= mlen; 224 if ((1 & (long)w) && (mlen > 0)) { 229 mlen--; 238 while ((mlen -= 32) >= 0) { 245 mlen += 32; 246 while ((mlen [all...] |
/freebsd-10.0-release/sys/netipx/ |
H A D | ipx_cksum.c | 81 int mlen, words; local 93 mlen = 2; 96 mlen = imin(m->m_len - mlen, len); 97 words = mlen / 2; 98 len -= mlen & ~1; 110 mlen &= 1; 111 if (mlen) { 123 if (mlen) {
|
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | lzjb.c | 58 int mlen, offset, hash; local 84 for (mlen = MATCH_MIN; mlen < MATCH_MAX; mlen++) 85 if (src[mlen] != cpy[mlen]) 87 *dst++ = ((mlen - MATCH_MIN) << (NBBY - MATCH_BITS)) | 90 src += mlen; 115 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; local 120 if (mlen > (d_en [all...] |
/freebsd-10.0-release/sys/arm/arm/ |
H A D | in_cksum.c | 107 int mlen = 0; local 116 mlen = m->m_len - skip; 127 mlen = m->m_len; 130 if (len < mlen) 131 mlen = len; 134 sum += _do_cksum(addr, mlen) << 8; 136 sum += _do_cksum(addr, mlen); 138 clen += mlen; 139 len -= mlen;
|
/freebsd-10.0-release/usr.sbin/uathload/ |
H A D | uathload.c | 189 int mlen; local 191 mlen = len; 192 if (mlen > UATH_MAX_FWBLOCK_SIZE) 193 mlen = UATH_MAX_FWBLOCK_SIZE; 194 txmsg.remain = htobe32(len - mlen); 195 txmsg.len = htobe32(mlen); 198 VERBOSE("send block %2u: %zd bytes remaining", b, len - mlen); 207 if (write(data, txdata, mlen) != mlen) { 224 len -= mlen; [all...] |
/freebsd-10.0-release/crypto/openssh/ |
H A D | msg.c | 47 u_int mlen = buffer_len(m); local 51 put_u32(buf, mlen + 1); 57 if (atomicio(vwrite, fd, buffer_ptr(m), mlen) != mlen) {
|
/freebsd-10.0-release/crypto/openssl/crypto/rsa/ |
H A D | rsa_pk1.c | 190 int zero_index = 0, msg_index, mlen = -1; local 242 mlen = num - msg_index; 246 good &= constant_time_ge((unsigned int)(tlen), (unsigned int)(mlen)); 257 mlen = -1; 261 memcpy(to, em + msg_index, mlen); 266 if (mlen == -1) 268 return mlen;
|
H A D | rsa_oaep.c | 99 int i, dblen, mlen = -1, one_index = 0, msg_index; local 189 mlen = dblen - msg_index; 191 if (tlen < mlen) 194 mlen = -1; 198 memcpy(to, db + msg_index, mlen); 209 return mlen;
|
/freebsd-10.0-release/sys/cddl/boot/zfs/ |
H A D | lzjb.c | 62 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; local 67 while (--mlen >= 0 && dst < d_end)
|
/freebsd-10.0-release/lib/libc/stdio/ |
H A D | vswscanf.c | 73 size_t mlen; local 86 if ((mlen = wcsrtombs_l(mbstr, &strp, SIZE_T_MAX, &mbs, locale)) == (size_t)-1) { 92 f._bf._size = f._r = mlen;
|
/freebsd-10.0-release/sys/amd64/amd64/ |
H A D | in_cksum.c | 197 int mlen = 0; local 206 mlen = m->m_len - skip; 217 mlen = m->m_len; 220 if (len < mlen) 221 mlen = len; 223 sum += in_cksumdata(addr, mlen) << 8; 225 sum += in_cksumdata(addr, mlen); 227 clen += mlen; 228 len -= mlen;
|
/freebsd-10.0-release/sys/ia64/ia64/ |
H A D | in_cksum.c | 197 int mlen = 0; local 206 mlen = m->m_len - skip; 217 mlen = m->m_len; 220 if (len < mlen) 221 mlen = len; 223 sum += in_cksumdata(addr, mlen) << 8; 225 sum += in_cksumdata(addr, mlen); 227 clen += mlen; 228 len -= mlen;
|
/freebsd-10.0-release/sys/mips/mips/ |
H A D | in_cksum.c | 203 int mlen = 0; local 212 mlen = m->m_len - skip; 223 mlen = m->m_len; 226 if (len < mlen) 227 mlen = len; 230 sum += in_cksumdata(addr, mlen) << 8; 232 sum += in_cksumdata(addr, mlen); 234 clen += mlen; 235 len -= mlen;
|
/freebsd-10.0-release/sys/powerpc/powerpc/ |
H A D | in_cksum.c | 205 int mlen = 0; local 214 mlen = m->m_len - skip; 225 mlen = m->m_len; 228 if (len < mlen) 229 mlen = len; 232 sum += in_cksumdata(addr, mlen) << 8; 234 sum += in_cksumdata(addr, mlen); 236 clen += mlen; 237 len -= mlen;
|
/freebsd-10.0-release/gnu/usr.bin/grep/ |
H A D | search.c | 391 size_t mlen = mbrlen (beg, bytes_left, &mbs); local 394 if (mlen == (size_t) -1 || mlen == 0) 403 if (mlen == (size_t) -2) 408 beg += mlen; 409 bytes_left -= mlen; 453 size_t mlen = mbrlen (beg, bytes_left, &mbs); local 456 if (mlen == (size_t) -1 || mlen == 0) 465 if (mlen 916 size_t mlen = mbrlen (beg, bytes_left, &mbs); local 1039 size_t mlen = mbrlen (beg, bytes_left, &mbs); local 1133 size_t mlen = mbrlen (end, buf + size - end, &mbs); local [all...] |
/freebsd-10.0-release/contrib/gcc/ |
H A D | c-cppbuiltin.c | 628 size_t mlen = strlen (macro); local 635 buf = (char *) alloca (mlen + elen + extra); 650 size_t mlen = strlen (macro); local 653 buf = (char *) alloca (mlen + elen + 2); 654 memcpy (buf, macro, mlen); 655 buf[mlen] = '='; 656 memcpy (buf + mlen + 1, expansion, elen); 657 buf[mlen + elen + 1] = '\0'; 667 size_t mlen = strlen (macro); local 671 buf = (char *) alloca (mlen [all...] |
/freebsd-10.0-release/sys/netipsec/ |
H A D | ipsec_mbuf.c | 307 int mlen; local 313 mlen = m->m_len; 314 if (mlen > len) 315 mlen = len; 316 len -= mlen; 317 if (len && (mlen & 3)) { 318 printf("len mismatch %u,", mlen);
|
/freebsd-10.0-release/usr.bin/netstat/ |
H A D | mbuf.c | 86 size_t mlen; local 303 mlen = sizeof(nsfbufs); 304 if (!sysctlbyname("kern.ipc.nsfbufs", &nsfbufs, &mlen, NULL, 307 &mlen, NULL, 0) && 309 &mlen, NULL, 0)) 312 mlen = sizeof(sfstat); 313 if (sysctlbyname("kern.ipc.sfstat", &sfstat, &mlen, NULL, 0)) {
|
/freebsd-10.0-release/contrib/nvi/ex/ |
H A D | tag.h | 90 size_t mlen; /* Message string length. */ member in struct:_tag
|
/freebsd-10.0-release/sys/contrib/ngatm/netnatm/msg/ |
H A D | uni_msg.c | 73 u_int mlen; local 76 if(uni_encode_msg_hdr(msg, &p->hdr, UNI_ALERTING, cx, &mlen)) 102 msg->b_buf[mlen+0] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 8; 103 msg->b_buf[mlen+1] = ((msg->b_wptr-msg->b_rptr)-mlen-2) >> 0; 230 u_int mlen; local 232 if(uni_encode_msg_hdr(msg, &p->hdr, UNI_CALL_PROC, cx, &mlen)) 248 msg->b_buf[mlen+0] = ((msg->b_wptr-msg->b_rptr)-mlen 402 u_int mlen; local 675 u_int mlen; local 787 u_int mlen; local 967 u_int mlen; local 1248 u_int mlen; local 1746 u_int mlen; local 1858 u_int mlen; local 1940 u_int mlen; local 2033 u_int mlen; local 2126 u_int mlen; local 2309 u_int mlen; local 2667 u_int mlen; local 2875 u_int mlen; local 3021 u_int mlen; local 3177 u_int mlen; local 3328 u_int mlen; local 3480 u_int mlen; local 3661 u_int mlen; local 3804 u_int mlen; local 3939 u_int mlen; local 4080 u_int mlen; local 4226 u_int mlen; local 4358 u_int mlen; local 4479 u_int mlen; local 4588 u_int mlen; local [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/modes/ |
H A D | ccm128.c | 77 const unsigned char *nonce,size_t nlen,size_t mlen) 83 if (sizeof(mlen)==8 && L>=3) { 84 ctx->nonce.c[8] = (u8)(mlen>>(56%(sizeof(mlen)*8))); 85 ctx->nonce.c[9] = (u8)(mlen>>(48%(sizeof(mlen)*8))); 86 ctx->nonce.c[10] = (u8)(mlen>>(40%(sizeof(mlen)*8))); 87 ctx->nonce.c[11] = (u8)(mlen>>(32%(sizeof(mlen)* 76 CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx, const unsigned char *nonce,size_t nlen,size_t mlen) argument [all...] |