Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 25 of 93) sorted by relevance

1234

/external/u-boot/fs/btrfs/
Dextent-io.c15 u32 clen, dlen, orig_size = size, res; in btrfs_read_extent_inline() local
23 dlen = extent->ram_bytes; in btrfs_read_extent_inline()
25 if (offset > dlen) in btrfs_read_extent_inline()
28 if (size > dlen - offset) in btrfs_read_extent_inline()
29 size = dlen - offset; in btrfs_read_extent_inline()
36 if (dlen > orig_size) { in btrfs_read_extent_inline()
37 dbuf = malloc(dlen); in btrfs_read_extent_inline()
44 res = btrfs_decompress(extent->compression, cbuf, clen, dbuf, dlen); in btrfs_read_extent_inline()
45 if (res == -1 || res != dlen) in btrfs_read_extent_inline()
48 if (dlen > orig_size) { in btrfs_read_extent_inline()
[all …]
Dcompression.c13 static u32 decompress_lzo(const u8 *cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_lzo() argument
27 if (tot_len == 0 && dlen) in decompress_lzo()
44 out_len = dlen; in decompress_lzo()
52 dlen -= out_len; in decompress_lzo()
63 static u32 decompress_zlib(const u8 *_cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_zlib() argument
77 stream.avail_out = dlen; in decompress_zlib()
111 u32 btrfs_decompress(u8 type, const char *c, u32 clen, char *d, u32 dlen) in btrfs_decompress() argument
122 res = dlen < clen ? dlen : clen; in btrfs_decompress()
126 return decompress_zlib(cbuf, clen, dbuf, dlen); in btrfs_decompress()
128 return decompress_lzo(cbuf, clen, dbuf, dlen); in btrfs_decompress()
/external/toybox/toys/posix/
Dpaste.c38 int i, any, dcount, dlen, len, seq = toys.optflags&FLAG_s; local
46 for (i = any = dcount = dlen = 0; seq || i<TT.files; i++) {
72 dlen = 0;
79 dlen = 1;
86 while (0<(dlen = utf8towc(&wc, dpos, 99))) {
87 dpos += dlen;
88 if (!(dlen = wcwidth(wc))) continue;
89 if (dlen<0) dpos = dstr+1;
92 dlen = dpos-dstr;
96 if (dlen) fwrite(dstr, dlen, 1, stdout);
/external/openssh/
Ddigest-openssl.c156 ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen) in ssh_digest_final() argument
159 u_int l = dlen; in ssh_digest_final()
161 if (digest == NULL || dlen > UINT_MAX) in ssh_digest_final()
163 if (dlen < digest->digest_len) /* No truncation allowed */ in ssh_digest_final()
183 ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen) in ssh_digest_memory() argument
190 if (dlen > UINT_MAX) in ssh_digest_memory()
192 if (dlen < digest->digest_len) in ssh_digest_memory()
194 mdlen = dlen; in ssh_digest_memory()
201 ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen) in ssh_digest_buffer() argument
203 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen); in ssh_digest_buffer()
Ddigest-libc.c215 ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen) in ssh_digest_final() argument
221 if (dlen > UINT_MAX) in ssh_digest_final()
223 if (dlen < digest->digest_len) /* No truncation allowed */ in ssh_digest_final()
246 ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen) in ssh_digest_memory() argument
253 ssh_digest_final(ctx, d, dlen) != 0) in ssh_digest_memory()
260 ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen) in ssh_digest_buffer() argument
262 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen); in ssh_digest_buffer()
Dssh-ecdsa.c54 size_t len, dlen; in ssh_ecdsa_sign() local
68 (dlen = ssh_digest_bytes(hash_alg)) == 0) in ssh_ecdsa_sign()
74 if ((sig = ECDSA_do_sign(digest, dlen, key->ecdsa)) == NULL) { in ssh_ecdsa_sign()
118 size_t dlen; in ssh_ecdsa_verify() local
129 (dlen = ssh_digest_bytes(hash_alg)) == 0) in ssh_ecdsa_verify()
167 switch (ECDSA_do_verify(digest, dlen, sig, key->ecdsa)) { in ssh_ecdsa_verify()
Dssh-dss.c55 size_t rlen, slen, len, dlen = ssh_digest_bytes(SSH_DIGEST_SHA1); in ssh_dss_sign() local
67 if (dlen == 0) in ssh_dss_sign()
74 if ((sig = DSA_do_sign(digest, dlen, key->dsa)) == NULL) { in ssh_dss_sign()
136 size_t len, dlen = ssh_digest_bytes(SSH_DIGEST_SHA1); in ssh_dss_verify() local
145 if (dlen == 0) in ssh_dss_verify()
196 switch (DSA_do_verify(digest, dlen, sig, key->dsa)) { in ssh_dss_verify()
Dmac.c176 u_char *digest, size_t dlen) in mac_compute() argument
212 if (dlen > mac->mac_len) in mac_compute()
213 dlen = mac->mac_len; in mac_compute()
214 memcpy(digest, u.m, dlen); in mac_compute()
221 const u_char *data, size_t dlen, in mac_check() argument
229 if ((r = mac_compute(mac, seqno, data, dlen, in mac_check()
Ddigest.h54 u_char *d, size_t dlen)
57 int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
66 int ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen)
/external/tcpdump/missing/
Dstrlcat.c53 size_t dlen; in strlcat() local
58 dlen = d - dst; in strlcat()
59 n = siz - dlen; in strlcat()
62 return(dlen + strlen(s)); in strlcat()
72 return(dlen + (s - src)); /* count does not include NUL */ in strlcat()
/external/openssh/openbsd-compat/
Dstrlcat.c40 size_t dlen; in strlcat() local
45 dlen = d - dst; in strlcat()
46 n = siz - dlen; in strlcat()
49 return(dlen + strlen(s)); in strlcat()
59 return(dlen + (s - src)); /* count does not include NUL */ in strlcat()
Dport-tun.c253 sys_tun_outfilter(struct Channel *c, u_char **data, u_int *dlen) in sys_tun_outfilter() argument
263 if (dlen != NULL) in sys_tun_outfilter()
264 *dlen = xxx_dlen; in sys_tun_outfilter()
265 if (*dlen < sizeof(*af)) in sys_tun_outfilter()
270 *dlen -= sizeof(u_int32_t); in sys_tun_outfilter()
/external/u-boot/lib/lzo/
Dlzo1x_decompress.c83 u32 slen, dlen; in lzop_decompress() local
94 dlen = get_unaligned_be32(src); in lzop_decompress()
98 if (dlen == 0) { in lzop_decompress()
107 if (slen <= 0 || slen > dlen) in lzop_decompress()
111 if (dlen > remaining) in lzop_decompress()
117 if (dlen == slen) { in lzop_decompress()
121 tmp = dlen; in lzop_decompress()
129 if (dlen != tmp) in lzop_decompress()
134 dst += dlen; in lzop_decompress()
135 remaining -= dlen; in lzop_decompress()
/external/python/cpython2/Lib/
Dbinhex.py58 dlen = fp.tell()
62 return file, finfo, dlen, rlen
175 name, finfo, dlen, rlen = name_finfo_dlen_rlen
185 self.dlen = dlen
199 d4 = struct.pack('>ii', self.dlen, self.rlen)
221 self.dlen = self.dlen - len(data)
225 if self.dlen != 0:
425 self.dlen = struct.unpack('>l', rest[11:15])[0]
441 n = min(n, self.dlen)
443 n = self.dlen
[all …]
/external/u-boot/drivers/i2c/
Dfsl_i2c.c405 int olen, u8 *data, int dlen) in __i2c_read() argument
426 if (dlen && i2c_write_addr(base, chip_addr, in __i2c_read()
428 ret = __i2c_read_data(base, data, dlen); in __i2c_read()
430 if ((!dlen || olen > 0) && in __i2c_read()
435 if (dlen && i2c_write_addr(base, chip_addr, I2C_READ_BIT, in __i2c_read()
437 ret = __i2c_read_data(base, data, dlen); in __i2c_read()
445 if (ret == dlen) in __i2c_read()
452 u8 *offset, int olen, u8 *data, int dlen) in __i2c_write() argument
461 ret = __i2c_write_data(base, data, dlen); in __i2c_write()
468 if (ret == dlen) in __i2c_write()
[all …]
/external/u-boot/arch/arm/mach-socfpga/
Dscan_manager.c115 const unsigned int dlen) in scan_mgr_jtag_insn_data() argument
119 scan_mgr_jtag_io(JTAG_BP_INSN | JTAG_BP_2BYTE, iarg, dlen - 1); in scan_mgr_jtag_insn_data()
122 for (i = 0; i < dlen / 32; i++) in scan_mgr_jtag_insn_data()
125 if ((dlen % 32) > 24) { /* 31...24 bits remain */ in scan_mgr_jtag_insn_data()
127 } else if (dlen % 32) { /* 24...1 bit remain */ in scan_mgr_jtag_insn_data()
128 for (j = 0; j < dlen % 32; j += 8) in scan_mgr_jtag_insn_data()
/external/u-boot/net/
Ddns.c109 int found, stop, dlen; in dns_handler() local
165 dlen = get_unaligned_be16(p+10); in dns_handler()
166 debug("dlen = %d\n", dlen); in dns_handler()
167 p += 12 + dlen; in dns_handler()
179 dlen = get_unaligned_be16(p+10); in dns_handler()
183 if (p + dlen <= e) { in dns_handler()
/external/python/cpython3/Lib/
Dbinhex.py141 name, finfo, dlen, rlen = name_finfo_dlen_rlen
154 self.dlen = dlen
177 d4 = struct.pack('>ii', self.dlen, self.rlen)
199 self.dlen = self.dlen - len(data)
203 if self.dlen != 0:
397 self.dlen = struct.unpack('>l', rest[11:15])[0]
413 n = min(n, self.dlen)
415 n = self.dlen
419 self.dlen = self.dlen - n
425 if self.dlen:
[all …]
/external/tcpdump/
Dprint-forces.c652 u_int dlen; in prestlv_print() local
658 dlen = len - TLV_HDRL; in prestlv_print()
659 if (dlen != RESLEN) { in prestlv_print()
660 ND_PRINT((ndo, "illegal RESULT-TLV: %d bytes!\n", dlen)); in prestlv_print()
1221 u_int dlen; in asttlv_print() local
1228 dlen = len - TLV_HDRL; in asttlv_print()
1229 if (dlen != ASTDLN) { in asttlv_print()
1230 ND_PRINT((ndo, "illegal ASTresult-TLV: %d bytes!\n", dlen)); in asttlv_print()
1279 u_int dlen; in asrtlv_print() local
1286 dlen = len - TLV_HDRL; in asrtlv_print()
[all …]
/external/python/cpython2/Lib/bsddb/
Ddbrecio.py76 dlen = newpos - self.pos
78 r = self.db.get(self.key, txn=self.txn, dlen=dlen, doff=self.pos)
124 self.db.put(self.key, "", txn=self.txn, dlen=self.len-size, doff=size)
134 self.db.put(self.key, s, txn=self.txn, dlen=len(s), doff=self.pos)
/external/python/cpython2/Lib/bsddb/test/
Dtest_all.py101 def set_range(self, k, dlen=-1, doff=-1) : argument
104 v = self._dbcursor.set_range(k, dlen=dlen, doff=doff)
119 def put(self, key, data, flags=0, dlen=-1, doff=-1) : argument
124 return self._dbcursor.put(key, data, flags=flags, dlen=dlen,
127 def current(self, flags=0, dlen=-1, doff=-1) : argument
128 v = self._dbcursor.current(flags=flags, dlen=dlen, doff=doff)
265 def put(self, key, data, txn=None, flags=0, dlen=-1, doff=-1) : argument
270 return self._db.put(key, data, flags=flags, txn=txn, dlen=dlen,
288 def get(self, key, default="MagicCookie", txn=None, flags=0, dlen=-1, doff=-1) : argument
293 dlen=dlen, doff=doff)
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_ttls.c191 size_t pad, dlen; in eap_ttls_avp_parse() local
212 dlen = avp_length - sizeof(*avp); in eap_ttls_avp_parse()
214 if (dlen < 4) { in eap_ttls_avp_parse()
223 dlen -= 4; in eap_ttls_avp_parse()
226 wpa_hexdump(MSG_DEBUG, "EAP-TTLS: AVP data", dpos, dlen); in eap_ttls_avp_parse()
231 parse->eap = os_memdup(dpos, dlen); in eap_ttls_avp_parse()
238 parse->eap_len = dlen; in eap_ttls_avp_parse()
241 parse->eap_len + dlen); in eap_ttls_avp_parse()
248 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse()
250 parse->eap_len += dlen; in eap_ttls_avp_parse()
[all …]
/external/curl/src/
Dtool_dirhie.c132 size_t dlen = strlen(dirbuildup); in create_dir_hierarchy() local
133 if(dlen) in create_dir_hierarchy()
134 msnprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
/external/f2fs-tools/tools/sg_write_buffer/
Dsg_lib.c748 int vsi, k, n, dlen; in sg_get_designation_descriptor_str() local
763 dlen = ddp[3]; in sg_get_designation_descriptor_str()
764 if (dlen > (dd_len - 4)) { in sg_get_designation_descriptor_str()
766 "bytes, but given %d bytes\n", lip, dlen, dd_len - 4); in sg_get_designation_descriptor_str()
794 for (k = 0; (k < dlen) && my_isprint(ip[k]); ++k) in sg_get_designation_descriptor_str()
796 if (k >= dlen) in sg_get_designation_descriptor_str()
801 lip, dlen, ip); in sg_get_designation_descriptor_str()
804 n += hex2str(ip, dlen, lip, 0, blen - n, b + n); in sg_get_designation_descriptor_str()
809 if (dlen > 8) { in sg_get_designation_descriptor_str()
812 "%.*s\n", lip, dlen - 8, ip + 8); in sg_get_designation_descriptor_str()
[all …]
/external/iproute2/tc/
Dtc_stab.c137 unsigned int i, j, dlen; in print_size_table()
140 dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16); in print_size_table()
143 for (i = 0; i < dlen/12; i++) { in print_size_table()
145 for (j = 0; i * 12 + j < dlen; j++) in print_size_table()

1234