/freebsd/sys/contrib/pcg-c/include/ |
H A D | pcg_variants.h | 874 uint8_t bound) in pcg_oneseq_16_xsh_rs_8_boundedrand_r() argument 876 uint8_t threshold = ((uint8_t)(-bound)) % bound; in pcg_oneseq_16_xsh_rs_8_boundedrand_r() 880 return r % bound; in pcg_oneseq_16_xsh_rs_8_boundedrand_r() 892 uint16_t bound) in pcg_oneseq_32_xsh_rs_16_boundedrand_r() argument 894 uint16_t threshold = ((uint16_t)(-bound)) % bound; in pcg_oneseq_32_xsh_rs_16_boundedrand_r() 898 return r % bound; in pcg_oneseq_32_xsh_rs_16_boundedrand_r() 910 uint32_t bound) in pcg_oneseq_64_xsh_rs_32_boundedrand_r() argument 912 uint32_t threshold = -bound % bound; in pcg_oneseq_64_xsh_rs_32_boundedrand_r() 916 return r % bound; in pcg_oneseq_64_xsh_rs_32_boundedrand_r() 931 uint64_t bound) in pcg_oneseq_128_xsh_rs_64_boundedrand_r() argument [all …]
|
/freebsd/sys/kern/ |
H A D | subr_prng.c | 56 pcg64u_boundedrand_r(pcg64u_random_t *state64, uint64_t bound) in pcg64u_boundedrand_r() argument 58 uint64_t threshold = -bound % bound; in pcg64u_boundedrand_r() 62 return (r % bound); in pcg64u_boundedrand_r() 98 prng32_bounded(uint32_t bound) in prng32_bounded() argument 103 r = pcg32u_boundedrand_r(DPCPU_PTR(pcpu_prng32_state), bound); in prng32_bounded() 120 prng64_bounded(uint64_t bound) in prng64_bounded() argument 125 r = pcg64u_boundedrand_r(DPCPU_PTR(pcpu_prng64_state), bound); in prng64_bounded()
|
H A D | subr_pidctrl.c | 36 pidctrl_init(struct pidctrl *pc, int interval, int setpoint, int bound, in pidctrl_init() argument 43 pc->pc_bound = bound * setpoint * Kid; in pidctrl_init()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | debugfs.c | 76 int bound[3], i, range; in mt7603_ampdu_stat_show() local 79 for (i = 0; i < ARRAY_SIZE(bound); i++) in mt7603_ampdu_stat_show() 80 bound[i] = MT_AGG_ASRCR_RANGE(range, i) + 1; in mt7603_ampdu_stat_show() 82 seq_printf(file, "Length: %8d | ", bound[0]); in mt7603_ampdu_stat_show() 83 for (i = 0; i < ARRAY_SIZE(bound) - 1; i++) in mt7603_ampdu_stat_show() 85 bound[i], bound[i + 1]); in mt7603_ampdu_stat_show() 87 for (i = 0; i < ARRAY_SIZE(bound); i++) in mt7603_ampdu_stat_show()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt792x_debugfs.c | 11 int bound[15], range[4], i; in mt792x_ampdu_stat_read_phy() local 22 for (i = 0; i < ARRAY_SIZE(bound); i++) in mt792x_ampdu_stat_read_phy() 23 bound[i] = MT_MIB_ARNCR_RANGE(range[i / 4], i % 4) + 1; in mt792x_ampdu_stat_read_phy() 27 seq_printf(file, "Length: %8d | ", bound[0]); in mt792x_ampdu_stat_read_phy() 28 for (i = 0; i < ARRAY_SIZE(bound) - 1; i++) in mt792x_ampdu_stat_read_phy() 29 seq_printf(file, "%3d %3d | ", bound[i] + 1, bound[i + 1]); in mt792x_ampdu_stat_read_phy() 32 for (i = 0; i < ARRAY_SIZE(bound); i++) in mt792x_ampdu_stat_read_phy()
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | asn_mime.c | 56 static int mime_bound_check(char *line, int linelen, const char *bound, int blen); 57 static int multi_split(BIO *bio, int flags, const char *bound, STACK_OF(BIO) **ret); 243 char bound[33], c; in SMIME_write_ASN1_ex() local 260 if (RAND_bytes_ex(libctx, (unsigned char *)bound, 32, 0) <= 0) in SMIME_write_ASN1_ex() 263 c = bound[i] & 0xf; in SMIME_write_ASN1_ex() 268 bound[i] = c; in SMIME_write_ASN1_ex() 270 bound[32] = 0; in SMIME_write_ASN1_ex() 277 bound, mime_eol, mime_eol); in SMIME_write_ASN1_ex() 281 BIO_printf(bio, "------%s%s", bound, mime_eol); in SMIME_write_ASN1_ex() 284 BIO_printf(bio, "%s------%s%s", mime_eol, bound, mime_eol); in SMIME_write_ASN1_ex() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_agpsupport.c | 223 entry->bound = 0; in drm_agp_alloc() 287 if (!entry->bound) in drm_agp_unbind() 291 entry->bound = 0; in drm_agp_unbind() 328 if (entry->bound) in drm_agp_bind() 333 entry->bound = dev->agp->base + (page << PAGE_SHIFT); in drm_agp_bind() 335 dev->agp->base, entry->bound); in drm_agp_bind() 371 if (entry->bound) in drm_agp_free()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/ |
H A D | tst.ipv4localtcp.ksh | 60 bound=5000 61 while [ $tcpport -lt $bound ]; do 65 if [ $tcpport -eq $bound ]; then
|
H A D | tst.ipv4localsctp.ksh | 60 bound=5000 79 while [ $sctpport -lt $bound ]; do 83 if [ $sctpport -eq $bound ]; then
|
H A D | tst.localsctpstate.ksh | 63 bound=5000 82 while [ $sctpport -lt $bound ]; do 86 if [ $sctpport -eq $bound ]; then
|
H A D | tst.localtcpstate.ksh | 64 bound=5000 65 while [ $tcpport -lt $bound ]; do 69 if [ $tcpport -eq $bound ]; then
|
/freebsd/sys/sys/ |
H A D | prng.h | 13 __uint32_t prng32_bounded(__uint32_t bound); 15 __uint64_t prng64_bounded(__uint64_t bound);
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | debugfs.c | 281 int bound[7], i, range; in mt7615_ampdu_stat_read_phy() local 288 bound[i] = MT_AGG_ASRCR_RANGE(range, i) + 1; in mt7615_ampdu_stat_read_phy() 292 bound[i + 4] = MT_AGG_ASRCR_RANGE(range, i) + 1; in mt7615_ampdu_stat_read_phy() 296 seq_printf(file, "Length: %8d | ", bound[0]); in mt7615_ampdu_stat_read_phy() 297 for (i = 0; i < ARRAY_SIZE(bound) - 1; i++) in mt7615_ampdu_stat_read_phy() 299 bound[i], bound[i + 1]); in mt7615_ampdu_stat_read_phy() 302 for (i = 0; i < ARRAY_SIZE(bound); i++) in mt7615_ampdu_stat_read_phy()
|
/freebsd/contrib/netbsd-tests/lib/libc/regex/ |
H A D | split.c | 227 int bound; in print() local 229 bound = (nf > nfp) ? nfp : nf; in print() 231 for (fn = 0; fn < bound; fn++) in print()
|
/freebsd/lib/libc/regex/grot/ |
H A D | split.c | 196 int bound; in print() local 198 bound = (nf > nfp) ? nfp : nf; in print() 200 for (fn = 0; fn < bound; fn++) in print()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | http.c | 3551 struct evhttp_bound_socket *bound = in evhttp_bind_socket() local 3553 if (bound == NULL) in evhttp_bind_socket() 3562 struct evhttp_bound_socket *bound; in evhttp_bind_socket_with_handle() local 3576 bound = evhttp_accept_socket_with_handle(http, fd); in evhttp_bind_socket_with_handle() 3578 if (bound != NULL) { in evhttp_bind_socket_with_handle() 3581 return (bound); in evhttp_bind_socket_with_handle() 3590 struct evhttp_bound_socket *bound = in evhttp_accept_socket() local 3592 if (bound == NULL) in evhttp_accept_socket() 3602 struct evhttp_bound_socket *bound; in evhttp_foreach_bound_socket() local 3604 TAILQ_FOREACH(bound, &http->sockets, next) in evhttp_foreach_bound_socket() [all …]
|
/freebsd/contrib/libevent/ |
H A D | http.c | 3551 struct evhttp_bound_socket *bound = in evhttp_bind_socket() local 3553 if (bound == NULL) in evhttp_bind_socket() 3562 struct evhttp_bound_socket *bound; in evhttp_bind_socket_with_handle() local 3576 bound = evhttp_accept_socket_with_handle(http, fd); in evhttp_bind_socket_with_handle() 3578 if (bound != NULL) { in evhttp_bind_socket_with_handle() 3581 return (bound); in evhttp_bind_socket_with_handle() 3590 struct evhttp_bound_socket *bound = in evhttp_accept_socket() local 3592 if (bound == NULL) in evhttp_accept_socket() 3602 struct evhttp_bound_socket *bound; in evhttp_foreach_bound_socket() local 3604 TAILQ_FOREACH(bound, &http->sockets, next) in evhttp_foreach_bound_socket() [all …]
|
/freebsd/sys/dev/iommu/ |
H A D | iommu_gas.c | 158 iommu_gaddr_t bound, delta, free_down; in iommu_gas_augment_entry() local 161 bound = entry->start; in iommu_gas_augment_entry() 163 free_down = MAX(child->free_down, bound - child->last); in iommu_gas_augment_entry() 164 bound = child->first; in iommu_gas_augment_entry() 166 delta = bound - entry->first; in iommu_gas_augment_entry() 167 entry->first = bound; in iommu_gas_augment_entry() 168 bound = entry->end; in iommu_gas_augment_entry() 171 free_down = MAX(free_down, child->first - bound); in iommu_gas_augment_entry() 172 bound = child->last; in iommu_gas_augment_entry() 174 delta += entry->last - bound; in iommu_gas_augment_entry() [all …]
|
/freebsd/crypto/openssl/apps/ |
H A D | CA.pl.in | 95 my ($infile, $outfile, $bound) = @_; 101 $found = 1 if /^-----BEGIN.*$bound/; 103 $found = 2, last if /^-----END.*$bound/;
|
/freebsd/lib/libkvm/ |
H A D | kvm_private.c | 243 uint32_t bound; in popcount_bytes() local 247 bound = MIN(bitN, roundup2(bit0, BITS_IN(*addr))); in popcount_bytes() 248 count += __bitcount64(bitmask_range(*addr, bit0, bound)); in popcount_bytes() 249 res -= (bound - bit0); in popcount_bytes() 254 bound = MIN(res, BITS_IN(*addr)); in popcount_bytes() 255 count += __bitcount64(bitmask_range(*addr, 0, bound)); in popcount_bytes() 256 res -= bound; in popcount_bytes()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | debugfs.c | 448 int bound[15], range[8], i; in mt7996_ampdu_stat_read_phy() local 455 for (i = 0; i < ARRAY_SIZE(bound); i++) in mt7996_ampdu_stat_read_phy() 456 bound[i] = MT_MIB_ARNCR_RANGE(range[i / 2], i % 2) + 1; in mt7996_ampdu_stat_read_phy() 461 seq_printf(file, "Length: %8d | ", bound[0]); in mt7996_ampdu_stat_read_phy() 462 for (i = 0; i < ARRAY_SIZE(bound) - 1; i++) in mt7996_ampdu_stat_read_phy() 464 bound[i] + 1, bound[i + 1]); in mt7996_ampdu_stat_read_phy() 467 for (i = 0; i < ARRAY_SIZE(bound); i++) in mt7996_ampdu_stat_read_phy()
|
/freebsd/contrib/bc/src/ |
H A D | rand.c | 518 bc_rand_bounded(BcRNG* r, BcRand bound) in bc_rand_bounded() argument 524 threshold = (0 - bound) % bound; in bc_rand_bounded() 532 return rand % bound; in bc_rand_bounded()
|
/freebsd/usr.bin/gzip/ |
H A D | unlz.c | 197 const uint32_t bound = (rd->range >> BIT_MODEL_TOTAL_BITS) * *bm; in lz_rd_decode_bit() local 199 if(rd->code < bound) { in lz_rd_decode_bit() 200 rd->range = bound; in lz_rd_decode_bit() 205 rd->range -= bound; in lz_rd_decode_bit() 206 rd->code -= bound; in lz_rd_decode_bit()
|
/freebsd/sys/rpc/ |
H A D | rpc_generic.c | 699 int error, bound; in __rpc_sockisbound() local 707 bound = (((struct sockaddr_in *)&ss)->sin_port != 0); in __rpc_sockisbound() 711 bound = (((struct sockaddr_in6 *)&ss)->sin6_port != 0); in __rpc_sockisbound() 716 bound = (((struct sockaddr_un *)&ss)->sun_path[0] != '\0'); in __rpc_sockisbound() 719 bound = FALSE; in __rpc_sockisbound() 723 return bound; in __rpc_sockisbound()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/ |
H A D | math.shlib | 122 # can accept as the upper bound. 124 # $1 lower bound 125 # $2 upper bound
|