games/backgammon/common_source/odds.c
61
int i, j, total;
games/backgammon/common_source/odds.c
63
total = 0;
games/backgammon/common_source/odds.c
66
total += table[i][j];
games/backgammon/common_source/odds.c
67
return(total);
games/canfield/canfield/canfield.c
1022
total.information += costofinformation;
games/canfield/canfield/canfield.c
1114
total.thinktime += dollars;
games/canfield/canfield/canfield.c
1120
totalcosts = total.hand + total.inspection + total.game +
games/canfield/canfield/canfield.c
1121
total.runs + total.information + total.thinktime;
games/canfield/canfield/canfield.c
1124
total.worth = total.wins - totalcosts;
games/canfield/canfield/canfield.c
1127
totalreturn = ((double)total.wins / (double)totalcosts - 1.0) * 100.0;
games/canfield/canfield/canfield.c
1131
printw("%4ld%8ld%9ld", this.hand, game.hand, total.hand);
games/canfield/canfield/canfield.c
1134
total.inspection);
games/canfield/canfield/canfield.c
1136
printw("%4ld%8ld%9ld", this.game, game.game, total.game);
games/canfield/canfield/canfield.c
1138
printw("%4ld%8ld%9ld", this.runs, game.runs, total.runs);
games/canfield/canfield/canfield.c
1141
total.information);
games/canfield/canfield/canfield.c
1143
printw("%4ld%8ld%9ld", this.thinktime, game.thinktime, total.thinktime);
games/canfield/canfield/canfield.c
1147
printw("%4ld%8ld%9ld", this.wins, game.wins, total.wins);
games/canfield/canfield/canfield.c
1149
printw("%4ld%8ld%9ld", this.worth, game.worth, total.worth);
games/canfield/canfield/canfield.c
1304
total.wins += valuepercardup;
games/canfield/canfield/canfield.c
1381
write(dbfd, (char *)&total, sizeof(total));
games/canfield/canfield/canfield.c
1447
total.inspection += costofinspection;
games/canfield/canfield/canfield.c
1492
total.wins += valuepercardup * cardsoff;
games/canfield/canfield/canfield.c
1495
total.game += costofgame;
games/canfield/canfield/canfield.c
1645
i = read(dbfd, (char *)&total, sizeof(total));
games/canfield/canfield/canfield.c
1698
total.thinktime += 1;
games/canfield/canfield/canfield.c
1703
write(dbfd, (char *)&total, sizeof(total));
games/canfield/canfield/canfield.c
180
struct betinfo this, game, total;
games/canfield/canfield/canfield.c
663
total.wins += valuepercardup;
games/canfield/canfield/canfield.c
728
total.hand += costofhand;
games/canfield/canfield/canfield.c
885
total.runs += costofrunthroughhand;
games/canfield/canfield/canfield.c
925
total.information += costofinformation;
games/canfield/canfield/canfield.c
970
total.information += costofinformation;
games/canfield/canfield/canfield.c
982
total.information += costofinformation;
games/canfield/cfscores/cfscores.c
100
if (i == 0 || total.hand == 0) {
games/canfield/cfscores/cfscores.c
106
if (total.worth >= 0) {
games/canfield/cfscores/cfscores.c
129
printf("| Hands %8ld |\n", total.hand);
games/canfield/cfscores/cfscores.c
130
printf("| Inspections %8ld |\n", total.inspection);
games/canfield/cfscores/cfscores.c
131
printf("| Games %8ld |\n", total.game);
games/canfield/cfscores/cfscores.c
132
printf("| Runs %8ld |\n", total.runs);
games/canfield/cfscores/cfscores.c
133
printf("| Information %8ld |\n", total.information);
games/canfield/cfscores/cfscores.c
134
printf("| Think time %8ld |\n", total.thinktime);
games/canfield/cfscores/cfscores.c
135
printf("|Total Costs %8ld |\n", total.wins - total.worth);
games/canfield/cfscores/cfscores.c
136
printf("|Winnings %8ld |\n", total.wins);
games/canfield/cfscores/cfscores.c
137
printf("|Net Worth %8ld |\n", total.worth);
games/canfield/cfscores/cfscores.c
87
struct betinfo total;
games/canfield/cfscores/cfscores.c
95
i = read(dbfd, (char *)&total, sizeof(total));
games/hack/hack.shk.c
162
static long int total; /* filled by addupbill() */
games/hack/hack.shk.c
257
total = 0;
games/hack/hack.shk.c
259
total += bp->price * bp->bquan;
games/hack/hack.shk.c
279
total);
games/hack/hack.shk.c
280
ESHK(shopkeeper)->robbed += total;
games/hack/hack.shk.c
613
if(total > u.ugold){
games/hack/hack.shk.c
619
u.ugold -= total;
games/hack/hack.shk.c
620
shopkeeper->mgold += total;
games/hack/hack.shk.c
622
Monnam(shopkeeper), total);
games/mille/end.c
126
pp->total += tot;
games/mille/end.c
139
pp->total -= Last_tot[i];
games/mille/end.c
75
pp->total += tot;
games/mille/mille.c
100
Player[PLAYER].total = 0;
games/mille/mille.c
121
} while (Player[COMP].total < 5000
games/mille/mille.c
122
&& Player[PLAYER].total < 5000);
games/mille/mille.c
93
if (!restore || (Player[PLAYER].total >= 5000
games/mille/mille.c
94
|| Player[COMP].total >= 5000)) {
games/mille/mille.c
95
if (Player[COMP].total < Player[PLAYER].total)
games/mille/mille.c
97
else if (Player[COMP].total > Player[PLAYER].total)
games/mille/mille.c
99
Player[COMP].total = 0;
games/mille/mille.h
169
int total;
games/mille/misc.c
207
if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000) {
games/mille/misc.c
214
if (Player[PLAYER].total > Player[COMP].total)
games/mille/misc.c
216
else if (Player[PLAYER].total < Player[COMP].total)
games/mille/misc.c
218
Player[COMP].total = 0;
games/mille/misc.c
219
Player[PLAYER].total = 0;
games/mille/move.c
221
pp->total += v;
games/mille/move.c
283
pp->total += SC_COUP;
games/mille/move.c
293
pp->total += SC_SAFETY;
games/mille/move.c
296
pp->total += SC_ALL_SAFE;
games/mille/print.c
138
show_score(13, x, pp->total, &pp->sh_total);
games/mille/print.c
143
show_score(8, x, pp->total, &pp->sh_total);
games/sail/dr_2.c
152
int row, col, dir, total, ran;
games/sail/dr_2.c
165
total = -50 * ran;
games/sail/dr_2.c
167
total += 60;
games/sail/dr_2.c
169
total = -30000;
games/sail/dr_2.c
176
return total;
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/gen/pw_dup.c
34
total += size; \
lib/libc/gen/pw_dup.c
51
size_t nsize, psize, csize, gsize, dsize, ssize, total;
lib/libc/gen/pw_dup.c
55
total = sizeof(struct passwd);
lib/libc/gen/pw_dup.c
63
if ((cp = malloc(total)) == NULL)
lib/libc/stdio/fread.c
110
return ((total - resid) / size);
lib/libc/stdio/fread.c
48
size_t total;
lib/libc/stdio/fread.c
69
total = resid;
lib/libc/stdio/fread.c
85
count = (total - resid) / size;
lib/libc/stdlib/malloc.c
1041
if (p->total == 0)
lib/libc/stdlib/malloc.c
1177
if (bp->total > 256 / MALLOC_CHUNK_LISTS)
lib/libc/stdlib/malloc.c
1180
i = r % bp->total;
lib/libc/stdlib/malloc.c
1294
if (info->free != info->total)
lib/libc/stdlib/malloc.c
224
u_short total; /* how many chunks */
lib/libc/stdlib/malloc.c
2587
B2SIZE(p->bucket), p->free, p->total);
lib/libc/stdlib/malloc.c
2590
for (i = 0; i < p->total; i++) {
lib/libc/stdlib/malloc.c
2636
size_t i, total = 0;
lib/libc/stdlib/malloc.c
2644
total += cache->length * (i + 1);
lib/libc/stdlib/malloc.c
2652
total += d->bigcache[i].psize;
lib/libc/stdlib/malloc.c
2654
ulog("Free pages cached: %zu\n", total);
lib/libc/stdlib/malloc.c
984
p->total = p->free = MALLOC_PAGESIZE / B2ALLOC(bucket);
lib/libc/stdlib/malloc.c
985
p->offset = howmany(p->total, MALLOC_BITS);
lib/libc/stdlib/malloc.c
989
i = p->total - 1;
lib/libcrypto/evp/evp_encode.c
154
size_t total = 0;
lib/libcrypto/evp/evp_encode.c
175
total = j + 1;
lib/libcrypto/evp/evp_encode.c
177
while (inl >= ctx->length && total <= INT_MAX) {
lib/libcrypto/evp/evp_encode.c
184
total += j + 1;
lib/libcrypto/evp/evp_encode.c
186
if (total > INT_MAX) {
lib/libcrypto/evp/evp_encode.c
194
*outl = total;
lib/libcrypto/x509/x509_utl.c
1314
int total;
lib/libcrypto/x509/x509_utl.c
1327
v6stat.total = 0;
lib/libcrypto/x509/x509_utl.c
1343
if (v6stat.total != 16)
lib/libcrypto/x509/x509_utl.c
1347
if (v6stat.total == 16)
lib/libcrypto/x509/x509_utl.c
1354
if (v6stat.total > 0)
lib/libcrypto/x509/x509_utl.c
1360
(v6stat.zero_pos != v6stat.total))
lib/libcrypto/x509/x509_utl.c
1366
(v6stat.zero_pos == v6stat.total))
lib/libcrypto/x509/x509_utl.c
1377
memset(v6 + v6stat.zero_pos, 0, 16 - v6stat.total);
lib/libcrypto/x509/x509_utl.c
1379
if (v6stat.total != v6stat.zero_pos)
lib/libcrypto/x509/x509_utl.c
1380
memcpy(v6 + v6stat.zero_pos + 16 - v6stat.total,
lib/libcrypto/x509/x509_utl.c
1382
v6stat.total - v6stat.zero_pos);
lib/libcrypto/x509/x509_utl.c
1395
if (s->total == 16)
lib/libcrypto/x509/x509_utl.c
1400
s->zero_pos = s->total;
lib/libcrypto/x509/x509_utl.c
1402
else if (s->zero_pos != s->total)
lib/libcrypto/x509/x509_utl.c
1409
if (s->total > 12)
lib/libcrypto/x509/x509_utl.c
1414
if (!ipv4_from_asc(s->tmp + s->total, elem))
lib/libcrypto/x509/x509_utl.c
1416
s->total += 4;
lib/libcrypto/x509/x509_utl.c
1418
if (!ipv6_hex(s->tmp + s->total, elem, len))
lib/libcrypto/x509/x509_utl.c
1420
s->total += 2;
lib/libcurses/tinfo/alloc_ttype.c
325
unsigned total = NUM_EXT_NAMES(tp) + 1;
lib/libcurses/tinfo/alloc_ttype.c
338
TYPE_REALLOC(char *, total, tp->ext_Names);
lib/libcurses/tinfo/alloc_ttype.c
339
for (k = total - 1; k > j; k--)
lib/libcurses/tty/lib_mvcur.c
520
repeated_append(string_desc * target, int total, int num, int repeat, const char *src)
lib/libcurses/tty/lib_mvcur.c
527
total += num;
lib/libcurses/tty/lib_mvcur.c
529
total = INFINITY;
lib/libcurses/tty/lib_mvcur.c
534
total = INFINITY;
lib/libcurses/tty/lib_mvcur.c
536
return total;
lib/libcurses/tty/tty_update.c
118
static int ClrBottom(SCREEN *, int total);
lib/libcurses/tty/tty_update.c
1235
ClrBottom(NCURSES_SP_DCLx int total)
lib/libcurses/tty/tty_update.c
1237
int top = total;
lib/libcurses/tty/tty_update.c
1239
NCURSES_CH_T blank = NewScreen(SP_PARM)->_line[total - 1].text[last - 1];
lib/libcurses/tty/tty_update.c
1244
for (row = total - 1; row >= 0; row--) {
lib/libcurses/tty/tty_update.c
125
static int ClrBottom(int total);
lib/libcurses/tty/tty_update.c
1262
if (top < total) {
lib/libpcap/gencode.c
113
u_int total;
lib/libpcap/gencode.c
181
if (m->total != 0 && m->total - m->slot == 0) {
lib/libpcap/gencode.c
186
if (m->total - m->slot == 0) {
lib/libpcap/gencode.c
190
m->total = MEMBAG0SIZE << cur_membag;
lib/libpcap/gencode.c
213
membag[i].slot = membag[i].total = 0;
lib/libutil/ohash.c
113
h->total -= h->deleted;
lib/libutil/ohash.c
130
if (h->deleted >= MINDELETED && 4 * h->deleted > h->total)
lib/libutil/ohash.c
156
if (++h->total * 4 > h->size * 3)
lib/libutil/ohash.c
165
return h->total - h->deleted;
lib/libutil/ohash.c
202
h->total = h->deleted = 0;
lib/libutil/ohash.c
77
if (4 * h->deleted < h->total) {
lib/libutil/ohash.c
82
} else if (3 * h->deleted > 2 * h->total)
lib/libutil/ohash.h
42
unsigned int total;
lib/libz/inflate.c
105
strm->total_in = strm->total_out = state->total = 0;
lib/libz/inflate.c
1155
state->total += out;
lib/libz/inflate.c
1182
if ((state->wrap & 4) && hold != (state->total & 0xffffffff)) {
lib/libz/inflate.c
1229
state->total += out;
lib/libz/inflate.h
93
unsigned long total; /* protected copy of output count */
libexec/ld.so/malloc.c
121
u_short total; /* how many chunk */
libexec/ld.so/malloc.c
505
p->total = p->free = MALLOC_PAGESIZE >> p->shift;
libexec/ld.so/malloc.c
510
p->total = p->free = MALLOC_PAGESIZE >> p->shift;
libexec/ld.so/malloc.c
512
p->offset = howmany(p->total, MALLOC_BITS);
libexec/ld.so/malloc.c
517
i = p->total - 1;
libexec/ld.so/malloc.c
652
i = (r / MALLOC_CHUNK_LISTS) & (bp->total - 1);
libexec/ld.so/malloc.c
667
if (++i >= bp->total / MALLOC_BITS)
libexec/ld.so/malloc.c
772
if (info->free != info->total)
regress/lib/libc/fread/fread.c
126
total += nread;
regress/lib/libc/fread/fread.c
80
size_t nread, total = 0, off = 0;
regress/lib/libz/infcover.c
103
zone->total += item->size;
regress/lib/libz/infcover.c
104
if (zone->total > zone->highwater)
regress/lib/libz/infcover.c
105
zone->highwater = zone->total;
regress/lib/libz/infcover.c
144
zone->total -= next->size;
regress/lib/libz/infcover.c
165
zone->total = 0;
regress/lib/libz/infcover.c
188
fprintf(stderr, "%s: %zu allocated\n", prefix, zone->total);
regress/lib/libz/infcover.c
220
if (count || zone->total)
regress/lib/libz/infcover.c
222
prefix, zone->total, count);
regress/lib/libz/infcover.c
65
size_t total, highwater; /* total allocations, and largest total */
regress/lib/libz/infcover.c
79
if (zone == NULL || (zone->limit && zone->total + len > zone->limit))
regress/sbin/ifconfig/ifaddr.c
1848
sec2str(time_t total)
regress/sbin/ifconfig/ifaddr.c
1854
snprintf(p, end - p, "%lld", (long long)total);
regress/sys/net/pflow/gen_traffic.c
201
static size_t total = 0;
regress/sys/net/pflow/gen_traffic.c
224
total += n;
regress/usr.bin/ssh/modpipe.c
100
for (total = 0;;) {
regress/usr.bin/ssh/modpipe.c
110
if (mods[i].offset < total ||
regress/usr.bin/ssh/modpipe.c
111
mods[i].offset >= total + s)
regress/usr.bin/ssh/modpipe.c
115
buf[mods[i].offset - total] ^= mods[i].m1;
regress/usr.bin/ssh/modpipe.c
118
buf[mods[i].offset - total] &= mods[i].m1;
regress/usr.bin/ssh/modpipe.c
119
buf[mods[i].offset - total] |= mods[i].m2;
regress/usr.bin/ssh/modpipe.c
133
total += s;
regress/usr.bin/ssh/modpipe.c
138
if (mods[i].offset < total)
regress/usr.bin/ssh/modpipe.c
80
size_t total;
sbin/atactl/atactl.c
510
unsigned int total;
sbin/atactl/atactl.c
532
total = agt.bytes_copied;
sbin/atactl/atactl.c
535
while (p < total) {
sbin/atactl/atactl.c
537
if (p >= total)
sbin/atactl/atactl.c
543
if (p >= total)
sbin/atactl/atactl.c
602
if (entrysize < 2 || p + 2 > total)
sbin/atactl/atactl.c
624
if (entrysize != 3 || p + 3 > total)
sbin/atactl/atactl.c
668
if (entrysize != 7 || p + 7 > total)
sbin/atactl/atactl.c
691
if (entrysize != 3 || p + 3 > total)
sbin/atactl/atactl.c
728
if (entrysize != 9 || p + 9 > total)
sbin/atactl/atactl.c
758
if (++p >= total)
sbin/dhcpleased/frontend.c
1099
ssize_t total, result;
sbin/dhcpleased/frontend.c
1143
total = 0;
sbin/dhcpleased/frontend.c
1145
total += iov[i].iov_len;
sbin/dhcpleased/frontend.c
1150
else if (result < total) {
sbin/dhcpleased/frontend.c
1152
total);
sbin/disklabel/editor.c
410
uint64_t total = 0;
sbin/disklabel/editor.c
414
total += CHUNKSZ(chunk);
sbin/disklabel/editor.c
420
fprintf(stderr, "Total free sectors: %llu.\n", total);
sbin/ifconfig/ifconfig.c
6759
sec2str(time_t total)
sbin/ifconfig/ifconfig.c
6765
snprintf(p, end - p, "%lld", (long long)total);
sbin/iked/ikev2_pld.c
193
size_t total, left;
sbin/iked/ikev2_pld.c
199
total = length - offset;
sbin/iked/ikev2_pld.c
202
if (ikev2_validate_pld(msg, offset, total, &pld))
sbin/iked/ikev2_pld.c
2148
size_t len, total, left;
sbin/iked/ikev2_pld.c
215
total -= sizeof(pld);
sbin/iked/ikev2_pld.c
2175
total = length - offset;
sbin/iked/ikev2_pld.c
2180
if (ikev2_validate_pld(msg, offset, total, &pld))
sbin/iked/ikev2_pld.c
2193
total -= sizeof(pld);
sbin/iked/ikev2_pld.c
2209
total -= left;
sbin/iked/ikev2_pld.c
288
total -= left;
sbin/iked/ikev2_pld.c
353
size_t total;
sbin/iked/ikev2_pld.c
360
total = (betoh16(sap.sap_length) - sizeof(sap));
sbin/iked/ikev2_pld.c
374
if (total < sap.sap_spisize) {
sbin/iked/ikev2_pld.c
376
"proposal (%zu < %d)", __func__, total,
sbin/iked/ikev2_pld.c
399
total -= sap.sap_spisize;
sbin/iked/ikev2_pld.c
406
if (left < total) {
sbin/iked/ikev2_pld.c
408
"(%zu < %zu)", __func__, left, total);
sbin/iked/ikev2_pld.c
438
r = ikev2_pld_xform(env, msg, offset, total);
sbin/iked/ikev2_pld.c
453
offset += total;
sbin/iked/ikev2_pld.c
454
left -= total;
sbin/iked/ikev2_pld.c
461
ikev2_validate_xform(struct iked_message *msg, size_t offset, size_t total,
sbin/iked/ikev2_pld.c
467
if (total < sizeof(*xfrm)) {
sbin/iked/ikev2_pld.c
469
"(%zu < %zu)", __func__, total, sizeof(*xfrm));
sbin/iked/ikev2_pld.c
480
if (total < xfrm_length) {
sbin/iked/ikev2_pld.c
482
"(%zu < %zu)", __func__, total, xfrm_length);
sbin/iked/ikev2_pld.c
491
size_t offset, size_t total)
sbin/iked/ikev2_pld.c
499
if (ikev2_validate_xform(msg, offset, total, &xfrm))
sbin/iked/ikev2_pld.c
563
total -= xfrm_length;
sbin/iked/ikev2_pld.c
565
ret = ikev2_pld_xform(env, msg, offset, total);
sbin/iked/ikev2_pld.c
566
else if (total != 0) {
sbin/iked/ikev2_pld.c
569
__func__, total);
sbin/iked/ikev2_pld.c
577
ikev2_validate_attr(struct iked_message *msg, size_t offset, size_t total,
sbin/iked/ikev2_pld.c
582
if (total < sizeof(*attr)) {
sbin/iked/ikev2_pld.c
584
"(%zu < %zu)", __func__, total, sizeof(*attr));
sbin/iked/ikev2_pld.c
594
struct iked_message *msg, size_t offset, size_t total)
sbin/iked/ikev2_pld.c
602
if (ikev2_validate_attr(msg, offset, total, &attr))
sbin/iked/ikev2_pld.c
609
betoh16(attr.attr_length), total);
sbin/iked/ikev2_pld.c
614
total -= sizeof(attr);
sbin/iked/ikev2_pld.c
627
if (total < attr_length) {
sbin/iked/ikev2_pld.c
630
total, attr_length);
sbin/iked/ikev2_pld.c
636
total -= attr_length;
sbin/iked/ikev2_pld.c
639
if (total > 0) {
sbin/iked/ikev2_pld.c
641
ret = ikev2_pld_attr(env, xfrm, msg, offset, total);
sbin/unwind/libunbound/daemon/stats.h
107
void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a);
sbin/unwind/libunbound/services/authzone.c
799
size_t total, old_total;
sbin/unwind/libunbound/services/authzone.c
816
total = d->count + d->rrsig_count;
sbin/unwind/libunbound/services/authzone.c
827
else d->rr_len[total-1] = rdatalen;
sbin/unwind/libunbound/services/authzone.c
854
d->rr_ttl[total-1] = rr_ttl;
sbin/unwind/libunbound/services/authzone.c
855
memmove(d->rr_data[total-1], rdata, rdatalen);
sbin/unwind/libunbound/services/authzone.c
939
size_t sigs, sigsz, i, j, total;
sbin/unwind/libunbound/services/authzone.c
962
total = old->count + old->rrsig_count;
sbin/unwind/libunbound/services/authzone.c
968
if(total != 0)
sbin/unwind/libunbound/services/authzone.c
969
memmove(d->rr_len, old->rr_len, total*sizeof(size_t));
sbin/unwind/libunbound/services/authzone.c
981
if(total != 0) {
sbin/unwind/libunbound/services/authzone.c
982
memmove(d->rr_ttl, old->rr_ttl, total*sizeof(time_t));
sbin/unwind/libunbound/services/authzone.c
986
(old->rr_data[total-1] - old->rr_data[0]) +
sbin/unwind/libunbound/services/authzone.c
987
old->rr_len[total-1]);
sbin/unwind/libunbound/util/config_file.c
1004
total += strlen(s->str) + 1; /* len + newline */
sbin/unwind/libunbound/util/config_file.c
1005
left = total+1; /* one extra for nul at end */
sbin/unwind/libunbound/util/config_file.c
995
size_t total = 0, left;
sbin/unwind/libunbound/util/data/msgencode.c
518
size_t total = data->count+data->rrsig_count;
sbin/unwind/libunbound/util/data/msgencode.c
519
for(i=data->count; i<total; i++) {
sbin/unwind/libunbound/util/data/msgreply.c
101
size_t ns, size_t ar, size_t total, enum sec_status sec,
sbin/unwind/libunbound/util/data/msgreply.c
107
sizeof(struct ub_packed_rrset_key*) * total;
sbin/unwind/libunbound/util/data/msgreply.c
108
if(total >= RR_COUNT_MAX) return NULL; /* sanity check on numRRS*/
sbin/unwind/libunbound/util/data/msgreply.c
112
sizeof(struct rrset_ref) * (total));
sbin/unwind/libunbound/util/data/msgreply.c
124
rep->rrset_count = total;
sbin/unwind/libunbound/util/data/msgreply.c
133
else rep->rrsets = (struct ub_packed_rrset_key**)&(rep->ref[total]);
sbin/unwind/libunbound/util/data/msgreply.c
135
memset( rep->rrsets, 0, sizeof(struct ub_packed_rrset_key*) * total);
sbin/unwind/libunbound/util/data/msgreply.c
137
memset( &rep->ref[0], 0, sizeof(struct rrset_ref) * total);
sbin/unwind/libunbound/util/data/msgreply.c
349
size_t total = pset->rr_count + pset->rrsig_count;
sbin/unwind/libunbound/util/data/msgreply.c
358
data->rr_data = (uint8_t**)&(data->rr_len[total]);
sbin/unwind/libunbound/util/data/msgreply.c
359
data->rr_ttl = (time_t*)&(data->rr_data[total]);
sbin/unwind/libunbound/util/data/msgreply.c
360
nextrdata = (uint8_t*)&(data->rr_ttl[total]);
sbin/unwind/libunbound/util/data/msgreply.c
372
for(i=data->count; i<total; i++) {
sbin/unwind/libunbound/util/data/msgreply.h
272
size_t ns, size_t ar, size_t total, enum sec_status sec,
sbin/unwind/libunbound/util/data/packed_rrset.c
149
size_t total;
sbin/unwind/libunbound/util/data/packed_rrset.c
152
total = d1->count + d1->rrsig_count;
sbin/unwind/libunbound/util/data/packed_rrset.c
153
for(i=0; i<total; i++) {
sbin/unwind/libunbound/util/data/packed_rrset.c
181
size_t total = data->count + data->rrsig_count;
sbin/unwind/libunbound/util/data/packed_rrset.c
186
data->rr_data = (uint8_t**)&(data->rr_len[total]);
sbin/unwind/libunbound/util/data/packed_rrset.c
187
data->rr_ttl = (time_t*)&(data->rr_data[total]);
sbin/unwind/libunbound/util/data/packed_rrset.c
188
nextrdata = (uint8_t*)&(data->rr_ttl[total]);
sbin/unwind/libunbound/util/data/packed_rrset.c
189
for(i=0; i<total; i++) {
sbin/unwind/libunbound/util/data/packed_rrset.c
222
size_t total = data->count + data->rrsig_count;
sbin/unwind/libunbound/util/data/packed_rrset.c
225
for(i=0; i<total; i++)
sbin/unwind/libunbound/util/netevent.c
4969
size_t total = sldns_buffer_limit(c->buffer);
sbin/unwind/libunbound/util/netevent.c
4971
sldns_buffer_set_position(c->buffer, total);
sbin/unwind/libunbound/util/netevent.c
4972
c->http_stored = total;
sbin/unwind/libunbound/util/netevent.c
5046
size_t total = sldns_buffer_limit(c->buffer);
sbin/unwind/libunbound/util/netevent.c
5048
sldns_buffer_set_position(c->buffer, total);
sbin/unwind/libunbound/util/netevent.c
5049
c->http_stored = total;
sbin/unwind/libunbound/util/storage/slabhash.c
147
size_t i, total = 0;
sbin/unwind/libunbound/util/storage/slabhash.c
150
total += sl->array[i]->space_max;
sbin/unwind/libunbound/util/storage/slabhash.c
153
return total;
sbin/unwind/libunbound/util/storage/slabhash.c
178
size_t i, total = sizeof(*sl);
sbin/unwind/libunbound/util/storage/slabhash.c
179
total += sizeof(struct lruhash*)*sl->size;
sbin/unwind/libunbound/util/storage/slabhash.c
181
total += lruhash_get_mem(sl->array[i]);
sbin/unwind/libunbound/util/storage/slabhash.c
183
return total;
sbin/unwind/libunbound/validator/autotrust.c
665
size_t count=0, rrsig_count=0, len=0, i, total;
sbin/unwind/libunbound/validator/autotrust.c
684
total = count + rrsig_count;
sbin/unwind/libunbound/validator/autotrust.c
685
len += sizeof(*data) + total*(sizeof(size_t) + sizeof(time_t) +
sbin/unwind/libunbound/validator/autotrust.c
697
data->rr_data = (uint8_t**)&(data->rr_len[total]);
sbin/unwind/libunbound/validator/autotrust.c
698
data->rr_ttl = (time_t*)&(data->rr_data[total]);
sbin/unwind/libunbound/validator/autotrust.c
699
nextrdata = (uint8_t*)&(data->rr_ttl[total]);
sbin/unwind/libunbound/validator/autotrust.c
715
for(i=0; i<total; i++) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
441
size_t i, total = n->num;
sbin/unwind/libunbound/validator/val_sigcrypt.c
450
sigalg[total] = algo;
sbin/unwind/libunbound/validator/val_sigcrypt.c
451
total++;
sbin/unwind/libunbound/validator/val_sigcrypt.c
454
sigalg[total] = 0;
sbin/unwind/libunbound/validator/val_sigcrypt.c
455
n->num = total;
sbin/unwind/libunbound/validator/val_sigcrypt.c
461
size_t total = 0;
sbin/unwind/libunbound/validator/val_sigcrypt.c
468
total++;
sbin/unwind/libunbound/validator/val_sigcrypt.c
470
n->num = total;
sbin/unwind/libunbound/validator/val_sigcrypt.c
477
size_t i, total = 0;
sbin/unwind/libunbound/validator/val_sigcrypt.c
490
sigalg[total] = algo;
sbin/unwind/libunbound/validator/val_sigcrypt.c
491
total++;
sbin/unwind/libunbound/validator/val_sigcrypt.c
494
sigalg[total] = 0;
sbin/unwind/libunbound/validator/val_sigcrypt.c
495
n->num = total;
sys/arch/alpha/alpha/fp_complete.c
145
static int total;
sys/arch/alpha/alpha/fp_complete.c
156
if (total >= 1000)
sys/arch/alpha/alpha/fp_complete.c
158
++total;
sys/arch/amd64/stand/efiboot/memprobe.c
45
register u_int total = 0;
sys/arch/amd64/stand/efiboot/memprobe.c
56
total += p->size / 1024;
sys/arch/amd64/stand/efiboot/memprobe.c
60
printf("Total free memory: %uKB\n", total);
sys/arch/amd64/stand/libsa/memprobe.c
318
register u_int total = 0;
sys/arch/amd64/stand/libsa/memprobe.c
329
total += p->size / 1024;
sys/arch/amd64/stand/libsa/memprobe.c
333
printf("Total free memory: %uKB\n", total);
sys/arch/hppa/stand/mkboot/mkboot.c
182
register int n, total;
sys/arch/hppa/stand/mkboot/mkboot.c
238
total = 0;
sys/arch/hppa/stand/mkboot/mkboot.c
251
total += n;
sys/arch/hppa/stand/mkboot/mkboot.c
257
load.count = htobe32(4 + total);
sys/arch/hppa/stand/mkboot/mkboot.c
261
warnx("wrote %d bytes of file \'%s\'", total, from_file);
sys/arch/hppa/stand/mkboot/mkboot.c
263
total += sizeof(load);
sys/arch/hppa/stand/mkboot/mkboot.c
265
lseek(to, -total, SEEK_CUR);
sys/arch/hppa/stand/mkboot/mkboot.c
268
lseek(to, total - sizeof(load), SEEK_CUR);
sys/arch/hppa/stand/mkboot/mkboot.c
272
n = sizeof(int) - total % sizeof(int);
sys/arch/hppa/stand/mkboot/mkboot.c
273
if (total % sizeof(int)) {
sys/arch/hppa/stand/mkboot/mkboot.c
277
total += n;
sys/arch/hppa/stand/mkboot/mkboot.c
281
n = sizeof(buf) - total % sizeof(buf);
sys/arch/hppa/stand/mkboot/mkboot.c
285
total += sizeof(buf);
sys/arch/hppa/stand/mkboot/mkboot.c
287
total += n;
sys/arch/hppa/stand/mkboot/mkboot.c
306
return total;
sys/arch/i386/stand/libsa/memprobe.c
312
register u_int total = 0;
sys/arch/i386/stand/libsa/memprobe.c
323
total += p->size / 1024;
sys/arch/i386/stand/libsa/memprobe.c
327
printf("Total free memory: %uKB\n", total);
sys/arch/octeon/dev/if_cnmac.c
1129
unsigned int left, total, size;
sys/arch/octeon/dev/if_cnmac.c
1138
total = left = (word1 & PIP_WQE_WORD1_LEN) >> 48;
sys/arch/octeon/dev/if_cnmac.c
1181
m0->m_pkthdr.len = total;
sys/arch/powerpc64/powerpc64/machdep.c
636
size_t count, total;
sys/arch/powerpc64/powerpc64/machdep.c
642
total = 0;
sys/arch/powerpc64/powerpc64/machdep.c
650
total += count;
sys/arch/powerpc64/powerpc64/machdep.c
662
*done = total;
sys/arch/powerpc64/powerpc64/machdep.c
672
size_t count, total;
sys/arch/powerpc64/powerpc64/machdep.c
678
total = 0;
sys/arch/powerpc64/powerpc64/machdep.c
686
total += count;
sys/arch/powerpc64/powerpc64/machdep.c
698
*done = total;
sys/dev/fdt/amlpwm.c
143
uint32_t total, high;
sys/dev/fdt/amlpwm.c
163
total = PWM_PWM_LOW(pwm) + PWM_PWM_HIGH(pwm);
sys/dev/fdt/amlpwm.c
167
ps->ps_period = cycles_to_ns(sc->sc_clkin[idx], clk_div, total);
sys/dev/fdt/amlpwm.c
180
uint32_t total, high, low;
sys/dev/fdt/amlpwm.c
195
total = ns_to_cycles(sc->sc_clkin[idx], clk_div, ps->ps_period);
sys/dev/fdt/amlpwm.c
196
while ((total / clk_div) > 0xffff)
sys/dev/fdt/amlpwm.c
201
total = ns_to_cycles(sc->sc_clkin[idx], clk_div, ps->ps_period);
sys/dev/fdt/amlpwm.c
203
low = total - high;
sys/dev/ic/ar5xxx.c
1025
u_int32_t total, offset;
sys/dev/ic/ar5xxx.c
1036
for (offset = 0x1f, octet = 0, total = 0;
sys/dev/ic/ar5xxx.c
1041
total += data;
sys/dev/ic/ar5xxx.c
1049
if ((!total) || total == (3 * 0xffff))
sys/dev/ic/bcmgenet.c
307
uint32_t cidx, index, total;
sys/dev/ic/bcmgenet.c
312
total = (sc->sc_rx.pidx - cidx) & 0xffff;
sys/dev/ic/bcmgenet.c
313
KASSERT(total <= RX_DESC_COUNT);
sys/dev/ic/bcmgenet.c
316
for (slots = if_rxr_get(&sc->sc_rx_ring, total);
sys/dev/ic/bcmgenet.c
687
uint32_t status, pidx, total;
sys/dev/ic/bcmgenet.c
690
total = (pidx - sc->sc_rx.pidx) & 0xffff;
sys/dev/ic/bcmgenet.c
692
DPRINTF("RX pidx=%08x total=%d\n", pidx, total);
sys/dev/ic/bcmgenet.c
695
for (n = 0; n < total; n++) {
sys/dev/ic/ciss.c
141
int error, i, total, rseg, maxfer;
sys/dev/ic/ciss.c
223
total = sc->ccblen * sc->maxcmd;
sys/dev/ic/ciss.c
224
if ((error = bus_dmamem_alloc(sc->dmat, total, PAGE_SIZE, 0,
sys/dev/ic/ciss.c
230
if ((error = bus_dmamem_map(sc->dmat, sc->cmdseg, rseg, total,
sys/dev/ic/ciss.c
236
if ((error = bus_dmamap_create(sc->dmat, total, 1,
sys/dev/ic/ciss.c
237
total, 0, BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW, &sc->cmdmap))) {
sys/dev/ic/ciss.c
243
if ((error = bus_dmamap_load(sc->dmat, sc->cmdmap, sc->ccbs, total,
sys/dev/ic/ciss.c
255
for (i = 0; total; i++, total -= sc->ccblen) {
sys/dev/ic/ciss.c
751
int total, rv;
sys/dev/ic/ciss.c
756
total = sizeof(*lmap) + (sc->maxunits - 1) * sizeof(lmap->map);
sys/dev/ic/ciss.c
764
ccb->ccb_len = total;
sys/dev/ic/ciss.c
774
cmd->cdb[8] = total >> 8; /* biiiig endian */
sys/dev/ic/ciss.c
775
cmd->cdb[9] = total & 0xff;
sys/dev/ic/pgt.c
1313
size_t total;
sys/dev/ic/pgt.c
1318
total = sizeof(oid) + size + sizeof(struct pgt_async_trap);
sys/dev/ic/pgt.c
1319
if (total > MLEN) {
sys/dev/ic/pgt.c
1334
m->m_len = total;
sys/dev/ic/qla.c
2317
u_int16_t origin, done, total;
sys/dev/ic/qla.c
2322
total = src[3];
sys/dev/ic/qla.c
2324
while (done < total) {
sys/dev/ic/qla.c
2329
words = MIN(total - done, 1 << 10);
sys/dev/microcode/bnx/build.c
124
int fd, i, total;
sys/dev/microcode/bnx/build.c
137
total = rlen;
sys/dev/microcode/bnx/build.c
138
printf(" [%d", total);
sys/dev/microcode/bnx/build.c
154
total += rlen;
sys/dev/microcode/bnx/build.c
157
printf("] total %d\n", total);
sys/dev/microcode/myx/build.c
43
size_t rlen, total = 0;
sys/dev/microcode/myx/build.c
71
rlen = ulen - total;
sys/dev/microcode/myx/build.c
75
if (fwrite(&ufw[total], rlen, 1, f) < 1) {
sys/dev/microcode/myx/build.c
81
total += rlen;
sys/dev/microcode/myx/build.c
82
} while (total < ulen);
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
113
static void aca_smu_bank_dump(struct amdgpu_device *adev, int idx, int total, struct aca_bank *bank,
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.c
128
idx + 1, total, aca_regs[i].name, bank->regs[aca_regs[i].reg_idx]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2806
bool total, skip_bios;
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2911
total = true;
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2928
total = false;
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2975
if (!total)
sys/dev/pci/drm/amd/amdgpu/amdgpu_mca.h
164
enum amdgpu_mca_error_type type, uint32_t *total);
sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h
122
#define AMDGIM_GET_STRUCTURE_RESERVED_SIZE(total, u8, u16, u32, u64) \
sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h
123
(total - (((u8)+3) / 4 + ((u16)+1) / 2 + (u32) + (u64)*2))
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
442
size_t total;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
468
total = log_ctx->pos + n + 1;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
470
if (total > log_ctx->size) {
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
471
char *buf = kvcalloc(total, sizeof(char), GFP_KERNEL);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
478
log_ctx->size = total;
sys/dev/pci/drm/amd/display/dc/dc_dp_types.h
1392
unsigned int total;
sys/dev/pci/drm/amd/display/dc/link/accessories/link_dp_trace.c
73
link->dp_trace.detect_lt_trace.counts.total++;
sys/dev/pci/drm/amd/display/dc/link/accessories/link_dp_trace.c
75
link->dp_trace.commit_lt_trace.counts.total++;
sys/dev/pci/drm/amd/display/modules/freesync/freesync.c
1280
unsigned int total = stream->timing.h_total * stream->timing.v_total;
sys/dev/pci/drm/amd/display/modules/freesync/freesync.c
1286
nominal_field_rate_in_uhz = div_u64(nominal_field_rate_in_uhz, total);
sys/dev/pci/drm/apple/parser.c
286
ret = parse_int(it.handle, &dim->total);
sys/dev/pci/drm/apple/parser.c
421
u32 pixels = horiz->total * vert->total;
sys/dev/pci/drm/apple/parser.c
533
.vtotal = vert.total,
sys/dev/pci/drm/apple/parser.c
539
.htotal = horiz.total,
sys/dev/pci/drm/apple/parser.h
97
s64 total, front_porch, sync_width, active;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2745
int tosend, total, offset;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2749
total = len;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2752
tosend = min3(mgr->max_dpcd_transaction_bytes, 16, total);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2766
total -= tosend;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2767
} while (total > 0);
sys/dev/pci/drm/drm_mm.c
1000
u64 total_used = 0, total_free = 0, total = 0;
sys/dev/pci/drm/drm_mm.c
1010
total = total_free + total_used;
sys/dev/pci/drm/drm_mm.c
1012
drm_printf(p, "total: %llu, used %llu free %llu\n", total,
sys/dev/pci/drm/i915/display/intel_bios.c
105
u32 total, current_size;
sys/dev/pci/drm/i915/display/intel_bios.c
110
total = bdb->bdb_size;
sys/dev/pci/drm/i915/display/intel_bios.c
113
while (index + 3 < total) {
sys/dev/pci/drm/i915/display/intel_bios.c
118
if (index + current_size > total)
sys/dev/pci/drm/i915/display/intel_bios.c
1773
u32 total = get_blocksize(sequence);
sys/dev/pci/drm/i915/display/intel_bios.c
1785
for (i = 0; i < MAX_MIPI_CONFIGURATIONS && index < total; i++) {
sys/dev/pci/drm/i915/display/intel_bios.c
1786
if (index + header_size > total) {
sys/dev/pci/drm/i915/display/intel_bios.c
1800
if (index + current_size > total) {
sys/dev/pci/drm/i915/display/intel_bios.c
1820
const u8 *data, int index, int total)
sys/dev/pci/drm/i915/display/intel_bios.c
1825
for (index = index + 1; index < total; index += len) {
sys/dev/pci/drm/i915/display/intel_bios.c
1833
if (index + 4 > total)
sys/dev/pci/drm/i915/display/intel_bios.c
1845
if (index + 7 > total)
sys/dev/pci/drm/i915/display/intel_bios.c
1859
const u8 *data, int index, int total)
sys/dev/pci/drm/i915/display/intel_bios.c
1869
if (total < 5) {
sys/dev/pci/drm/i915/display/intel_bios.c
1886
if (seq_end > total) {
sys/dev/pci/drm/i915/display/intel_bios.c
1891
for (; index < total; index += len) {
sys/dev/pci/drm/i915/display/intel_dpt.c
292
vm->total = (size / sizeof(gen8_pte_t)) * I915_GTT_PAGE_SIZE;
sys/dev/pci/drm/i915/gem/i915_gem_context.c
2580
args->value = vm->total;
sys/dev/pci/drm/i915/gem/i915_gem_ttm.c
145
} else if (resource_size(&mr->io) && resource_size(&mr->io) < mr->total) {
sys/dev/pci/drm/i915/gem/selftests/huge_pages.c
1236
max = min(max, ce->vm->total);
sys/dev/pci/drm/i915/gem/selftests/huge_pages.c
740
max_pages = vm->total >> PAGE_SHIFT;
sys/dev/pci/drm/i915/gem/selftests/i915_gem_context.c
1825
vm_total = ctx_a->vm->total;
sys/dev/pci/drm/i915/gem/selftests/i915_gem_context.c
1826
GEM_BUG_ON(ctx_b->vm->total != vm_total);
sys/dev/pci/drm/i915/gem/selftests/i915_gem_context.c
448
GEM_BUG_ON(obj->base.size > ce->vm->total);
sys/dev/pci/drm/i915/gem/selftests/i915_gem_context.c
589
size = min(vm->total / 2, 1024ull * DW_PER_PAGE * PAGE_SIZE);
sys/dev/pci/drm/i915/gem/selftests/i915_gem_mman.c
1053
u64 size, total;
sys/dev/pci/drm/i915/gem/selftests/i915_gem_mman.c
1056
total = 0;
sys/dev/pci/drm/i915/gem/selftests/i915_gem_mman.c
1083
total += obj->base.size;
sys/dev/pci/drm/i915/gem/selftests/i915_gem_mman.c
1086
pr_info("%s filled=%lluMiB\n", __func__, total >> 20);
sys/dev/pci/drm/i915/gem/selftests/i915_gem_mman.c
1326
if (resource_size(&mr->io) == mr->total) {
sys/dev/pci/drm/i915/gem/selftests/i915_gem_mman.c
337
(1 + next_prime_number(to_gt(i915)->ggtt->vm.total >> PAGE_SHIFT)) << PAGE_SHIFT);
sys/dev/pci/drm/i915/gem/selftests/i915_gem_mman.c
474
(1 + next_prime_number(to_gt(i915)->ggtt->vm.total >> PAGE_SHIFT)) << PAGE_SHIFT);
sys/dev/pci/drm/i915/gem/selftests/i915_gem_object.c
46
to_gt(i915)->ggtt->vm.total + PAGE_SIZE);
sys/dev/pci/drm/i915/gt/gen6_ppgtt.c
293
gen6_flush_pd(ppgtt, 0, ppgtt->base.vm.total);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
184
return (vm->total + (1ull << shift) - 1) >> shift;
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
246
GEM_BUG_ON(end > vm->total >> GEN8_PTE_SHIFT);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
312
GEM_BUG_ON(range_overflows(start, length, vm->total));
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
329
GEM_BUG_ON(end > vm->total >> GEN8_PTE_SHIFT);
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
396
GEM_BUG_ON(range_overflows(start, length, vm->total));
sys/dev/pci/drm/i915/gt/gen8_ppgtt.c
988
vm->total -= vma->node.size;
sys/dev/pci/drm/i915/gt/intel_context.c
616
u64 total, active;
sys/dev/pci/drm/i915/gt/intel_context.c
621
total = ce->stats.runtime.total;
sys/dev/pci/drm/i915/gt/intel_context.c
623
total *= ce->engine->gt->clock_period_ns;
sys/dev/pci/drm/i915/gt/intel_context.c
629
return total + active;
sys/dev/pci/drm/i915/gt/intel_context_types.h
158
u64 total;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
54
stats->total = ktime_add(stats->total,
sys/dev/pci/drm/i915/gt/intel_engine_types.h
316
ktime_t total;
sys/dev/pci/drm/i915/gt/intel_engine_types.h
350
u64 total;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3401
ktime_t total = stats->total;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3409
total = ktime_add(total, ktime_sub(*now, stats->start));
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3411
return total;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3419
ktime_t total;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3423
total = __execlists_engine_busyness(engine, now);
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3426
return total;
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1034
if (GEM_WARN_ON(ppgtt->vm.total < ggtt->vm.total)) {
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1039
err = i915_vm_alloc_pt_stash(&ppgtt->vm, &stash, ggtt->vm.total);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1055
ppgtt->vm.allocate_va_range(&ppgtt->vm, &stash, 0, ggtt->vm.total);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1410
ggtt->vm.total = (size / sizeof(gen8_pte_t)) * I915_GTT_PAGE_SIZE;
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1615
ggtt->vm.total = (size / sizeof(gen6_pte_t)) * I915_GTT_PAGE_SIZE;
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1672
if ((ggtt->vm.total - 1) >> 32) {
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1676
ggtt->vm.total >> 20);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1677
ggtt->vm.total = 1ULL << 32;
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1679
min_t(u64, ggtt->mappable_end, ggtt->vm.total);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1682
if (ggtt->mappable_end > ggtt->vm.total) {
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1686
&ggtt->mappable_end, ggtt->vm.total);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1687
ggtt->mappable_end = ggtt->vm.total;
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1691
drm_dbg(&i915->drm, "GGTT size = %lluM\n", ggtt->vm.total >> 20);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
1770
vm->clear_range(vm, 0, vm->total);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
201
vm->clear_range(vm, 0, vm->total);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
863
GEM_BUG_ON(ggtt->vm.total <= GUC_TOP_RESERVE_SIZE);
sys/dev/pci/drm/i915/gt/intel_ggtt.c
864
offset = ggtt->vm.total - GUC_TOP_RESERVE_SIZE;
sys/dev/pci/drm/i915/gt/intel_ggtt.c
982
ggtt->vm.clear_range(&ggtt->vm, ggtt->vm.total - PAGE_SIZE, PAGE_SIZE);
sys/dev/pci/drm/i915/gt/intel_ggtt_gmch.c
96
intel_gmch_gtt_get(&ggtt->vm.total, &gmadr_base, &ggtt->mappable_end);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
426
ktime_t total = gt->stats.total;
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
429
total = ktime_add(total,
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
432
return total;
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
438
ktime_t total;
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
443
total = __intel_gt_get_awake_time(gt);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
448
total = __intel_gt_get_awake_time(gt);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
452
return total;
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
76
gt->stats.total =
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
77
ktime_add(gt->stats.total,
sys/dev/pci/drm/i915/gt/intel_gt_types.h
195
ktime_t total;
sys/dev/pci/drm/i915/gt/intel_gtt.c
300
GEM_BUG_ON(!vm->total);
sys/dev/pci/drm/i915/gt/intel_gtt.c
301
drm_mm_init(&vm->mm, 0, vm->total);
sys/dev/pci/drm/i915/gt/intel_gtt.h
260
u64 total; /* size addr space maps (ex. 2GB for ggtt) */
sys/dev/pci/drm/i915/gt/intel_gtt.h
432
return (vm->total - 1) >> 32;
sys/dev/pci/drm/i915/gt/intel_gtt.h
64
#define ggtt_total_entries(ggtt) ((ggtt)->vm.total >> PAGE_SHIFT)
sys/dev/pci/drm/i915/gt/intel_lrc.c
1979
stats->runtime.total += dt;
sys/dev/pci/drm/i915/gt/intel_migrate.c
374
u32 total = 0;
sys/dev/pci/drm/i915/gt/intel_migrate.c
432
if (IS_ALIGNED(total, SZ_2M)) {
sys/dev/pci/drm/i915/gt/intel_migrate.c
435
dword_rem = SZ_2M - (total & (SZ_2M - 1));
sys/dev/pci/drm/i915/gt/intel_migrate.c
455
total += page_size;
sys/dev/pci/drm/i915/gt/intel_migrate.c
466
} while (total < length);
sys/dev/pci/drm/i915/gt/intel_migrate.c
475
return total;
sys/dev/pci/drm/i915/gt/intel_ppgtt.c
315
ppgtt->vm.total = BIT_ULL(RUNTIME_INFO(i915)->ppgtt_size);
sys/dev/pci/drm/i915/gt/intel_rps.c
330
u64 total, delta;
sys/dev/pci/drm/i915/gt/intel_rps.c
345
total = intel_uncore_read(uncore, DMIEC);
sys/dev/pci/drm/i915/gt/intel_rps.c
346
total += intel_uncore_read(uncore, DDREC);
sys/dev/pci/drm/i915/gt/intel_rps.c
347
total += intel_uncore_read(uncore, CSIEC);
sys/dev/pci/drm/i915/gt/intel_rps.c
349
delta = total - ips->last_count1;
sys/dev/pci/drm/i915/gt/intel_rps.c
353
ips->last_count1 = total;
sys/dev/pci/drm/i915/gt/intel_sseu.c
25
unsigned int i, total = 0;
sys/dev/pci/drm/i915/gt/intel_sseu.c
32
total += hweight8(sseu->subslice_mask.hsw[i]);
sys/dev/pci/drm/i915/gt/intel_sseu.c
34
return total;
sys/dev/pci/drm/i915/gt/intel_sseu.c
72
int s, ss, total = 0;
sys/dev/pci/drm/i915/gt/intel_sseu.c
77
total += hweight16(sseu->eu_mask.xehp[ss]);
sys/dev/pci/drm/i915/gt/intel_sseu.c
79
total += hweight16(sseu->eu_mask.hsw[s][ss]);
sys/dev/pci/drm/i915/gt/intel_sseu.c
81
return total;
sys/dev/pci/drm/i915/gt/selftest_tlb.c
67
addr = igt_random_offset(prng, addr, min(ce->vm->total, BIT_ULL(48)),
sys/dev/pci/drm/i915/gt/uc/intel_guc_ads.c
451
long total = 0;
sys/dev/pci/drm/i915/gt/uc/intel_guc_ads.c
462
total += guc->ads_regset_count[id];
sys/dev/pci/drm/i915/gt/uc/intel_guc_ads.c
470
return total * sizeof(struct guc_mmio_reg);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1229
u32 *last_in, u32 *id, u32 *total)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1237
*total = record_read(&rec_map, total_runtime);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1241
record_read(&rec_map, total_runtime) == *total)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1247
u32 last_in, u32 id, u32 total)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1256
record_write(&rec_map, total_runtime, total);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1265
u32 last_switch, ctx_id, total;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1269
__get_engine_usage_record(engine, &last_switch, &ctx_id, &total);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1279
if (total && total != ~0U) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1280
stats->total_gt_clks += (u32)(total - stats->prev_total);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1281
stats->prev_total = total;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1327
u64 total, gt_stamp_saved;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1371
total = intel_gt_clock_interval_to_ns(gt, stats->total_gt_clks);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1375
total += intel_gt_clock_interval_to_ns(gt, clk);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1378
if (total > stats->total)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1379
stats->total = total;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1383
return ns_to_ktime(stats->total);
sys/dev/pci/drm/i915/gvt/debugfs.c
122
seq_printf(s, "Total: %d, Diff: %d\n", param.total, param.diff);
sys/dev/pci/drm/i915/gvt/debugfs.c
30
int total;
sys/dev/pci/drm/i915/gvt/debugfs.c
79
param->total++;
sys/dev/pci/drm/i915/gvt/debugfs.c
90
.total = 0,
sys/dev/pci/drm/i915/gvt/gvt.h
406
#define gvt_ggtt_gm_sz(gvt) gvt_to_ggtt(gvt)->vm.total
sys/dev/pci/drm/i915/gvt/gvt.h
407
#define gvt_ggtt_sz(gvt) (gvt_to_ggtt(gvt)->vm.total >> PAGE_SHIFT << 3)
sys/dev/pci/drm/i915/i915_drm_client.c
123
u64 total = 0;
sys/dev/pci/drm/i915/i915_drm_client.c
129
total += intel_context_get_total_runtime_ns(ce);
sys/dev/pci/drm/i915/i915_drm_client.c
132
return total;
sys/dev/pci/drm/i915/i915_drm_client.c
142
u64 total = atomic64_read(&client->past_runtime[class]);
sys/dev/pci/drm/i915/i915_drm_client.c
147
total += busy_add(ctx, class);
sys/dev/pci/drm/i915/i915_drm_client.c
152
uabi_class_names[class], total);
sys/dev/pci/drm/i915/i915_gem.c
108
args->aper_size = ggtt->vm.total;
sys/dev/pci/drm/i915/i915_gem_gtt.c
113
GEM_BUG_ON(range_overflows(offset, size, vm->total));
sys/dev/pci/drm/i915/i915_gpu_error.c
764
u32 total = 0;
sys/dev/pci/drm/i915/i915_gpu_error.c
778
u32 *values = hw_state + total + entry;
sys/dev/pci/drm/i915/i915_gpu_error.c
784
total += entry;
sys/dev/pci/drm/i915/i915_query.c
513
info.probed_size = mr->total;
sys/dev/pci/drm/i915/i915_query.c
518
info.probed_cpu_visible_size = mr->total;
sys/dev/pci/drm/i915/i915_vgpu.c
259
unsigned long ggtt_end = ggtt->vm.total;
sys/dev/pci/drm/i915/i915_vma.c
209
if (unlikely(vma->size > vm->total))
sys/dev/pci/drm/i915/i915_vma.c
232
vma->fence_size > vm->total))
sys/dev/pci/drm/i915/i915_vma.c
498
vma->vm->total))) {
sys/dev/pci/drm/i915/i915_vma.c
836
end = vma->vm->total;
sys/dev/pci/drm/i915/intel_memory_region.c
216
drm_printf(printer, "total:%pa bytes\n", &mr->total);
sys/dev/pci/drm/i915/intel_memory_region.c
273
mem->total = size;
sys/dev/pci/drm/i915/intel_memory_region.c
322
*avail = mr->total;
sys/dev/pci/drm/i915/intel_memory_region.c
323
*visible_avail = mr->total;
sys/dev/pci/drm/i915/intel_memory_region.h
69
resource_size_t total;
sys/dev/pci/drm/i915/intel_region_ttm.c
228
} else if (resource_size(&mem->io) && resource_size(&mem->io) < mem->total) {
sys/dev/pci/drm/i915/selftests/i915_gem_evict.c
413
0, ggtt->vm.total,
sys/dev/pci/drm/i915/selftests/i915_gem_evict.c
433
0, ggtt->vm.total,
sys/dev/pci/drm/i915/selftests/i915_gem_evict.c
75
count, ggtt->vm.total / PAGE_SIZE);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1215
GEM_BUG_ON(offset_in_page(ppgtt->vm.total));
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1218
err = func(&ppgtt->vm, 0, ppgtt->vm.total, end_time);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1472
err = func(vm, 0, min(vm->total, limit), end_time);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1540
u64 total;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1550
for (total = 0;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1551
total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1552
total += 2 * I915_GTT_PAGE_SIZE) {
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1575
err = reserve_gtt_with_resource(vma, total);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1578
total, ggtt->vm.total, err);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1584
if (vma->node.start != total ||
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1588
total, 2*I915_GTT_PAGE_SIZE);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1595
for (total = I915_GTT_PAGE_SIZE;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1596
total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1597
total += 2 * I915_GTT_PAGE_SIZE) {
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1621
err = reserve_gtt_with_resource(vma, total);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1624
total, ggtt->vm.total, err);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1630
if (vma->node.start != total ||
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1634
total, 2*I915_GTT_PAGE_SIZE);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1658
0, ggtt->vm.total,
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1665
total, ggtt->vm.total, err);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1702
obj->pat_index, 0, vm->total, 0);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1725
ggtt->vm.total + I915_GTT_PAGE_SIZE, 0,
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1726
0, ggtt->vm.total,
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1747
u64 total;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1773
for (total = 0;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1774
total + I915_GTT_PAGE_SIZE <= ggtt->vm.total;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1775
total += I915_GTT_PAGE_SIZE) {
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1807
total, ggtt->vm.total, err);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
181
limit = min(ppgtt->vm.total, limit);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1857
total, ggtt->vm.total, err);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1872
for (total = 0;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1873
total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total;
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1874
total += 2 * I915_GTT_PAGE_SIZE) {
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1901
total, ggtt->vm.total, err);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
1976
GEM_BUG_ON(offset_in_page(to_gt(i915)->ggtt->vm.total));
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
287
GEM_BUG_ON(count * BIT_ULL(aligned_size) > vm->total);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
315
GEM_BUG_ON(addr + BIT_ULL(aligned_size) > vm->total);
sys/dev/pci/drm/i915/selftests/i915_gem_gtt.c
374
GEM_BUG_ON(addr + BIT_ULL(size) > vm->total);
sys/dev/pci/drm/i915/selftests/i915_request.c
314
const unsigned int total = 4 * t->ncontexts + 1;
sys/dev/pci/drm/i915/selftests/i915_request.c
330
requests = kcalloc(total, sizeof(*requests), GFP_KERNEL);
sys/dev/pci/drm/i915/selftests/i915_request.c
336
order = i915_random_order(total, &prng);
sys/dev/pci/drm/i915/selftests/i915_request.c
360
i915_random_reorder(order, total, &prng);
sys/dev/pci/drm/i915/selftests/i915_vma.c
272
VALID(0, PIN_GLOBAL | PIN_OFFSET_BIAS | (ggtt->vm.total - 4096)),
sys/dev/pci/drm/i915/selftests/i915_vma.c
276
VALID(0, PIN_GLOBAL | PIN_OFFSET_FIXED | (ggtt->vm.total - 4096)),
sys/dev/pci/drm/i915/selftests/i915_vma.c
277
INVALID(0, PIN_GLOBAL | PIN_OFFSET_FIXED | ggtt->vm.total),
sys/dev/pci/drm/i915/selftests/i915_vma.c
285
VALID(ggtt->vm.total - 4096, PIN_GLOBAL),
sys/dev/pci/drm/i915/selftests/i915_vma.c
286
VALID(ggtt->vm.total, PIN_GLOBAL),
sys/dev/pci/drm/i915/selftests/i915_vma.c
287
NOSPACE(ggtt->vm.total + 4096, PIN_GLOBAL),
sys/dev/pci/drm/i915/selftests/i915_vma.c
290
INVALID(8192, PIN_GLOBAL | PIN_OFFSET_FIXED | (ggtt->vm.total - 4096)),
sys/dev/pci/drm/i915/selftests/i915_vma.c
303
NOSPACE(0, PIN_GLOBAL | PIN_OFFSET_BIAS | ggtt->vm.total),
sys/dev/pci/drm/i915/selftests/i915_vma.c
305
NOSPACE(8192, PIN_GLOBAL | PIN_OFFSET_BIAS | (ggtt->vm.total - 4096)),
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
244
resource_size_t total;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
249
total = resource_size(&mem->region);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
266
obj = igt_object_create(mem, &objects, total, I915_BO_ALLOC_CONTIGUOUS);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
280
div64_u64_rem(target, total, &target);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
310
n_objects = div64_u64(total, target);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
331
target = total >> 1;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
532
u64 total;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
534
total = 0;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
540
total += min_t(u64, end, resource_size(&mr->io)) - start;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
543
return total;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
553
u64 total;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
565
div64_u64_rem(i915_prandom_u64_state(&prng), SZ_8G, &total);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
566
total = round_down(total, ps);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
567
total = max_t(u64, total, SZ_1G);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
569
div64_u64_rem(i915_prandom_u64_state(&prng), total - ps, &io_size);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
57
resource_size_t total = resource_size(&mem->region);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
574
__func__, ps, io_size, total);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
576
mr = mock_region_create(i915, 0, total, ps, 0, io_size);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
583
rem = total - io_size;
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
606
(u64)total >> 20);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
66
max_pages = div64_u64(total, page_size);
sys/dev/pci/drm/i915/selftests/intel_memory_region.c
67
rem = total;
sys/dev/pci/drm/i915/selftests/mock_gtt.c
117
ggtt->vm.total = 4096 * PAGE_SIZE;
sys/dev/pci/drm/i915/selftests/mock_gtt.c
75
ppgtt->vm.total = round_down(U64_MAX, PAGE_SIZE);
sys/dev/pci/drm/include/uapi/drm/drm.h
379
int total; /**< Buffer size */
sys/dev/pci/if_aq_pci.c
3445
int total)
sys/dev/pci/if_aq_pci.c
3456
free(slots, M_DEVBUF, total * sizeof(*as));
sys/dev/pci/if_bnxt.c
863
int total)
sys/dev/pci/if_bnxt.c
874
free(slots, M_DEVBUF, total * sizeof(*bs));
sys/dev/pci/if_ipw.c
1418
uint32_t total;
sys/dev/pci/if_ipw.c
1426
total = count * size;
sys/dev/pci/if_ipw.c
1428
if (total > *len) {
sys/dev/pci/if_ipw.c
1429
*len = total;
sys/dev/pci/if_ipw.c
1432
*len = total;
sys/dev/pci/if_ipw.c
1433
ipw_read_mem_1(sc, addr, buf, total);
sys/dev/pci/if_iwm.c
4668
int i, total, nbant, noise;
sys/dev/pci/if_iwm.c
4670
total = nbant = noise = 0;
sys/dev/pci/if_iwm.c
4674
total += noise;
sys/dev/pci/if_iwm.c
4680
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/pci/if_iwn.c
4329
int i, total, nbant, noise;
sys/dev/pci/if_iwn.c
4331
total = nbant = 0;
sys/dev/pci/if_iwn.c
4335
total += noise;
sys/dev/pci/if_iwn.c
4339
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/pci/if_iwnreg.h
1315
uint32_t total;
sys/dev/pci/if_iwx.c
4688
int i, total, nbant, noise;
sys/dev/pci/if_iwx.c
4690
total = nbant = noise = 0;
sys/dev/pci/if_iwx.c
4694
total += noise;
sys/dev/pci/if_iwx.c
4700
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/pci/if_mcx.c
7192
int total)
sys/dev/pci/if_mcx.c
7203
free(slots, M_DEVBUF, total * sizeof(*ms));
sys/dev/pci/ips.c
1104
u_int32_t total = 0, done = 0;
sys/dev/pci/ips.c
1128
total = letoh32(rblstat->ld[vid].total);
sys/dev/pci/ips.c
1129
done = total - letoh32(rblstat->ld[vid].remain);
sys/dev/pci/ips.c
1130
if (total && total > done) {
sys/dev/pci/ips.c
1132
bv->bv_percent = 100 * done / total;
sys/dev/pci/ips.c
1161
sc->sc_dev.dv_xname, vid, ld->state, total, done, bv->bv_size,
sys/dev/pci/ips.c
313
u_int32_t total;
sys/dev/pci/qle.c
2660
u_int32_t dest, done, total;
sys/dev/pci/qle.c
2665
total = src[3];
sys/dev/pci/qle.c
2667
while (done < total) {
sys/dev/pci/qle.c
2672
words = MIN(total - done, 1 << 10);
sys/dev/pv/hyperv.c
1652
int total = atop(buflen);
sys/dev/pv/hyperv.c
1654
int inhdr = MIN(total, HV_NPFNHDR);
sys/dev/pv/hyperv.c
1662
if ((frames = mallocarray(total, sizeof(*frames), M_DEVBUF, M_ZERO |
sys/dev/pv/hyperv.c
1667
for (i = 0; i < total; i++) {
sys/dev/pv/hyperv.c
1671
free(frames, M_DEVBUF, total * sizeof(*frames));
sys/dev/pv/hyperv.c
1685
left = total - inhdr;
sys/dev/pv/hyperv.c
1707
hdr->chm_range_len = sizeof(struct vmbus_gpa_range) + total *
sys/dev/pv/hyperv.c
1755
free(frames, M_DEVBUF, total * sizeof(*frames));
sys/dev/pv/vmt.c
1254
size_t addrsize, total;
sys/dev/pv/vmt.c
1257
total = 0;
sys/dev/pv/vmt.c
1283
total += addrsize;
sys/dev/pv/vmt.c
1310
total += sizeof(nic);
sys/dev/pv/vmt.c
1312
total += sizeof(nnic);
sys/dev/pv/vmt.c
1313
total += sizeof(struct vm_nicinfo_nic_post);
sys/dev/pv/vmt.c
1314
return (total);
sys/dev/pv/vmt.c
1322
size_t total, nictotal;
sys/dev/pv/vmt.c
1328
total = sizeof(nl);
sys/dev/pv/vmt.c
1343
total += nictotal;
sys/dev/pv/vmt.c
1358
total += sizeof(struct vm_nicinfo_nic_list_post);
sys/dev/pv/vmt.c
1360
return (total);
sys/dev/rnd.c
697
size_t total = uio->uio_resid;
sys/dev/rnd.c
705
if (total > RND_MAIN_MAX_BYTES)
sys/dev/usb/dwc2/dwc2_params.c
742
u32 total = 0;
sys/dev/usb/dwc2/dwc2_params.c
749
total += hsotg->params.g_tx_fifo_size[fifo];
sys/dev/usb/dwc2/dwc2_params.c
751
if (total > dwc2_hsotg_tx_fifo_total_depth(hsotg) || !total) {
sys/dev/usb/if_uath.c
2018
txblock->total = htobe32(len);
sys/dev/usb/if_uathreg.h
31
uint32_t total;
sys/dev/usb/udl.c
1734
int total;
sys/dev/usb/udl.c
1737
total = cb->off + len;
sys/dev/usb/udl.c
1739
if (total > UDL_CMD_MAX_XFER_SIZE) {
sys/dev/usb/usps.c
387
int i, total;
sys/dev/usb/usps.c
406
total = 0;
sys/dev/usb/usps.c
417
total += pkt->port[i];
sys/dev/usb/usps.c
423
ps->vmax = ps->vmin = total;
sys/dev/usb/usps.c
424
if (total > ps->vmax)
sys/dev/usb/usps.c
425
ps->vmax = total;
sys/dev/usb/usps.c
426
if (total < ps->vmin)
sys/dev/usb/usps.c
427
ps->vmin = total;
sys/dev/usb/usps.c
428
ps->vave = (ps->vave * sc->sc_count + total)/(sc->sc_count +1);
sys/kern/exec_elf.c
1063
size_t phsize, offset, pfilesz = 0, total;
sys/kern/exec_elf.c
1096
for (offset = 0; offset < ph->p_filesz; offset += total) {
sys/kern/exec_elf.c
1102
total = sizeof(Elf_Note) + elfround(np2->namesz) +
sys/kern/exec_elf.c
1104
if (offset + total > ph->p_filesz)
sys/kern/kern_event.c
1242
int ready, total;
sys/kern/kern_event.c
1315
total = 0;
sys/kern/kern_event.c
1317
while ((n = SCARG(uap, nevents) - total) > 0) {
sys/kern/kern_event.c
1323
error = copyout(kev, SCARG(uap, eventlist) + total,
sys/kern/kern_event.c
1329
total += ready;
sys/kern/kern_event.c
1334
*retval = total;
sys/kern/sched_bsd.c
588
uint64_t idle, total, allidle = 0, alltotal = 0;
sys/kern/sched_bsd.c
622
total = 0;
sys/kern/sched_bsd.c
624
total += spc->spc_cp_time[i];
sys/kern/sched_bsd.c
629
total -= totalticks[j];
sys/kern/sched_bsd.c
631
if (idle < total / 3)
sys/kern/sched_bsd.c
633
alltotal += total;
sys/kern/sched_bsd.c
636
totalticks[j] += total;
sys/kern/tty.c
1319
int total;
sys/kern/tty.c
1321
total = tp->t_rawq.c_cc + tp->t_canq.c_cc;
sys/kern/tty.c
1330
if ((total >= TTYHOG(tp) / 2 &&
sys/lib/libz/inflate.c
105
strm->total_in = strm->total_out = state->total = 0;
sys/lib/libz/inflate.c
1155
state->total += out;
sys/lib/libz/inflate.c
1182
if ((state->wrap & 4) && hold != (state->total & 0xffffffff)) {
sys/lib/libz/inflate.c
1229
state->total += out;
sys/lib/libz/inflate.h
93
unsigned long total; /* protected copy of output count */
sys/net/bridgectl.c
490
u_int32_t i = 0, total = 0;
sys/net/bridgectl.c
496
total++;
sys/net/bridgectl.c
501
i = total;
sys/net/bridgectl.c
505
total = MIN(total, baconf->ifbac_len / sizeof(*bareqs));
sys/net/bridgectl.c
506
bareqs = mallocarray(total, sizeof(*bareqs), M_TEMP, M_NOWAIT|M_ZERO);
sys/net/bridgectl.c
515
if (i >= total) {
sys/net/bridgectl.c
543
free(bareqs, M_TEMP, total * sizeof(*bareqs));
sys/net/bridgectl.c
597
u_int32_t i = 0, total = 0;
sys/net/bridgectl.c
600
total++;
sys/net/bridgectl.c
603
total++;
sys/net/bridgectl.c
607
i = total;
sys/net/bridgectl.c
611
reqs = mallocarray(total, sizeof(*reqs), M_TEMP, M_NOWAIT|M_ZERO);
sys/net/bridgectl.c
655
free(reqs, M_TEMP, total * sizeof(*reqs));
sys/net/hfsc.c
1671
sp->total = cl->cl_total;
sys/net/hfsc.h
78
u_int64_t total; /* total work in bytes */
sys/net/if.c
2885
int total = sizeof(ifr.ifr_name) +
sys/net/if.c
2888
if (space < total)
sys/net/if.c
2901
space -= total;
sys/net/if.c
2903
(caddr_t)ifrp + total);
sys/net/if.c
977
if_output_mq(struct ifnet *ifp, struct mbuf_queue *mq, unsigned int *total,
sys/net/if.c
991
atomic_sub_int(total, len + mq_purge(mq));
sys/net/if.c
993
atomic_sub_int(total, len);
sys/net/if_bridge.c
657
u_int32_t total = 0, i = 0;
sys/net/if_bridge.c
662
total++;
sys/net/if_bridge.c
665
total++;
sys/net/if_bridge.c
668
i = total;
sys/net/if_bridge.c
672
breqs = mallocarray(total, sizeof(*breqs), M_TEMP, M_NOWAIT|M_ZERO);
sys/net/if_bridge.c
702
free(breqs, M_TEMP, total * sizeof(*breq));
sys/net/if_tpmr.c
638
int i = 0, total = nitems(sc->sc_ports), n = 0, error = 0;
sys/net/if_tpmr.c
643
n = total;
sys/net/if_tpmr.c
647
for (i = 0; i < total; i++) {
sys/net/pf_norm.c
519
u_int16_t total;
sys/net/pf_norm.c
606
total = TAILQ_LAST(&frag->fr_queue, pf_fragq)->fe_off +
sys/net/pf_norm.c
610
if (frent->fe_off + frent->fe_len < total && !frent->fe_mff)
sys/net/pf_norm.c
615
if (frent->fe_off + frent->fe_len > total ||
sys/net/pf_norm.c
616
(frent->fe_off + frent->fe_len == total && frent->fe_mff))
sys/net/pf_norm.c
619
if (frent->fe_off + frent->fe_len == total && !frent->fe_mff)
sys/net/pf_norm.c
768
u_int16_t total, hdrlen;
sys/net/pf_norm.c
803
total = TAILQ_LAST(&frag->fr_queue, pf_fragq)->fe_off +
sys/net/pf_norm.c
811
ip->ip_len = htons(hdrlen + total);
sys/net/pf_norm.c
814
if (hdrlen + total > IP_MAXPACKET) {
sys/net/pf_norm.c
815
DPFPRINTF(LOG_NOTICE, "drop: too big: %d", total);
sys/net/pf_norm.c
839
u_int16_t total, maxlen;
sys/net/pf_norm.c
878
total = TAILQ_LAST(&frag->fr_queue, pf_fragq)->fe_off +
sys/net/pf_norm.c
907
ip6->ip6_plen = htons(hdrlen - sizeof(struct ip6_hdr) + total);
sys/net/pf_norm.c
918
if (hdrlen - sizeof(struct ip6_hdr) + total > IPV6_MAXPACKET) {
sys/net/pf_norm.c
919
DPFPRINTF(LOG_NOTICE, "drop: too big: %d", total);
sys/net80211/ieee80211_ra.c
580
int mcs, uint32_t total, uint32_t fail)
sys/net80211/ieee80211_ra.c
594
if (total == 0)
sys/net80211/ieee80211_ra.c
600
g->nprobe_pkts += total;
sys/net80211/ieee80211_ra.h
71
int mcs, unsigned int total, unsigned int fail);
sys/net80211/ieee80211_ra_vht.c
580
int mcs, int nss, uint32_t total, uint32_t fail)
sys/net80211/ieee80211_ra_vht.c
597
if (total == 0)
sys/net80211/ieee80211_ra_vht.c
605
g->nprobe_pkts += total;
sys/net80211/ieee80211_ra_vht.h
77
int mcs, int nss, unsigned int total, unsigned int fail);
sys/tmpfs/tmpfs_mem.c
72
uint64_t total;
sys/tmpfs/tmpfs_mem.c
75
total = mp->tm_mem_limit;
sys/tmpfs/tmpfs_mem.c
77
total = tmpfs_bytes_limit - tmpfs_bytes_used +
sys/tmpfs/tmpfs_mem.c
81
return (total >> PAGE_SHIFT);
usr.bin/ctfconv/hash.c
113
if (h->deleted >= MINDELETED && 4 * h->deleted > h->total)
usr.bin/ctfconv/hash.c
130
if (++h->total * 4 > h->size * 3)
usr.bin/ctfconv/hash.c
164
h->total = h->deleted = 0;
usr.bin/ctfconv/hash.c
34
unsigned int total;
usr.bin/ctfconv/hash.c
67
if (4 * h->deleted < h->total) {
usr.bin/ctfconv/hash.c
72
} else if (3 * h->deleted > 2 * h->total)
usr.bin/ctfconv/hash.c
99
h->total -= h->deleted;
usr.bin/cu/xmodem.c
117
u_int i, total;
usr.bin/cu/xmodem.c
156
total = 1;
usr.bin/cu/xmodem.c
184
total, 1 + i);
usr.bin/cu/xmodem.c
205
total++;
usr.bin/cvs/remote.c
167
off_t total;
usr.bin/cvs/remote.c
197
total = 0;
usr.bin/cvs/remote.c
207
total += ret;
usr.bin/cvs/remote.c
210
if (total != st.st_size)
usr.bin/cvs/remote.c
211
fatal("length mismatch, %lld vs %lld", total, st.st_size);
usr.bin/dig/lib/dns/message.c
1598
unsigned int count, total;
usr.bin/dig/lib/dns/message.c
1620
total = 0;
usr.bin/dig/lib/dns/message.c
1626
msg->counts[sectionid] += total;
usr.bin/dig/lib/dns/message.c
1655
total += count;
usr.bin/dig/lib/dns/message.c
1668
msg->counts[sectionid] += total;
usr.bin/dig/lib/dns/message.c
1693
msg->counts[sectionid] += total;
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
175
total += length;
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
180
if (tregion.length < total)
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
182
memmove(tregion.base, sregion.base, total);
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
183
isc_buffer_forward(source, total);
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
184
isc_buffer_add(target, total);
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
76
unsigned int total;
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
88
total = 0;
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
96
total += 4;
usr.bin/last/last.c
248
time_t delta, total = 0;
usr.bin/last/last.c
384
total += delta;
usr.bin/last/last.c
396
if ((total / SECSPERDAY) > 0) {
usr.bin/last/last.c
397
int days = (total / SECSPERDAY);
usr.bin/last/last.c
398
total -= (days * SECSPERDAY);
usr.bin/last/last.c
402
asctime(gmtime(&total))+11);
usr.bin/last/last.c
406
asctime(gmtime(&total))+11);
usr.bin/less/tags.c
176
return (total);
usr.bin/less/tags.c
18
static int total;
usr.bin/less/tags.c
214
total = 0;
usr.bin/less/tags.c
291
total++;
usr.bin/less/tags.c
294
if (total == 0)
usr.bin/less/tags.c
434
curseq = total;
usr.bin/less/tags.c
84
total = curseq = 0;
usr.bin/netstat/if.c
102
u_int64_t total = 0;
usr.bin/netstat/if.c
132
total = 0;
usr.bin/netstat/if.c
158
total = ifd->ifi_ibytes + ifd->ifi_obytes +
usr.bin/netstat/if.c
162
total += if_errs->count(ifd->ifi_ierrors,
usr.bin/netstat/if.c
164
total += if_errs->count(ifd->ifi_oerrors,
usr.bin/netstat/if.c
166
if (total == 0)
usr.bin/netstat/if.c
174
if (qflag && total == 0)
usr.bin/nm/nm.c
636
u_long text, data, bss, total;
usr.bin/nm/nm.c
686
total = text + data + bss;
usr.bin/nm/nm.c
688
text, data, bss, total, total);
usr.bin/nm/nm.c
695
total_total += total;
usr.bin/openssl/ca.c
1132
total++;
usr.bin/openssl/ca.c
1156
total++;
usr.bin/openssl/ca.c
1181
total++;
usr.bin/openssl/ca.c
1216
total_done, total);
usr.bin/openssl/ca.c
606
int total = 0;
usr.bin/rsync/blocks.c
284
st->total += sz;
usr.bin/rsync/blocks.c
302
st->total += blk->len;
usr.bin/rsync/blocks.c
317
st->total += sz;
usr.bin/rsync/downloader.c
100
tot = dl->total / 1024.;
usr.bin/rsync/downloader.c
129
p->downloaded = p->total = 0;
usr.bin/rsync/downloader.c
473
p->total += sz;
usr.bin/rsync/downloader.c
513
p->total += sz;
usr.bin/rsync/downloader.c
63
off_t total; /* total in file */
usr.bin/rsync/downloader.c
81
float frac, tot = dl->total;
usr.bin/rsync/downloader.c
88
frac = (dl->total == 0) ? 100.0 :
usr.bin/rsync/downloader.c
89
100.0 * dl->downloaded / dl->total;
usr.bin/rsync/downloader.c
91
if (dl->total > 1024 * 1024 * 1024) {
usr.bin/rsync/downloader.c
92
tot = dl->total / (1024. * 1024. * 1024.);
usr.bin/rsync/downloader.c
95
} else if (dl->total > 1024 * 1024) {
usr.bin/rsync/downloader.c
96
tot = dl->total / (1024. * 1024.);
usr.bin/rsync/downloader.c
99
} else if (dl->total > 1024) {
usr.bin/rsync/extern.h
207
off_t total; /* total amount processed */
usr.bin/rsync/sender.c
180
(intmax_t)up->stat.total / 1024,
usr.bin/rsync/sender.c
181
100.0 * up->stat.dirty / up->stat.total);
usr.bin/ssh/sshsig.c
507
ssize_t n, total = 0;
usr.bin/ssh/sshsig.c
535
debug2_f("hashed %zu bytes", total);
usr.bin/ssh/sshsig.c
538
total += (size_t)n;
usr.bin/systat/vmstat.c
400
putint(total.t_rq - 1, PROCSROW + 1, PROCSCOL + 3, 3);
usr.bin/systat/vmstat.c
402
putint(total.t_dw, PROCSROW + 1, PROCSCOL + 6, 3);
usr.bin/systat/vmstat.c
403
putint(total.t_sl, PROCSROW + 1, PROCSCOL + 9, 3);
usr.bin/systat/vmstat.c
404
putint(total.t_sw, PROCSROW + 1, PROCSCOL + 12, 3);
usr.bin/tic/tic.c
1102
int total = _nc_tic_written();
usr.bin/tic/tic.c
1103
if (total != 0)
usr.bin/tic/tic.c
1105
total,
usr.bin/tmux/window-tree.c
428
u_int loop, total, visible, each, width, offset;
usr.bin/tmux/window-tree.c
434
total = winlink_count(&s->windows);
usr.bin/tmux/window-tree.c
440
if (sx / total < 24) {
usr.bin/tmux/window-tree.c
445
visible = total;
usr.bin/tmux/window-tree.c
457
} else if (current >= total - visible) {
usr.bin/tmux/window-tree.c
458
start = total - visible;
usr.bin/tmux/window-tree.c
459
end = total;
usr.bin/tmux/window-tree.c
467
if (data->offset > (int)(total - end))
usr.bin/tmux/window-tree.c
468
data->offset = (int)(total - end);
usr.bin/tmux/window-tree.c
473
right = (end != total);
usr.bin/tmux/window-tree.c
563
u_int loop, total, visible, each, width, offset;
usr.bin/tmux/window-tree.c
569
total = window_count_panes(w);
usr.bin/tmux/window-tree.c
575
if (sx / total < 24) {
usr.bin/tmux/window-tree.c
580
visible = total;
usr.bin/tmux/window-tree.c
592
} else if (current >= total - visible) {
usr.bin/tmux/window-tree.c
593
start = total - visible;
usr.bin/tmux/window-tree.c
594
end = total;
usr.bin/tmux/window-tree.c
602
if (data->offset > (int)(total - end))
usr.bin/tmux/window-tree.c
603
data->offset = (int)(total - end);
usr.bin/tmux/window-tree.c
608
right = (end != total);
usr.bin/top/display.c
296
i_procstates(int total, int *states, int threads)
usr.bin/top/display.c
305
printwp("%d %s: ", total, threads ? "threads" : "processes");
usr.bin/top/machine.c
820
swapmode(int *used, int *total)
usr.bin/top/machine.c
842
*total = *used = 0;
usr.bin/top/machine.c
846
*total += (swdev[i].se_nblks / (1024 / DEV_BSIZE));
usr.bin/vi/common/key.c
328
size_t total;
usr.bin/vi/common/key.c
345
total = gp->i_cnt + gp->i_next + nitems + TERM_PUSH_SHIFT;
usr.bin/vi/common/key.c
346
if (total >= gp->i_nelem && v_event_grow(sp, MAXIMUM(total, 64)))
usr.bin/vi/common/msg.c
248
recno_t total;
usr.bin/vi/common/msg.c
281
for (cnt = 0, total = 0; cnt < ARSIZE(action); ++cnt)
usr.bin/vi/common/msg.c
282
total += sp->rptlines[cnt];
usr.bin/vi/common/msg.c
283
if (total == 0)
usr.bin/vi/common/msg.c
285
if (total <= rptval && sp->rptlines[L_YANKED] < rptval) {
usr.bin/vi/ex/ex.c
1814
long total, val;
usr.bin/vi/ex/ex.c
1951
total = 0;
usr.bin/vi/ex/ex.c
1996
total += ecp->cp[0] == '+' ? 1 : -1;
usr.bin/vi/ex/ex.c
2011
(nret = NADD_SLONG(total, val)) != NUM_OK) {
usr.bin/vi/ex/ex.c
2016
total += isneg ? -val : val;
usr.bin/vi/ex/ex.c
2027
if (*isaddrp && total != 0) {
usr.bin/vi/ex/ex.c
2028
if (total < 0) {
usr.bin/vi/ex/ex.c
2029
if (-total > mp->lno) {
usr.bin/vi/ex/ex.c
2036
if (!NPFITS(MAX_REC_NUMBER, mp->lno, total)) {
usr.bin/vi/ex/ex.c
2041
mp->lno += total;
usr.bin/vmstat/vmstat.c
1006
total += pool.pr_npages * pool.pr_pgsize;
usr.bin/vmstat/vmstat.c
1010
total /= 1024;
usr.bin/vmstat/vmstat.c
1012
inuse, total, (double)(100 * inuse) / total);
usr.bin/vmstat/vmstat.c
1021
long total = 0, inuse = 0;
usr.bin/vmstat/vmstat.c
1065
total += pi.pr_npages * pi.pr_pgsize;
usr.bin/vmstat/vmstat.c
1071
total /= 1024;
usr.bin/vmstat/vmstat.c
1073
inuse, total, (double)(100 * inuse) / total);
usr.bin/vmstat/vmstat.c
322
struct vmtotal total;
usr.bin/vmstat/vmstat.c
355
size = sizeof(total);
usr.bin/vmstat/vmstat.c
358
if (sysctl(mib, 2, &total, &size, NULL, 0) == -1) {
usr.bin/vmstat/vmstat.c
360
memset(&total, 0, sizeof(total));
usr.bin/vmstat/vmstat.c
362
(void)printf("%2u %3u", total.t_rq - 1, total.t_sl);
usr.bin/vmstat/vmstat.c
636
double percent, total;
usr.bin/vmstat/vmstat.c
639
total = 0;
usr.bin/vmstat/vmstat.c
641
total += cur.cp_time[state];
usr.bin/vmstat/vmstat.c
642
if (total)
usr.bin/vmstat/vmstat.c
643
percent = 100 / total;
usr.bin/vmstat/vmstat.c
969
long total = 0, inuse = 0;
usr.sbin/arp/arp.c
727
sec2str(time_t total)
usr.sbin/arp/arp.c
736
days = total / 3600 / 24;
usr.sbin/arp/arp.c
737
hours = (total / 3600) % 24;
usr.sbin/arp/arp.c
738
mins = (total / 60) % 60;
usr.sbin/arp/arp.c
739
secs = total % 60;
usr.sbin/eigrpd/rde_dual.c
308
uint64_t total;
usr.sbin/eigrpd/rde_dual.c
310
total = (uint64_t) a + (uint64_t) b;
usr.sbin/eigrpd/rde_dual.c
312
if (total >> 32)
usr.sbin/eigrpd/rde_dual.c
315
return ((uint32_t) total);
usr.sbin/eigrpd/rde_dual.c
321
uint64_t total;
usr.sbin/eigrpd/rde_dual.c
323
total = (uint64_t) a * (uint64_t) b;
usr.sbin/eigrpd/rde_dual.c
325
if (total >> 32)
usr.sbin/eigrpd/rde_dual.c
328
return ((uint32_t) total);
usr.sbin/eigrpd/rtp.c
162
int total = 0, pending = 0;
usr.sbin/eigrpd/rtp.c
174
total++;
usr.sbin/eigrpd/rtp.c
176
if (total == 0)
usr.sbin/eigrpd/rtp.c
183
if (pending < total) {
usr.sbin/ldpd/hello.c
487
int total = 0;
usr.sbin/ldpd/hello.c
512
total += TLV_HDR_SIZE;
usr.sbin/ldpd/hello.c
571
total += tlv_len;
usr.sbin/ldpd/hello.c
574
return (total);
usr.sbin/ldpd/neighbor.c
361
int total = 0;
usr.sbin/ldpd/neighbor.c
365
total++;
usr.sbin/ldpd/neighbor.c
367
return (total);
usr.sbin/mopd/common/file.c
1160
int32_t pos, notdone, total;
usr.sbin/mopd/common/file.c
1229
total = dlslot->a_text;
usr.sbin/mopd/common/file.c
1231
if (pos < total) {
usr.sbin/mopd/common/file.c
1232
notdone = total - pos;
usr.sbin/mopd/common/file.c
1243
total = total + dlslot->a_text_fill;
usr.sbin/mopd/common/file.c
1245
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1246
notdone = total - pos;
usr.sbin/mopd/common/file.c
1258
total = total + dlslot->a_data;
usr.sbin/mopd/common/file.c
1260
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1261
notdone = total - pos;
usr.sbin/mopd/common/file.c
1272
total = total + dlslot->a_data_fill;
usr.sbin/mopd/common/file.c
1274
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1275
notdone = total - pos;
usr.sbin/mopd/common/file.c
1287
total = total + dlslot->a_bss;
usr.sbin/mopd/common/file.c
1289
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1290
notdone = total - pos;
usr.sbin/mopd/common/file.c
1302
total = total + dlslot->a_bss_fill;
usr.sbin/mopd/common/file.c
1304
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1305
notdone = total - pos;
usr.sbin/ndp/ndp.c
897
sec2str(time_t total)
usr.sbin/ndp/ndp.c
906
days = total / 3600 / 24;
usr.sbin/ndp/ndp.c
907
hours = (total / 3600) % 24;
usr.sbin/ndp/ndp.c
908
mins = (total / 60) % 60;
usr.sbin/ndp/ndp.c
909
secs = total % 60;
usr.sbin/npppctl/npppctl.c
333
clear_session(u_int ppp_id[], int ppp_id_count, int total, FILE *out)
usr.sbin/npppctl/npppctl.c
370
fail = total - succ;
usr.sbin/nsd/ipc.c
218
stats_add(struct nsdst* total, struct nsdst* s)
usr.sbin/nsd/ipc.c
221
for(i=0; i<sizeof(total->qtype)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
222
total->qtype[i] += s->qtype[i];
usr.sbin/nsd/ipc.c
223
for(i=0; i<sizeof(total->qclass)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
224
total->qclass[i] += s->qclass[i];
usr.sbin/nsd/ipc.c
225
total->qudp += s->qudp;
usr.sbin/nsd/ipc.c
226
total->qudp6 += s->qudp6;
usr.sbin/nsd/ipc.c
227
total->ctcp += s->ctcp;
usr.sbin/nsd/ipc.c
228
total->ctcp6 += s->ctcp6;
usr.sbin/nsd/ipc.c
229
total->ctls += s->ctls;
usr.sbin/nsd/ipc.c
230
total->ctls6 += s->ctls6;
usr.sbin/nsd/ipc.c
231
for(i=0; i<sizeof(total->rcode)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
232
total->rcode[i] += s->rcode[i];
usr.sbin/nsd/ipc.c
233
for(i=0; i<sizeof(total->opcode)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
234
total->opcode[i] += s->opcode[i];
usr.sbin/nsd/ipc.c
235
total->dropped += s->dropped;
usr.sbin/nsd/ipc.c
236
total->truncated += s->truncated;
usr.sbin/nsd/ipc.c
237
total->wrongzone += s->wrongzone;
usr.sbin/nsd/ipc.c
238
total->txerr += s->txerr;
usr.sbin/nsd/ipc.c
239
total->rxerr += s->rxerr;
usr.sbin/nsd/ipc.c
240
total->edns += s->edns;
usr.sbin/nsd/ipc.c
241
total->ednserr += s->ednserr;
usr.sbin/nsd/ipc.c
242
total->raxfr += s->raxfr;
usr.sbin/nsd/ipc.c
243
total->nona += s->nona;
usr.sbin/nsd/ipc.c
244
total->rixfr += s->rixfr;
usr.sbin/nsd/ipc.c
246
total->db_disk = s->db_disk;
usr.sbin/nsd/ipc.c
247
total->db_mem = s->db_mem;
usr.sbin/nsd/ipc.c
252
stats_subtract(struct nsdst* total, struct nsdst* s)
usr.sbin/nsd/ipc.c
255
for(i=0; i<sizeof(total->qtype)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
256
total->qtype[i] -= s->qtype[i];
usr.sbin/nsd/ipc.c
257
for(i=0; i<sizeof(total->qclass)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
258
total->qclass[i] -= s->qclass[i];
usr.sbin/nsd/ipc.c
259
total->qudp -= s->qudp;
usr.sbin/nsd/ipc.c
260
total->qudp6 -= s->qudp6;
usr.sbin/nsd/ipc.c
261
total->ctcp -= s->ctcp;
usr.sbin/nsd/ipc.c
262
total->ctcp6 -= s->ctcp6;
usr.sbin/nsd/ipc.c
263
total->ctls -= s->ctls;
usr.sbin/nsd/ipc.c
264
total->ctls6 -= s->ctls6;
usr.sbin/nsd/ipc.c
265
for(i=0; i<sizeof(total->rcode)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
266
total->rcode[i] -= s->rcode[i];
usr.sbin/nsd/ipc.c
267
for(i=0; i<sizeof(total->opcode)/sizeof(stc_type); i++)
usr.sbin/nsd/ipc.c
268
total->opcode[i] -= s->opcode[i];
usr.sbin/nsd/ipc.c
269
total->dropped -= s->dropped;
usr.sbin/nsd/ipc.c
270
total->truncated -= s->truncated;
usr.sbin/nsd/ipc.c
271
total->wrongzone -= s->wrongzone;
usr.sbin/nsd/ipc.c
272
total->txerr -= s->txerr;
usr.sbin/nsd/ipc.c
273
total->rxerr -= s->rxerr;
usr.sbin/nsd/ipc.c
274
total->edns -= s->edns;
usr.sbin/nsd/ipc.c
275
total->ednserr -= s->ednserr;
usr.sbin/nsd/ipc.c
276
total->raxfr -= s->raxfr;
usr.sbin/nsd/ipc.c
277
total->nona -= s->nona;
usr.sbin/nsd/ipc.c
278
total->rixfr -= s->rixfr;
usr.sbin/nsd/ipc.h
84
void stats_add(struct nsdst* total, struct nsdst* s);
usr.sbin/nsd/ipc.h
86
void stats_subtract(struct nsdst* total, struct nsdst* s);
usr.sbin/nsd/remote.c
3177
stc_type total = 0;
usr.sbin/nsd/remote.c
3185
total += xfrd->nsd->children[i].query_count;
usr.sbin/nsd/remote.c
3187
if(!ssl_printf(ssl, "num.queries=%lu\n", (unsigned long)total))
usr.sbin/nsd/remote.c
3324
process_stats_add_total(struct xfrd_state* xfrd, struct nsdst* total,
usr.sbin/nsd/remote.c
3329
memcpy(total, &stats[0], sizeof(*total));
usr.sbin/nsd/remote.c
3334
stats_add(total, &stats[i]);
usr.sbin/nsd/remote.c
3345
struct nsdst* stats, *zonestats[2], total;
usr.sbin/nsd/remote.c
3355
process_stats_add_total(xfrd, &total, stats);
usr.sbin/nsd/remote.c
3357
print_stats(ssl, xfrd, &stattime, !peek, &total, zonestats);
usr.sbin/nsd/remote.c
3364
metrics_print_stats(evbuf, xfrd, &stattime, !peek, &total, zonestats,
usr.sbin/nsd/remote.c
3367
metrics_print_stats(evbuf, xfrd, &stattime, !peek, &total, zonestats,
usr.sbin/nsd/remote.h
162
struct nsdst* total,
usr.sbin/nsd/server.c
2326
ssize_t total = 0;
usr.sbin/nsd/server.c
2332
while( total < sz) {
usr.sbin/nsd/server.c
2352
ret = read(s, buf+total, sz-total);
usr.sbin/nsd/server.c
2370
total += ret;
usr.sbin/nsd/server.c
2372
return total;
usr.sbin/procmap/procmap.c
378
size_t total = 0;
usr.sbin/procmap/procmap.c
524
total += dump_vm_map_entry(kd, vmspace, vm_map_entry, sum);
usr.sbin/procmap/procmap.c
530
(unsigned long)total);
usr.sbin/procmap/procmap.c
534
(unsigned long)total);
usr.sbin/smtpd/queue_fs.c
406
uint64_t total;
usr.sbin/smtpd/queue_fs.c
423
total = buf.f_bavail + used;
usr.sbin/smtpd/queue_fs.c
424
if (total != 0)
usr.sbin/smtpd/queue_fs.c
425
used = (float)used / (float)total * 100;
usr.sbin/smtpd/queue_fs.c
436
total = buf.f_favail + used;
usr.sbin/smtpd/queue_fs.c
437
if (total != 0)
usr.sbin/smtpd/queue_fs.c
438
used = (float)used / (float)total * 100;
usr.sbin/smtpd/smtp_client.c
832
size_t sz = 0, total, w;
usr.sbin/smtpd/smtp_client.c
836
total = io_queued(proto->io);
usr.sbin/smtpd/smtp_client.c
839
while (total < proto->params.obufmax) {
usr.sbin/smtpd/smtp_client.c
850
total += n;
usr.sbin/smtpd/smtpctl.c
432
srv_foreach_envelope(struct parameter *argv, int ctl, size_t *total, size_t *ok)
usr.sbin/smtpd/smtpctl.c
438
*total = 0;
usr.sbin/smtpd/smtpctl.c
445
*total += 1;
usr.sbin/smtpd/smtpctl.c
459
*total += 1;
usr.sbin/smtpd/smtpctl.c
585
size_t total, ok;
usr.sbin/smtpd/smtpctl.c
587
srv_foreach_envelope(argv, IMSG_CTL_PAUSE_EVP, &total, &ok);
usr.sbin/smtpd/smtpctl.c
628
size_t total, ok;
usr.sbin/smtpd/smtpctl.c
630
srv_foreach_envelope(argv, IMSG_CTL_REMOVE, &total, &ok);
usr.sbin/smtpd/smtpctl.c
639
size_t total, ok;
usr.sbin/smtpd/smtpctl.c
641
srv_foreach_envelope(argv, IMSG_CTL_RESUME_EVP, &total, &ok);
usr.sbin/smtpd/smtpctl.c
685
size_t total, ok;
usr.sbin/smtpd/smtpctl.c
687
srv_foreach_envelope(argv, IMSG_CTL_SCHEDULE, &total, &ok);
usr.sbin/tcpdump/print-smb.c
705
int total = ancount+nscount+arcount;
usr.sbin/tcpdump/print-smb.c
708
if (qdcount>100 || total>100) {
usr.sbin/tcpdump/print-smb.c
721
if (total) {
usr.sbin/tcpdump/print-smb.c
723
for (i=0;i<total;i++) {
usr.sbin/unbound/cachedb/cachedb.c
478
size_t total = data->count + data->rrsig_count;
usr.sbin/unbound/cachedb/cachedb.c
482
for(i=0; i<total; i++) {
usr.sbin/unbound/cachedb/cachedb.c
514
size_t total = data->count + data->rrsig_count;
usr.sbin/unbound/cachedb/cachedb.c
516
for(i=0; i<total; i++) {
usr.sbin/unbound/daemon/remote.c
1222
struct ub_stats_info total;
usr.sbin/unbound/daemon/remote.c
1225
memset(&total, 0, sizeof(total));
usr.sbin/unbound/daemon/remote.c
1233
total = s;
usr.sbin/unbound/daemon/remote.c
1234
else server_stats_add(&total, &s);
usr.sbin/unbound/daemon/remote.c
1237
total.mesh_time_median /= (double)daemon->num;
usr.sbin/unbound/daemon/remote.c
1238
if(!print_stats(ssl, "total", &total))
usr.sbin/unbound/daemon/remote.c
1243
if(!print_mem(ssl, worker, daemon, &total))
usr.sbin/unbound/daemon/remote.c
1245
if(!print_hist(ssl, &total))
usr.sbin/unbound/daemon/remote.c
1247
if(!print_ext(ssl, &total, daemon->cfg->stat_inhibit_zero))
usr.sbin/unbound/daemon/remote.c
5757
struct timeval total, readtime, constructtime, reloadtime, deletetime;
usr.sbin/unbound/daemon/remote.c
5761
timeval_subtract(&total, time_end, time_start);
usr.sbin/unbound/daemon/remote.c
5778
if(!fr_output_printf(fr, "total time %3d.%6.6ds\n", (int)total.tv_sec,
usr.sbin/unbound/daemon/remote.c
5779
(int)total.tv_usec))
usr.sbin/unbound/daemon/remote.c
7204
int count=0, total=daemon->num-1;
usr.sbin/unbound/daemon/remote.c
7205
while(count < total) {
usr.sbin/unbound/daemon/stats.c
442
void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a)
usr.sbin/unbound/daemon/stats.c
444
total->svr.num_queries += a->svr.num_queries;
usr.sbin/unbound/daemon/stats.c
445
total->svr.num_queries_ip_ratelimited += a->svr.num_queries_ip_ratelimited;
usr.sbin/unbound/daemon/stats.c
446
total->svr.num_queries_cookie_valid += a->svr.num_queries_cookie_valid;
usr.sbin/unbound/daemon/stats.c
447
total->svr.num_queries_cookie_client += a->svr.num_queries_cookie_client;
usr.sbin/unbound/daemon/stats.c
448
total->svr.num_queries_cookie_invalid += a->svr.num_queries_cookie_invalid;
usr.sbin/unbound/daemon/stats.c
449
total->svr.num_queries_discard_timeout +=
usr.sbin/unbound/daemon/stats.c
451
total->svr.num_queries_wait_limit += a->svr.num_queries_wait_limit;
usr.sbin/unbound/daemon/stats.c
452
total->svr.num_dns_error_reports += a->svr.num_dns_error_reports;
usr.sbin/unbound/daemon/stats.c
453
total->svr.num_queries_missed_cache += a->svr.num_queries_missed_cache;
usr.sbin/unbound/daemon/stats.c
454
total->svr.num_queries_prefetch += a->svr.num_queries_prefetch;
usr.sbin/unbound/daemon/stats.c
455
total->svr.num_queries_timed_out += a->svr.num_queries_timed_out;
usr.sbin/unbound/daemon/stats.c
456
total->svr.num_query_authzone_up += a->svr.num_query_authzone_up;
usr.sbin/unbound/daemon/stats.c
457
total->svr.num_query_authzone_down += a->svr.num_query_authzone_down;
usr.sbin/unbound/daemon/stats.c
458
if (total->svr.max_query_time_us < a->svr.max_query_time_us)
usr.sbin/unbound/daemon/stats.c
459
total->svr.max_query_time_us = a->svr.max_query_time_us;
usr.sbin/unbound/daemon/stats.c
460
total->svr.sum_query_list_size += a->svr.sum_query_list_size;
usr.sbin/unbound/daemon/stats.c
461
total->svr.ans_expired += a->svr.ans_expired;
usr.sbin/unbound/daemon/stats.c
463
total->svr.num_query_dnscrypt_crypted += a->svr.num_query_dnscrypt_crypted;
usr.sbin/unbound/daemon/stats.c
464
total->svr.num_query_dnscrypt_cert += a->svr.num_query_dnscrypt_cert;
usr.sbin/unbound/daemon/stats.c
465
total->svr.num_query_dnscrypt_cleartext +=
usr.sbin/unbound/daemon/stats.c
467
total->svr.num_query_dnscrypt_crypted_malformed +=
usr.sbin/unbound/daemon/stats.c
471
if(a->svr.max_query_list_size > total->svr.max_query_list_size)
usr.sbin/unbound/daemon/stats.c
472
total->svr.max_query_list_size = a->svr.max_query_list_size;
usr.sbin/unbound/daemon/stats.c
476
total->svr.qtype_big += a->svr.qtype_big;
usr.sbin/unbound/daemon/stats.c
477
total->svr.qclass_big += a->svr.qclass_big;
usr.sbin/unbound/daemon/stats.c
478
total->svr.qtcp += a->svr.qtcp;
usr.sbin/unbound/daemon/stats.c
479
total->svr.qtcp_outgoing += a->svr.qtcp_outgoing;
usr.sbin/unbound/daemon/stats.c
480
total->svr.qudp_outgoing += a->svr.qudp_outgoing;
usr.sbin/unbound/daemon/stats.c
481
total->svr.qtls += a->svr.qtls;
usr.sbin/unbound/daemon/stats.c
482
total->svr.qtls_resume += a->svr.qtls_resume;
usr.sbin/unbound/daemon/stats.c
483
total->svr.qhttps += a->svr.qhttps;
usr.sbin/unbound/daemon/stats.c
484
total->svr.qquic += a->svr.qquic;
usr.sbin/unbound/daemon/stats.c
485
total->svr.qipv6 += a->svr.qipv6;
usr.sbin/unbound/daemon/stats.c
486
total->svr.qbit_QR += a->svr.qbit_QR;
usr.sbin/unbound/daemon/stats.c
487
total->svr.qbit_AA += a->svr.qbit_AA;
usr.sbin/unbound/daemon/stats.c
488
total->svr.qbit_TC += a->svr.qbit_TC;
usr.sbin/unbound/daemon/stats.c
489
total->svr.qbit_RD += a->svr.qbit_RD;
usr.sbin/unbound/daemon/stats.c
490
total->svr.qbit_RA += a->svr.qbit_RA;
usr.sbin/unbound/daemon/stats.c
491
total->svr.qbit_Z += a->svr.qbit_Z;
usr.sbin/unbound/daemon/stats.c
492
total->svr.qbit_AD += a->svr.qbit_AD;
usr.sbin/unbound/daemon/stats.c
493
total->svr.qbit_CD += a->svr.qbit_CD;
usr.sbin/unbound/daemon/stats.c
494
total->svr.qEDNS += a->svr.qEDNS;
usr.sbin/unbound/daemon/stats.c
495
total->svr.qEDNS_DO += a->svr.qEDNS_DO;
usr.sbin/unbound/daemon/stats.c
496
total->svr.ans_rcode_nodata += a->svr.ans_rcode_nodata;
usr.sbin/unbound/daemon/stats.c
497
total->svr.ans_secure += a->svr.ans_secure;
usr.sbin/unbound/daemon/stats.c
498
total->svr.ans_bogus += a->svr.ans_bogus;
usr.sbin/unbound/daemon/stats.c
499
total->svr.val_ops += a->svr.val_ops;
usr.sbin/unbound/daemon/stats.c
500
total->svr.unwanted_replies += a->svr.unwanted_replies;
usr.sbin/unbound/daemon/stats.c
501
total->svr.unwanted_queries += a->svr.unwanted_queries;
usr.sbin/unbound/daemon/stats.c
502
total->svr.tcp_accept_usage += a->svr.tcp_accept_usage;
usr.sbin/unbound/daemon/stats.c
504
total->svr.num_query_cachedb += a->svr.num_query_cachedb;
usr.sbin/unbound/daemon/stats.c
507
total->svr.qtype[i] += a->svr.qtype[i];
usr.sbin/unbound/daemon/stats.c
509
total->svr.qclass[i] += a->svr.qclass[i];
usr.sbin/unbound/daemon/stats.c
511
total->svr.qopcode[i] += a->svr.qopcode[i];
usr.sbin/unbound/daemon/stats.c
513
total->svr.ans_rcode[i] += a->svr.ans_rcode[i];
usr.sbin/unbound/daemon/stats.c
515
total->svr.hist[i] += a->svr.hist[i];
usr.sbin/unbound/daemon/stats.c
517
total->svr.rpz_action[i] += a->svr.rpz_action[i];
usr.sbin/unbound/daemon/stats.c
520
total->mesh_num_states += a->mesh_num_states;
usr.sbin/unbound/daemon/stats.c
521
total->mesh_num_reply_states += a->mesh_num_reply_states;
usr.sbin/unbound/daemon/stats.c
522
total->mesh_jostled += a->mesh_jostled;
usr.sbin/unbound/daemon/stats.c
523
total->mesh_dropped += a->mesh_dropped;
usr.sbin/unbound/daemon/stats.c
524
total->mesh_replies_sent += a->mesh_replies_sent;
usr.sbin/unbound/daemon/stats.c
525
stats_timeval_add(&total->mesh_replies_sum_wait_sec, &total->mesh_replies_sum_wait_usec, a->mesh_replies_sum_wait_sec, a->mesh_replies_sum_wait_usec);
usr.sbin/unbound/daemon/stats.c
529
total->mesh_time_median += a->mesh_time_median;
usr.sbin/unbound/daemon/stats.h
107
void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a);
usr.sbin/unbound/daemon/unbound.c
197
size_t total = numthread * perthread + misc;
usr.sbin/unbound/daemon/unbound.c
230
if(total > 1024 &&
usr.sbin/unbound/daemon/unbound.c
242
total = 1024;
usr.sbin/unbound/daemon/unbound.c
256
total = numthread*(perthread_noudp+
usr.sbin/unbound/daemon/unbound.c
265
if((size_t)rlim.rlim_cur < total) {
usr.sbin/unbound/daemon/unbound.c
267
rlim.rlim_cur = (rlim_t)(total + 10);
usr.sbin/unbound/daemon/unbound.c
268
rlim.rlim_max = (rlim_t)(total + 10);
usr.sbin/unbound/daemon/unbound.c
274
(unsigned)avail, (unsigned)total+10);
usr.sbin/unbound/daemon/unbound.c
291
(unsigned)avail, (unsigned)total+10);
usr.sbin/unbound/daemon/worker.c
124
size_t total, front, back, mesh, msg, rrset, infra, ac, superac;
usr.sbin/unbound/daemon/worker.c
173
total = front+back+mesh+msg+rrset+infra+iter+val+ac+superac+me;
usr.sbin/unbound/daemon/worker.c
175
total += subnet;
usr.sbin/unbound/daemon/worker.c
179
(unsigned)total, (unsigned)front, (unsigned)back,
usr.sbin/unbound/daemon/worker.c
188
(unsigned)total, (unsigned)front, (unsigned)back,
usr.sbin/unbound/daemon/worker.c
194
"total-free: %u", (unsigned)total,
usr.sbin/unbound/services/authzone.c
799
size_t total, old_total;
usr.sbin/unbound/services/authzone.c
816
total = d->count + d->rrsig_count;
usr.sbin/unbound/services/authzone.c
827
else d->rr_len[total-1] = rdatalen;
usr.sbin/unbound/services/authzone.c
854
d->rr_ttl[total-1] = rr_ttl;
usr.sbin/unbound/services/authzone.c
855
memmove(d->rr_data[total-1], rdata, rdatalen);
usr.sbin/unbound/services/authzone.c
939
size_t sigs, sigsz, i, j, total;
usr.sbin/unbound/services/authzone.c
962
total = old->count + old->rrsig_count;
usr.sbin/unbound/services/authzone.c
968
if(total != 0)
usr.sbin/unbound/services/authzone.c
969
memmove(d->rr_len, old->rr_len, total*sizeof(size_t));
usr.sbin/unbound/services/authzone.c
981
if(total != 0) {
usr.sbin/unbound/services/authzone.c
982
memmove(d->rr_ttl, old->rr_ttl, total*sizeof(time_t));
usr.sbin/unbound/services/authzone.c
986
(old->rr_data[total-1] - old->rr_data[0]) +
usr.sbin/unbound/services/authzone.c
987
old->rr_len[total-1]);
usr.sbin/unbound/testcode/memstats.c
192
off_t total = get_file_size(fname);
usr.sbin/unbound/testcode/memstats.c
199
printf("Reading %s of size " ARG_LL "d\n", fname, (long long)total);
usr.sbin/unbound/testcode/memstats.c
204
if((int)(((double)done / (double)total)*100.) > report) {
usr.sbin/unbound/testcode/memstats.c
205
report = (int)(((double)done / (double)total)*100.);
usr.sbin/unbound/testcode/memstats.c
229
uint64_t total = 0, tcalls = 0;
usr.sbin/unbound/testcode/memstats.c
233
total += cl->alloc;
usr.sbin/unbound/testcode/memstats.c
237
printf("%12lld / %8lld total in %ld code lines\n", (long long)total,
usr.sbin/unbound/testcode/unittcpreuse.c
157
static void check_removal(struct outside_network* outnet, int position, int total)
usr.sbin/unbound/testcode/unittcpreuse.c
162
for(i=0; i<total; i++) {
usr.sbin/unbound/testcode/unittcpreuse.c
165
check_tree_and_list(outnet, total);
usr.sbin/unbound/testcode/unittcpreuse.c
169
check_tree_and_list(outnet, total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
173
static void check_snip(struct outside_network* outnet, int total)
usr.sbin/unbound/testcode/unittcpreuse.c
178
for(i=0; i<total; i++) {
usr.sbin/unbound/testcode/unittcpreuse.c
181
check_tree_and_list(outnet, total);
usr.sbin/unbound/testcode/unittcpreuse.c
185
check_tree_and_list(outnet, --total);
usr.sbin/unbound/testcode/unittcpreuse.c
234
struct waiting_tcp* first, struct waiting_tcp* last, size_t total)
usr.sbin/unbound/testcode/unittcpreuse.c
242
unit_assert(i<total); /* otherwise we are looping */
usr.sbin/unbound/testcode/unittcpreuse.c
246
unit_assert(j<total-i-1); /* otherwise we are looping */
usr.sbin/unbound/testcode/unittcpreuse.c
275
size_t position, size_t total)
usr.sbin/unbound/testcode/unittcpreuse.c
280
for(i=0; i<total; i++) {
usr.sbin/unbound/testcode/unittcpreuse.c
283
check_waiting_tcp_list(outnet, &store[0], &store[total-1], total);
usr.sbin/unbound/testcode/unittcpreuse.c
299
if(position == 0 && total == 1) {
usr.sbin/unbound/testcode/unittcpreuse.c
301
check_waiting_tcp_list(outnet, NULL, NULL, total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
304
check_waiting_tcp_list(outnet, &store[1], &store[total-1], total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
305
} else if(position == total - 1) {
usr.sbin/unbound/testcode/unittcpreuse.c
307
check_waiting_tcp_list(outnet, &store[0], &store[total-2], total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
310
check_waiting_tcp_list(outnet, &store[0], &store[total-1], total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
360
struct waiting_tcp* first, struct waiting_tcp* last, size_t total)
usr.sbin/unbound/testcode/unittcpreuse.c
369
unit_assert(i<total); /* otherwise we are looping */
usr.sbin/unbound/testcode/unittcpreuse.c
373
unit_assert(j<total-i-1); /* otherwise we are looping */
usr.sbin/unbound/testcode/unittcpreuse.c
382
unit_assert(i<total); /* otherwise we are looping */
usr.sbin/unbound/testcode/unittcpreuse.c
386
unit_assert(j<total-i-1); /* otherwise we are looping */
usr.sbin/unbound/testcode/unittcpreuse.c
416
size_t position, size_t total)
usr.sbin/unbound/testcode/unittcpreuse.c
421
for(i=0; i<total; i++) {
usr.sbin/unbound/testcode/unittcpreuse.c
424
check_reuse_write_wait(reuse, &store[0], &store[total-1], total);
usr.sbin/unbound/testcode/unittcpreuse.c
435
if(position == 0 && total == 1) {
usr.sbin/unbound/testcode/unittcpreuse.c
437
check_reuse_write_wait(reuse, NULL, NULL, total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
440
check_reuse_write_wait(reuse, &store[1], &store[total-1], total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
441
} else if(position == total - 1) {
usr.sbin/unbound/testcode/unittcpreuse.c
443
check_reuse_write_wait(reuse, &store[0], &store[total-2], total-1);
usr.sbin/unbound/testcode/unittcpreuse.c
446
check_reuse_write_wait(reuse, &store[0], &store[total-1], total-1);
usr.sbin/unbound/util/config_file.c
1004
total += strlen(s->str) + 1; /* len + newline */
usr.sbin/unbound/util/config_file.c
1005
left = total+1; /* one extra for nul at end */
usr.sbin/unbound/util/config_file.c
995
size_t total = 0, left;
usr.sbin/unbound/util/data/msgencode.c
518
size_t total = data->count+data->rrsig_count;
usr.sbin/unbound/util/data/msgencode.c
519
for(i=data->count; i<total; i++) {
usr.sbin/unbound/util/data/msgreply.c
101
size_t ns, size_t ar, size_t total, enum sec_status sec,
usr.sbin/unbound/util/data/msgreply.c
107
sizeof(struct ub_packed_rrset_key*) * total;
usr.sbin/unbound/util/data/msgreply.c
108
if(total >= RR_COUNT_MAX) return NULL; /* sanity check on numRRS*/
usr.sbin/unbound/util/data/msgreply.c
112
sizeof(struct rrset_ref) * (total));
usr.sbin/unbound/util/data/msgreply.c
124
rep->rrset_count = total;
usr.sbin/unbound/util/data/msgreply.c
133
else rep->rrsets = (struct ub_packed_rrset_key**)&(rep->ref[total]);
usr.sbin/unbound/util/data/msgreply.c
135
memset( rep->rrsets, 0, sizeof(struct ub_packed_rrset_key*) * total);
usr.sbin/unbound/util/data/msgreply.c
137
memset( &rep->ref[0], 0, sizeof(struct rrset_ref) * total);
usr.sbin/unbound/util/data/msgreply.c
349
size_t total = pset->rr_count + pset->rrsig_count;
usr.sbin/unbound/util/data/msgreply.c
358
data->rr_data = (uint8_t**)&(data->rr_len[total]);
usr.sbin/unbound/util/data/msgreply.c
359
data->rr_ttl = (time_t*)&(data->rr_data[total]);
usr.sbin/unbound/util/data/msgreply.c
360
nextrdata = (uint8_t*)&(data->rr_ttl[total]);
usr.sbin/unbound/util/data/msgreply.c
372
for(i=data->count; i<total; i++) {
usr.sbin/unbound/util/data/msgreply.h
272
size_t ns, size_t ar, size_t total, enum sec_status sec,
usr.sbin/unbound/util/data/packed_rrset.c
149
size_t total;
usr.sbin/unbound/util/data/packed_rrset.c
152
total = d1->count + d1->rrsig_count;
usr.sbin/unbound/util/data/packed_rrset.c
153
for(i=0; i<total; i++) {
usr.sbin/unbound/util/data/packed_rrset.c
181
size_t total = data->count + data->rrsig_count;
usr.sbin/unbound/util/data/packed_rrset.c
186
data->rr_data = (uint8_t**)&(data->rr_len[total]);
usr.sbin/unbound/util/data/packed_rrset.c
187
data->rr_ttl = (time_t*)&(data->rr_data[total]);
usr.sbin/unbound/util/data/packed_rrset.c
188
nextrdata = (uint8_t*)&(data->rr_ttl[total]);
usr.sbin/unbound/util/data/packed_rrset.c
189
for(i=0; i<total; i++) {
usr.sbin/unbound/util/data/packed_rrset.c
222
size_t total = data->count + data->rrsig_count;
usr.sbin/unbound/util/data/packed_rrset.c
225
for(i=0; i<total; i++)
usr.sbin/unbound/util/netevent.c
4969
size_t total = sldns_buffer_limit(c->buffer);
usr.sbin/unbound/util/netevent.c
4971
sldns_buffer_set_position(c->buffer, total);
usr.sbin/unbound/util/netevent.c
4972
c->http_stored = total;
usr.sbin/unbound/util/netevent.c
5046
size_t total = sldns_buffer_limit(c->buffer);
usr.sbin/unbound/util/netevent.c
5048
sldns_buffer_set_position(c->buffer, total);
usr.sbin/unbound/util/netevent.c
5049
c->http_stored = total;
usr.sbin/unbound/util/storage/slabhash.c
147
size_t i, total = 0;
usr.sbin/unbound/util/storage/slabhash.c
150
total += sl->array[i]->space_max;
usr.sbin/unbound/util/storage/slabhash.c
153
return total;
usr.sbin/unbound/util/storage/slabhash.c
178
size_t i, total = sizeof(*sl);
usr.sbin/unbound/util/storage/slabhash.c
179
total += sizeof(struct lruhash*)*sl->size;
usr.sbin/unbound/util/storage/slabhash.c
181
total += lruhash_get_mem(sl->array[i]);
usr.sbin/unbound/util/storage/slabhash.c
183
return total;
usr.sbin/unbound/validator/autotrust.c
665
size_t count=0, rrsig_count=0, len=0, i, total;
usr.sbin/unbound/validator/autotrust.c
684
total = count + rrsig_count;
usr.sbin/unbound/validator/autotrust.c
685
len += sizeof(*data) + total*(sizeof(size_t) + sizeof(time_t) +
usr.sbin/unbound/validator/autotrust.c
697
data->rr_data = (uint8_t**)&(data->rr_len[total]);
usr.sbin/unbound/validator/autotrust.c
698
data->rr_ttl = (time_t*)&(data->rr_data[total]);
usr.sbin/unbound/validator/autotrust.c
699
nextrdata = (uint8_t*)&(data->rr_ttl[total]);
usr.sbin/unbound/validator/autotrust.c
715
for(i=0; i<total; i++) {
usr.sbin/unbound/validator/val_sigcrypt.c
441
size_t i, total = n->num;
usr.sbin/unbound/validator/val_sigcrypt.c
450
sigalg[total] = algo;
usr.sbin/unbound/validator/val_sigcrypt.c
451
total++;
usr.sbin/unbound/validator/val_sigcrypt.c
454
sigalg[total] = 0;
usr.sbin/unbound/validator/val_sigcrypt.c
455
n->num = total;
usr.sbin/unbound/validator/val_sigcrypt.c
461
size_t total = 0;
usr.sbin/unbound/validator/val_sigcrypt.c
468
total++;
usr.sbin/unbound/validator/val_sigcrypt.c
470
n->num = total;
usr.sbin/unbound/validator/val_sigcrypt.c
477
size_t i, total = 0;
usr.sbin/unbound/validator/val_sigcrypt.c
490
sigalg[total] = algo;
usr.sbin/unbound/validator/val_sigcrypt.c
491
total++;
usr.sbin/unbound/validator/val_sigcrypt.c
494
sigalg[total] = 0;
usr.sbin/unbound/validator/val_sigcrypt.c
495
n->num = total;
usr.sbin/vmd/vioqcow2.c
309
ssize_t sz = 0, total = 0;
usr.sbin/vmd/vioqcow2.c
315
total += sz;
usr.sbin/vmd/vioqcow2.c
319
return (total);
usr.sbin/vmd/vioqcow2.c
382
ssize_t sz = 0, total = 0;
usr.sbin/vmd/vioqcow2.c
388
total += sz;
usr.sbin/vmd/vioqcow2.c
392
return (total);
usr.sbin/ypldap/yp.c
196
ssize_t total;
usr.sbin/ypldap/yp.c
233
total = iov[0].iov_len + iov[1].iov_len + iov[2].iov_len;
usr.sbin/ypldap/yp.c
235
total) {
usr.sbin/zic/zic.c
1749
int month, total;
usr.sbin/zic/zic.c
1753
total = 0;
usr.sbin/zic/zic.c
1755
total += len_months[0][month];
usr.sbin/zic/zic.c
1759
total + rp->r_dayofmonth - 1);
usr.sbin/zic/zic.c
1762
total + rp->r_dayofmonth);