Home
last modified time | relevance | path

Searched refs:count (Results 176 – 200 of 4513) sorted by relevance

12345678910>>...181

/freebsd/contrib/libfido2/openbsd-compat/
H A Dposix_win.c42 posix_read(int fd, void *buf, size_t count) in posix_read() argument
44 if (count > INT_MAX) { in posix_read()
49 return (read(fd, buf, (unsigned int)count)); in posix_read()
53 posix_write(int fd, const void *buf, size_t count) in posix_write() argument
55 if (count > INT_MAX) { in posix_write()
60 return (write(fd, buf, (unsigned int)count)); in posix_write()
/freebsd/contrib/xz/src/liblzma/common/
H A Dindex.h55 index_size_unpadded(lzma_vli count, lzma_vli index_list_size) in index_size_unpadded() argument
58 return 1 + lzma_vli_size(count) + index_list_size + 4; in index_size_unpadded()
64 index_size(lzma_vli count, lzma_vli index_list_size) in index_size() argument
66 return vli_ceil4(index_size_unpadded(count, index_list_size)); in index_size()
73 lzma_vli count, lzma_vli index_list_size) in index_stream_size() argument
76 + index_size(count, index_list_size) in index_stream_size()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_sequences.c76 unsigned norm = (unsigned)((256 * count[s]) / total); in ZSTD_entropyCost()
77 if (count[s] != 0 && norm == 0) in ZSTD_entropyCost()
79 assert(count[s] < total); in ZSTD_entropyCost()
80 cost += count[s] * kInverseProbabilityLog256[norm]; in ZSTD_entropyCost()
91 unsigned const* count, in ZSTD_fseBitCost() argument
108 if (count[s] == 0) in ZSTD_fseBitCost()
114 cost += (size_t)count[s] * bitCost; in ZSTD_fseBitCost()
136 cost += count[s] * kInverseProbabilityLog256[norm256]; in ZSTD_crossEntropyCost()
225 unsigned* count, U32 max, in ZSTD_buildCTable() argument
251 if (count[codeTable[nbSeq-1]] > 1) { in ZSTD_buildCTable()
[all …]
H A Dhuf_compress.c75 unsigned count[HUF_TABLELOG_MAX+1]; in HUF_compressWeights() local
209 U32 count; member
313 U32 r = BIT_highbit32(count[n] + 1); in HUF_sort()
319 U32 const c = count[n]; in HUF_sort()
326 huffNode[pos].count = c; in HUF_sort()
364 huffNode[nodeNb].count = huffNode[lowS].count + huffNode[lowS-1].count; in HUF_buildCTable_wksp()
372 int const n1 = (huffNode[lowS].count < huffNode[lowN].count) ? lowS-- : lowN++; in HUF_buildCTable_wksp()
373 int const n2 = (huffNode[lowS].count < huffNode[lowN].count) ? lowS-- : lowN++; in HUF_buildCTable_wksp()
374 huffNode[nodeNb].count = huffNode[n1].count + huffNode[n2].count; in HUF_buildCTable_wksp()
427 nbBits += CTable[s].nbBits * count[s]; in HUF_estimateCompressedSize()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted.kshlib59 log_must dd if=/dev/urandom of=$mntpnt/f1 bs=$bs count=16
60 log_must dd if=/dev/urandom of=$mntpnt/f2 bs=$bs count=32
74 count=1 seek=$(((recsize / 8) - 1))
92 log_must dd if=/dev/urandom of=$mntpnt/f1 bs=8M count=1
94 log_must dd if=/dev/urandom of=$mntpnt/f2 bs=1M count=1
95 log_must dd if=/dev/urandom of=$mntpnt/f2 bs=1M count=1 seek=7 \
98 log_must dd if=/dev/urandom of=$mntpnt/f3 bs=1M count=6 seek=1
121 log_must dd if=/dev/urandom of=$mntpnt/f1 bs=$bs count=16
122 log_must dd if=/dev/urandom of=$mntpnt/f2 bs=$bs count=32
164 log_must dd if=/dev/urandom of=$mntpnt/contents1 bs=512 count=2
[all …]
/freebsd/sys/dev/qat/qat_api/common/utils/
H A Dlac_mem_pools.c298 Cpa32U count = 0; in Lac_MemPoolCleanUpInternal() local
310 for (count = 0; count < pPoolID->numElementsInPool; count++) { in Lac_MemPoolCleanUpInternal()
311 pFreePtr = (pPoolID->trackBlks[count])->pMemAllocPtr; in Lac_MemPoolCleanUpInternal()
391 Cpa32U count = 0; in Lac_MemPoolInitSymCookiesPhyAddr() local
393 for (count = 0; count < pPoolID->numElementsInPool; count++) { in Lac_MemPoolInitSymCookiesPhyAddr()
394 pCurrentBlk = pPoolID->trackBlks[count]; in Lac_MemPoolInitSymCookiesPhyAddr()
422 Cpa32U count = 0; in Lac_MemPoolInitDcCookiePhyAddr() local
424 for (count = 0; count < pPoolID->numElementsInPool; count++) { in Lac_MemPoolInitDcCookiePhyAddr()
425 pCurrentBlk = pPoolID->trackBlks[count]; in Lac_MemPoolInitDcCookiePhyAddr()
/freebsd/contrib/wpa/src/tls/
H A Dtlsv1_client.c468 size_t count; in tlsv1_client_init() local
484 count = 0; in tlsv1_client_init()
489 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA; in tlsv1_client_init()
493 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA; in tlsv1_client_init()
495 suites[count++] = TLS_RSA_WITH_3DES_EDE_CBC_SHA; in tlsv1_client_init()
496 suites[count++] = TLS_RSA_WITH_RC4_128_SHA; in tlsv1_client_init()
497 suites[count++] = TLS_RSA_WITH_RC4_128_MD5; in tlsv1_client_init()
498 conn->num_cipher_suites = count; in tlsv1_client_init()
812 size_t count; in tlsv1_client_set_cipher_list() local
817 count = 0; in tlsv1_client_set_cipher_list()
[all …]
/freebsd/sbin/dump/
H A Dtape.c87 int count; member
149 wp->count = 1; in alloctape()
414 for (p = wp->req; p->count > 0; p += p->count) { in rollforward()
419 q += q->count; in rollforward()
424 prev->count -= 1; in rollforward()
428 q->count = 0; in rollforward()
432 q->count = 1; in rollforward()
450 q->count = 1; in rollforward()
784 trecno += p->count, p += p->count) { in worker()
874 int got, need = count; in atomic_read()
[all …]
H A Ddumprmt.c214 rmtread(char *buf, int count) in rmtread() argument
219 (void)snprintf(line, sizeof (line), "R%d\n", count); in rmtread()
233 rmtwrite(const char *buf, int count) in rmtwrite() argument
237 (void)snprintf(line, sizeof (line), "W%d\n", count); in rmtwrite()
239 write(rmtape, buf, count); in rmtwrite()
244 rmtwrite0(int count) in rmtwrite0() argument
248 (void)snprintf(line, sizeof (line), "W%d\n", count); in rmtwrite0()
253 rmtwrite1(const char *buf, int count) in rmtwrite1() argument
256 write(rmtape, buf, count); in rmtwrite1()
292 rmtioctl(int cmd, int count) in rmtioctl() argument
[all …]
/freebsd/contrib/tcp_wrappers/
H A Dtcpdmatch.c72 int count; local
189 for (res = hp, count = 0; res; res = res->ai_next, count++) {
192 for (count = 0; (addr = hp->h_addr_list[count]) != 0; count++) {
206 if (count > 1) {
265 for (res = hp, count = 0; res; res = res->ai_next, count++) {
294 for (count = 0; (addr = hp->h_addr_list[count]) != 0; count++) {
307 if (hp->h_addr_list[count + 1])
/freebsd/lib/libiconv_modules/EUC/
H A Dcitrus_euc.c94 unsigned count[4]; member
140 ei->count[x] = (int)_bcs_strtol(v, (char **)&e, 0); in _citrus_EUC_parse_variable()
141 if (v == e || !(v = e) || ei->count[x] < 1 || ei->count[x] > 4) { in _citrus_EUC_parse_variable()
144 if (ei->mb_cur_max < ei->count[x]) in _citrus_EUC_parse_variable()
145 ei->mb_cur_max = ei->count[x]; in _citrus_EUC_parse_variable()
227 c = ei->count[cs = _citrus_EUC_cs(psenc->ch[0] & 0xff)]; in _citrus_EUC_mbrtowc_priv()
288 for (cs = 0; cs < sizeof(ei->count) / sizeof(ei->count[0]); cs++) in _citrus_EUC_wcrtomb_priv()
292 if (cs == sizeof(ei->count) / sizeof(ei->count[0])) in _citrus_EUC_wcrtomb_priv()
295 i = ei->count[cs]; in _citrus_EUC_wcrtomb_priv()
315 *nresult = (size_t)ei->count[cs]; in _citrus_EUC_wcrtomb_priv()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c292 remaining -= count < 0 ? -count : count; in FSE_writeNCount_generic()
294 if (count>=threshold) in FSE_writeNCount_generic()
298 bitCount -= (count<max); in FSE_writeNCount_generic()
299 previousIs0 = (count==1); in FSE_writeNCount_generic()
399 if (count[s] == 0) { in FSE_normalizeM2()
403 if (count[s] <= lowThreshold) { in FSE_normalizeM2()
406 total -= count[s]; in FSE_normalizeM2()
409 if (count[s] <= lowOne) { in FSE_normalizeM2()
412 total -= count[s]; in FSE_normalizeM2()
430 total -= count[s]; in FSE_normalizeM2()
[all …]
/freebsd/sys/opencrypto/
H A Dcriov.c86 unsigned count; in cuio_copydata() local
93 len -= count; in cuio_copydata()
94 cp += count; in cuio_copydata()
113 len -= count; in cuio_copyback()
114 cp += count; in cuio_copyback()
170 len -= count; in cvm_page_apply()
204 count); in cvm_page_copyback()
205 len -= count; in cvm_page_copyback()
206 cp += count; in cvm_page_copyback()
229 count); in cvm_page_copydata()
[all …]
/freebsd/lib/libc/locale/
H A Dgb18030.c64 int count; member
88 return (ps == NULL || ((const _GB18030State *)ps)->count == 0); in _GB18030_mbsinit()
102 if (gs->count < 0 || gs->count > sizeof(gs->bytes)) { in _GB18030_mbrtowc()
113 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof(gs->bytes) - gs->count); in _GB18030_mbrtowc()
114 memcpy(gs->bytes + gs->count, s, ncopy); in _GB18030_mbrtowc()
115 ocount = gs->count; in _GB18030_mbrtowc()
116 gs->count += ncopy; in _GB18030_mbrtowc()
118 n = gs->count; in _GB18030_mbrtowc()
168 gs->count = 0; in _GB18030_mbrtowc()
184 if (gs->count != 0) { in _GB18030_wcrtomb()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dbssid_ignore.c77 e->count++; in wpa_bssid_ignore_add()
78 if (e->count > 5) in wpa_bssid_ignore_add()
80 else if (e->count == 5) in wpa_bssid_ignore_add()
82 else if (e->count == 4) in wpa_bssid_ignore_add()
84 else if (e->count == 3) in wpa_bssid_ignore_add()
90 MAC2STR(bssid), e->count, e->timeout_secs); in wpa_bssid_ignore_add()
91 return e->count; in wpa_bssid_ignore_add()
98 e->count = 1; in wpa_bssid_ignore_add()
107 return e->count; in wpa_bssid_ignore_add()
161 return e->count; in wpa_bssid_ignore_is_listed()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.negtruncquant.d.out3 value ------------- Distribution ------------- count
12 value ------------- Distribution ------------- count
21 value ------------- Distribution ------------- count
30 value ------------- Distribution ------------- count
39 value ------------- Distribution ------------- count
H A Dtst.truncquant.d.out3 value ------------- Distribution ------------- count
12 value ------------- Distribution ------------- count
21 value ------------- Distribution ------------- count
30 value ------------- Distribution ------------- count
39 value ------------- Distribution ------------- count
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/
H A Dtst.trunc.d.out3 value ------------- Distribution ------------- count
9 value ------------- Distribution ------------- count
15 value ------------- Distribution ------------- count
22 value ------------- Distribution ------------- count
29 value ------------- Distribution ------------- count
H A Dtst.range.d.out3 value ------------- Distribution ------------- count
8 value ------------- Distribution ------------- count
13 value ------------- Distribution ------------- count
18 value ------------- Distribution ------------- count
24 value ------------- Distribution ------------- count
/freebsd/crypto/heimdal/lib/kadm5/
H A Dget_princs_s.c42 int count; member
49 tmp = realloc(d->princs, (d->count + 1) * sizeof(*tmp)); in add_princ()
53 d->princs[d->count++] = princ; in add_princ()
83 int *count) in kadm5_s_get_principals() argument
102 d.count = 0; in kadm5_s_get_principals()
109 *count = d.count - 1; in kadm5_s_get_principals()
111 kadm5_free_name_list(context, d.princs, &d.count); in kadm5_s_get_principals()
/freebsd/sys/dev/hptrr/
H A Dhptrr_os_bsd.c46 void os_insw (void *port, HPT_U16 *buffer, HPT_U32 count) in os_insw() argument
47 { insw((unsigned)(HPT_UPTR)port, (void *)buffer, count); } in os_insw()
49 void os_outsw(void *port, HPT_U16 *buffer, HPT_U32 count) in os_outsw() argument
50 { outsw((unsigned)(HPT_UPTR)port, (void *)buffer, count); } in os_outsw()
123 void freelist_reserve(struct freelist *list, void *osext, HPT_UINT size, HPT_UINT count) in freelist_reserve() argument
138 list->count = count; in freelist_reserve()
144 if (list->count) { in freelist_get()
148 list->count--; in freelist_get()
157 list->count++; in freelist_put()
178 list->count = count; in freelist_reserve_dma()
[all …]
/freebsd/sys/dev/xen/grant_table/
H A Dgrant_table.c72 if ((gnttab_free_count < count) && in get_free_entries()
78 gnttab_free_count -= count; in get_free_entries()
79 while (count-- > 1) in get_free_entries()
216 last_ref = refs + count; in gnttab_end_foreign_access_references()
228 count--; in gnttab_end_foreign_access_references()
233 if (count != 0) { in gnttab_end_foreign_access_references()
235 gnttab_free_count += count; in gnttab_end_foreign_access_references()
323 int count = 1; in gnttab_free_grant_references() local
331 count++; in gnttab_free_grant_references()
336 gnttab_free_count += count; in gnttab_free_grant_references()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkfifo.h42 size_t count; \
50 (_kf)->count; \
55 ((_kf)->count == 0) ? true : false; \
60 ((_kf)->count == (_kf)->total) ? true : false; \
72 (_kf)->count++; \
90 (_kf)->count--; \
119 (_kf)->total = (_kf)->count = (_kf)->first = (_kf)->last = 0; \
/freebsd/bin/ps/
H A Dps.c110 int count; member
502 if (gidlist.count == 1) { in main()
581 if (pidlist.count > 0) { in main()
598 if (gidlist.count > 0) { in main()
603 if (jidlist.count > 0) { in main()
608 if (pgrplist.count > 0) { in main()
614 if (ruidlist.count > 0) { in main()
620 if (sesslist.count > 0) { in main()
625 if (ttylist.count > 0) { in main()
630 if (uidlist.count > 0) { in main()
[all …]
/freebsd/tests/sys/netinet6/frag6/
H A Dfrag6_05.sh85 case ${count} in
88 atf_fail "Global UDP statistics do not match: ${count} != 9" ;;
119 case ${count} in
155 case ${count} in
182 case ${count} in
216 case ${count} in
278 case ${count} in
312 case ${count} in
348 case ${count} in
375 case ${count} in
[all …]

12345678910>>...181