Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 621) sorted by relevance

12345678910>>...25

/freebsd/contrib/unbound/daemon/
H A Dstats.c447 void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a) in server_stats_add() argument
449 total->svr.num_queries += a->svr.num_queries; in server_stats_add()
450 total->svr.num_queries_ip_ratelimited += a->svr.num_queries_ip_ratelimited; in server_stats_add()
451 total->svr.num_queries_cookie_valid += a->svr.num_queries_cookie_valid; in server_stats_add()
452 total->svr.num_queries_cookie_client += a->svr.num_queries_cookie_client; in server_stats_add()
453 total->svr.num_queries_cookie_invalid += a->svr.num_queries_cookie_invalid; in server_stats_add()
454 total->svr.num_queries_missed_cache += a->svr.num_queries_missed_cache; in server_stats_add()
455 total->svr.num_queries_prefetch += a->svr.num_queries_prefetch; in server_stats_add()
456 total->svr.num_queries_timed_out += a->svr.num_queries_timed_out; in server_stats_add()
457 if (total->svr.max_query_time_us < a->svr.max_query_time_us) in server_stats_add()
[all …]
/freebsd/sys/vm/
H A Dvm_meter.c163 struct vmtotal total; in vmtotal() local
176 return (SYSCTL_OUT(req, NULL, sizeof(total))); in vmtotal()
178 bzero(&total, sizeof(total)); in vmtotal()
195 total.t_dw++; in vmtotal()
197 total.t_sl++; in vmtotal()
201 total.t_sw++; in vmtotal()
205 total.t_rq++; in vmtotal()
248 total.t_vm += object->size; in vmtotal()
249 total.t_rm += object->resident_page_count; in vmtotal()
251 total.t_avm += object->size; in vmtotal()
[all …]
/freebsd/tests/sys/kern/pipe/
H A Dpipe_reverse_test.c50 ssize_t total; in main() local
55 total = 0; in main()
94 if ((_size = write(desc[1], &buffer[total], s)) != s) \ in main()
96 total += _size; \ in main()
119 total += error; in main()
125 error = read(desc[0], &buffer2[total], 2 * 4096); in main()
126 total += error; in main()
129 if (memcmp(buffer, buffer2, total) != 0) { in main()
130 for (i = 0; i < (size_t)total; i++) { in main()
142 if ((buggy == 1) || (total != 10 * 4096)) in main()
H A Dpipe_wraparound_test.c48 ssize_t error, total; in main() local
53 total = 0; in main()
92 if ((_size = write(desc[1], &buffer[total], s)) != s) \ in main()
94 total += _size; \ in main()
113 total += error; in main()
117 error = read(desc[0], &buffer2[total], 16384); in main()
118 total += error; in main()
121 if (memcmp(buffer, buffer2, total) != 0) { in main()
122 for (i = 0; i < total; i++) { in main()
/freebsd/usr.sbin/bhyve/
H A Daudio.c227 size_t total; in audio_playback() local
237 for (total = 0; total < count; total += len) { in audio_playback()
238 len = write(audio_fd, buf + total, count - total); in audio_playback()
261 size_t total; in audio_record() local
271 for (total = 0; total < count; total += len) { in audio_record()
272 len = read(audio_fd, buf + total, count - total); in audio_record()
H A Diov.c72 size_t total = 0; in count_iov() local
76 total += iov[i].iov_len; in count_iov()
78 return (total); in count_iov()
102 size_t ptr, total; in iov_to_buf() local
105 total = count_iov(iov, niov); in iov_to_buf()
106 *buf = realloc(*buf, total); in iov_to_buf()
115 return (total); in iov_to_buf()
/freebsd/crypto/openssh/regress/
H A Dmodpipe.c86 size_t total; in main() local
106 for (total = 0;;) { in main()
116 if (mods[i].offset < total || in main()
117 mods[i].offset >= total + s) in main()
121 buf[mods[i].offset - total] ^= mods[i].m1; in main()
124 buf[mods[i].offset - total] &= mods[i].m1; in main()
125 buf[mods[i].offset - total] |= mods[i].m2; in main()
139 total += s; in main()
144 if (mods[i].offset < total) in main()
/freebsd/tools/tools/mwl/mwlstats/
H A Dmwlstats.c93 { 8, "input", "input", "total frames received" },
103 { 8, "output", "output", "total frames transmit" },
248 struct mwl_stats total; member
280 mwl_collect(wf, &wf->total); in mwl_collect_tot()
288 wf->total = wf->cur; in mwl_update_tot()
307 snprintf(b, bs, "%u", wf->cur.mst_##x - wf->total.mst_##x); return 1 in mwl_get_curstat()
309 snprintf(b, bs, "%u", wf->cur.hw_stats.x - wf->total.hw_stats.x); return 1 in mwl_get_curstat()
311 snprintf(b, bs, "%u", wf->cur.mst_ant_rx[x] - wf->total.mst_ant_rx[x]); return 1 in mwl_get_curstat()
313 snprintf(b, bs, "%u", wf->cur.mst_ant_tx[x] - wf->total.mst_ant_tx[x]); return 1 in mwl_get_curstat()
318 (wf->cur.mst_rx_packets - wf->total in mwl_get_curstat()
[all...]
/freebsd/contrib/bsddialog/examples_utility/
H A Dgauge.sh13 total=`echo $characters | awk '{print split($0, a)}'`
19 echo "$(expr $(expr $i "*" 100) "/" $total)"
20 echo "[$i/$total] Char: $c"
22 if [ $i -eq $total ]
28 done | ./bsddialog --title " gauge " --gauge "[0/$total] Starting..." 10 70
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_filter_uu.c49 int64_t total; member
467 ssize_t total; in uudecode_filter_read() local
481 total = 0; in uudecode_filter_read()
516 (uudecode->total > 0 || total > 0)) { in uudecode_filter_read()
528 if (total == 0 && ravail <= 0) { in uudecode_filter_read()
545 if (total == 0) { in uudecode_filter_read()
559 if (total + len >= UUENCODE_BID_MAX_READ) { in uudecode_filter_read()
604 if (total + len * 2 > OUT_BUFF_SIZE) in uudecode_filter_read()
633 *out++ = n >> 16; total++; in uudecode_filter_read()
640 *out++ = (n >> 8) & 0xFF; total++; in uudecode_filter_read()
[all …]
/freebsd/sys/crypto/aesni/
H A Daesni_ccm.c197 size_t copy_amt, total = 0; in AES_CCM_encrypt() local
232 while (total < nbytes) { in AES_CCM_encrypt()
237 copy_amt = MIN(nbytes - total, sizeof(staging_block)); in AES_CCM_encrypt()
238 bcopy(in+total, &staging_block, copy_amt); in AES_CCM_encrypt()
253 bcopy(&staging_block, out+total, copy_amt); in AES_CCM_encrypt()
254 total += copy_amt; in AES_CCM_encrypt()
295 size_t total = 0; in decrypt_loop() local
307 while (total < nbytes) { in decrypt_loop()
308 size_t copy_amt = MIN(nbytes - total, sizeof(staging_block)); in decrypt_loop()
313 bcopy(in+total, &staging_block, copy_amt); in decrypt_loop()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_signd.c65 size_t total = 0; in write_all() local
68 if (n <= 0) return total; in write_all()
71 total += n; in write_all()
73 return total; in write_all()
82 size_t total = 0; in read_all() local
85 if (n <= 0) return total; in read_all()
88 total += n; in read_all()
90 return total; in read_all()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkfifo.h41 size_t total; \
60 ((_kf)->count == (_kf)->total) ? true : false; \
74 if ((_kf)->last > (_kf)->total) \
92 if ((_kf)->first > (_kf)->total) \
108 (_kf)->total = (_s); \
119 (_kf)->total = (_kf)->count = (_kf)->first = (_kf)->last = 0; \
/freebsd/crypto/openssl/crypto/lhash/
H A Dlh_stats.c99 unsigned long total = 0, n_used = 0; in OPENSSL_LH_node_usage_stats_bio() local
106 total += num; in OPENSSL_LH_node_usage_stats_bio()
110 BIO_printf(out, "%lu items\n", total); in OPENSSL_LH_node_usage_stats_bio()
114 (int)(total / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio()
115 (int)((total % lh->num_nodes) * 100 / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio()
116 (int)(total / n_used), (int)((total % n_used) * 100 / n_used)); in OPENSSL_LH_node_usage_stats_bio()
/freebsd/tools/tools/ath/athstats/
H A Dathstats.c461 struct _athstats total; member
527 ath_collect(wf, &wf->total); in ath_collect_tot()
535 wf->total = wf->cur; in ath_update_tot()
554 snprintf(b, bs, "%u", wf->cur.ath.ast_##x - wf->total.ath.ast_##x); return 1 in ath_get_curstat()
556 snprintf(b, bs, "%u", wf->cur.ath.ast_rx_phy[x] - wf->total.ath.ast_rx_phy[x]); return 1 in ath_get_curstat()
560 snprintf(b, bs, "%u", wf->cur.ani_stats.ast_ani_##x - wf->total.ani_stats.ast_ani_##x); return 1 in ath_get_curstat()
562 …snprintf(b, bs, "%u", wf->cur.ani_stats.ast_mibstats.x - wf->total.ani_stats.ast_mibstats.x); retu… in ath_get_curstat()
564 snprintf(b, bs, "%u", wf->cur.ath.ast_ant_tx[x] - wf->total.ath.ast_ant_tx[x]); return 1 in ath_get_curstat()
566 snprintf(b, bs, "%u", wf->cur.ath.ast_ant_rx[x] - wf->total.ath.ast_ant_rx[x]); return 1 in ath_get_curstat()
572 ((wf->cur.ath.ast_rx_packets - wf->total.ath.ast_rx_packets) - in ath_get_curstat()
[all …]
/freebsd/tools/tools/vt/mkkfont/
H A Dmkkfont.c42 unsigned int gbytes, glyph_count, j, k, total; in print_glyphs()
49 total = glyph_count * gbytes; in print_glyphs()
50 gbuf = malloc(total); in print_glyphs()
52 if (fread(gbuf, total, 1, stdin) != 1) { in print_glyphs()
57 for (j = 0; j < total; j += 12) { in print_glyphs()
58 for (k = 0; k < 12 && k < total - j; k++) { in print_glyphs()
43 unsigned int gbytes, glyph_count, j, k, total; print_glyphs() local
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c131 { unsigned total = 0; in FSE_buildCTable_wksp() local
144 symbolTT[s].deltaFindState = total - 1; in FSE_buildCTable_wksp()
145 total ++; in FSE_buildCTable_wksp()
152 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
153 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
348 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument
356 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2()
357 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2()
367 total -= count[s]; in FSE_normalizeM2()
373 total -= count[s]; in FSE_normalizeM2()
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c175 { unsigned total = 0; in FSE_buildCTable_wksp() local
188 assert(total <= INT_MAX); in FSE_buildCTable_wksp()
189 symbolTT[s].deltaFindState = (int)(total - 1); in FSE_buildCTable_wksp()
190 total ++; in FSE_buildCTable_wksp()
197 symbolTT[s].deltaFindState = (int)(total - (unsigned)normalizedCounter[s]); in FSE_buildCTable_wksp()
198 total += (unsigned)normalizedCounter[s]; in FSE_buildCTable_wksp()
387 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument
395 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2()
396 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2()
406 total -= count[s]; in FSE_normalizeM2()
[all …]
/freebsd/usr.bin/cksum/
H A Dsum1.c44 off_t total; in csum1() local
52 lcrc = total = 0; in csum1()
54 for (total += nr, p = buf; nr--; ++p) { in csum1()
63 *clen = total; in csum1()
H A Dsum2.c44 off_t total; in csum2() local
55 lcrc = total = 0; in csum2()
57 for (total += nr, p = buf; nr--; ++p) in csum2()
66 *clen = total; in csum2()
/freebsd/contrib/llvm-project/lld/Common/
H A DTimer.cpp31 Timer::Timer(llvm::StringRef name) : total(0), name(std::string(name)) {} in Timer()
33 : total(0), name(std::string(name)) { in Timer()
43 if (child->total > 0) in print()
53 std::chrono::nanoseconds(total)) in millis()
69 if (child->total > 0) in print()
/freebsd/contrib/netbsd-tests/net/if/
H A Dt_ifconf.sh51 atf_check -s exit:0 -o match:'^2$' "$ifconf" total
56 atf_check -s exit:0 -o match:'^3$' "$ifconf" total
61 atf_check -s exit:0 -o match:'^4$' "$ifconf" total
67 atf_check -s exit:0 -o match:'^5$' "$ifconf" total
79 atf_check -s exit:0 -o match:'^3$' "$ifconf" total
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/
H A Dmerge_summary.awk27 total=0;
56 total += arr[1] * 60 * 60;
57 total += arr[2] * 60;
58 total += arr[3]
89 print "Running Time:\t"strftime("%T", total, 1)
/freebsd/lib/libc/db/recno/
H A Drec_search.c66 recno_t total; in __rec_search() local
70 for (pg = P_ROOT, total = 0;;) { in __rec_search()
75 t->bt_cur.index = recno - total; in __rec_search()
80 if (++idx == top || total + r->nrecs > recno) in __rec_search()
82 total += r->nrecs; in __rec_search()
/freebsd/sys/contrib/device-tree/Bindings/media/i2c/
H A Dtda1997x.txt6 - RGB 8bit per color (24 bits total): R[11:4] B[11:4] G[11:4]
7 - YUV444 8bit per color (24 bits total): Y[11:4] Cr[11:4] Cb[11:4]
8 - YUV422 semi-planar 8bit per component (16 bits total): Y[11:4] CbCr[11:4]
9 - YUV422 semi-planar 10bit per component (20 bits total): Y[11:2] CbCr[11:2]
10 - YUV422 semi-planar 12bit per component (24 bits total): - Y[11:0] CbCr[11:0]
11 - YUV422 BT656 8bit per component (8 bits total): YCbCr[11:4] (2-cycles)
12 - YUV422 BT656 10bit per component (10 bits total): YCbCr[11:2] (2-cycles)
13 - YUV422 BT656 12bit per component (12 bits total): YCbCr[11:0] (2-cycles)
16 - RGB 12bit per color (36 bits total): R[11:0] B[11:0] G[11:0]
17 - YUV444 12bit per color (36 bits total): Y[11:0] Cb[11:0] Cr[11:0]
[all …]

12345678910>>...25