Home
last modified time | relevance | path

Searched refs:mlen (Results 1 – 25 of 64) sorted by relevance

123

/external/qemu/slirp-android/
Dcksum.c51 register int mlen = 0; in cksum() local
67 mlen = m->m_len; in cksum()
69 if (len < mlen) in cksum()
70 mlen = len; in cksum()
71 len -= mlen; in cksum()
75 if ((1 & (long) w) && (mlen > 0)) { in cksum()
80 mlen--; in cksum()
87 while ((mlen -= 32) >= 0) { in cksum()
94 mlen += 32; in cksum()
95 while ((mlen -= 8) >= 0) { in cksum()
[all …]
/external/qemu/slirp/
Dcksum.c51 register int mlen = 0; in cksum() local
67 mlen = m->m_len; in cksum()
69 if (len < mlen) in cksum()
70 mlen = len; in cksum()
71 len -= mlen; in cksum()
75 if ((1 & (long) w) && (mlen > 0)) { in cksum()
80 mlen--; in cksum()
87 while ((mlen -= 32) >= 0) { in cksum()
94 mlen += 32; in cksum()
95 while ((mlen -= 8) >= 0) { in cksum()
[all …]
/external/tcpdump/
Din_cksum.c61 register int mlen = 0; in in_cksum() local
77 if (mlen == -1) { in in_cksum()
89 mlen = vec->len - 1; in in_cksum()
91 mlen = vec->len; in in_cksum()
95 if ((1 & (unsigned long) w) && (mlen > 0)) { in in_cksum()
100 mlen--; in in_cksum()
107 while ((mlen -= 32) >= 0) { in in_cksum()
114 mlen += 32; in in_cksum()
115 while ((mlen -= 8) >= 0) { in in_cksum()
119 mlen += 8; in in_cksum()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_fs_visitor.cpp595 pull->mlen = 1; in visit()
753 int mlen; in emit_texture_gen4() local
759 mlen = 1; in emit_texture_gen4()
763 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i), coordinate); in emit_texture_gen4()
767 mlen += 3; in emit_texture_gen4()
773 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), fs_reg(0.0f)); in emit_texture_gen4()
774 mlen++; in emit_texture_gen4()
776 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), lod); in emit_texture_gen4()
777 mlen++; in emit_texture_gen4()
782 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), shadow_c); in emit_texture_gen4()
[all …]
Dbrw_fs_emit.cpp109 inst->mlen, in generate_fb_write()
172 assert(inst->mlen == 0); in generate_math1_gen7()
186 assert(inst->mlen == 0); in generate_math2_gen7()
197 assert(inst->mlen == 0); in generate_math1_gen6()
225 assert(inst->mlen == 0); in generate_math2_gen6()
244 assert(inst->mlen >= 1); in generate_math_gen4()
339 assert(inst->mlen == 6); in generate_tex()
341 assert(inst->mlen <= 4); in generate_tex()
346 assert(inst->mlen == 6); in generate_tex()
349 assert(inst->mlen == 9); in generate_tex()
[all …]
Dbrw_fs_schedule_instructions.cpp293 for (int i = 0; i < inst->mlen; i++) { in calculate_deps()
330 if (inst->mlen > 0) { in calculate_deps()
377 for (int i = 0; i < inst->mlen; i++) { in calculate_deps()
414 if (inst->mlen > 0) { in calculate_deps()
Dbrw_vec4_visitor.cpp190 inst->mlen = 1; in SCRATCH_READ()
203 inst->mlen = 2; in SCRATCH_WRITE()
253 inst->mlen = 1; in emit_math1_gen4()
325 inst->mlen = 2; in emit_math2_gen4()
1350 pull->mlen = 1; in visit()
1905 inst->mlen = inst->header_present + 1; /* always at least one */ in visit()
1958 inst->mlen++; in visit()
1971 inst->mlen++; in visit()
1989 inst->mlen++; in visit()
1996 inst->mlen++; in visit()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
Dbrw_fs_visitor.cpp595 pull->mlen = 1; in visit()
753 int mlen; in emit_texture_gen4() local
759 mlen = 1; in emit_texture_gen4()
763 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i), coordinate); in emit_texture_gen4()
767 mlen += 3; in emit_texture_gen4()
773 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), fs_reg(0.0f)); in emit_texture_gen4()
774 mlen++; in emit_texture_gen4()
776 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), lod); in emit_texture_gen4()
777 mlen++; in emit_texture_gen4()
782 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), shadow_c); in emit_texture_gen4()
[all …]
Dbrw_fs_emit.cpp109 inst->mlen, in generate_fb_write()
172 assert(inst->mlen == 0); in generate_math1_gen7()
186 assert(inst->mlen == 0); in generate_math2_gen7()
197 assert(inst->mlen == 0); in generate_math1_gen6()
225 assert(inst->mlen == 0); in generate_math2_gen6()
244 assert(inst->mlen >= 1); in generate_math_gen4()
339 assert(inst->mlen == 6); in generate_tex()
341 assert(inst->mlen <= 4); in generate_tex()
346 assert(inst->mlen == 6); in generate_tex()
349 assert(inst->mlen == 9); in generate_tex()
[all …]
Dbrw_fs_schedule_instructions.cpp293 for (int i = 0; i < inst->mlen; i++) { in calculate_deps()
330 if (inst->mlen > 0) { in calculate_deps()
377 for (int i = 0; i < inst->mlen; i++) { in calculate_deps()
414 if (inst->mlen > 0) { in calculate_deps()
Dbrw_vec4_visitor.cpp190 inst->mlen = 1; in SCRATCH_READ()
203 inst->mlen = 2; in SCRATCH_WRITE()
253 inst->mlen = 1; in emit_math1_gen4()
325 inst->mlen = 2; in emit_math2_gen4()
1350 pull->mlen = 1; in visit()
1905 inst->mlen = inst->header_present + 1; /* always at least one */ in visit()
1958 inst->mlen++; in visit()
1971 inst->mlen++; in visit()
1989 inst->mlen++; in visit()
1996 inst->mlen++; in visit()
[all …]
/external/ipsec-tools/src/racoon/
Dstr2val.c51 val2str(buf, mlen) in val2str() argument
53 size_t mlen;
56 size_t len = (mlen * 2) + mlen / 8 + 10;
61 for (i = 0, j = 0; i < mlen; i++) {
/external/openssl/crypto/modes/
Dccm128.c77 const unsigned char *nonce,size_t nlen,size_t mlen) in CRYPTO_ccm128_setiv() argument
83 if (sizeof(mlen)==8 && L>=3) { in CRYPTO_ccm128_setiv()
84 ctx->nonce.c[8] = (u8)(mlen>>(56%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
85 ctx->nonce.c[9] = (u8)(mlen>>(48%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
86 ctx->nonce.c[10] = (u8)(mlen>>(40%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
87 ctx->nonce.c[11] = (u8)(mlen>>(32%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
92 ctx->nonce.c[12] = (u8)(mlen>>24); in CRYPTO_ccm128_setiv()
93 ctx->nonce.c[13] = (u8)(mlen>>16); in CRYPTO_ccm128_setiv()
94 ctx->nonce.c[14] = (u8)(mlen>>8); in CRYPTO_ccm128_setiv()
95 ctx->nonce.c[15] = (u8)mlen; in CRYPTO_ccm128_setiv()
Dgcm128.c917 u64 mlen = ctx->len.u[1]; local
929 n = (unsigned int)mlen%16; /* alternative to ctx->mres */
931 mlen += len;
932 if (mlen>((U64(1)<<36)-32) || (sizeof(len)==8 && mlen<len))
934 ctx->len.u[1] = mlen;
1097 u64 mlen = ctx->len.u[1]; local
1108 mlen += len;
1109 if (mlen>((U64(1)<<36)-32) || (sizeof(len)==8 && mlen<len))
1111 ctx->len.u[1] = mlen;
1281 u64 mlen = ctx->len.u[1]; local
[all …]
/external/chromium_org/third_party/openssl/openssl/crypto/modes/
Dccm128.c77 const unsigned char *nonce,size_t nlen,size_t mlen) in CRYPTO_ccm128_setiv() argument
83 if (sizeof(mlen)==8 && L>=3) { in CRYPTO_ccm128_setiv()
84 ctx->nonce.c[8] = (u8)(mlen>>(56%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
85 ctx->nonce.c[9] = (u8)(mlen>>(48%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
86 ctx->nonce.c[10] = (u8)(mlen>>(40%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
87 ctx->nonce.c[11] = (u8)(mlen>>(32%(sizeof(mlen)*8))); in CRYPTO_ccm128_setiv()
92 ctx->nonce.c[12] = (u8)(mlen>>24); in CRYPTO_ccm128_setiv()
93 ctx->nonce.c[13] = (u8)(mlen>>16); in CRYPTO_ccm128_setiv()
94 ctx->nonce.c[14] = (u8)(mlen>>8); in CRYPTO_ccm128_setiv()
95 ctx->nonce.c[15] = (u8)mlen; in CRYPTO_ccm128_setiv()
Dgcm128.c890 u64 mlen = ctx->len.u[1]; local
902 n = (unsigned int)mlen%16; /* alternative to ctx->mres */
904 mlen += len;
905 if (mlen>((U64(1)<<36)-32) || (sizeof(len)==8 && mlen<len))
907 ctx->len.u[1] = mlen;
1040 u64 mlen = ctx->len.u[1]; local
1051 mlen += len;
1052 if (mlen>((U64(1)<<36)-32) || (sizeof(len)==8 && mlen<len))
1054 ctx->len.u[1] = mlen;
1193 u64 mlen = ctx->len.u[1]; local
[all …]
/external/chromium_org/third_party/openssl/openssl/crypto/rsa/
Drsa_oaep.c98 int i, dblen, mlen = -1; in RSA_padding_check_PKCS1_OAEP() local
165 mlen = dblen - ++i; in RSA_padding_check_PKCS1_OAEP()
166 if (tlen < mlen) in RSA_padding_check_PKCS1_OAEP()
169 mlen = -1; in RSA_padding_check_PKCS1_OAEP()
172 memcpy(to, db + i, mlen); in RSA_padding_check_PKCS1_OAEP()
176 return mlen; in RSA_padding_check_PKCS1_OAEP()
/external/openssl/crypto/rsa/
Drsa_oaep.c98 int i, dblen, mlen = -1; in RSA_padding_check_PKCS1_OAEP() local
165 mlen = dblen - ++i; in RSA_padding_check_PKCS1_OAEP()
166 if (tlen < mlen) in RSA_padding_check_PKCS1_OAEP()
169 mlen = -1; in RSA_padding_check_PKCS1_OAEP()
172 memcpy(to, db + i, mlen); in RSA_padding_check_PKCS1_OAEP()
176 return mlen; in RSA_padding_check_PKCS1_OAEP()
/external/qemu/distrib/sdl-1.2.15/test/
Dthreadwin.c29 int mlen, i; in LoadIconSurface() local
61 mlen = icon->w*icon->h; in LoadIconSurface()
62 mask = (Uint8 *)malloc(mlen/8); in LoadIconSurface()
68 memset(mask, 0, mlen/8); in LoadIconSurface()
69 for ( i=0; i<mlen; ) { in LoadIconSurface()
Dtestwm.c68 int mlen, i, j; in LoadIconSurface() local
103 mlen = (icon->w*icon->h + 7) / 8; in LoadIconSurface()
104 mask = (Uint8 *)malloc(mlen); in LoadIconSurface()
110 memset(mask, 0, mlen); in LoadIconSurface()
/external/kernel-headers/original/uapi/scsi/
Dscsi_netlink.h113 #define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \ argument
119 (hdr)->msglen = mlen; \
/external/ppp/pppd/
Dupap.c620 int mlen, ulen, wlen; local
665 mlen = p[0];
666 if (len < mlen + 1)
669 p += mlen + 1;
670 len -= mlen + 1;
672 print_string(msg, mlen, printer, arg);
Dchap-new.c313 int response_len, ok, mlen; in chap_handle_response() local
365 mlen = strlen(message); in chap_handle_response()
366 len = CHAP_HDRLEN + mlen; in chap_handle_response()
371 if (mlen > 0) in chap_handle_response()
372 memcpy(p + CHAP_HDRLEN, message, mlen); in chap_handle_response()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c93 size_t mlen = sizeof(*eth) + len; in l2_packet_send() local
94 eth = os_malloc(mlen); in l2_packet_send()
104 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
106 ret = eth_send(l2->eth, (u8 *) eth, mlen); in l2_packet_send()
/external/chromium_org/third_party/usrsctp/usrsctplib/
Duser_mbuf.c1136 int mlen; in m_copyback() local
1142 while (off > (mlen = m->m_len)) { in m_copyback()
1143 off -= mlen; in m_copyback()
1144 totlen += mlen; in m_copyback()
1156 mlen = min (m->m_len - off, len); in m_copyback()
1157 bcopy(cp, off + mtod(m, caddr_t), (u_int)mlen); in m_copyback()
1158 cp += mlen; in m_copyback()
1159 len -= mlen; in m_copyback()
1160 mlen += off; in m_copyback()
1162 totlen += mlen; in m_copyback()

123