bin/df/df.c
472
mwp->total += (mwp->total - 1) / 3;
bin/df/df.c
480
mwp->total = mwp->used = mwp->avail =
bin/df/df.c
484
mwp->total = imax(mwp->total, headerlen);
bin/df/df.c
493
mwp->total, header,
bin/df/df.c
528
mwp->total, fsbtoblk(sfsp->f_blocks,
bin/df/df.c
59
int total;
bin/df/df.c
593
mwp->total = imax(mwp->total, int64width(
crypto/krb5/src/lib/crypto/krb/crypto_int.h
634
size_t i, total = 0;
crypto/krb5/src/lib/crypto/krb/crypto_int.h
638
total += data[i].data.length;
crypto/krb5/src/lib/crypto/krb/crypto_int.h
640
return total;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
72
recno_t total;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
76
for (pg = P_ROOT, total = 0;;) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
81
t->bt_cur.index = recno - total;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
86
if (++idx == top || total + r->nrecs > recno)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
88
total += r->nrecs;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
145
#define TRACE_PKINIT_CERT_NUM_MATCHING(c, total, nummatch) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
147
total, nummatch)
crypto/openssh/misc.c
619
int secs, total = 0, multiplier;
crypto/openssh/misc.c
670
if (total > INT_MAX - secs)
crypto/openssh/misc.c
672
total += secs;
crypto/openssh/misc.c
673
if (total < 0)
crypto/openssh/misc.c
678
return total;
crypto/openssh/regress/modpipe.c
106
for (total = 0;;) {
crypto/openssh/regress/modpipe.c
116
if (mods[i].offset < total ||
crypto/openssh/regress/modpipe.c
117
mods[i].offset >= total + s)
crypto/openssh/regress/modpipe.c
121
buf[mods[i].offset - total] ^= mods[i].m1;
crypto/openssh/regress/modpipe.c
124
buf[mods[i].offset - total] &= mods[i].m1;
crypto/openssh/regress/modpipe.c
125
buf[mods[i].offset - total] |= mods[i].m2;
crypto/openssh/regress/modpipe.c
139
total += s;
crypto/openssh/regress/modpipe.c
144
if (mods[i].offset < total)
crypto/openssh/regress/modpipe.c
86
size_t total;
crypto/openssh/sshsig.c
509
ssize_t n, total = 0;
crypto/openssh/sshsig.c
537
debug2_f("hashed %zu bytes", total);
crypto/openssh/sshsig.c
540
total += (size_t)n;
crypto/openssh/xmss_wots.c
103
output[out] = (total >> bits) & (params->w - 1);
crypto/openssh/xmss_wots.c
92
uint32_t total = 0;
crypto/openssh/xmss_wots.c
98
total = input[in];
crypto/openssl/apps/ca.c
1013
total++;
crypto/openssl/apps/ca.c
1033
total++;
crypto/openssl/apps/ca.c
1065
total_done, total);
crypto/openssl/apps/ca.c
343
int create_ser = 0, free_passin = 0, total = 0, total_done = 0;
crypto/openssl/apps/ca.c
972
total++;
crypto/openssl/apps/ca.c
992
total++;
crypto/openssl/crypto/encode_decode/decoder_pkey.c
223
int total; /* number of matching results */
crypto/openssl/crypto/encode_decode/decoder_pkey.c
309
++data->total;
crypto/openssl/crypto/encode_decode/decoder_pkey.c
533
(void *)ctx, collect_data.total);
crypto/openssl/crypto/evp/encode.c
387
size_t total = 0;
crypto/openssl/crypto/evp/encode.c
406
total = j;
crypto/openssl/crypto/evp/encode.c
409
total++;
crypto/openssl/crypto/evp/encode.c
413
while (inl >= ctx->length && total <= INT_MAX) {
crypto/openssl/crypto/evp/encode.c
418
total += j;
crypto/openssl/crypto/evp/encode.c
421
total++;
crypto/openssl/crypto/evp/encode.c
425
if (total > INT_MAX) {
crypto/openssl/crypto/evp/encode.c
433
*outl = total;
crypto/openssl/crypto/lhash/lh_stats.c
108
unsigned long total = 0, n_used = 0;
crypto/openssl/crypto/lhash/lh_stats.c
115
total += num;
crypto/openssl/crypto/lhash/lh_stats.c
119
BIO_printf(out, "%lu items\n", total);
crypto/openssl/crypto/lhash/lh_stats.c
123
(int)(total / lh->num_nodes),
crypto/openssl/crypto/lhash/lh_stats.c
124
(int)((total % lh->num_nodes) * 100 / lh->num_nodes),
crypto/openssl/crypto/lhash/lh_stats.c
125
(int)(total / n_used), (int)((total % n_used) * 100 / n_used));
crypto/openssl/crypto/param_build.c
456
size_t p_blks, total, ss;
crypto/openssl/crypto/param_build.c
465
total = OSSL_PARAM_ALIGN_SIZE * (p_blks + bld->total_blocks);
crypto/openssl/crypto/param_build.c
475
params = OPENSSL_malloc(total);
crypto/openssl/crypto/slh_dsa/slh_dsa.c
333
uint64_t total = 0;
crypto/openssl/crypto/slh_dsa/slh_dsa.c
336
total = (total << 8) + *in++;
crypto/openssl/crypto/slh_dsa/slh_dsa.c
337
return total;
crypto/openssl/crypto/slh_dsa/slh_fors.c
310
uint32_t total = 0;
crypto/openssl/crypto/slh_dsa/slh_fors.c
315
total <<= 8;
crypto/openssl/crypto/slh_dsa/slh_fors.c
316
total += *in++;
crypto/openssl/crypto/slh_dsa/slh_fors.c
320
*out++ = (total >> bits) & mask;
crypto/openssl/crypto/x509/v3_utl.c
1239
int total;
crypto/openssl/crypto/x509/v3_utl.c
1250
v6stat.total = 0;
crypto/openssl/crypto/x509/v3_utl.c
1265
if (v6stat.total != 16)
crypto/openssl/crypto/x509/v3_utl.c
1269
if (v6stat.total == 16)
crypto/openssl/crypto/x509/v3_utl.c
1276
if (v6stat.total > 0)
crypto/openssl/crypto/x509/v3_utl.c
1281
&& (v6stat.zero_pos != v6stat.total))
crypto/openssl/crypto/x509/v3_utl.c
1286
|| (v6stat.zero_pos == v6stat.total))
crypto/openssl/crypto/x509/v3_utl.c
1297
memset(v6 + v6stat.zero_pos, 0, 16 - v6stat.total);
crypto/openssl/crypto/x509/v3_utl.c
1299
if (v6stat.total != v6stat.zero_pos)
crypto/openssl/crypto/x509/v3_utl.c
1300
memcpy(v6 + v6stat.zero_pos + 16 - v6stat.total,
crypto/openssl/crypto/x509/v3_utl.c
1302
v6stat.total - v6stat.zero_pos);
crypto/openssl/crypto/x509/v3_utl.c
1315
if (s->total == 16)
crypto/openssl/crypto/x509/v3_utl.c
1320
s->zero_pos = s->total;
crypto/openssl/crypto/x509/v3_utl.c
1322
else if (s->zero_pos != s->total)
crypto/openssl/crypto/x509/v3_utl.c
1329
if (s->total > 12)
crypto/openssl/crypto/x509/v3_utl.c
1334
if (!ipv4_from_asc(s->tmp + s->total, elem))
crypto/openssl/crypto/x509/v3_utl.c
1336
s->total += 4;
crypto/openssl/crypto/x509/v3_utl.c
1338
if (!ipv6_hex(s->tmp + s->total, elem, len))
crypto/openssl/crypto/x509/v3_utl.c
1340
s->total += 2;
crypto/openssl/demos/guide/tls-server-block.c
234
size_t total = 0;
crypto/openssl/demos/guide/tls-server-block.c
268
total += nwritten;
crypto/openssl/demos/guide/tls-server-block.c
274
fprintf(stderr, "Client connection closed, %zu bytes sent\n", total);
crypto/openssl/ssl/quic/quic_ackm.c
653
uint64_t total = 0;
crypto/openssl/ssl/quic/quic_ackm.c
656
total += ackm->ack_eliciting_bytes_in_flight[i];
crypto/openssl/ssl/quic/quic_ackm.c
658
return total;
crypto/openssl/test/bio_dgram_test.c
503
size_t total = 0;
crypto/openssl/test/bio_dgram_test.c
551
for (i = 0; total < 1 * 1024 * 1024; ++i) {
crypto/openssl/test/bio_dgram_test.c
563
total += blen;
crypto/openssl/test/bio_dgram_test.c
566
if (idx <= 1 && !TEST_size_t_lt(total, 1 * 1024 * 1024))
crypto/openssl/test/bio_dgram_test.c
569
if (idx == 2 && !TEST_size_t_ge(total, 1 * 1024 * 1024))
crypto/openssl/test/evp_xof_test.c
318
size_t total = sizeof(shake256_largemsg_input);
crypto/openssl/test/evp_xof_test.c
324
for (stride = 1; stride < total; ++stride) {
crypto/openssl/test/evp_xof_test.c
326
for (i = 0; i < total; i += sz) {
crypto/openssl/test/evp_xof_test.c
328
if ((i + sz) > total)
crypto/openssl/test/evp_xof_test.c
329
sz = total - i;
lib/libc/db/recno/rec_search.c
66
recno_t total;
lib/libc/db/recno/rec_search.c
70
for (pg = P_ROOT, total = 0;;) {
lib/libc/db/recno/rec_search.c
75
t->bt_cur.index = recno - total;
lib/libc/db/recno/rec_search.c
80
if (++idx == top || total + r->nrecs > recno)
lib/libc/db/recno/rec_search.c
82
total += r->nrecs;
lib/libc/stdio/fread.c
112
count = (total - resid) / size;
lib/libc/stdio/fread.c
137
return ((total - resid) / size);
lib/libc/stdio/fread.c
67
size_t total;
lib/libc/stdio/fread.c
96
total = resid;
lib/libc/tests/secure/fortify_poll_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_poll_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_poll_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_poll_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_poll_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_poll_test.c
98
total += rv;
lib/libc/tests/secure/fortify_random_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_random_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_random_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_random_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_random_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_random_test.c
98
total += rv;
lib/libc/tests/secure/fortify_select_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_select_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_select_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_select_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_select_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_select_test.c
98
total += rv;
lib/libc/tests/secure/fortify_signal_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_signal_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_signal_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_signal_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_signal_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_signal_test.c
98
total += rv;
lib/libc/tests/secure/fortify_socket_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_socket_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_socket_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_socket_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_socket_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_socket_test.c
98
total += rv;
lib/libc/tests/secure/fortify_stdio_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_stdio_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_stdio_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_stdio_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_stdio_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_stdio_test.c
98
total += rv;
lib/libc/tests/secure/fortify_stdlib_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_stdlib_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_stdlib_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_stdlib_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_stdlib_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_stdlib_test.c
98
total += rv;
lib/libc/tests/secure/fortify_string_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_string_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_string_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_string_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_string_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_string_test.c
98
total += rv;
lib/libc/tests/secure/fortify_strings_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_strings_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_strings_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_strings_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_strings_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_strings_test.c
98
total += rv;
lib/libc/tests/secure/fortify_uio_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_uio_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_uio_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_uio_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_uio_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_uio_test.c
98
total += rv;
lib/libc/tests/secure/fortify_unistd_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_unistd_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_unistd_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_unistd_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_unistd_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_unistd_test.c
98
total += rv;
lib/libc/tests/secure/fortify_wchar_test.c
82
size_t total = 0;
lib/libc/tests/secure/fortify_wchar_test.c
90
while (total != sizeof(sockbuf)) {
lib/libc/tests/secure/fortify_wchar_test.c
91
rv = send(sock[1], &sockbuf[total], sizeof(sockbuf) - total, 0);
lib/libc/tests/secure/fortify_wchar_test.c
95
rv, sizeof(sockbuf) - total, sizeof(sockbuf), total);
lib/libc/tests/secure/fortify_wchar_test.c
96
ATF_REQUIRE_MSG(total + (size_t)rv <= sizeof(sockbuf),
lib/libc/tests/secure/fortify_wchar_test.c
98
total += rv;
lib/libc/tests/stdio/eintr_test.c
111
for (total = 0;;) {
lib/libc/tests/stdio/eintr_test.c
122
total++;
lib/libc/tests/stdio/eintr_test.c
130
ATF_REQUIRE_MSG(total == total0,
lib/libc/tests/stdio/eintr_test.c
132
total, total0);
lib/libc/tests/stdio/eintr_test.c
60
int i, s[2], total0, total;
lib/libfetch/common.c
1447
ssize_t wlen, total;
lib/libfetch/common.c
1458
total = 0;
lib/libfetch/common.c
1501
total += wlen;
lib/libfetch/common.c
1512
return (total);
lib/libfetch/http.c
141
size_t total;
lib/libfetch/http.c
175
io->total += io->chunksize;
lib/libfetch/http.c
181
(unsigned long)io->total);
lib/libopenbsd/ohash.c
114
h->total -= h->deleted;
lib/libopenbsd/ohash.c
131
if (h->deleted >= MINDELETED && 4 * h->deleted > h->total)
lib/libopenbsd/ohash.c
157
if (++h->total * 4 > h->size * 3)
lib/libopenbsd/ohash.c
166
return h->total - h->deleted;
lib/libopenbsd/ohash.c
203
h->total = h->deleted = 0;
lib/libopenbsd/ohash.c
78
if (4 * h->deleted < h->total) {
lib/libopenbsd/ohash.c
83
} else if (3 * h->deleted > 2 * h->total)
lib/libopenbsd/ohash.h
44
unsigned int total;
sbin/camcontrol/progress.c
65
progress_init(progress_t *prog, const char *prefix, uint64_t total)
sbin/camcontrol/progress.c
71
prog->size = total;
sbin/ifconfig/af_inet6.c
602
sec2str(time_t total)
sbin/ifconfig/af_inet6.c
610
days = total / 3600 / 24;
sbin/ifconfig/af_inet6.c
611
hours = (total / 3600) % 24;
sbin/ifconfig/af_inet6.c
612
mins = (total / 60) % 60;
sbin/ifconfig/af_inet6.c
613
secs = total % 60;
sbin/ifconfig/af_inet6.c
629
sprintf(result, "%lu", (unsigned long)total);
sbin/md5/md5.c
816
struct timeval total;
sbin/md5/md5.c
841
timersub(&after.ru_utime, &before.ru_utime, &total);
sbin/md5/md5.c
842
seconds = total.tv_sec + (float) total.tv_usec / 1000000;
sbin/swapon/swapon.c
816
long long total = 0;
sbin/swapon/swapon.c
871
total += tmp_total;
sbin/swapon/swapon.c
887
sizetobuf(buf, sizeof(buf), hflag, total, hlen, blocksize);
share/examples/perfmon/perfmon.c
151
total = 0;
share/examples/perfmon/perfmon.c
154
total += buf[i];
share/examples/perfmon/perfmon.c
156
printf("total: %f\nmean: %f\n", total, total / loops);
share/examples/perfmon/perfmon.c
58
double total;
stand/common/bcache.c
398
size_t csize, isize, total;
stand/common/bcache.c
421
total = 0;
stand/common/bcache.c
431
ret = read_strategy(devdata, rw, blk, csize, buf+total, &isize);
stand/common/bcache.c
438
if (total != 0)
stand/common/bcache.c
443
total += isize;
stand/common/bcache.c
449
*rsize = total;
stand/fdt/fdt_loader_cmd.c
1855
int i, total;
stand/fdt/fdt_loader_cmd.c
1859
total = fdt_num_mem_rsv(fdtp);
stand/fdt/fdt_loader_cmd.c
1860
if (total > 0) {
stand/fdt/fdt_loader_cmd.c
1863
for (i = 0; i < total; i++) {
stand/i386/libi386/biosdisk.c
556
uint64_t total;
stand/i386/libi386/biosdisk.c
590
total = params->sectors;
stand/i386/libi386/biosdisk.c
592
total = (uint64_t)params->cylinders *
stand/i386/libi386/biosdisk.c
595
bd->bd_sectors = total;
sys/amd64/amd64/mp_machdep.c
736
uint64_t cnt, total;
sys/amd64/amd64/mp_machdep.c
740
total = atop(addr2 - addr1);
sys/amd64/amd64/mp_machdep.c
741
for (va = addr1; total > 0;) {
sys/amd64/amd64/mp_machdep.c
742
if ((va & PDRMASK) != 0 || total < NPDEPG) {
sys/amd64/amd64/mp_machdep.c
744
if (cnt > total)
sys/amd64/amd64/mp_machdep.c
745
cnt = total;
sys/amd64/amd64/mp_machdep.c
751
total -= cnt;
sys/amd64/amd64/mp_machdep.c
753
cnt = total / NPTEPG;
sys/amd64/amd64/mp_machdep.c
759
total -= cnt * NPTEPG;
sys/amd64/include/stack.h
13
#define GET_STACK_USAGE(total, used) do { \
sys/amd64/include/stack.h
15
(total) = td->td_kstack_pages * PAGE_SIZE; \
sys/arm/include/stack.h
69
#define GET_STACK_USAGE(total, used) do { \
sys/arm/include/stack.h
71
(total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
sys/arm/include/stack.h
72
(used) = td->td_kstack + (total) - (vm_offset_t)&td; \
sys/arm64/broadcom/genet/if_genet.c
1377
uint32_t status, prod_idx, total;
sys/arm64/broadcom/genet/if_genet.c
1386
total = (prod_idx - q->cons_idx) & GENET_RX_DMA_PROD_CONS_MASK;
sys/arm64/broadcom/genet/if_genet.c
1389
for (n = 0; n < total; n++) {
sys/arm64/broadcom/genet/if_genet.c
1485
uint32_t cons_idx, total;
sys/arm64/broadcom/genet/if_genet.c
1496
total = (cons_idx - q->cons_idx) & GENET_TX_DMA_PROD_CONS_MASK;
sys/arm64/broadcom/genet/if_genet.c
1499
for (i = q->next; q->queued > 0 && total > 0;
sys/arm64/broadcom/genet/if_genet.c
1500
i = TX_NEXT(i, q->nentries), total--) {
sys/arm64/include/stack.h
44
#define GET_STACK_USAGE(total, used) do { \
sys/arm64/include/stack.h
46
(total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
sys/arm64/include/stack.h
47
(used) = td->td_kstack + (total) - (vm_offset_t)&td; \
sys/cam/cam_iosched.c
1039
&ios->total, 0,
sys/cam/cam_iosched.c
1407
isc->write_stats.total++;
sys/cam/cam_iosched.c
1429
isc->trim_stats.total--; /* since we put it back, don't double count */
sys/cam/cam_iosched.c
1454
isc->trim_stats.total++;
sys/cam/cam_iosched.c
1633
isc->read_stats.total++;
sys/cam/cam_iosched.c
1637
isc->write_stats.total++;
sys/cam/cam_iosched.c
2096
db_printf("reads: %d\n", isc->read_stats.total);
sys/cam/cam_iosched.c
2104
db_printf("writes: %d\n", isc->write_stats.total);
sys/cam/cam_iosched.c
2112
db_printf("trims: %d\n", isc->trim_stats.total);
sys/cam/cam_iosched.c
263
int total; /* Total for all time -- wraps */
sys/cam/cam_iosched.c
724
if (lat < clp->lolat || isc->read_stats.total - clp->last_count < 10)
sys/cam/cam_iosched.c
730
clp->last_count = isc->read_stats.total;
sys/cam/cam_iosched.c
863
ios->total = 0;
sys/compat/linprocfs/linprocfs.c
784
uintmax_t total, used;
sys/compat/linprocfs/linprocfs.c
792
total = (uintmax_t)xsw.xsw_nblks * PAGE_SIZE / 1024;
sys/compat/linprocfs/linprocfs.c
800
devname, total, used);
sys/compat/linuxkpi/common/include/linux/kfifo.h
110
if ((_kf)->first > (_kf)->total) \
sys/compat/linuxkpi/common/include/linux/kfifo.h
126
(_kf)->total = (_s); \
sys/compat/linuxkpi/common/include/linux/kfifo.h
137
(_kf)->total = (_kf)->count = (_kf)->first = (_kf)->last = 0; \
sys/compat/linuxkpi/common/include/linux/kfifo.h
42
(_kf).total = nitems((_kf).head); \
sys/compat/linuxkpi/common/include/linux/kfifo.h
50
size_t total; \
sys/compat/linuxkpi/common/include/linux/kfifo.h
59
size_t total; \
sys/compat/linuxkpi/common/include/linux/kfifo.h
78
((_kf)->count == (_kf)->total) ? true : false; \
sys/compat/linuxkpi/common/include/linux/kfifo.h
92
if ((_kf)->last > (_kf)->total) \
sys/compat/linuxkpi/common/include/linux/scatterlist.h
636
size_t total = 0;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
670
total += len;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
674
return (total);
sys/compat/linuxkpi/common/src/linux_devres.c
55
size_t total;
sys/compat/linuxkpi/common/src/linux_devres.c
60
total = sizeof(*dr) + size;
sys/compat/linuxkpi/common/src/linux_devres.c
61
dr = kmalloc(total, gfp);
sys/crypto/aesni/aesni_ccm.c
197
size_t copy_amt, total = 0;
sys/crypto/aesni/aesni_ccm.c
232
while (total < nbytes) {
sys/crypto/aesni/aesni_ccm.c
237
copy_amt = MIN(nbytes - total, sizeof(staging_block));
sys/crypto/aesni/aesni_ccm.c
238
bcopy(in+total, &staging_block, copy_amt);
sys/crypto/aesni/aesni_ccm.c
253
bcopy(&staging_block, out+total, copy_amt);
sys/crypto/aesni/aesni_ccm.c
254
total += copy_amt;
sys/crypto/aesni/aesni_ccm.c
295
size_t total = 0;
sys/crypto/aesni/aesni_ccm.c
307
while (total < nbytes) {
sys/crypto/aesni/aesni_ccm.c
308
size_t copy_amt = MIN(nbytes - total, sizeof(staging_block));
sys/crypto/aesni/aesni_ccm.c
313
bcopy(in+total, &staging_block, copy_amt);
sys/crypto/aesni/aesni_ccm.c
337
bcopy(&staging_block, out+total, copy_amt);
sys/crypto/aesni/aesni_ccm.c
342
total += copy_amt;
sys/dev/bxe/bxe_elink.h
74
extern void elink_cb_download_progress(struct bxe_softc *sc, uint32_t cur, uint32_t total);
sys/dev/cxgbe/iw_cxgbe/device.c
129
rdev->stats.pd.total = T4_MAX_NUM_PD;
sys/dev/cxgbe/iw_cxgbe/device.c
130
rdev->stats.stag.total = sc->vres.stag.size;
sys/dev/cxgbe/iw_cxgbe/device.c
131
rdev->stats.pbl.total = sc->vres.pbl.size;
sys/dev/cxgbe/iw_cxgbe/device.c
132
rdev->stats.rqt.total = sc->vres.rq.size;
sys/dev/cxgbe/iw_cxgbe/device.c
133
rdev->stats.qid.total = sc->vres.qp.size;
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
123
u64 total;
sys/dev/cxgbe/t4_mp_ring.c
118
int n, pending, total;
sys/dev/cxgbe/t4_mp_ring.c
133
total = 0;
sys/dev/cxgbe/t4_mp_ring.c
165
total += n;
sys/dev/cxgbe/t4_mp_ring.c
176
MPASS(total >= budget);
sys/dev/cxgbe/t4_mp_ring.c
184
if (total >= budget) {
sys/dev/cxgbe/t4_sge.c
3192
u_int total, remaining; /* # of packets */
sys/dev/cxgbe/t4_sge.c
3224
total = 0;
sys/dev/cxgbe/t4_sge.c
3347
total++;
sys/dev/cxgbe/t4_sge.c
3394
return (total);
sys/dev/drm2/drm.h
368
int total; /**< Buffer size */
sys/dev/drm2/drmP.h
327
int total; /**< Buffer size */
sys/dev/drm2/drm_bufs.c
1065
int total;
sys/dev/drm2/drm_bufs.c
1086
total = PAGE_SIZE << page_order;
sys/dev/drm2/drm_bufs.c
1097
DRM_DEBUG("total: %d\n", total);
sys/dev/drm2/drm_bufs.c
1140
buf->total = alignment;
sys/dev/drm2/drm_bufs.c
1221
int total;
sys/dev/drm2/drm_bufs.c
1242
total = PAGE_SIZE << page_order;
sys/dev/drm2/drm_bufs.c
1253
DRM_DEBUG("total: %d\n", total);
sys/dev/drm2/drm_bufs.c
1296
buf->total = alignment;
sys/dev/drm2/drm_bufs.c
1656
if (copy_to_user(&request->list[i].total,
sys/dev/drm2/drm_bufs.c
1657
&dma->buflist[i]->total,
sys/dev/drm2/drm_bufs.c
1658
sizeof(request->list[0].total))) {
sys/dev/drm2/drm_bufs.c
695
int total;
sys/dev/drm2/drm_bufs.c
710
total = PAGE_SIZE << page_order;
sys/dev/drm2/drm_bufs.c
721
DRM_DEBUG("total: %d\n", total);
sys/dev/drm2/drm_bufs.c
730
(agp_offset + total * count <= agp_entry->bound + agp_entry->pages * PAGE_SIZE)) {
sys/dev/drm2/drm_bufs.c
777
buf->total = alignment;
sys/dev/drm2/drm_bufs.c
853
int total;
sys/dev/drm2/drm_bufs.c
888
total = PAGE_SIZE << page_order;
sys/dev/drm2/drm_bufs.c
974
offset + size <= total && entry->buf_count < count;
sys/dev/drm2/drm_bufs.c
978
buf->total = alignment;
sys/dev/drm2/drm_ioc32.c
381
int total; /**< Buffer size */
sys/dev/drm2/drm_ioc32.c
425
list32[i].total = list[i].total;
sys/dev/drm2/drm_mm.c
687
unsigned long total_used = 0, total_free = 0, total = 0;
sys/dev/drm2/drm_mm.c
715
total = total_free + total_used;
sys/dev/drm2/drm_mm.c
717
printk(KERN_DEBUG "%s total: %lu, used %lu free %lu\n", prefix, total,
sys/dev/drm2/ttm/ttm_page_alloc.c
434
int total = 0;
sys/dev/drm2/ttm/ttm_page_alloc.c
436
total += _manager->pools[i].npages;
sys/dev/drm2/ttm/ttm_page_alloc.c
438
return total;
sys/dev/drm2/ttm/ttm_page_alloc_dma.c
926
unsigned total = 0;
sys/dev/drm2/ttm/ttm_page_alloc_dma.c
930
total += p->pool->npages_free;
sys/dev/drm2/ttm/ttm_page_alloc_dma.c
932
return total;
sys/dev/hwpmc/hwpmc_logging.c
1238
int domain, ncpus, total;
sys/dev/hwpmc/hwpmc_logging.c
1275
total = ncpus * pmc_nlogbuffers_pcpu;
sys/dev/hwpmc/hwpmc_logging.c
1277
plb = malloc_domainset(sizeof(struct pmclog_buffer) * total,
sys/dev/hwpmc/hwpmc_logging.c
1280
for (; total > 0; total--, plb++) {
sys/dev/hyperv/vmbus/vmbus_br.c
368
uint32_t old_windex, windex, total;
sys/dev/hyperv/vmbus/vmbus_br.c
373
total = 0;
sys/dev/hyperv/vmbus/vmbus_br.c
375
total += iov[i].iov_len;
sys/dev/hyperv/vmbus/vmbus_br.c
376
total += sizeof(save_windex);
sys/dev/hyperv/vmbus/vmbus_br.c
386
if (vmbus_txbr_avail(tbr) <= total) {
sys/dev/hyperv/vmbus/vmbus_br.c
447
uint32_t old_windex, windex, total;
sys/dev/hyperv/vmbus/vmbus_br.c
451
total = 0;
sys/dev/hyperv/vmbus/vmbus_br.c
453
total += iov[i].iov_len;
sys/dev/hyperv/vmbus/vmbus_br.c
454
total += sizeof(save_windex);
sys/dev/hyperv/vmbus/vmbus_br.c
465
if (vmbus_txbr_avail(tbr) <= total) {
sys/dev/ipw/if_ipw.c
2575
uint32_t total;
sys/dev/ipw/if_ipw.c
2583
total = count * size;
sys/dev/ipw/if_ipw.c
2585
if (total > *len) {
sys/dev/ipw/if_ipw.c
2586
*len = total;
sys/dev/ipw/if_ipw.c
2590
*len = total;
sys/dev/ipw/if_ipw.c
2591
ipw_read_mem_1(sc, addr, buf, total);
sys/dev/irdma/irdma_pble.c
380
u32 lf4k, lflast, total, i;
sys/dev/irdma/irdma_pble.c
392
total = (lflast == 0) ? lf4k : lf4k + 1;
sys/dev/irdma/irdma_pble.c
393
lvl2->leaf_cnt = total;
sys/dev/irdma/irdma_pble.c
395
lvl2->leafmem.size = (sizeof(*leaf) * total);
sys/dev/irdma/irdma_pble.c
403
total << 3, &root->addr, &fpm_addr);
sys/dev/irdma/irdma_pble.c
411
root->cnt = total;
sys/dev/irdma/irdma_pble.c
413
for (i = 0; i < total; i++, leaf++) {
sys/dev/irdma/irdma_pble.c
414
pblcnt = (lflast && ((i + 1) == total)) ?
sys/dev/irdma/irdma_verbs.c
1799
u32 pg_size, total;
sys/dev/irdma/irdma_verbs.c
1813
total = req->sq_pages + req->rq_pages;
sys/dev/irdma/irdma_verbs.c
1815
qpmr->shadow = (dma_addr_t) arr[total];
sys/dev/irdma/irdma_verbs.c
2168
u32 total;
sys/dev/irdma/irdma_verbs.c
2177
total = req.sq_pages + req.rq_pages + IRDMA_SHADOW_PGCNT;
sys/dev/irdma/irdma_verbs.c
2178
if (total > iwmr->page_cnt)
sys/dev/irdma/irdma_verbs.c
2181
total = req.sq_pages + req.rq_pages;
sys/dev/irdma/irdma_verbs.c
2182
lvl = total > 2 ? PBLE_LEVEL_1 : PBLE_LEVEL_0;
sys/dev/irdma/irdma_verbs.c
2208
u32 total;
sys/dev/irdma/irdma_verbs.c
2212
total = req.cq_pages +
sys/dev/irdma/irdma_verbs.c
2214
if (total > iwmr->page_cnt)
sys/dev/iwm/if_iwm.c
3088
int nbant, total;
sys/dev/iwm/if_iwm.c
3090
int nbant __unused, total __unused;
sys/dev/iwm/if_iwm.c
3093
total = nbant = noise = 0;
sys/dev/iwm/if_iwm.c
3102
total += noise;
sys/dev/iwm/if_iwm.c
3108
__func__, nbant, total);
sys/dev/iwm/if_iwm.c
3111
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/iwn/if_iwn.c
4045
misses, le32toh(miss->total));
sys/dev/iwn/if_iwn.c
5911
int i, total, nbant, noise;
sys/dev/iwn/if_iwn.c
5913
total = nbant = 0;
sys/dev/iwn/if_iwn.c
5917
total += noise;
sys/dev/iwn/if_iwn.c
5921
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/iwn/if_iwnreg.h
1434
uint32_t total;
sys/dev/iwx/if_iwx.c
4262
int i, total, nbant, noise;
sys/dev/iwx/if_iwx.c
4264
total = nbant = noise = 0;
sys/dev/iwx/if_iwx.c
4268
total += noise;
sys/dev/iwx/if_iwx.c
4274
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/ixgbe/if_ix.c
1872
u32 missed_rx = 0, bprc, lxon, lxoff, total;
sys/dev/ixgbe/if_ix.c
1943
total = lxon + lxoff;
sys/dev/ixgbe/if_ix.c
1948
stats->gptc -= total;
sys/dev/ixgbe/if_ix.c
1949
stats->mptc -= total;
sys/dev/ixgbe/if_ix.c
1950
stats->ptc64 -= total;
sys/dev/ixgbe/if_ix.c
1951
stats->gotc -= total * ETHER_MIN_LEN;
sys/dev/ixl/i40e_adminq_cmd.h
782
__le16 total;
sys/dev/ixl/ixl_pf_main.c
3833
resp[i].total,
sys/dev/md/md.c
242
u_int total;
sys/dev/md/md.c
318
ip->total = NINDIR;
sys/dev/md/md.c
373
ip->total = NINDIR;
sys/dev/mlx4/mlx4_core/mlx4.h
740
int total;
sys/dev/mlx4/mlx4_core/mlx4.h
763
int total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
292
if (table->total == table->max) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
310
++table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
323
++dup_table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
423
--table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
433
--table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
606
if (table->total == table->max) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
708
++table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
721
++dup_table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
73
table->total = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
802
--table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
810
--dup_table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
87
table->total = 0;
sys/dev/mpt/mpt_raid.c
1429
uint64_t total;
sys/dev/mpt/mpt_raid.c
1497
total = MPT_U64_2_SCALAR(mpt_vol->sync_progress.TotalBlocks);
sys/dev/mpt/mpt_raid.c
1510
(uintmax_t)total);
sys/dev/ocs_fc/ocs_utils.c
1642
int32_t total = 0;
sys/dev/ocs_fc/ocs_utils.c
1645
total += n;
sys/dev/ocs_fc/ocs_utils.c
1647
return total;
sys/dev/ocs_fc/sli4.c
3703
uint32_t total;
sys/dev/ocs_fc/sli4.c
3754
total = sli4->config.extent[i].number * sli4->config.extent[i].size;
sys/dev/ocs_fc/sli4.c
3755
sli4->config.extent[i].use_map = ocs_bitmap_alloc(total);
sys/dev/ocs_fc/sli4.c
3761
sli4->config.extent[i].map_size = total;
sys/dev/pms/RefTisa/discovery/dm/dmdisc.c
6410
bit32 total = 0, port_total = 0;
sys/dev/pms/RefTisa/discovery/dm/dmdisc.c
6438
total++;
sys/dev/pms/RefTisa/discovery/dm/dmdisc.c
6449
DM_DBG3(("dmDumpAllMainDevice: total %d port_totaol %d\n", total, port_total));
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
301
bit32 count, total;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
324
for (total = x = 0; x < pCard->portCount; x++, pPortalData++)
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
338
total += count;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
342
if (total > pIoctlPayload->deviceLength)
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
344
total = pIoctlPayload->deviceLength;
sys/dev/qlnx/qlnxe/ecore_cxt.c
636
u32 curr_line, total, i, task_size, line;
sys/dev/qlnx/qlnxe/ecore_cxt.c
669
total = cdu_iids.pf_cids * CONN_CXT_SIZE(p_hwfn);
sys/dev/qlnx/qlnxe/ecore_cxt.c
672
total, CONN_CXT_SIZE(p_hwfn));
sys/dev/qlnx/qlnxe/ecore_cxt.c
682
total = cdu_iids.per_vf_cids * CONN_CXT_SIZE(p_hwfn);
sys/dev/qlnx/qlnxe/ecore_cxt.c
685
total, CONN_CXT_SIZE(p_hwfn));
sys/dev/qlnx/qlnxe/ecore_cxt.c
705
total = p_seg->count * p_mngr->task_type_size[p_seg->type];
sys/dev/qlnx/qlnxe/ecore_cxt.c
706
ecore_ilt_cli_blk_fill(p_cli, p_blk, curr_line, total,
sys/dev/qlnx/qlnxe/ecore_cxt.c
744
total = p_seg->count * p_mngr->task_type_size[p_seg->type];
sys/dev/qlnx/qlnxe/ecore_cxt.c
747
curr_line, total,
sys/dev/qlnx/qlnxe/ecore_cxt.c
763
total = p_seg->count * p_mngr->task_type_size[p_seg->type];
sys/dev/qlnx/qlnxe/ecore_cxt.c
767
curr_line, total,
sys/dev/qlnx/qlnxe/ecore_cxt.c
783
curr_line, total,
sys/dev/qlnx/qlnxe/ecore_cxt.c
810
total = ecore_qm_pf_mem_size(qm_iids.cids,
sys/dev/qlnx/qlnxe/ecore_cxt.c
818
p_hwfn->qm_info.num_pqs, p_hwfn->qm_info.num_vf_pqs, total);
sys/dev/qlnx/qlnxe/ecore_cxt.c
820
ecore_ilt_cli_blk_fill(p_cli, p_blk, curr_line, total * 0x1000,
sys/dev/qlnx/qlnxe/ecore_cxt.c
834
total = src_iids.pf_cids + src_iids.per_vf_cids * p_mngr->vf_count;
sys/dev/qlnx/qlnxe/ecore_cxt.c
835
if (total) {
sys/dev/qlnx/qlnxe/ecore_cxt.c
836
u32 local_max = OSAL_MAX_T(u32, total,
sys/dev/qlnx/qlnxe/ecore_cxt.c
839
total = OSAL_ROUNDUP_POW_OF_TWO(local_max);
sys/dev/qlnx/qlnxe/ecore_cxt.c
843
total * sizeof(struct src_ent),
sys/dev/qlnx/qlnxe/ecore_cxt.c
854
total = tm_iids.pf_cids + tm_iids.pf_tids_total;
sys/dev/qlnx/qlnxe/ecore_cxt.c
855
if (total) {
sys/dev/qlnx/qlnxe/ecore_cxt.c
858
total * TM_ELEM_SIZE,
sys/dev/qlnx/qlnxe/ecore_cxt.c
867
total = tm_iids.per_vf_cids + tm_iids.per_vf_tids;
sys/dev/qlnx/qlnxe/ecore_cxt.c
868
if (total) {
sys/dev/qlnx/qlnxe/ecore_cxt.c
871
total * TM_ELEM_SIZE,
sys/dev/qlnx/qlnxe/ecore_cxt.c
885
total = ecore_cxt_get_total_srq_count(p_hwfn);
sys/dev/qlnx/qlnxe/ecore_cxt.c
886
if (total) {
sys/dev/qlnx/qlnxe/ecore_cxt.c
890
total * SRQ_CXT_SIZE, SRQ_CXT_SIZE);
sys/dev/sfxge/common/efx_ev.c
390
unsigned int total;
sys/dev/sfxge/common/efx_ev.c
418
for (total = 0; total < batch; ++total) {
sys/dev/sfxge/common/efx_ev.c
419
EFSYS_MEM_READQ(eep->ee_esmp, offset, &(ev[total]));
sys/dev/sfxge/common/efx_ev.c
421
if (!EFX_EV_PRESENT(ev[total]))
sys/dev/sfxge/common/efx_ev.c
425
uint32_t, EFX_QWORD_FIELD(ev[total], EFX_DWORD_1),
sys/dev/sfxge/common/efx_ev.c
426
uint32_t, EFX_QWORD_FIELD(ev[total], EFX_DWORD_0));
sys/dev/sfxge/common/efx_ev.c
437
if (total == batch && total < EFSYS_OPT_EV_PREFETCH_PERIOD)
sys/dev/sfxge/common/efx_ev.c
442
for (index = 0; index < total; ++index) {
sys/dev/sfxge/common/efx_ev.c
448
if (total == batch &&
sys/dev/sfxge/common/efx_ev.c
449
index + EFSYS_OPT_EV_PREFETCH_PERIOD == total) {
sys/dev/sfxge/common/efx_ev.c
505
total = index + 1;
sys/dev/sfxge/common/efx_ev.c
513
EFSYS_ASSERT(total != batch);
sys/dev/sfxge/common/efx_ev.c
525
for (index = 0; index < total; ++index) {
sys/dev/sfxge/common/efx_ev.c
530
count += total;
sys/dev/sfxge/common/efx_ev.c
532
} while (total == batch);
sys/dev/smartpqi/smartpqi_defines.h
884
static inline uint64_t CALC_PERCENT_TOTAL(uint64_t val, uint64_t total)
sys/dev/smartpqi/smartpqi_defines.h
887
if (total)
sys/dev/smartpqi/smartpqi_defines.h
888
percent = (val * 100) / total;
sys/dev/sound/pci/hda/hdaa.c
270
int total, sub, assume, channels;
sys/dev/sound/pci/hda/hdaa.c
295
total = sub = assume = channels = 0;
sys/dev/sound/pci/hda/hdaa.c
355
total = matrixes[i].m.channels;
sys/dev/sound/pci/hda/hdaa.c
360
if (total == 0) {
sys/dev/sound/pci/hda/hdaa.c
362
total = ch->channels;
sys/dev/sound/pci/hda/hdaa.c
363
sub = (total == 6 || total == 8) ? 1 : 0;
sys/dev/sound/pci/hda/hdaa.c
369
assume ? "unknown, assuming " : "", total - sub, sub,
sys/dev/sound/pcm/buffer.c
324
b->total = 0;
sys/dev/sound/pcm/buffer.c
408
return b->total / b->blksz;
sys/dev/sound/pcm/buffer.c
454
b->total += count;
sys/dev/sound/pcm/buffer.h
46
volatile u_int64_t total, prev_total;
sys/dev/sound/pcm/channel.c
288
delta = bs->total - bs->prev_total;
sys/dev/sound/pcm/channel.c
304
c->bufsoft->prev_total = c->bufsoft->total;
sys/dev/sound/pcm/dsp.c
1358
a->bytes = bs->total;
sys/dev/sound/pcm/dsp.c
1375
a->bytes = bs->total;
sys/dev/sound/pcm/dsp.c
1662
oc->samples = bs->total / bs->align;
sys/dev/sound/usb/uaudio.c
2359
uint32_t total;
sys/dev/sound/usb/uaudio.c
2471
total = 0;
sys/dev/sound/usb/uaudio.c
2498
total += frame_len;
sys/dev/sound/usb/uaudio.c
2501
DPRINTFN(6, "transferring %d bytes\n", total);
sys/dev/sound/usb/uaudio.c
2506
while (total > 0) {
sys/dev/sound/usb/uaudio.c
2508
if (n > total)
sys/dev/sound/usb/uaudio.c
2509
n = total;
sys/dev/sound/usb/uaudio.c
2513
total -= n;
sys/dev/usb/wlan/if_uathreg.h
32
uint32_t total;
sys/dev/wpi/if_wpi.c
2247
__func__, misses, le32toh(miss->total), received,
sys/dev/wpi/if_wpireg.h
553
uint32_t total;
sys/i386/include/stack.h
13
#define GET_STACK_USAGE(total, used) do { \
sys/i386/include/stack.h
15
(total) = (vm_offset_t)get_pcb_td(td) - td->td_kstack; \
sys/kern/sched_ule.c
3068
int total;
sys/kern/sched_ule.c
3071
total = 0;
sys/kern/sched_ule.c
3073
total += atomic_load_int(&TDQ_CPU(i)->tdq_sysload);
sys/kern/sched_ule.c
3074
return (total);
sys/kern/sched_ule.c
725
int c, bload, l, load, p, total;
sys/kern/sched_ule.c
727
total = 0;
sys/kern/sched_ule.c
735
total += load;
sys/kern/sched_ule.c
754
return (total);
sys/kern/sched_ule.c
770
total += load - p;
sys/kern/sched_ule.c
798
return (total);
sys/kern/sched_ule.c
807
int c, bload, l, load, total;
sys/kern/sched_ule.c
809
total = 0;
sys/kern/sched_ule.c
817
total += load;
sys/kern/sched_ule.c
825
return (total);
sys/kern/sched_ule.c
835
total += load;
sys/kern/sched_ule.c
851
return (total);
sys/kern/subr_disk.c
158
head->total = 0;
sys/kern/subr_disk.c
175
head->total--;
sys/kern/subr_disk.c
194
head->total++;
sys/kern/subr_disk.c
203
head->total++;
sys/kern/subr_disk.c
297
head->total++;
sys/kern/subr_epoch.c
811
int i, npending, total;
sys/kern/subr_epoch.c
816
for (total = i = 0; i != MAX_EPOCHS; i++) {
sys/kern/subr_epoch.c
826
total += npending - record->n_pending;
sys/kern/subr_epoch.c
829
*DPCPU_PTR(epoch_cb_count) -= total;
sys/kern/subr_epoch.c
832
counter_u64_add(epoch_call_count, total);
sys/kern/uipc_mbuf.c
1865
ssize_t total;
sys/kern/uipc_mbuf.c
1876
total = MIN(uio->uio_resid, len);
sys/kern/uipc_mbuf.c
1878
total = uio->uio_resid;
sys/kern/uipc_mbuf.c
1889
if (__predict_false(total == 0)) {
sys/kern/uipc_mbuf.c
1901
while (total > 0) {
sys/kern/uipc_mbuf.c
1911
needed = length = MIN(maxseg, total);
sys/kern/uipc_mbuf.c
1928
total -= length;
sys/kern/uipc_mbuf.c
1997
u_int total;
sys/kern/uipc_mbuf.c
2007
total = length;
sys/kern/uipc_mbuf.c
2010
total = uio->uio_resid;
sys/kern/uipc_mbuf.c
2014
total = uio->uio_resid;
sys/kern/uipc_mbuf.c
2016
if (__predict_false(total + lspace == 0)) {
sys/kern/uipc_mbuf.c
2021
error = mc_get(mc, total + lspace, how, MT_DATA, flags);
sys/kern/uipc_mbuf.c
2030
mlen = min(M_TRAILINGSPACE(mb), total - mc->mc_len);
sys/kern/uipc_mbuf.c
2040
MPASS(mc->mc_len == total);
sys/kern/uipc_mbuf.c
2107
int error, length, total;
sys/kern/uipc_mbuf.c
2111
total = min(uio->uio_resid, len);
sys/kern/uipc_mbuf.c
2113
total = uio->uio_resid;
sys/kern/uipc_mbuf.c
2117
length = min(m->m_len, total - progress);
sys/kern/uipc_usrreq.c
4111
int i, total, unp_unreachable;
sys/kern/uipc_usrreq.c
4193
total = 0;
sys/kern/uipc_usrreq.c
4203
unref[total++] = f;
sys/kern/uipc_usrreq.c
4204
KASSERT(total <= unp_unreachable,
sys/kern/uipc_usrreq.c
4214
for (i = 0; i < total; i++) {
sys/kern/uipc_usrreq.c
4229
for (i = 0; i < total; i++)
sys/kern/uipc_usrreq.c
4231
unp_recycled += total;
sys/kern/vfs_bio.c
5553
long total;
sys/kern/vfs_bio.c
5576
total = 0;
sys/kern/vfs_bio.c
5578
total += bp->b_bufsize;
sys/kern/vfs_bio.c
5580
bd->bd_cleanq->bq_len, total);
sys/kern/vfs_bio.c
5581
total = 0;
sys/kern/vfs_bio.c
5583
total += bp->b_bufsize;
sys/kern/vfs_bio.c
5585
bd->bd_dirtyq.bq_len, total);
sys/kern/vfs_bio.c
5593
total = 0;
sys/kern/vfs_bio.c
5598
total += bp->b_bufsize;
sys/kern/vfs_bio.c
5601
db_printf("\tLocked buffers: %d space %ld\n", cnt, total);
sys/kern/vfs_bio.c
5603
total = 0;
sys/kern/vfs_bio.c
5608
total += bp->b_bufsize;
sys/kern/vfs_bio.c
5611
db_printf("\tTotal buffers: %d space %ld\n", cnt, total);
sys/kern/vfs_cache.c
1131
long poshits, neghits, miss, total;
sys/kern/vfs_cache.c
1137
total = poshits + neghits + miss;
sys/kern/vfs_cache.c
1140
if (total != 0)
sys/kern/vfs_cache.c
1141
pct = ((poshits + neghits) * 100) / total;
sys/net/altq/altq_hfsc.c
1591
sp->total = cl->cl_total;
sys/net/altq/altq_hfsc.c
1669
sp->total = cl->cl_total;
sys/net/altq/altq_hfsc.h
128
u_int64_t total; /* total work in bytes */
sys/net/altq/altq_hfsc.h
85
u_int64_t total; /* total work in bytes */
sys/net/mp_ring.c
106
total = 0;
sys/net/mp_ring.c
118
else if (total > 0) {
sys/net/mp_ring.c
126
total += n;
sys/net/mp_ring.c
133
if (cidx != pidx && pending < 64 && total < budget)
sys/net/mp_ring.c
138
ns.flags = state_to_flags(ns, total >= budget);
sys/net/mp_ring.c
147
MPASS(total > 0);
sys/net/mp_ring.c
170
int n, pending, total;
sys/net/mp_ring.c
180
total = 0;
sys/net/mp_ring.c
197
else if (total > 0) {
sys/net/mp_ring.c
205
total += n;
sys/net/mp_ring.c
212
if (cidx != pidx && pending < 64 && total < budget)
sys/net/mp_ring.c
219
ns.flags = state_to_flags(ns, total >= budget);
sys/net/mp_ring.c
230
MPASS(total > 0);
sys/net/mp_ring.c
96
int n, pending, total;
sys/net/route/nhgrp_ctl.c
150
uint64_t total = 0;
sys/net/route/nhgrp_ctl.c
158
total += wn[i].storage;
sys/net/route/nhgrp_ctl.c
165
*ptotal = total;
sys/net/route/nhgrp_ctl.c
167
if ((total % xmin) != 0)
sys/net/route/nhgrp_ctl.c
174
return ((uint32_t)(total / xmin));
sys/net/route/nhgrp_ctl.c
190
uint64_t total;
sys/net/route/nhgrp_ctl.c
192
v = calc_min_mpath_slots_fast(wn, num_items, &total);
sys/net/route/nhgrp_ctl.c
193
if (total == 0)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1295
int len, want, got, total;
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1300
total = usbd_xfer_frame_len(xfer, frame_no);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1303
while (total > 0) {
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1335
len = total;
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
1344
total -= len;
sys/netgraph/ng_base.c
387
int total; \
sys/netgraph/ng_base.c
390
for (total = 0, n = (m); n != NULL; n = n->m_next) { \
sys/netgraph/ng_base.c
391
total += n->m_len; \
sys/netgraph/ng_base.c
396
if ((m)->m_pkthdr.len != total) { \
sys/netgraph/ng_base.c
398
__func__, (m)->m_pkthdr.len, total); \
sys/netgraph/ng_ppp.c
2264
int t0, total, topSum, botSum;
sys/netgraph/ng_ppp.c
2323
for (total = i = 0; i < numFragments; i++) {
sys/netgraph/ng_ppp.c
2328
total += ((flowTime * priv->links[
sys/netgraph/ng_ppp.c
2332
if (total >= len)
sys/netgraph/ng_ppp.c
2347
for (total = i = 0; i < numFragments; i++) {
sys/netgraph/ng_ppp.c
2353
total += distrib[sortByLatency[i]];
sys/netgraph/ng_ppp.c
2357
if (total < len) {
sys/netgraph/ng_ppp.c
2372
distrib[sortByLatency[fast]] += len - total;
sys/netgraph/ng_ppp.c
2373
} else while (total > len) {
sys/netgraph/ng_ppp.c
2390
delta = total - len;
sys/netgraph/ng_ppp.c
2394
total -= delta;
sys/netgraph/ng_tty.c
350
size_t total = 0;
sys/netgraph/ng_tty.c
364
memcpy((char *)buf + total, mtod(m, char *), length);
sys/netgraph/ng_tty.c
368
total += length;
sys/netgraph/ng_tty.c
383
sc->outqlen -= total;
sys/netgraph/ng_tty.c
387
return (total);
sys/netgraph/ng_tty.c
410
size_t total = 0;
sys/netgraph/ng_tty.c
428
length = min(M_TRAILINGSPACE(mb), len - total);
sys/netgraph/ng_tty.c
430
memcpy(mtod(mb, char *), (const char *)buf + total, length);
sys/netgraph/ng_tty.c
432
total += length;
sys/netgraph/ng_tty.c
445
return (total);
sys/netpfil/ipfw/nat64/nat64lsn_control.c
697
uint32_t count, total;
sys/netpfil/ipfw/nat64/nat64lsn_control.c
747
stg->count = total = 0;
sys/netpfil/ipfw/nat64/nat64lsn_control.c
765
total += count;
sys/netpfil/ipfw/nat64/nat64lsn_control.c
802
return ((total > 0 || idx.index == LAST_IDX) ? 0: ret);
sys/netpfil/pf/pf_norm.c
1010
if (hdrlen - sizeof(struct ip6_hdr) + total > IPV6_MAXPACKET) {
sys/netpfil/pf/pf_norm.c
1011
DPFPRINTF(PF_DEBUG_MISC, "drop: too big: %d", total);
sys/netpfil/pf/pf_norm.c
576
uint16_t total;
sys/netpfil/pf/pf_norm.c
669
total = TAILQ_LAST(&frag->fr_queue, pf_fragq)->fe_off +
sys/netpfil/pf/pf_norm.c
673
if (frent->fe_off + frent->fe_len < total && !frent->fe_mff)
sys/netpfil/pf/pf_norm.c
678
if (frent->fe_off + frent->fe_len > total ||
sys/netpfil/pf/pf_norm.c
679
(frent->fe_off + frent->fe_len == total && frent->fe_mff))
sys/netpfil/pf/pf_norm.c
682
if (frent->fe_off + frent->fe_len == total && !frent->fe_mff)
sys/netpfil/pf/pf_norm.c
819
uint16_t total, hdrlen;
sys/netpfil/pf/pf_norm.c
851
total = TAILQ_LAST(&frag->fr_queue, pf_fragq)->fe_off +
sys/netpfil/pf/pf_norm.c
883
htons(hdrlen + total), 0);
sys/netpfil/pf/pf_norm.c
884
ip->ip_len = htons(hdrlen + total);
sys/netpfil/pf/pf_norm.c
889
if (hdrlen + total > IP_MAXPACKET) {
sys/netpfil/pf/pf_norm.c
890
DPFPRINTF(PF_DEBUG_MISC, "drop: too big: %d", total);
sys/netpfil/pf/pf_norm.c
916
uint16_t total, maxlen;
sys/netpfil/pf/pf_norm.c
961
total = TAILQ_LAST(&frag->fr_queue, pf_fragq)->fe_off +
sys/netpfil/pf/pf_norm.c
999
ip6->ip6_plen = htons(hdrlen - sizeof(struct ip6_hdr) + total);
sys/ofed/drivers/infiniband/core/ib_cq.c
52
int total = 0;
sys/ofed/drivers/infiniband/core/ib_cq.c
71
total += n;
sys/ofed/drivers/infiniband/core/ib_cq.c
72
if (total >= IB_CQ_POLL_BUDGET)
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c
116
out_len, &total);
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c
121
sizeof(u32) * total);
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c
125
ret = uverbs_copy_to(attrs, UVERBS_ATTR_INFO_TOTAL_HANDLES, &total,
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c
126
sizeof(total));
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c
60
u64 *total)
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c
89
*total = count;
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c
98
u64 total = 0;
sys/powerpc/include/stack.h
39
#define GET_STACK_USAGE(total, used) do { \
sys/powerpc/include/stack.h
41
(total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
sys/powerpc/include/stack.h
42
(used) = td->td_kstack + (total) - (vm_offset_t)&td; \
sys/powerpc/powerpc/minidump_machdep.c
203
DBG(total = dumptotal = 0;)
sys/powerpc/powerpc/minidump_machdep.c
300
dump_total("mem_chunks", dumpsize - total);
sys/powerpc/powerpc/minidump_machdep.c
334
total += sz;
sys/powerpc/powerpc/minidump_machdep.c
336
id, sz, total, dumptotal);
sys/powerpc/powerpc/minidump_machdep.c
53
static size_t total, dumptotal;
sys/riscv/include/stack.h
54
#define GET_STACK_USAGE(total, used) do { \
sys/riscv/include/stack.h
56
(total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
sys/riscv/include/stack.h
57
(used) = td->td_kstack + (total) - (vm_offset_t)&td; \
sys/sys/bio.h
148
int total;
sys/ufs/ffs/ffs_softdep.c
579
static SYSCTL_NODE(_debug_softdep, OID_AUTO, total,
sys/vm/swap_pager.c
2938
swap_pager_status(int *total, int *used)
sys/vm/swap_pager.c
2941
*total = swap_total;
sys/vm/swap_pager.h
86
void swap_pager_status(int *total, int *used);
sys/vm/uma_core.c
2261
u_int total;
sys/vm/uma_core.c
2276
total = kl->slabsize;
sys/vm/uma_core.c
2278
total += slabzone(kl->ipers)->uz_keg->uk_rsize;
sys/vm/uma_core.c
2280
kl->eff = UMA_FRAC_FIXPT(kl->ipers * rsize, total);
sys/vm/uma_core.c
4156
uint64_t old, new, total, max;
sys/vm/uma_core.c
4230
total = UZ_ITEMS_COUNT(old);
sys/vm/uma_core.c
4232
if (total >= max)
sys/vm/uma_core.c
4235
if (total + count > max) {
sys/vm/uma_core.c
4236
zone_free_limit(zone, total + count - max);
sys/vm/uma_core.c
4237
count = max - total;
sys/vm/uma_core.c
4238
} else if (total + count < max && UZ_ITEMS_SLEEPERS(old) != 0)
sys/vm/uma_core.c
5710
int avail, effpct, total;
sys/vm/uma_core.c
5712
total = keg->uk_ppera * PAGE_SIZE;
sys/vm/uma_core.c
5714
total += slabzone(keg->uk_ipers)->uz_keg->uk_rsize;
sys/vm/uma_core.c
5723
effpct = 100 * avail / total;
sys/vm/vm_meter.c
163
struct vmtotal total;
sys/vm/vm_meter.c
176
return (SYSCTL_OUT(req, NULL, sizeof(total)));
sys/vm/vm_meter.c
178
bzero(&total, sizeof(total));
sys/vm/vm_meter.c
195
total.t_dw++;
sys/vm/vm_meter.c
197
total.t_sl++;
sys/vm/vm_meter.c
201
total.t_sw++;
sys/vm/vm_meter.c
205
total.t_rq++;
sys/vm/vm_meter.c
248
total.t_vm += object->size;
sys/vm/vm_meter.c
249
total.t_rm += object->resident_page_count;
sys/vm/vm_meter.c
251
total.t_avm += object->size;
sys/vm/vm_meter.c
252
total.t_arm += object->resident_page_count;
sys/vm/vm_meter.c
256
total.t_vmshr += object->size;
sys/vm/vm_meter.c
257
total.t_rmshr += object->resident_page_count;
sys/vm/vm_meter.c
259
total.t_avmshr += object->size;
sys/vm/vm_meter.c
260
total.t_armshr += object->resident_page_count;
sys/vm/vm_meter.c
265
total.t_pw = vm_wait_count();
sys/vm/vm_meter.c
266
total.t_free = vm_free_count();
sys/vm/vm_meter.c
272
total11.t_rq = total.t_rq;
sys/vm/vm_meter.c
273
total11.t_dw = total.t_dw;
sys/vm/vm_meter.c
274
total11.t_pw = total.t_pw;
sys/vm/vm_meter.c
275
total11.t_sl = total.t_sl;
sys/vm/vm_meter.c
276
total11.t_sw = total.t_sw;
sys/vm/vm_meter.c
277
total11.t_vm = total.t_vm; /* truncate */
sys/vm/vm_meter.c
278
total11.t_avm = total.t_avm; /* truncate */
sys/vm/vm_meter.c
279
total11.t_rm = total.t_rm; /* truncate */
sys/vm/vm_meter.c
280
total11.t_arm = total.t_arm; /* truncate */
sys/vm/vm_meter.c
281
total11.t_vmshr = total.t_vmshr; /* truncate */
sys/vm/vm_meter.c
282
total11.t_avmshr = total.t_avmshr; /* truncate */
sys/vm/vm_meter.c
283
total11.t_rmshr = total.t_rmshr; /* truncate */
sys/vm/vm_meter.c
284
total11.t_armshr = total.t_armshr; /* truncate */
sys/vm/vm_meter.c
285
total11.t_free = total.t_free; /* truncate */
sys/vm/vm_meter.c
289
return (SYSCTL_OUT(req, &total, sizeof(total)));
tests/sys/kern/ktls_test.c
310
int outl, total;
tests/sys/kern/ktls_test.c
333
total = outl;
tests/sys/kern/ktls_test.c
340
total += outl;
tests/sys/kern/ktls_test.c
341
if ((size_t)total != size) {
tests/sys/kern/ktls_test.c
342
warnx("decrypt size mismatch: %zu vs %d", size, total);
tests/sys/kern/ktls_test.c
428
int outl, total;
tests/sys/kern/ktls_test.c
460
total = outl;
tests/sys/kern/ktls_test.c
467
total += outl;
tests/sys/kern/ktls_test.c
468
if ((size_t)total != size) {
tests/sys/kern/ktls_test.c
469
warnx("encrypt size mismatch: %zu vs %d", size, total);
tests/sys/kern/ktls_test.c
490
int outl, total;
tests/sys/kern/ktls_test.c
523
total = outl;
tests/sys/kern/ktls_test.c
532
total += outl;
tests/sys/kern/ktls_test.c
533
if ((size_t)total != size) {
tests/sys/kern/ktls_test.c
534
warnx("decrypt size mismatch: %zu vs %d", size, total);
tests/sys/kern/pipe/pipe_reverse_test.c
119
total += error;
tests/sys/kern/pipe/pipe_reverse_test.c
125
error = read(desc[0], &buffer2[total], 2 * 4096);
tests/sys/kern/pipe/pipe_reverse_test.c
126
total += error;
tests/sys/kern/pipe/pipe_reverse_test.c
129
if (memcmp(buffer, buffer2, total) != 0) {
tests/sys/kern/pipe/pipe_reverse_test.c
130
for (i = 0; i < (size_t)total; i++) {
tests/sys/kern/pipe/pipe_reverse_test.c
142
if ((buggy == 1) || (total != 10 * 4096))
tests/sys/kern/pipe/pipe_reverse_test.c
50
ssize_t total;
tests/sys/kern/pipe/pipe_reverse_test.c
55
total = 0;
tests/sys/kern/pipe/pipe_reverse_test.c
94
if ((_size = write(desc[1], &buffer[total], s)) != s) \
tests/sys/kern/pipe/pipe_reverse_test.c
96
total += _size; \
tests/sys/kern/pipe/pipe_wraparound_test.c
113
total += error;
tests/sys/kern/pipe/pipe_wraparound_test.c
117
error = read(desc[0], &buffer2[total], 16384);
tests/sys/kern/pipe/pipe_wraparound_test.c
118
total += error;
tests/sys/kern/pipe/pipe_wraparound_test.c
121
if (memcmp(buffer, buffer2, total) != 0) {
tests/sys/kern/pipe/pipe_wraparound_test.c
122
for (i = 0; i < total; i++) {
tests/sys/kern/pipe/pipe_wraparound_test.c
48
ssize_t error, total;
tests/sys/kern/pipe/pipe_wraparound_test.c
53
total = 0;
tests/sys/kern/pipe/pipe_wraparound_test.c
92
if ((_size = write(desc[1], &buffer[total], s)) != s) \
tests/sys/kern/pipe/pipe_wraparound_test.c
94
total += _size; \
tests/sys/kern/socket_splice.c
530
for (size_t total = sizeof(buf); total > 0; total -= n) {
tests/sys/kern/socket_splice.c
531
n = write(sc.left[0], buf, total);
tests/sys/kern/socket_splice.c
534
for (size_t total = sizeof(buf); total > 0; total -= n) {
tests/sys/kern/socket_splice.c
582
for (size_t total = sizeof(buf); total > 0; total -= n) {
tests/sys/kern/socket_splice.c
583
n = write(sc.left[0], buf, total);
tests/sys/kern/socket_splice.c
586
for (size_t total = sizeof(buf); total > 0; total -= n) {
tools/regression/net80211/ccmp/test_ccmp.c
710
int i, pass, total;
tools/regression/net80211/ccmp/test_ccmp.c
727
total = 0;
tools/regression/net80211/ccmp/test_ccmp.c
730
total++;
tools/regression/net80211/ccmp/test_ccmp.c
733
printf("%u of %u 802.11i AES-CCMP test vectors passed\n", pass, total);
tools/regression/net80211/ccmp/test_ccmp.c
738
return (pass == total ? 0 : -1);
tools/regression/net80211/tkip/test_tkip.c
350
int i, pass, total;
tools/regression/net80211/tkip/test_tkip.c
367
total = 0;
tools/regression/net80211/tkip/test_tkip.c
370
total++;
tools/regression/net80211/tkip/test_tkip.c
373
printf("%u of %u 802.11i TKIP test vectors passed\n", pass, total);
tools/regression/net80211/tkip/test_tkip.c
378
return (pass == total ? 0 : -1);
tools/regression/net80211/wep/test_wep.c
299
int i, pass, total;
tools/regression/net80211/wep/test_wep.c
316
total = 0;
tools/regression/net80211/wep/test_wep.c
319
total++;
tools/regression/net80211/wep/test_wep.c
322
printf("%u of %u 802.11i WEP test vectors passed\n", pass, total);
tools/regression/net80211/wep/test_wep.c
327
return (pass == total ? 0 : -1);
tools/test/arc4random/biastest.c
129
double discrepancy, average, variance, total;
tools/test/arc4random/biastest.c
137
total = 0.0;
tools/test/arc4random/biastest.c
140
total += (double)i * sample[i];
tools/test/arc4random/biastest.c
143
average = total / tries;
tools/tools/ath/athaggrstats/athaggrstats.c
156
struct ath_tx_aggr_stats total;
tools/tools/ath/athaggrstats/athaggrstats.c
199
ath_collect(wf, &wf->total);
tools/tools/ath/athaggrstats/athaggrstats.c
207
wf->total = wf->cur;
tools/tools/ath/athaggrstats/athaggrstats.c
226
snprintf(b, bs, "%u", wf->cur.aggr_##x - wf->total.aggr_##x); return 1
tools/tools/ath/athaggrstats/athaggrstats.c
228
snprintf(b, bs, "%u", wf->cur.aggr_pkts[x] - wf->total.aggr_pkts[x]); return 1
tools/tools/ath/athaggrstats/athaggrstats.c
282
snprintf(b, bs, "%u", wf->total.aggr_##x); return 1
tools/tools/ath/athaggrstats/athaggrstats.c
284
snprintf(b, bs, "%u", wf->total.aggr_pkts[x]); return 1
tools/tools/ath/athaggrstats/athaggrstats.c
360
wf->total.aggr_pkts[i],
tools/tools/ath/athstats/athstats.c
1004
snprintf(b, bs, "%d", wf->total.ath.ast_rx_noise);
tools/tools/ath/athstats/athstats.c
1008
wf->total.ath.ast_tx_rssi + wf->total.ath.ast_rx_noise);
tools/tools/ath/athstats/athstats.c
1012
wf->total.ath.ast_rx_rssi + wf->total.ath.ast_rx_noise);
tools/tools/ath/athstats/athstats.c
1083
if (wf->total.ath.ast_ant_rx[i] || wf->total.ath.ast_ant_tx[i])
tools/tools/ath/athstats/athstats.c
1085
wf->total.ath.ast_ant_tx[i],
tools/tools/ath/athstats/athstats.c
1086
wf->total.ath.ast_ant_rx[i]);
tools/tools/ath/athstats/athstats.c
461
struct _athstats total;
tools/tools/ath/athstats/athstats.c
527
ath_collect(wf, &wf->total);
tools/tools/ath/athstats/athstats.c
535
wf->total = wf->cur;
tools/tools/ath/athstats/athstats.c
554
snprintf(b, bs, "%u", wf->cur.ath.ast_##x - wf->total.ath.ast_##x); return 1
tools/tools/ath/athstats/athstats.c
556
snprintf(b, bs, "%u", wf->cur.ath.ast_rx_phy[x] - wf->total.ath.ast_rx_phy[x]); return 1
tools/tools/ath/athstats/athstats.c
560
snprintf(b, bs, "%u", wf->cur.ani_stats.ast_ani_##x - wf->total.ani_stats.ast_ani_##x); return 1
tools/tools/ath/athstats/athstats.c
562
snprintf(b, bs, "%u", wf->cur.ani_stats.ast_mibstats.x - wf->total.ani_stats.ast_mibstats.x); return 1
tools/tools/ath/athstats/athstats.c
564
snprintf(b, bs, "%u", wf->cur.ath.ast_ant_tx[x] - wf->total.ath.ast_ant_tx[x]); return 1
tools/tools/ath/athstats/athstats.c
566
snprintf(b, bs, "%u", wf->cur.ath.ast_ant_rx[x] - wf->total.ath.ast_ant_rx[x]); return 1
tools/tools/ath/athstats/athstats.c
572
((wf->cur.ath.ast_rx_packets - wf->total.ath.ast_rx_packets) -
tools/tools/ath/athstats/athstats.c
573
(wf->cur.ath.ast_rx_mgt - wf->total.ath.ast_rx_mgt)));
tools/tools/ath/athstats/athstats.c
578
(wf->cur.ath.ast_tx_packets - wf->total.ath.ast_tx_packets));
tools/tools/ath/athstats/athstats.c
808
snprintf(b, bs, "%u", wf->total.ath.ast_##x); return 1
tools/tools/ath/athstats/athstats.c
810
snprintf(b, bs, "%u", wf->total.ath.ast_rx_phy[x]); return 1
tools/tools/ath/athstats/athstats.c
812
snprintf(b, bs, "%u", wf->total.ani_state.x); return 1
tools/tools/ath/athstats/athstats.c
814
snprintf(b, bs, "%u", wf->total.ani_stats.ast_ani_##x); return 1
tools/tools/ath/athstats/athstats.c
816
snprintf(b, bs, "%u", wf->total.ani_stats.ast_mibstats.x); return 1
tools/tools/ath/athstats/athstats.c
818
snprintf(b, bs, "%u", wf->total.ath.ast_ant_tx[x]); return 1
tools/tools/ath/athstats/athstats.c
820
snprintf(b, bs, "%u", wf->total.ath.ast_ant_rx[x]); return 1
tools/tools/ath/athstats/athstats.c
825
(unsigned long) wf->total.ath.ast_rx_packets -
tools/tools/ath/athstats/athstats.c
826
(unsigned long) wf->total.ath.ast_rx_mgt);
tools/tools/ath/athstats/athstats.c
830
(unsigned long) wf->total.ath.ast_tx_packets);
tools/tools/ath/athstats/athstats.c
833
snprintrate(b, bs, wf->total.ath.ast_tx_rate);
tools/tools/ath/athstats/athstats.c
911
snprintf(b, bs, "%d", wf->total.ath.ast_tx_rssi);
tools/tools/ath/athstats/athstats.c
914
snprintf(b, bs, "%d", wf->total.ath.ast_rx_rssi);
tools/tools/ath/athstats/athstats.c
927
wf->total.ath.ast_tdma_tsfadjm,
tools/tools/ath/athstats/athstats.c
928
wf->total.ath.ast_tdma_tsfadjp);
tools/tools/ath/athstats/athstats.c
966
HAL_RSSI(wf->total.ani_stats.ast_nodestats.ns_avgbrssi));
tools/tools/ath/athstats/athstats.c
970
HAL_RSSI(wf->total.ani_stats.ast_nodestats.ns_avgrssi));
tools/tools/ath/athstats/athstats.c
974
HAL_RSSI(wf->total.ani_stats.ast_nodestats.ns_avgtxrssi));
tools/tools/ath/common/diag.h
44
void *total;
tools/tools/crypto/cryptocheck.c
1328
int outl, total;
tools/tools/crypto/cryptocheck.c
1369
total = outl;
tools/tools/crypto/cryptocheck.c
1375
total += outl;
tools/tools/crypto/cryptocheck.c
1376
if ((size_t)total != size) {
tools/tools/crypto/cryptocheck.c
1378
size, total);
tools/tools/crypto/cryptocheck.c
1402
int outl, total;
tools/tools/crypto/cryptocheck.c
1425
total = outl;
tools/tools/crypto/cryptocheck.c
1431
total += outl;
tools/tools/crypto/cryptocheck.c
1432
if (total != size)
tools/tools/crypto/cryptocheck.c
1434
size, total);
tools/tools/crypto/cryptocheck.c
1446
int outl, total;
tools/tools/crypto/cryptocheck.c
1505
total = outl;
tools/tools/crypto/cryptocheck.c
1512
total += outl;
tools/tools/crypto/cryptocheck.c
1513
if ((size_t)total != size) {
tools/tools/crypto/cryptocheck.c
1515
alg->name, iv_len, aad_len, size, total);
tools/tools/crypto/cryptocheck.c
717
int outl, total;
tools/tools/crypto/cryptocheck.c
738
total = outl;
tools/tools/crypto/cryptocheck.c
744
total += outl;
tools/tools/crypto/cryptocheck.c
745
if ((size_t)total != size) {
tools/tools/crypto/cryptocheck.c
747
size, total);
tools/tools/mwl/mwlstats/mwlstats.c
248
struct mwl_stats total;
tools/tools/mwl/mwlstats/mwlstats.c
280
mwl_collect(wf, &wf->total);
tools/tools/mwl/mwlstats/mwlstats.c
288
wf->total = wf->cur;
tools/tools/mwl/mwlstats/mwlstats.c
307
snprintf(b, bs, "%u", wf->cur.mst_##x - wf->total.mst_##x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
309
snprintf(b, bs, "%u", wf->cur.hw_stats.x - wf->total.hw_stats.x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
311
snprintf(b, bs, "%u", wf->cur.mst_ant_rx[x] - wf->total.mst_ant_rx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
313
snprintf(b, bs, "%u", wf->cur.mst_ant_tx[x] - wf->total.mst_ant_tx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
318
(wf->cur.mst_rx_packets - wf->total.mst_rx_packets)));
tools/tools/mwl/mwlstats/mwlstats.c
322
wf->cur.mst_tx_packets - wf->total.mst_tx_packets));
tools/tools/mwl/mwlstats/mwlstats.c
413
snprintf(b, bs, "%u", wf->total.mst_##x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
415
snprintf(b, bs, "%u", wf->total.hw_stats.x); return 1
tools/tools/mwl/mwlstats/mwlstats.c
417
snprintf(b, bs, "%u", wf->total.mst_ant_tx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
419
snprintf(b, bs, "%u", wf->total.mst_ant_rx[x]); return 1
tools/tools/mwl/mwlstats/mwlstats.c
423
snprintf(b, bs, "%lu", (u_long)wf->total.mst_rx_packets);
tools/tools/mwl/mwlstats/mwlstats.c
426
snprintf(b, bs, "%lu", (u_long) wf->total.mst_tx_packets);
tools/tools/mwl/mwlstats/mwlstats.c
429
setrate(b, bs, wf->total.mst_tx_rate);
tools/tools/mwl/mwlstats/mwlstats.c
486
snprintf(b, bs, "%d", wf->total.mst_rx_rssi);
tools/tools/mwl/mwlstats/mwlstats.c
497
snprintf(b, bs, "%d", wf->total.mst_rx_noise);
tools/tools/mwl/mwlstats/mwlstats.c
501
wf->total.mst_rx_rssi + wf->total.mst_rx_noise);
tools/tools/mwl/mwlstats/mwlstats.c
536
if (wf->total.mst_ant_rx[i] || wf->total.mst_ant_tx[i])
tools/tools/mwl/mwlstats/mwlstats.c
538
wf->total.mst_ant_tx[i],
tools/tools/mwl/mwlstats/mwlstats.c
539
wf->total.mst_ant_rx[i]);
tools/tools/netrate/http/http.c
244
uintmax_t total;
tools/tools/netrate/http/http.c
350
total = 0;
tools/tools/netrate/http/http.c
352
total += statep->hwd[i].hwd_count;
tools/tools/netrate/http/http.c
353
printf("%ju transfers/second\n", total / numseconds);
tools/tools/netrate/http/http.c
354
total = 0;
tools/tools/netrate/http/http.c
356
total += statep->hwd[i].hwd_errorcount;
tools/tools/netrate/http/http.c
357
printf("%ju errors/second\n", total / numseconds);
tools/tools/npe/npestats/npestats.c
128
struct npestats total;
tools/tools/npe/npestats/npestats.c
164
npe_collect(wf, &wf->total);
tools/tools/npe/npestats/npestats.c
172
wf->total = wf->cur;
tools/tools/npe/npestats/npestats.c
180
snprintf(b, bs, "%u", wf->cur.x - wf->total.x); return 1
tools/tools/npe/npestats/npestats.c
216
snprintf(b, bs, "%u", wf->total.x); return 1
tools/tools/vt/mkkfont/mkkfont.c
42
unsigned int gbytes, glyph_count, j, k, total;
tools/tools/vt/mkkfont/mkkfont.c
49
total = glyph_count * gbytes;
tools/tools/vt/mkkfont/mkkfont.c
50
gbuf = malloc(total);
tools/tools/vt/mkkfont/mkkfont.c
52
if (fread(gbuf, total, 1, stdin) != 1) {
tools/tools/vt/mkkfont/mkkfont.c
57
for (j = 0; j < total; j += 12) {
tools/tools/vt/mkkfont/mkkfont.c
58
for (k = 0; k < 12 && k < total - j; k++) {
usr.bin/cksum/sum1.c
44
off_t total;
usr.bin/cksum/sum1.c
52
lcrc = total = 0;
usr.bin/cksum/sum1.c
54
for (total += nr, p = buf; nr--; ++p) {
usr.bin/cksum/sum1.c
63
*clen = total;
usr.bin/cksum/sum2.c
44
off_t total;
usr.bin/cksum/sum2.c
55
lcrc = total = 0;
usr.bin/cksum/sum2.c
57
for (total += nr, p = buf; nr--; ++p)
usr.bin/cksum/sum2.c
66
*clen = total;
usr.bin/gzip/gzip.c
1216
infile_set(const char *newinfile, off_t total)
usr.bin/gzip/gzip.c
1221
infile_total = total;
usr.bin/gzip/gzip.c
253
static void infile_set(const char *newinfile, off_t total);
usr.bin/systat/proc.c
270
pu[nproc]->total = kipp[i].ki_size;
usr.bin/systat/proc.c
64
uint64_t total;
usr.bin/systat/proc.c
94
sysputuint64(wnd, y, offset, 4, pu[idx]->total, 0);
usr.bin/systat/proc.c
97
rate = pu[idx]->total > 1 ? 100 * swapbytes / pu[idx]->total : 0;
usr.bin/systat/vmstat.c
449
putfloat(100.0 * (v_page_count - total.t_free) / v_page_count,
usr.bin/systat/vmstat.c
454
sysputpage(wnd, MEMROW + 2, MEMCOL + 4, 6, total.t_arm, 0);
usr.bin/systat/vmstat.c
455
sysputpage(wnd, MEMROW + 2, MEMCOL + 12, 6, total.t_armshr, 0);
usr.bin/systat/vmstat.c
456
sysputpage(wnd, MEMROW + 2, MEMCOL + 20, 6, total.t_avm, 0);
usr.bin/systat/vmstat.c
457
sysputpage(wnd, MEMROW + 2, MEMCOL + 29, 6, total.t_avmshr, 0);
usr.bin/systat/vmstat.c
458
sysputpage(wnd, MEMROW + 3, MEMCOL + 4, 6, total.t_rm, 0);
usr.bin/systat/vmstat.c
459
sysputpage(wnd, MEMROW + 3, MEMCOL + 12, 6, total.t_rmshr, 0);
usr.bin/systat/vmstat.c
460
sysputpage(wnd, MEMROW + 3, MEMCOL + 20, 6, total.t_vm, 0);
usr.bin/systat/vmstat.c
461
sysputpage(wnd, MEMROW + 3, MEMCOL + 29, 6, total.t_vmshr, 0);
usr.bin/systat/vmstat.c
462
sysputpage(wnd, MEMROW + 2, MEMCOL + 38, 6, total.t_free, 0);
usr.bin/systat/vmstat.c
463
putint(total.t_rq - 1, PROCSROW + 2, PROCSCOL, 3);
usr.bin/systat/vmstat.c
464
putint(total.t_pw, PROCSROW + 2, PROCSCOL + 4, 3);
usr.bin/systat/vmstat.c
465
putint(total.t_dw, PROCSROW + 2, PROCSCOL + 8, 3);
usr.bin/systat/vmstat.c
466
putint(total.t_sl, PROCSROW + 2, PROCSCOL + 12, 4);
usr.bin/systat/vmstat.c
467
putint(total.t_sw, PROCSROW + 2, PROCSCOL + 17, 3);
usr.bin/systat/zarc.c
118
rate->total.stat = calc_rate(curstat.hits.stat, curstat.misses.stat)
usr.bin/systat/zarc.c
148
mvwprintw(wnd, row, 31+1+5+7+7+8, "%3"PRIu64, rate.total.stat)
usr.bin/systat/zarc.c
57
struct zfield total;
usr.bin/top/display.c
342
i_procstates(int total, int *brkdn)
usr.bin/top/display.c
349
printf("%d %s:", total, ps.thread ? "threads" : "processes");
usr.bin/top/display.c
350
ltotal = total;
usr.bin/top/display.c
353
i = digits(total);
usr.bin/top/display.c
368
u_procstates(int total, int *brkdn)
usr.bin/top/display.c
376
if (ltotal != total)
usr.bin/top/display.c
386
printf("%d", total);
usr.bin/top/display.c
389
if (digits(total) != digits(ltotal))
usr.bin/top/display.c
393
i = digits(total);
usr.bin/top/display.c
402
ltotal = total;
usr.bin/top/display.h
23
void i_procstates(int total, int *brkdn);
usr.bin/top/display.h
39
void u_procstates(int total, int *brkdn);
usr.bin/top/top.c
75
static void (*d_procstates)(int total, int *brkdn) = i_procstates;
usr.bin/truss/syscalls.c
2881
struct timespec total = {0, 0};
usr.bin/truss/syscalls.c
2893
timespecadd(&total, &sc->time, &total);
usr.bin/truss/syscalls.c
2901
"", (intmax_t)total.tv_sec, total.tv_nsec, ncall, nerror);
usr.bin/vmstat/vmstat.c
1126
long total;
usr.bin/vmstat/vmstat.c
1129
total = 0;
usr.bin/vmstat/vmstat.c
1131
total += cur.cp_time[state];
usr.bin/vmstat/vmstat.c
1132
if (total == 0)
usr.bin/vmstat/vmstat.c
1133
total = 1;
usr.bin/vmstat/vmstat.c
1137
total, &over);
usr.bin/vmstat/vmstat.c
1139
total, &over);
usr.bin/vmstat/vmstat.c
1140
percent("idle", 100LL * cur.cp_time[CP_IDLE] / total, &over);
usr.bin/vmstat/vmstat.c
1147
long tmp, total;
usr.bin/vmstat/vmstat.c
1169
total = 0;
usr.bin/vmstat/vmstat.c
1171
total += cur_cp_times[i * CPUSTATES + state];
usr.bin/vmstat/vmstat.c
1172
if (total == 0)
usr.bin/vmstat/vmstat.c
1173
total = 1;
usr.bin/vmstat/vmstat.c
1176
cur_cp_times[i * CPUSTATES + CP_NICE]) / total, &over);
usr.bin/vmstat/vmstat.c
1179
cur_cp_times[i * CPUSTATES + CP_INTR]) / total, &over);
usr.bin/vmstat/vmstat.c
1181
100LL * cur_cp_times[i * CPUSTATES + CP_IDLE] / total,
usr.bin/vmstat/vmstat.c
640
struct vmtotal total;
usr.bin/vmstat/vmstat.c
755
fill_vmtotal(&total);
usr.bin/vmstat/vmstat.c
758
"{:swapped-out/%2ld}", total.t_rq - 1, total.t_dw +
usr.bin/vmstat/vmstat.c
759
total.t_pw, total.t_sw);
usr.bin/vmstat/vmstat.c
764
(uintmax_t)total.t_avm * sum.v_page_size);
usr.bin/vmstat/vmstat.c
766
(uintmax_t)total.t_free * sum.v_page_size);
usr.bin/wc/wc.c
144
total = 0;
usr.bin/wc/wc.c
156
++total;
usr.bin/wc/wc.c
162
if (total > 1) {
usr.bin/wc/wc.c
87
int ch, errors, total;
usr.sbin/ac/ac.c
285
struct timeval diff, total = { 0, 0 }, usec = { 0, 1 }, yesterday;
usr.sbin/ac/ac.c
302
timeradd(&total, &up->time, &total);
usr.sbin/ac/ac.c
306
if (timerisset(&total))
usr.sbin/ac/ac.c
307
(void)printf("%s %11.2f\n", date, (double)total.tv_sec / 3600);
usr.sbin/bhyve/audio.c
227
size_t total;
usr.sbin/bhyve/audio.c
237
for (total = 0; total < count; total += len) {
usr.sbin/bhyve/audio.c
238
len = write(audio_fd, buf + total, count - total);
usr.sbin/bhyve/audio.c
261
size_t total;
usr.sbin/bhyve/audio.c
271
for (total = 0; total < count; total += len) {
usr.sbin/bhyve/audio.c
272
len = read(audio_fd, buf + total, count - total);
usr.sbin/bhyve/iov.c
100
size_t total = 0;
usr.sbin/bhyve/iov.c
104
assert(total <= SIZE_MAX - iov[i].iov_len);
usr.sbin/bhyve/iov.c
105
total += iov[i].iov_len;
usr.sbin/bhyve/iov.c
106
if (total >= len)
usr.sbin/bhyve/iov.c
116
size_t ptr, total;
usr.sbin/bhyve/iov.c
119
total = count_iov(iov, niov);
usr.sbin/bhyve/iov.c
120
*buf = reallocf(*buf, total);
usr.sbin/bhyve/iov.c
129
return (total);
usr.sbin/bhyve/iov.c
86
size_t total = 0;
usr.sbin/bhyve/iov.c
90
assert(total <= SIZE_MAX - iov[i].iov_len);
usr.sbin/bhyve/iov.c
91
total += iov[i].iov_len;
usr.sbin/bhyve/iov.c
94
return (total);
usr.sbin/bhyve/rfb.c
522
ssize_t nwrite, total;
usr.sbin/bhyve/rfb.c
579
total = 0;
usr.sbin/bhyve/rfb.c
585
total += w;
usr.sbin/bhyve/rfb.c
595
total = stream_write(cfd, rc->zbuf, total);
usr.sbin/bhyve/rfb.c
597
return (total);
usr.sbin/bhyve/snapshot.c
627
size_t crtval, maxval, total;
usr.sbin/bhyve/snapshot.c
641
total = si->total;
usr.sbin/bhyve/snapshot.c
643
rc = print_progress(crtval, total);
usr.sbin/bhyve/snapshot.c
683
.total = totalmem
usr.sbin/bhyve/snapshot.c
90
const size_t total;
usr.sbin/certctl/certctl.c
387
int ret, total = 0;
usr.sbin/certctl/certctl.c
406
total += ret;
usr.sbin/certctl/certctl.c
409
return (total);
usr.sbin/dumpcis/readcis.c
253
int total = 0;
usr.sbin/dumpcis/readcis.c
272
total++;
usr.sbin/dumpcis/readcis.c
282
total++;
usr.sbin/dumpcis/readcis.c
312
total += length;
usr.sbin/dumpcis/readcis.c
325
} while (code != CIS_END && total < 1024);
usr.sbin/lpr/common_source/matchjobs.c
498
int cnt, matched, total;
usr.sbin/lpr/common_source/matchjobs.c
509
total = 0;
usr.sbin/lpr/common_source/matchjobs.c
521
total++;
usr.sbin/lpr/common_source/matchjobs.c
550
total++;
usr.sbin/lpr/common_source/matchjobs.c
567
return (total);
usr.sbin/makefs/zfs/objset.c
115
unsigned int total;
usr.sbin/makefs/zfs/objset.c
121
total = 0;
usr.sbin/makefs/zfs/objset.c
138
(total + i) * sizeof(dnode_phys_t));
usr.sbin/makefs/zfs/objset.c
143
total += i;
usr.sbin/mptutil/mpt_volume.c
136
uint64_t total, remaining;
usr.sbin/mptutil/mpt_volume.c
187
total = (uint64_t)prog.TotalBlocks.High << 32 |
usr.sbin/mptutil/mpt_volume.c
191
pct = (float)(total - remaining) * 100 / total;
usr.sbin/ndp/ndp.c
1507
sec2str(time_t total)
usr.sbin/ndp/ndp.c
1516
days = total / 3600 / 24;
usr.sbin/ndp/ndp.c
1517
hours = (total / 3600) % 24;
usr.sbin/ndp/ndp.c
1518
mins = (total / 60) % 60;
usr.sbin/ndp/ndp.c
1519
secs = total % 60;
usr.sbin/ndp/ndp.h
21
char *sec2str(time_t total);
usr.sbin/pmcstat/pmcpl_callgraph.c
255
pmcstat_cgnode_print(struct pmcstat_cgnode *cg, int depth, uint32_t total)
usr.sbin/pmcstat/pmcpl_callgraph.c
267
if (cg->pcg_count == total)
usr.sbin/pmcstat/pmcpl_callgraph.c
271
100.0 * cg->pcg_count / total);
usr.sbin/powerd/powerd.c
158
int error, cpu, i, total, excl;
usr.sbin/powerd/powerd.c
183
total = 0;
usr.sbin/powerd/powerd.c
185
total += cp_times[cpu * CPUSTATES + i] -
usr.sbin/powerd/powerd.c
188
if (total == 0)
usr.sbin/powerd/powerd.c
195
*load += 100 - excl * 100 / total;
usr.sbin/ppp/bundle.c
1027
octets = MAX(dl->physical->link.stats.total.in.OctetsPerSecond,
usr.sbin/ppp/bundle.c
1028
dl->physical->link.stats.total.out.OctetsPerSecond);
usr.sbin/ppp/bundle.c
1032
if (dl->physical->link.stats.total.rolling && dl->state == DATALINK_OPEN)
usr.sbin/ppp/bundle.c
1040
t = &arg->bundle->ncp.mp.link.stats.total;
usr.sbin/ppp/command.c
3137
t = &cx->physical->link.stats.total;
usr.sbin/ppp/defs.c
70
size_t got, total;
usr.sbin/ppp/defs.c
72
for (total = 0; total < n; total += got)
usr.sbin/ppp/defs.c
73
switch ((got = read(fd, (char *)v + total, n - total))) {
usr.sbin/ppp/defs.c
75
return total;
usr.sbin/ppp/defs.c
82
return total;
usr.sbin/ppp/link.c
78
throughput_addin(&l->stats.total, n);
usr.sbin/ppp/link.c
88
throughput_addout(&l->stats.total, n);
usr.sbin/ppp/link.h
46
struct pppThroughput total; /* Link throughput statistics */
usr.sbin/ppp/mp.c
197
percent = MAX(mp->link.stats.total.in.OctetsPerSecond,
usr.sbin/ppp/mp.c
198
mp->link.stats.total.out.OctetsPerSecond) * 800 /
usr.sbin/ppp/mp.c
212
throughput_stop(&mp->link.stats.total);
usr.sbin/ppp/mp.c
218
if (mp->link.stats.total.SamplePeriod != mp->cfg.autoload.period) {
usr.sbin/ppp/mp.c
219
throughput_destroy(&mp->link.stats.total);
usr.sbin/ppp/mp.c
220
throughput_init(&mp->link.stats.total, mp->cfg.autoload.period);
usr.sbin/ppp/mp.c
221
throughput_callback(&mp->link.stats.total, mp_UpDown, mp);
usr.sbin/ppp/mp.c
225
throughput_start(&mp->link.stats.total, "MP throughput", 1);
usr.sbin/ppp/mp.c
233
if (mp->link.stats.total.SamplePeriod != mp->cfg.autoload.period)
usr.sbin/ppp/mp.c
236
throughput_clear(&mp->link.stats.total, THROUGHPUT_OVERALL, NULL);
usr.sbin/ppp/mp.c
261
throughput_init(&mp->link.stats.total, mp->cfg.autoload.period);
usr.sbin/ppp/mp.c
262
throughput_callback(&mp->link.stats.total, mp_UpDown, mp);
usr.sbin/ppp/mp.c
331
throughput_destroy(&mp->link.stats.total);
usr.sbin/ppp/mp.c
332
throughput_init(&mp->link.stats.total, mp->cfg.autoload.period);
usr.sbin/ppp/mp.c
333
throughput_callback(&mp->link.stats.total, mp_UpDown, mp);
usr.sbin/ppp/mp.c
339
dl->physical->link.stats.parent = &mp->link.stats.total;
usr.sbin/ppp/mp.c
670
size_t total, add, len;
usr.sbin/ppp/mp.c
697
total = 0;
usr.sbin/ppp/mp.c
714
total += add;
usr.sbin/ppp/mp.c
757
total += add;
usr.sbin/ppp/mp.c
800
return total;
usr.sbin/ppp/ncp.c
315
size_t total;
usr.sbin/ppp/ncp.c
318
total = mp_FillPhysicalQueues(bundle);
usr.sbin/ppp/ncp.c
323
for (total = 0, dl = bundle->links; dl; dl = dl->next)
usr.sbin/ppp/ncp.c
328
total += add;
usr.sbin/ppp/ncp.c
332
return total + ncp_QueueLen(&bundle->ncp);
usr.sbin/ppp/physical.c
169
throughput_init(&p->link.stats.total, SAMPLE_PERIOD);
usr.sbin/ppp/physical.c
171
&dl->bundle->ncp.mp.link.stats.total : NULL;
usr.sbin/ppp/physical.c
350
throughput_stop(&p->link.stats.total);
usr.sbin/ppp/physical.c
351
throughput_log(&p->link.stats.total, LogPHASE, p->link.name);
usr.sbin/ppp/physical.c
381
throughput_destroy(&p->link.stats.total);
usr.sbin/ppp/physical.c
512
throughput_disp(&p->link.stats.total, arg->prompt);
usr.sbin/ppp/physical.c
617
p->link.stats.total.in.SampleOctets = (long long *)iov[(*niov)++].iov_base;
usr.sbin/ppp/physical.c
618
p->link.stats.total.out.SampleOctets = (long long *)iov[(*niov)++].iov_base;
usr.sbin/ppp/physical.c
620
&dl->bundle->ncp.mp.link.stats.total : NULL;
usr.sbin/ppp/physical.c
640
throughput_restart(&p->link.stats.total, "physical throughput",
usr.sbin/ppp/physical.c
689
timer_Stop(&p->link.stats.total.Timer);
usr.sbin/ppp/physical.c
704
iov[*niov].iov_base = p ? (void *)p->link.stats.total.in.SampleOctets : NULL;
usr.sbin/ppp/physical.c
707
iov[*niov].iov_base = p ? (void *)p->link.stats.total.out.SampleOctets : NULL;
usr.sbin/ppp/physical.c
980
throughput_start(&p->link.stats.total, "physical throughput",
usr.sbin/rtsold/dump.c
156
sec2str(const struct timespec *total)
usr.sbin/rtsold/dump.c
168
tsec = total->tv_sec;
usr.sbin/rtsold/dump.c
169
tsec += total->tv_nsec / 1000 / 1000000;
usr.sbin/uathload/uathload.c
193
txmsg.total = htobe32(len);
usr.sbin/uathload/uathload.c
66
uint32_t total;
usr.sbin/virtual_oss/virtual_oss/eq.c
104
int64_t *src, size_t total)
usr.sbin/virtual_oss/virtual_oss/eq.c
113
if (f_size == 0 || total == 0)
usr.sbin/virtual_oss/virtual_oss/eq.c
117
total /= channels;
usr.sbin/virtual_oss/virtual_oss/eq.c
127
if (delta > total)
usr.sbin/virtual_oss/virtual_oss/eq.c
128
delta = total;
usr.sbin/virtual_oss/virtual_oss/eq.c
142
total -= delta;
usr.sbin/virtual_oss/virtual_oss/eq.c
163
if (total == 0)
usr.sbin/virtual_oss/virtual_oss/eq.c
39
int64_t *src, size_t total)
usr.sbin/virtual_oss/virtual_oss/eq.c
47
if (f_size == 0 || total == 0)
usr.sbin/virtual_oss/virtual_oss/eq.c
51
total /= channels;
usr.sbin/virtual_oss/virtual_oss/eq.c
61
if (delta > total)
usr.sbin/virtual_oss/virtual_oss/eq.c
62
delta = total;
usr.sbin/virtual_oss/virtual_oss/eq.c
76
total -= delta;
usr.sbin/virtual_oss/virtual_oss/eq.c
97
if (total == 0)
usr.sbin/virtual_oss/virtual_oss/ring.c
150
vring_write_linear(struct virtual_ring *pvr, const uint8_t *src, size_t total)
usr.sbin/virtual_oss/virtual_oss/ring.c
156
while (total != 0) {
usr.sbin/virtual_oss/virtual_oss/ring.c
160
if (buf_len > total)
usr.sbin/virtual_oss/virtual_oss/ring.c
161
buf_len = total;
usr.sbin/virtual_oss/virtual_oss/ring.c
166
total -= buf_len;
usr.sbin/virtual_oss/virtual_oss/ring.c
172
vring_read_linear(struct virtual_ring *pvr, uint8_t *dst, size_t total)
usr.sbin/virtual_oss/virtual_oss/ring.c
178
if (total > vring_total_read_len(pvr))
usr.sbin/virtual_oss/virtual_oss/ring.c
181
while (total != 0) {
usr.sbin/virtual_oss/virtual_oss/ring.c
185
if (buf_len > total)
usr.sbin/virtual_oss/virtual_oss/ring.c
186
buf_len = total;
usr.sbin/virtual_oss/virtual_oss/ring.c
191
total -= buf_len;
usr.sbin/virtual_oss/virtual_oss/ring.c
197
vring_write_zero(struct virtual_ring *pvr, size_t total)
usr.sbin/virtual_oss/virtual_oss/ring.c
203
while (total != 0) {
usr.sbin/virtual_oss/virtual_oss/ring.c
207
if (buf_len > total)
usr.sbin/virtual_oss/virtual_oss/ring.c
208
buf_len = total;
usr.sbin/virtual_oss/virtual_oss/ring.c
212
total -= buf_len;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
115
int64_t *src, size_t total) __requires_exclusive(atomic_mtx)
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
119
vclient_rx_equalizer(pvc, src, total);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
123
size_t written = vring_write_linear(pvr, (uint8_t *)src, total * 8) / 8;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
127
total -= written;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
130
total == 0)
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
83
int64_t *dst, size_t total) __requires_exclusive(atomic_mtx)
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
89
size_t read = vring_read_linear(pvr, (uint8_t *)dst, 8 * total) / 8;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
93
total -= read;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
96
total == 0) {
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
98
if (total_read != 0 && total != 0)
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
99
memset(dst, 0, 8 * total);
usr.sbin/wlanstat/wlanstat.c
408
struct ieee80211_stats total;
usr.sbin/wlanstat/wlanstat.c
564
wlan_collect(wf, &wf->total, &wf->ntotal);
usr.sbin/wlanstat/wlanstat.c
572
wf->total = wf->cur;
usr.sbin/wlanstat/wlanstat.c
691
snprintf(b, bs, "%u", wf->cur.is_##x - wf->total.is_##x); return 1
usr.sbin/wlanstat/wlanstat.c
865
snprintf(b, bs, "%u", wf->total.is_##x); return 1