| /src/contrib/unbound/daemon/ |
| H A D | stats.c | 442 void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a) in server_stats_add() argument 444 total->svr.num_queries += a->svr.num_queries; in server_stats_add() 445 total->svr.num_queries_ip_ratelimited += a->svr.num_queries_ip_ratelimited; in server_stats_add() 446 total->svr.num_queries_cookie_valid += a->svr.num_queries_cookie_valid; in server_stats_add() 447 total->svr.num_queries_cookie_client += a->svr.num_queries_cookie_client; in server_stats_add() 448 total->svr.num_queries_cookie_invalid += a->svr.num_queries_cookie_invalid; in server_stats_add() 449 total->svr.num_queries_discard_timeout += in server_stats_add() 451 total->svr.num_queries_wait_limit += a->svr.num_queries_wait_limit; in server_stats_add() 452 total->svr.num_dns_error_reports += a->svr.num_dns_error_reports; in server_stats_add() 453 total->svr.num_queries_missed_cache += a->svr.num_queries_missed_cache; in server_stats_add() [all …]
|
| /src/usr.sbin/virtual_oss/virtual_oss/ |
| H A D | ring.c | 150 vring_write_linear(struct virtual_ring *pvr, const uint8_t *src, size_t total) in vring_write_linear() argument 156 while (total != 0) { in vring_write_linear() 160 if (buf_len > total) in vring_write_linear() 161 buf_len = total; in vring_write_linear() 166 total -= buf_len; in vring_write_linear() 172 vring_read_linear(struct virtual_ring *pvr, uint8_t *dst, size_t total) in vring_read_linear() argument 178 if (total > vring_total_read_len(pvr)) in vring_read_linear() 181 while (total != 0) { in vring_read_linear() 185 if (buf_len > total) in vring_read_linear() 186 buf_len = total; in vring_read_linear() [all …]
|
| H A D | eq.c | 39 int64_t *src, size_t total) in vclient_tx_equalizer() argument 47 if (f_size == 0 || total == 0) in vclient_tx_equalizer() 51 total /= channels; in vclient_tx_equalizer() 61 if (delta > total) in vclient_tx_equalizer() 62 delta = total; in vclient_tx_equalizer() 76 total -= delta; in vclient_tx_equalizer() 97 if (total == 0) in vclient_tx_equalizer() 104 int64_t *src, size_t total) in vclient_rx_equalizer() argument 113 if (f_size == 0 || total == 0) in vclient_rx_equalizer() 117 total /= channels; in vclient_rx_equalizer() [all …]
|
| /src/sys/vm/ |
| H A D | vm_meter.c | 163 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 …]
|
| /src/usr.sbin/bhyve/ |
| H A D | iov.c | 86 size_t total = 0; in count_iov() local 90 assert(total <= SIZE_MAX - iov[i].iov_len); in count_iov() 91 total += iov[i].iov_len; in count_iov() 94 return (total); in count_iov() 100 size_t total = 0; in check_iov_len() local 104 assert(total <= SIZE_MAX - iov[i].iov_len); in check_iov_len() 105 total += iov[i].iov_len; in check_iov_len() 106 if (total >= len) in check_iov_len() 116 size_t ptr, total; in iov_to_buf() local 119 total = count_iov(iov, niov); in iov_to_buf() [all …]
|
| 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()
|
| /src/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()
|
| /src/sys/compat/linuxkpi/common/include/linux/ |
| H A D | kfifo.h | 42 (_kf).total = nitems((_kf).head); \ 50 size_t total; \ 59 size_t total; \ 78 ((_kf)->count == (_kf)->total) ? true : false; \ 92 if ((_kf)->last > (_kf)->total) \ 110 if ((_kf)->first > (_kf)->total) \ 126 (_kf)->total = (_s); \ 137 (_kf)->total = (_kf)->count = (_kf)->first = (_kf)->last = 0; \
|
| /src/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()
|
| /src/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() 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.mst_rx_packets))); in mwl_get_curstat() 322 wf->cur.mst_tx_packets - wf->total.mst_tx_packets)); in mwl_get_curstat() 413 snprintf(b, bs, "%u", wf->total.mst_##x); return 1 in mwl_get_totstat() [all …]
|
| /src/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
|
| /src/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_filter_uu.c | 49 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 …]
|
| /src/sys/contrib/openzfs/module/zstd/lib/compress/ |
| H A D | fse_compress.c | 177 { unsigned total = 0; in FSE_buildCTable_wksp() local 190 assert(total <= INT_MAX); in FSE_buildCTable_wksp() 191 symbolTT[s].deltaFindState = (int)(total - 1); in FSE_buildCTable_wksp() 192 total ++; in FSE_buildCTable_wksp() 199 symbolTT[s].deltaFindState = (int)(total - (unsigned)normalizedCounter[s]); in FSE_buildCTable_wksp() 200 total += (unsigned)normalizedCounter[s]; in FSE_buildCTable_wksp() 380 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument 388 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2() 389 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2() 399 total -= count[s]; in FSE_normalizeM2() [all …]
|
| /src/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() 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 …]
|
| /src/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()
|
| /src/crypto/openssl/crypto/lhash/ |
| H A D | lh_stats.c | 108 unsigned long total = 0, n_used = 0; in OPENSSL_LH_node_usage_stats_bio() local 115 total += num; in OPENSSL_LH_node_usage_stats_bio() 119 BIO_printf(out, "%lu items\n", total); in OPENSSL_LH_node_usage_stats_bio() 123 (int)(total / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio() 124 (int)((total % lh->num_nodes) * 100 / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio() 125 (int)(total / n_used), (int)((total % n_used) * 100 / n_used)); in OPENSSL_LH_node_usage_stats_bio()
|
| /src/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() 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 …]
|
| /src/tools/tools/vt/mkkfont/ |
| H A D | mkkfont.c | 42 unsigned int gbytes, glyph_count, j, k, total; in print_glyphs() local 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()
|
| /src/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() 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 …]
|
| /src/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()
|
| /src/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()
|
| /src/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
|
| /src/sys/contrib/openzfs/.github/workflows/scripts/ |
| H A D | merge_summary.awk | 27 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)
|