Home
last modified time | relevance | path

Searched refs:dstlen (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dgzip.c54 zlen_t dstlen = d_len; in gzip_compress() local
61 d_len, &dstlen); in gzip_compress()
63 return ((size_t)dstlen); in gzip_compress()
74 if (compress_func(d_start, &dstlen, s_start, s_len, n) != Z_OK) { in gzip_compress()
82 return ((size_t)dstlen); in gzip_compress()
89 zlen_t dstlen = d_len; in gzip_decompress() local
96 d_start, d_len, &dstlen) == CPA_STATUS_SUCCESS) in gzip_decompress()
101 if (uncompress_func(d_start, &dstlen, s_start, s_len) != Z_OK) in gzip_decompress()
/freebsd/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Dzmod.c61 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
70 zs.avail_out = *dstlen; in z_uncompress()
87 *dstlen = zs.total_out; in z_uncompress()
92 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen, in z_compress_level() argument
103 zs.avail_out = *dstlen; in z_compress_level()
115 *dstlen = zs.total_out; in z_compress_level()
120 z_compress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_compress() argument
122 return (z_compress_level(dst, dstlen, src, srclen, in z_compress()
/freebsd/sys/cddl/boot/zfs/
H A Dgzip.c54 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
63 zs.avail_out = *dstlen; in z_uncompress()
80 *dstlen = zs.total_out; in z_uncompress()
88 size_t dstlen = d_len; in gzip_decompress() local
92 if (z_uncompress(d_start, &dstlen, s_start, s_len) != Z_OK) in gzip_decompress()
/freebsd/lib/libc/nameser/
H A Dns_ttl.c50 ns_format_ttl(u_long src, char *dst, size_t dstlen) { in ns_format_ttl() argument
63 T(fmt1(weeks, 'W', &dst, &dstlen)); in ns_format_ttl()
67 T(fmt1(days, 'D', &dst, &dstlen)); in ns_format_ttl()
71 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
75 T(fmt1(mins, 'M', &dst, &dstlen)); in ns_format_ttl()
79 T(fmt1(secs, 'S', &dst, &dstlen)); in ns_format_ttl()
H A Dns_name.c216 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) { in ns_name_pton2() argument
297 if (dstlen != NULL) in ns_name_pton2()
298 *dstlen = (bp - dst); in ns_name_pton2()
336 if (dstlen != NULL) in ns_name_pton2()
337 *dstlen = (bp - dst); in ns_name_pton2()
418 u_char *dst, size_t dstsiz, size_t *dstlen) in ns_name_unpack2() argument
486 if (dstlen != NULL) in ns_name_unpack2()
487 *dstlen = dstp - dst; in ns_name_unpack2()
/freebsd/contrib/unbound/edns-subnet/
H A Dedns-subnet.c47 copy_clear(uint8_t* dst, size_t dstlen, uint8_t* src, size_t srclen, size_t n) in copy_clear() argument
52 if (intpart > dstlen || intpart > srclen) in copy_clear()
54 if (fracpart && (intpart+1 > dstlen || intpart+1 > srclen)) in copy_clear()
61 memset(dst + written, 0, dstlen - written); in copy_clear()
H A Dedns-subnet.h65 copy_clear(uint8_t* dst, size_t dstlen, uint8_t* src, size_t srclen, size_t n);
/freebsd/lib/libc/amd64/string/
H A Dstrlcat.c20 size_t dstlen = (size_t)(loc - dst); in strlcat() local
22 return (dstlen + __strlcpy(loc, src, dstsize - dstlen)); in strlcat()
/freebsd/sys/dev/nvme/
H A Dnvme_util.c34 nvme_strvis(uint8_t *dst, const uint8_t *src, int dstlen, int srclen) in nvme_strvis() argument
45 while (srclen > 0 && dstlen > 1) { in nvme_strvis()
55 dstlen -= cur_pos - dst; in nvme_strvis()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/
H A Dcrypto_scrypt-common.c34 encode64_uint32(uint8_t *dst, size_t dstlen, uint32_t src, uint32_t srcbits) in encode64_uint32() argument
39 if (dstlen < 1) { in encode64_uint32()
43 dstlen--; in encode64_uint32()
50 encode64(uint8_t *dst, size_t dstlen, const uint8_t *src, size_t srclen) in encode64() argument
63 dnext = encode64_uint32(dst, dstlen, value, bits); in encode64()
67 dstlen -= dnext - dst; in encode64()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.cpp182 const uptr dstlen = internal_strnlen(dst, maxlen); in internal_strlcat() local
183 if (dstlen == maxlen) return maxlen + srclen; in internal_strlcat()
184 if (srclen < maxlen - dstlen) { in internal_strlcat()
185 internal_memmove(dst + dstlen, src, srclen + 1); in internal_strlcat()
187 internal_memmove(dst + dstlen, src, maxlen - dstlen - 1); in internal_strlcat()
190 return dstlen + srclen; in internal_strlcat()
/freebsd/contrib/ntp/libntp/
H A Dauthkeys.c934 size_t dstlen, in pwdecode_plain() argument
939 if (srclen > dstlen) { in pwdecode_plain()
950 size_t dstlen, in pwdecode_hex() argument
962 if (reslen > dstlen) { in pwdecode_hex()
990 size_t dstlen, in authdecodepw() argument
997 if ( !(dst && dstlen && src)) { in authdecodepw()
1004 reslen = pwdecode_plain(dst, dstlen, src); in authdecodepw()
1006 reslen = pwdecode_hex(dst, dstlen, src); in authdecodepw()
1009 reslen = pwdecode_plain(dst, dstlen, src); in authdecodepw()
1012 reslen = pwdecode_hex(dst, dstlen, src); in authdecodepw()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dstring.h264 memcpy_and_pad(void *dst, size_t dstlen, const void *src, size_t len, int ch) in memcpy_and_pad() argument
267 if (len >= dstlen) { in memcpy_and_pad()
268 memcpy(dst, src, dstlen); in memcpy_and_pad()
272 memset((char *)dst + len, ch, dstlen - len); in memcpy_and_pad()
/freebsd/sys/kern/
H A Dsubr_mchain.c200 size_t srclen, dstlen; in mb_put_mem() local
215 srclen = dstlen = cplen; in mb_put_mem()
220 dstlen = mleft; in mb_put_mem()
221 error = mbp->mb_copy(mbp, source, dst, &srclen, &dstlen); in mb_put_mem()
243 m->m_len += dstlen; in mb_put_mem()
244 mleft -= dstlen; in mb_put_mem()
245 mbp->mb_count += dstlen; in mb_put_mem()
/freebsd/sys/netsmb/
H A Dsmb_subr.c313 size_t *srclen, size_t *dstlen) in smb_copy_iconv() argument
316 size_t inlen = *srclen, outlen = *dstlen; in smb_copy_iconv()
320 if (inlen != *srclen || outlen != *dstlen) { in smb_copy_iconv()
322 *dstlen -= outlen; in smb_copy_iconv()
/freebsd/sys/cam/
H A Dcam.c125 cam_strvis(uint8_t *dst, const uint8_t *src, int srclen, int dstlen) in cam_strvis() argument
127 cam_strvis_flag(dst, src, srclen, dstlen, in cam_strvis()
132 cam_strvis_flag(uint8_t *dst, const uint8_t *src, int srclen, int dstlen, in cam_strvis_flag() argument
137 sbuf_new(&sb, dst, dstlen, SBUF_FIXEDLEN); in cam_strvis_flag()
H A Dcam.h386 void cam_strvis(uint8_t *dst, const uint8_t *src, int srclen, int dstlen);
388 int dstlen, uint32_t flags);
/freebsd/usr.sbin/rpc.statd/
H A Dprocs.c79 int len, dstlen, ret; in sm_check_hostname() local
84 dstlen = (4 * len) + 1; in sm_check_hostname()
85 dst = malloc(dstlen); in sm_check_hostname()
/freebsd/sys/libkern/
H A Diconv_ucs.c66 static u_char *ucs4_to_utf8(uint32_t ucs4, char * dst, size_t *utf8width, size_t dstlen);
480 ucs4_to_utf8(uint32_t ucs4, char *dst, size_t *utf8width, size_t dstlen) in ucs4_to_utf8() argument
504 if (dstlen < w) in ucs4_to_utf8()
/freebsd/usr.sbin/mfiutil/
H A Dmfi_drive.c293 cam_strvis(char *dst, const char *src, int srclen, int dstlen) in cam_strvis() argument
303 while (srclen > 0 && dstlen > 1) { in cam_strvis()
309 if (dstlen > 4) { in cam_strvis()
323 dstlen -= cur_pos - dst; in cam_strvis()
/freebsd/contrib/tzcode/
H A Dlocaltime.c1159 ptrdiff_t stdlen, dstlen, charcnt; in tzparse() local
1201 dstlen = name - dstname; in tzparse()
1206 dstlen = name - dstname; /* length of DST abbr. */ in tzparse()
1208 if (! (0 < dstlen && dstlen <= TZNAME_MAXIMUM)) in tzparse()
1210 charcnt += dstlen + 1; in tzparse()
1405 dstlen = 0; in tzparse()
1416 if (dstlen != 0) { in tzparse()
1417 memcpy(cp, dstname, dstlen); in tzparse()
1418 *(cp + dstlen) = '\0'; in tzparse()
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_open.c794 size_t srclen, dstlen; in ctf_bufopen() local
810 dstlen = size; in ctf_bufopen()
812 if ((rc = z_uncompress(buf, &dstlen, src, srclen)) != Z_OK) { in ctf_bufopen()
818 if (dstlen != size) { in ctf_bufopen()
820 "bytes\n", (ulong_t)dstlen, (ulong_t)size); in ctf_bufopen()
/freebsd/sys/sys/
H A Dmchain.h46 size_t *srclen, size_t *dstlen);
/freebsd/sbin/ipf/ipfstat/
H A Dipfstat.c1280 int len, srclen, dstlen, forward = 1, c = 0; in topipstates() local
1333 srclen = dstlen = 0; in topipstates()
1404 if (dstlen < len) in topipstates()
1405 dstlen = len; in topipstates()
1580 if (dstlen < 15) in topipstates()
1581 dstlen = 15; in topipstates()
1588 srclen + 6, "Source IP", dstlen + 6, "Destination IP", in topipstates()
1617 printw("%-*s %-*s", srclen + 6, str1, dstlen + 6, str2); in topipstates()
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c127 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
129 return (zlib.z_uncompress(dst, (ulong_t *)dstlen, src, srclen)); in z_uncompress()

12