| /f-stack/dpdk/lib/librte_mbuf/ |
| H A D | rte_mbuf_ptype.c | 124 if (buflen == 0) in rte_get_ptype_name() 132 if ((size_t)ret >= buflen) in rte_get_ptype_name() 142 if ((size_t)ret >= buflen) in rte_get_ptype_name() 145 buflen -= ret; in rte_get_ptype_name() 152 if ((size_t)ret >= buflen) in rte_get_ptype_name() 155 buflen -= ret; in rte_get_ptype_name() 165 buflen -= ret; in rte_get_ptype_name() 175 buflen -= ret; in rte_get_ptype_name() 185 buflen -= ret; in rte_get_ptype_name() 195 buflen -= ret; in rte_get_ptype_name() [all …]
|
| /f-stack/freebsd/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_nicenum.c | 49 zfs_nicenum_format(uint64_t num, char *buf, size_t buflen, in zfs_nicenum_format() argument 72 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format() 75 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format() 78 snprintf(buf, buflen, "%s", "-"); in zfs_nicenum_format() 91 (void) snprintf(buf, buflen, "-"); in zfs_nicenum_format() 124 if (snprintf(buf, buflen, "%d%s", in zfs_nicenum_format() 129 if (snprintf(buf, buflen, "%.*f%s", i, in zfs_nicenum_format() 141 zfs_nicenum(uint64_t num, char *buf, size_t buflen) in zfs_nicenum() argument 151 zfs_nicetime(uint64_t num, char *buf, size_t buflen) in zfs_nicetime() argument 160 zfs_niceraw(uint64_t num, char *buf, size_t buflen) in zfs_niceraw() argument [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zed/ |
| H A D | zed_event.c | 224 int buflen; in _zed_event_add_var() local 274 buflen -= n; in _zed_event_add_var() 277 buflen--; in _zed_event_add_var() 335 buflen -= n; in _zed_event_add_int8_array() 365 buflen -= n; in _zed_event_add_uint8_array() 395 buflen -= n; in _zed_event_add_int16_array() 425 buflen -= n; in _zed_event_add_uint16_array() 455 buflen -= n; in _zed_event_add_int32_array() 485 buflen -= n; in _zed_event_add_uint32_array() 515 buflen -= n; in _zed_event_add_int64_array() [all …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_parse.c | 731 *buflen = slen + 1; in ng_string_parse() 759 if (*buflen < 1) in ng_string_getDefault() 762 *buflen = 1; in ng_string_getDefault() 800 *buflen = fi->bufSize; in ng_fixedstring_parse() 903 *buflen = 2 + slen; in ng_sizedstring_parse() 931 if (*buflen < 2) in ng_sizedstring_getDefault() 934 *buflen = 2; in ng_sizedstring_getDefault() 967 *buflen = 4; in ng_ipaddr_parse() 996 *buflen = sizeof(ip); in ng_ipaddr_getDefault() 1118 *buflen = arraylen; in ng_bytearray_parse() [all …]
|
| H A D | ng_parse.h | 227 u_char *buf, int *buflen); 241 const u_char *data, int *off, char *buf, int buflen); 255 const u_char *start, u_char *buf, int *buflen); 334 u_char *buf, int *buflen); 495 int *off, u_char *buf, int *buflen); 501 const u_char *data, char *buf, int buflen); 507 u_char *buf, int *buflen);
|
| /f-stack/freebsd/kern/ |
| H A D | sys_getrandom.c | 51 kern_getrandom(struct thread *td, void *user_buf, size_t buflen, in kern_getrandom() argument 60 if (buflen > IOSIZE_MAX) in kern_getrandom() 97 if (buflen == 0) { in kern_getrandom() 103 aiov.iov_len = buflen; in kern_getrandom() 107 auio.uio_resid = buflen; in kern_getrandom() 114 td->td_retval[0] = buflen - auio.uio_resid; in kern_getrandom() 121 size_t buflen; member 129 return (kern_getrandom(td, uap->buf, uap->buflen, uap->flags)); in sys_getrandom()
|
| /f-stack/app/redis-5.0.5/deps/jemalloc/test/src/ |
| H A D | timer.c | 25 timer_ratio(timedelta_t *a, timedelta_t *b, char *buf, size_t buflen) { in timer_ratio() argument 33 n = malloc_snprintf(&buf[i], buflen-i, "%"FMTu64, t0 / t1); in timer_ratio() 35 if (i >= buflen) { in timer_ratio() 44 n = malloc_snprintf(&buf[i], buflen-i, "."); in timer_ratio() 48 while (i < buflen-1) { in timer_ratio() 49 uint64_t round = (i+1 == buflen-1 && ((t0 * mult * 10 / t1) % 10 in timer_ratio() 51 n = malloc_snprintf(&buf[i], buflen-i, in timer_ratio()
|
| /f-stack/app/redis-5.0.5/deps/lua/src/ |
| H A D | fpconv.c | 110 int buflen; in fpconv_strtod() local 117 buflen = strtod_buffer_size(nptr); in fpconv_strtod() 118 if (!buflen) { in fpconv_strtod() 125 if (buflen >= FPCONV_G_FMT_BUFSIZE) { in fpconv_strtod() 127 buf = malloc(buflen + 1); in fpconv_strtod() 136 memcpy(buf, nptr, buflen); in fpconv_strtod() 137 buf[buflen] = 0; in fpconv_strtod() 146 if (buflen >= FPCONV_G_FMT_BUFSIZE) in fpconv_strtod()
|
| /f-stack/freebsd/net/ |
| H A D | bpf_filter.c | 212 if (k > buflen || sizeof(int32_t) > buflen - k) { in bpf_filter() 216 if (buflen != 0) in bpf_filter() 236 if (k > buflen || sizeof(int16_t) > buflen - k) { in bpf_filter() 240 if (buflen != 0) in bpf_filter() 257 if (buflen != 0) in bpf_filter() 280 if (pc->k > buflen || X > buflen - pc->k || in bpf_filter() 285 if (buflen != 0) in bpf_filter() 305 if (X > buflen || pc->k > buflen - X || in bpf_filter() 310 if (buflen != 0) in bpf_filter() 325 if (pc->k >= buflen || X >= buflen - pc->k) { in bpf_filter() [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
| H A D | crypto_scrypt-common.c | 138 const uint8_t *setting, uint8_t *buf, size_t buflen) in escrypt_r() argument 169 if (need > buflen || need < saltlen) { in escrypt_r() 187 dst = encode64(dst, buflen - (dst - buf), hash, sizeof(hash)); in escrypt_r() 189 if (!dst || dst >= buf + buflen) { in escrypt_r() 199 size_t srclen, uint8_t *buf, size_t buflen) in escrypt_gensalt_r() argument 208 if (need > buflen || need < saltlen || saltlen < srclen) { in escrypt_gensalt_r() 221 dst = encode64_uint32(dst, buflen - (dst - buf), r, 30); in escrypt_gensalt_r() 225 dst = encode64_uint32(dst, buflen - (dst - buf), p, 30); in escrypt_gensalt_r() 229 dst = encode64(dst, buflen - (dst - buf), src, srclen); in escrypt_gensalt_r() 230 if (!dst || dst >= buf + buflen) { in escrypt_gensalt_r() [all …]
|
| /f-stack/tools/compat/include/netgraph/ |
| H A D | ng_parse.h | 228 u_char *buf, int *buflen); 242 const u_char *data, int *off, char *buf, int buflen); 256 const u_char *start, u_char *buf, int *buflen); 335 u_char *buf, int *buflen); 496 int *off, u_char *buf, int *buflen); 502 const u_char *data, char *buf, int buflen); 508 u_char *buf, int *buflen);
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_crypto_wep.c | 354 size_t buflen, data_len; in wep_encrypt() local 382 buflen = m->m_len - off; in wep_encrypt() 384 if (buflen > data_len) in wep_encrypt() 385 buflen = data_len; in wep_encrypt() 386 data_len -= buflen; in wep_encrypt() 408 buflen = m->m_len; in wep_encrypt() 437 size_t buflen, data_len; in wep_decrypt() local 467 if (buflen > data_len) in wep_decrypt() 468 buflen = data_len; in wep_decrypt() 469 data_len -= buflen; in wep_decrypt() [all …]
|
| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | eal_filesystem.h | 60 eal_get_fbarray_path(char *buffer, size_t buflen, const char *name) { in eal_get_fbarray_path() argument 61 snprintf(buffer, buflen, FBARRAY_NAME_FMT, rte_eal_get_runtime_dir(), in eal_get_fbarray_path() 93 eal_get_hugefile_path(char *buffer, size_t buflen, const char *hugedir, int f_id) in eal_get_hugefile_path() argument 95 snprintf(buffer, buflen, HUGEFILE_FMT, hugedir, in eal_get_hugefile_path()
|
| /f-stack/freebsd/x86/x86/ |
| H A D | busdma_bounce.c | 527 while (buflen != 0) { in _bus_dmamap_pagesneeded() 537 buflen -= sgsize; in _bus_dmamap_pagesneeded() 617 while (buflen > 0) { in _bus_dmamap_count_ma() 635 buflen -= sg_len; in _bus_dmamap_count_ma() 746 while (buflen > 0) { in bounce_bus_dmamap_load_phys() 761 buflen -= sgsize; in bounce_bus_dmamap_load_phys() 800 while (buflen > 0) { in bounce_bus_dmamap_load_buffer() 832 buflen -= sgsize; in bounce_bus_dmamap_load_buffer() 877 while (buflen > 0) { in bounce_bus_dmamap_load_ma() 909 KASSERT(buflen >= sgsize, in bounce_bus_dmamap_load_ma() [all …]
|
| /f-stack/freebsd/x86/include/ |
| H A D | bus_dma.h | 42 bus_dma_id_mapped(bus_dma_tag_t dmat, vm_paddr_t buf, bus_size_t buflen) in bus_dma_id_mapped() argument 47 return (tc->impl->id_mapped(dmat, buf, buflen)); in bus_dma_id_mapped() 135 bus_size_t buflen, int flags, bus_dma_segment_t *segs, int *segp) in _bus_dmamap_load_phys() argument 140 return (tc->impl->load_phys(dmat, map, buf, buflen, flags, segs, in _bus_dmamap_load_phys() 162 bus_size_t buflen, struct pmap *pmap, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_buffer() argument 168 return (tc->impl->load_buffer(dmat, map, buf, buflen, pmap, flags, segs, in _bus_dmamap_load_buffer()
|
| /f-stack/freebsd/arm64/include/ |
| H A D | bus_dma.h | 15 bus_dma_id_mapped(bus_dma_tag_t dmat, vm_paddr_t buf, bus_size_t buflen) in bus_dma_id_mapped() argument 20 return (tc->impl->id_mapped(dmat, buf, buflen)); in bus_dma_id_mapped() 100 bus_size_t buflen, int flags, bus_dma_segment_t *segs, int *segp) in _bus_dmamap_load_phys() argument 105 return (tc->impl->load_phys(dmat, map, buf, buflen, flags, segs, in _bus_dmamap_load_phys() 123 bus_size_t buflen, struct pmap *pmap, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_buffer() argument 129 return (tc->impl->load_buffer(dmat, map, buf, buflen, pmap, flags, segs, in _bus_dmamap_load_buffer()
|
| /f-stack/freebsd/crypto/siphash/ |
| H A D | siphash.c | 67 ctx->buflen = 0; in SipHash_InitX() 102 x = MIN(len, sizeof(ctx->buf.b64) - ctx->buflen); in SipBuf() 103 bcopy(*src, &ctx->buf.b8[ctx->buflen], x); in SipBuf() 104 ctx->buflen += x; in SipBuf() 109 if (ctx->buflen == 8 || final) { in SipBuf() 114 ctx->buflen = 0; in SipBuf() 138 if (ctx->buflen > 0 || len < 8) in SipHash_Update()
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/devname2devid/ |
| H A D | devname2devid.c | 48 udev_device_get_devid(struct udev_device *dev, char *bufptr, size_t buflen) in udev_device_get_devid() argument 67 (void) snprintf(bufptr, buflen, "dm-uuid-%s", dm_uuid); in udev_device_get_devid() 86 (void) stpncpy(bufptr, name, buflen - 1); in udev_device_get_devid() 87 bufptr[buflen - 1] = '\0'; in udev_device_get_devid()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_generichash/blake2b/ref/ |
| H A D | blake2b-ref.c | 264 size_t left = S->buflen; in blake2b_update() 269 S->buflen += fill; in blake2b_update() 274 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update() 280 S->buflen += inlen; /* Be lazy, do not compress */ in blake2b_update() 300 if (S->buflen > BLAKE2B_BLOCKBYTES) { in blake2b_final() 303 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_final() 304 assert(S->buflen <= BLAKE2B_BLOCKBYTES); in blake2b_final() 305 memcpy(S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen); in blake2b_final() 308 blake2b_increment_counter(S, S->buflen); in blake2b_final() 310 memset(S->buf + S->buflen, 0, in blake2b_final() [all …]
|
| /f-stack/freebsd/contrib/libb2/ |
| H A D | blake2s-ref.c | 295 uint32_t left = S->buflen; in blake2s_update() 301 S->buflen += fill; in blake2s_update() 305 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update() 312 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2s_update() 328 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final() 332 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_final() 333 memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen ); in blake2s_final() 336 blake2s_increment_counter( S, ( uint32_t )S->buflen ); in blake2s_final() 338 memset( S->buf + S->buflen, 0, 2 * BLAKE2S_BLOCKBYTES - S->buflen ); /* Padding */ in blake2s_final()
|
| H A D | blake2b-ref.c | 305 uint32_t left = S->buflen; in blake2b_update() 311 S->buflen += fill; in blake2b_update() 315 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_update() 322 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update() 338 if( S->buflen > BLAKE2B_BLOCKBYTES ) in blake2b_final() 342 S->buflen -= BLAKE2B_BLOCKBYTES; in blake2b_final() 343 memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen ); in blake2b_final() 346 blake2b_increment_counter( S, S->buflen ); in blake2b_final() 348 memset( S->buf + S->buflen, 0, 2 * BLAKE2B_BLOCKBYTES - S->buflen ); /* Padding */ in blake2b_final()
|
| H A D | blake2s.c | 335 size_t left = S->buflen; in blake2s_update() 341 S->buflen += fill; in blake2s_update() 345 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_update() 352 S->buflen += inlen; // Be lazy, do not compress in blake2s_update() 368 if( S->buflen > BLAKE2S_BLOCKBYTES ) in blake2s_final() 372 S->buflen -= BLAKE2S_BLOCKBYTES; in blake2s_final() 373 memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen ); in blake2s_final() 376 blake2s_increment_counter( S, ( uint32_t )S->buflen ); in blake2s_final() 378 memset( S->buf + S->buflen, 0, 2 * BLAKE2S_BLOCKBYTES - S->buflen ); /* Padding */ in blake2s_final()
|
| /f-stack/tools/netstat/ |
| H A D | sctp.c | 169 while (*offset < buflen) { in sctp_skip_xinpcb_ifneed() 176 while (*offset < buflen) { in sctp_skip_xinpcb_ifneed() 184 while (*offset < buflen) { in sctp_skip_xinpcb_ifneed() 191 while (*offset < buflen) { in sctp_skip_xinpcb_ifneed() 225 while (*offset < buflen) { in sctp_process_tcb() 246 while (*offset < buflen) { in sctp_process_tcb() 330 char *buf, const size_t buflen, size_t *offset) in sctp_process_inpcb() argument 373 sctp_skip_xinpcb_ifneed(buf, buflen, offset); in sctp_process_inpcb() 408 while (*offset < buflen) { in sctp_process_inpcb() 479 while (xstcb->last == 0 && *offset < buflen) { in sctp_process_inpcb() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | blkptr.c | 129 decode_embedded_bp(const blkptr_t *bp, void *buf, int buflen) in decode_embedded_bp() argument 138 if (lsize > buflen) in decode_embedded_bp() 140 ASSERT3U(lsize, ==, buflen); in decode_embedded_bp() 146 dstbuf, buf, psize, buflen, NULL)); in decode_embedded_bp()
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | busdma_bounce.c | 650 bus_size_t buflen, int *pagesneeded) in _bus_dmamap_pagesneeded() argument 662 while (buflen != 0) { in _bus_dmamap_pagesneeded() 672 buflen -= sgsize; in _bus_dmamap_pagesneeded() 682 bus_size_t buflen, int flags) in _bus_dmamap_count_phys() argument 713 vendaddr = (vm_offset_t)buf + buflen; in _bus_dmamap_count_pages() 833 while (buflen > 0) { in bounce_bus_dmamap_load_phys() 874 buflen -= sgsize; in bounce_bus_dmamap_load_phys() 880 if (buflen != 0) { in bounce_bus_dmamap_load_phys() 932 while (buflen > 0) { in bounce_bus_dmamap_load_buffer() 991 buflen -= sgsize; in bounce_bus_dmamap_load_buffer() [all …]
|