/freebsd/contrib/unbound/daemon/ |
H A D | stats.c | 464 total->svr.qtcp += a->svr.qtcp; in server_stats_add() 467 total->svr.qtls += a->svr.qtls; in server_stats_add() 469 total->svr.qhttps += a->svr.qhttps; in server_stats_add() 470 total->svr.qipv6 += a->svr.qipv6; in server_stats_add() 471 total->svr.qbit_QR += a->svr.qbit_QR; in server_stats_add() 472 total->svr.qbit_AA += a->svr.qbit_AA; in server_stats_add() 473 total->svr.qbit_TC += a->svr.qbit_TC; in server_stats_add() 474 total->svr.qbit_RD += a->svr.qbit_RD; in server_stats_add() 475 total->svr.qbit_RA += a->svr.qbit_RA; in server_stats_add() 476 total->svr.qbit_Z += a->svr.qbit_Z; in server_stats_add() [all …]
|
/freebsd/sys/vm/ |
H A D | vm_meter.c | 162 struct vmtotal total; in vmtotal() local 177 bzero(&total, sizeof(total)); in vmtotal() 193 total.t_sw++; in vmtotal() 196 total.t_dw++; in vmtotal() 198 total.t_sl++; in vmtotal() 202 total.t_sw++; in vmtotal() 206 total.t_rq++; in vmtotal() 273 total11.t_rq = total.t_rq; in vmtotal() 274 total11.t_dw = total.t_dw; in vmtotal() 275 total11.t_pw = total.t_pw; in vmtotal() [all …]
|
/freebsd/tests/sys/kern/pipe/ |
H A D | pipe_reverse_test.c | 50 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 D | pipe_wraparound_test.c | 48 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 D | audio.c | 227 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 D | iov.c | 72 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 D | modpipe.c | 86 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/contrib/bsddialog/examples_utility/ |
H A D | gauge.sh | 13 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/tools/tools/mwl/mwlstats/ |
H A D | mwlstats.c | 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() 413 snprintf(b, bs, "%u", wf->total.mst_##x); return 1 in mwl_get_totstat() 429 setrate(b, bs, wf->total.mst_tx_rate); in mwl_get_totstat() 486 snprintf(b, bs, "%d", wf->total.mst_rx_rssi); in mwl_get_totstat() 497 snprintf(b, bs, "%d", wf->total.mst_rx_noise); in mwl_get_totstat() 501 wf->total.mst_rx_rssi + wf->total.mst_rx_noise); in mwl_get_totstat() 536 if (wf->total.mst_ant_rx[i] || wf->total.mst_ant_tx[i]) in mwl_print_verbose() 538 wf->total.mst_ant_tx[i], in mwl_print_verbose() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_filter_uu.c | 47 int64_t total; member 465 ssize_t total; in uudecode_filter_read() local 479 total = 0; in uudecode_filter_read() 508 (uudecode->total > 0 || total > 0)) { in uudecode_filter_read() 537 if (total == 0) { in uudecode_filter_read() 625 *out++ = n >> 16; total++; in uudecode_filter_read() 639 *out++ = n & 0xFF; total++; in uudecode_filter_read() 676 *out++ = n >> 16; total++; in uudecode_filter_read() 694 *out++ = n & 0xFF; total++; in uudecode_filter_read() 713 uudecode->total += total; in uudecode_filter_read() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_signd.c | 65 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/crypto/aesni/ |
H A D | aesni_ccm.c | 197 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() 313 bcopy(in+total, &staging_block, copy_amt); in decrypt_loop() 337 bcopy(&staging_block, out+total, copy_amt); in decrypt_loop() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | kfifo.h | 41 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 D | lh_stats.c | 99 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/vt/mkkfont/ |
H A D | mkkfont.c | 43 unsigned int gbytes, glyph_count, j, k, total; in print_glyphs() local 50 total = glyph_count * gbytes; in print_glyphs() 51 gbuf = malloc(total); in print_glyphs() 53 if (fread(gbuf, total, 1, stdin) != 1) { in print_glyphs() 58 for (j = 0; j < total; j += 12) { in print_glyphs() 59 for (k = 0; k < 12 && k < total - j; k++) { in print_glyphs()
|
/freebsd/tools/tools/ath/athstats/ |
H A D | athstats.c | 461 struct _athstats total; member 527 ath_collect(wf, &wf->total); in ath_collect_tot() 535 wf->total = wf->cur; in ath_update_tot() 826 (unsigned long) wf->total.ath.ast_rx_mgt); in ath_get_totstat() 927 wf->total.ath.ast_tdma_tsfadjm, in ath_get_totstat() 928 wf->total.ath.ast_tdma_tsfadjp); in ath_get_totstat() 1008 wf->total.ath.ast_tx_rssi + wf->total.ath.ast_rx_noise); in ath_get_totstat() 1012 wf->total.ath.ast_rx_rssi + wf->total.ath.ast_rx_noise); in ath_get_totstat() 1083 if (wf->total.ath.ast_ant_rx[i] || wf->total.ath.ast_ant_tx[i]) in ath_print_verbose() 1085 wf->total.ath.ast_ant_tx[i], in ath_print_verbose() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | fse_compress.c | 131 { unsigned total = 0; in FSE_buildCTable_wksp() local 144 symbolTT[s].deltaFindState = total - 1; in FSE_buildCTable_wksp() 145 total ++; in FSE_buildCTable_wksp() 153 total += normalizedCounter[s]; in FSE_buildCTable_wksp() 356 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2() 367 total -= count[s]; in FSE_normalizeM2() 373 total -= count[s]; in FSE_normalizeM2() 384 if ((total / ToDistribute) > lowOne) { in FSE_normalizeM2() 391 total -= count[s]; in FSE_normalizeM2() 408 if (total == 0) { in FSE_normalizeM2() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | Progress.cpp | 22 std::optional<uint64_t> total, in Progress() argument 26 assert(total == std::nullopt || total > 0); in Progress() 27 if (total) in Progress() 28 m_total = *total; in Progress()
|
/freebsd/usr.bin/cksum/ |
H A D | sum1.c | 44 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 D | sum2.c | 44 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/sys/contrib/zstd/lib/compress/ |
H A D | fse_compress.c | 175 { unsigned total = 0; in FSE_buildCTable_wksp() local 188 assert(total <= INT_MAX); in FSE_buildCTable_wksp() 190 total ++; in FSE_buildCTable_wksp() 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() 412 total -= count[s]; in FSE_normalizeM2() 423 if ((total / ToDistribute) > lowOne) { in FSE_normalizeM2() 430 total -= count[s]; in FSE_normalizeM2() 447 if (total == 0) { in FSE_normalizeM2() [all …]
|
/freebsd/contrib/netbsd-tests/net/if/ |
H A D | t_ifconf.sh | 51 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/contrib/llvm-project/lld/Common/ |
H A D | Timer.cpp | 31 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/lib/libc/db/recno/ |
H A D | rec_search.c | 66 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/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/ |
H A D | tst.cputime.ksh | 35 uint64_t total; 53 total += vtimestamp - self->on; 63 /((total * 100) / (timestamp - start)) > thresh/ 66 \$\$1, ((total * 100) / (timestamp - start)));
|