| /f-stack/dpdk/lib/librte_cmdline/ |
| H A D | cmdline_cirbuf.c | 19 cbuf->maxlen = maxlen; in cirbuf_init() 54 cbuf->start %= cbuf->maxlen; in cirbuf_add_buf_head() 86 cbuf->end %= cbuf->maxlen; in cirbuf_add_buf_tail() 126 cbuf->end %= cbuf->maxlen; in __cirbuf_add_tail() 159 cbuf->buf[(cbuf->start-1+cbuf->maxlen)%cbuf->maxlen] = tmp; in __cirbuf_shift_left() 163 cbuf->end %= cbuf->maxlen; in __cirbuf_shift_left() 173 cbuf->buf[(cbuf->end+cbuf->maxlen-i)%cbuf->maxlen] = in __cirbuf_shift_right() 174 cbuf->buf[(cbuf->end+cbuf->maxlen-i-1)%cbuf->maxlen]; in __cirbuf_shift_right() 180 cbuf->end %= cbuf->maxlen; in __cirbuf_shift_right() 256 cbuf->end %= cbuf->maxlen; in cirbuf_del_buf_tail() [all …]
|
| H A D | cmdline_cirbuf.h | 20 unsigned int maxlen; /**< total len of the fifo (number of elements) */ member 38 int cirbuf_init(struct cirbuf *cbuf, char *buf, unsigned int start, unsigned int maxlen); 44 #define CIRBUF_IS_FULL(cirbuf) ((cirbuf)->maxlen == (cirbuf)->len) 59 #define CIRBUF_GET_MAXLEN(cirbuf) ((cirbuf)->maxlen) 64 #define CIRBUF_GET_FREELEN(cirbuf) ((cirbuf)->maxlen - (cirbuf)->len) 75 i ++, e=(c)->buf[((c)->start+i)%((c)->maxlen)])
|
| /f-stack/tools/compat/ |
| H A D | rtioctl.c | 77 unsigned maxlen; in rtioctl() local 95 maxlen = read_len ? read_len : len; in rtioctl() 100 msg->route.maxlen = maxlen; in rtioctl()
|
| /f-stack/freebsd/netgraph/bluetooth/include/ |
| H A D | ng_bluetooth.h | 71 u_int32_t maxlen; /* maximal number of items in the queue */ member 82 (q)->maxlen = (_maxlen); \ 95 #define NG_BT_MBUFQ_FULL(q) ((q)->len >= (q)->maxlen) 157 u_int32_t maxlen; /* maximal number of items in the queue */ member 167 (q)->maxlen = (_maxlen); \
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | lzf_c.c | 164 unsigned int maxlen = in_end - ip - len; in lzf_compress() local 165 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen; in lzf_compress() 176 if (expect_true (maxlen > 16)) in lzf_compress() 201 while (len < maxlen && ref[len] == ip[len]); in lzf_compress()
|
| H A D | bitops.c | 597 unsigned long *len, maxlen = 0; /* Array of length of src strings, in bitopCommand() local 652 if (len[j] > maxlen) maxlen = len[j]; in bitopCommand() 657 if (maxlen) { in bitopCommand() 658 res = (unsigned char*) sdsnewlen(NULL,maxlen); in bitopCommand() 732 for (; j < maxlen; j++) { in bitopCommand() 755 if (maxlen) { in bitopCommand() 765 addReplyLongLong(c,maxlen); /* Return the output string length in bytes. */ in bitopCommand()
|
| H A D | t_stream.c | 374 int64_t streamTrimByLength(stream *s, size_t maxlen, int approx) { in streamTrimByLength() argument 375 if (s->length <= maxlen) return 0; in streamTrimByLength() 382 while(s->length > maxlen && raxNext(&ri)) { in streamTrimByLength() 388 if (s->length - entries >= maxlen) { in streamTrimByLength() 403 int64_t to_delete = s->length - maxlen; in streamTrimByLength() 1170 long long maxlen = -1; /* If left to -1 no trimming is performed. */ in xaddCommand() local 1198 if (maxlen < 0) { in xaddCommand() 1240 if (maxlen >= 0) { in xaddCommand() 1242 if (streamTrimByLength(s,maxlen,approx_maxlen)) { in xaddCommand() 2396 if (maxlen < 0) { in xtrimCommand() [all …]
|
| /f-stack/freebsd/libkern/ |
| H A D | strnlen.c | 35 strnlen(const char *s, size_t maxlen) in strnlen() argument 39 for (len = 0; len < maxlen; len++, s++) { in strnlen()
|
| H A D | strndup.c | 41 strndup(const char *string, size_t maxlen, struct malloc_type *type) in strndup() argument 46 len = strnlen(string, maxlen) + 1; in strndup()
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_swap/ |
| H A D | zvol_swap_005_pos.ksh | 63 ((maxlen = max_swaplow - swaplow)) 64 swaplen=$(range_shuffle ${pageblocks} ${maxlen} | head -n 1)
|
| /f-stack/dpdk/app/test/ |
| H A D | test_memzone.c | 503 size_t maxlen; in test_memzone_reserve_max() local 507 maxlen = find_max_block_free_size(0, socket); in test_memzone_reserve_max() 509 if (maxlen == 0) { in test_memzone_reserve_max() 524 if (mz->len != maxlen) { in test_memzone_reserve_max() 527 maxlen, mz->len); in test_memzone_reserve_max() 549 size_t maxlen, minlen = 0; in test_memzone_reserve_max_aligned() local 560 maxlen = find_max_block_free_size(0, socket); in test_memzone_reserve_max_aligned() 562 if (minlen == 0 || maxlen == 0) { in test_memzone_reserve_max_aligned() 586 if (mz->len < minlen || mz->len > maxlen) { in test_memzone_reserve_max_aligned() 590 minlen, maxlen, mz->len); in test_memzone_reserve_max_aligned()
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/spl/ |
| H A D | spl-proc.c | 616 .maxlen = sizeof (atomic64_t), 618 .maxlen = sizeof (atomic_t), 626 .maxlen = sizeof (unsigned long), 636 .maxlen = sizeof (unsigned long), 645 .maxlen = sizeof (unsigned long), 654 .maxlen = sizeof (unsigned long), 675 .maxlen = sizeof (spl_gitrev), 682 .maxlen = sizeof (unsigned long),
|
| /f-stack/freebsd/contrib/ngatm/netnatm/msg/ |
| H A D | privmsg.c | 155 if (ielen > iedecl->maxlen - 4 || ielen > uni_msg_len(msg)) { in uni_decode_body_internal() 166 if (ielen > iedecl->maxlen - 4) in uni_decode_body_internal() 167 ielen = iedecl->maxlen - 4; in uni_decode_body_internal()
|
| /f-stack/freebsd/netinet6/ |
| H A D | nd6_nbr.c | 413 int maxlen; in nd6_ns_output_fib() local 420 maxlen = sizeof(*ip6) + sizeof(*nd_ns); in nd6_ns_output_fib() 421 maxlen += (sizeof(struct nd_opt_hdr) + ifp->if_addrlen + 7) & ~7; in nd6_ns_output_fib() 422 KASSERT(max_linkhdr + maxlen <= MCLBYTES, ( in nd6_ns_output_fib() 424 __func__, max_linkhdr, maxlen, MCLBYTES)); in nd6_ns_output_fib() 426 if (max_linkhdr + maxlen > MHLEN) in nd6_ns_output_fib() 950 int icmp6len, maxlen, error; in nd6_na_output_fib() local 956 maxlen = sizeof(*ip6) + sizeof(*nd_na); in nd6_na_output_fib() 958 KASSERT(max_linkhdr + maxlen <= MCLBYTES, ( in nd6_na_output_fib() 960 __func__, max_linkhdr, maxlen, MCLBYTES)); in nd6_na_output_fib() [all …]
|
| /f-stack/freebsd/i386/i386/ |
| H A D | copyout.c | 162 copyinstr(const void *udaddr, void *kaddr, size_t maxlen, size_t *lencopied) in copyinstr() argument 172 plen < maxlen && !ca.end; uc += ca.alen, plen += ca.alen) { in copyinstr() 176 if (plen + ca.len > maxlen) in copyinstr() 177 ca.len = maxlen - plen; in copyinstr() 184 if (!ca.end && plen == maxlen && error == 0) in copyinstr()
|
| H A D | bios.c | 444 bios_oem_strings(struct bios_oem *oem, u_char *buffer, size_t maxlen) in bios_oem_strings() argument 452 if ( !oem || !buffer || maxlen<2 ) in bios_oem_strings() 480 if (idx + tot > maxlen - 1) { in bios_oem_strings() 483 str, idx, tot, idx+tot, maxlen-1); in bios_oem_strings()
|
| /f-stack/tools/compat/include/sys/ |
| H A D | user.h | 559 int kern_proc_filedesc_out(struct proc *p, struct sbuf *sb, ssize_t maxlen, 561 int kern_proc_cwd_out(struct proc *p, struct sbuf *sb, ssize_t maxlen); 563 int kern_proc_vmmap_out(struct proc *p, struct sbuf *sb, ssize_t maxlen,
|
| /f-stack/app/redis-5.0.5/tests/unit/ |
| H A D | bitops.tcl | 8 set maxlen 0 14 if {[string length $bits] > $maxlen} { 15 set maxlen [string length $bits] 20 if {[string length $b($j)] < $maxlen} { 25 for {set x 0} {$x < $maxlen} {incr x} {
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_ageq.c | 54 ieee80211_ageq_init(struct ieee80211_ageq *aq, int maxlen, const char *name) in ieee80211_ageq_init() argument 57 aq->aq_maxlen = maxlen; in ieee80211_ageq_init()
|
| H A D | ieee80211_ageq.h | 44 void ieee80211_ageq_init(struct ieee80211_ageq *, int maxlen,
|
| /f-stack/freebsd/sys/ |
| H A D | user.h | 609 int kern_proc_filedesc_out(struct proc *p, struct sbuf *sb, ssize_t maxlen, 611 int kern_proc_cwd_out(struct proc *p, struct sbuf *sb, ssize_t maxlen); 613 int kern_proc_vmmap_out(struct proc *p, struct sbuf *sb, ssize_t maxlen,
|
| /f-stack/tools/ifconfig/ |
| H A D | ifieee80211.c | 2706 maxlen -= strlen(tag)+2; in printie() 2707 if (2*ielen > maxlen) in printie() 2708 maxlen--; in printie() 2711 if (maxlen-- <= 0) in printie() 3451 size_t maxlen; in copy_essid() local 3455 maxlen = bufsize; in copy_essid() 3457 maxlen = essid_len; in copy_essid() 3476 memcpy(buf, essid, maxlen); in copy_essid() 3477 if (maxlen != essid_len) in copy_essid() 3478 memcpy(&buf[maxlen-3], "...", 3); in copy_essid() [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
| H A D | pwhash_scryptsalsa208sha256.c | 56 sodium_strnlen(const char *str, size_t maxlen) in sodium_strnlen() argument 60 while (i < maxlen && str[i] != 0) { in sodium_strnlen()
|
| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | eal_common_devargs.c | 182 const size_t maxlen = sizeof(da->name); in rte_devargs_parse() local 203 if (i == maxlen) { in rte_devargs_parse() 205 dev, maxlen); in rte_devargs_parse()
|
| /f-stack/freebsd/kern/ |
| H A D | tty_inq.c | 352 ttyinq_findchar(struct ttyinq *ti, const char *breakc, size_t maxlen, in ttyinq_findchar() argument 358 ti->ti_begin + maxlen); in ttyinq_findchar() 360 MPASS(maxlen > 0); in ttyinq_findchar()
|