Symbol: total
bin/mv/mv.c
280
off_t total = 0;
bin/mv/mv.c
304
total += nread;
bin/mv/mv.c
306
int pcent = (int)((100.0 * total) / sbp->st_size);
bin/mv/mv.c
310
"written\n", from, to, (unsigned long long)total,
bin/rcp/rcp.c
826
progress(const char *file, uintmax_t done, uintmax_t total)
bin/rcp/rcp.c
829
const double pcent = (100.0 * done) / total;
bin/rcp/rcp.c
841
getprogname(), file, done, total, pcent);
common/dist/zlib/examples/gun.c
123
unsigned long total;
common/dist/zlib/examples/gun.c
138
me->total += len;
common/dist/zlib/examples/gun.c
470
outd.total = 0;
common/dist/zlib/examples/gun.c
494
if (NEXT() != (int)(outd.total & 0xff) ||
common/dist/zlib/examples/gun.c
495
NEXT() != (int)((outd.total >> 8) & 0xff) ||
common/dist/zlib/examples/gun.c
496
NEXT() != (int)((outd.total >> 16) & 0xff) ||
common/dist/zlib/examples/gun.c
497
NEXT() != (int)((outd.total >> 24) & 0xff)) {
common/dist/zlib/inflate.c
107
strm->total_in = strm->total_out = state->total = 0;
common/dist/zlib/inflate.c
1086
state->total += out;
common/dist/zlib/inflate.c
1109
if ((state->wrap & 4) && hold != (state->total & 0xffffffff)) {
common/dist/zlib/inflate.c
1152
state->total += out;
common/dist/zlib/inflate.h
93
unsigned long total; /* protected copy of output count */
common/dist/zlib/test/infcover.c
103
zone->total += item->size;
common/dist/zlib/test/infcover.c
104
if (zone->total > zone->highwater)
common/dist/zlib/test/infcover.c
105
zone->highwater = zone->total;
common/dist/zlib/test/infcover.c
144
zone->total -= next->size;
common/dist/zlib/test/infcover.c
165
zone->total = 0;
common/dist/zlib/test/infcover.c
188
fprintf(stderr, "%s: %zu allocated\n", prefix, zone->total);
common/dist/zlib/test/infcover.c
220
if (count || zone->total)
common/dist/zlib/test/infcover.c
222
prefix, zone->total, count);
common/dist/zlib/test/infcover.c
65
size_t total, highwater; /* total allocations, and largest total */
common/dist/zlib/test/infcover.c
79
if (zone == NULL || (zone->limit && zone->total + len > zone->limit))
common/lib/libc/gen/radixtree.c
1579
unsigned int total;
common/lib/libc/gen/radixtree.c
1582
total = 0;
common/lib/libc/gen/radixtree.c
1586
total += nfound;
common/lib/libc/gen/radixtree.c
1591
assert(total == nnodes);
common/lib/libc/gen/radixtree.c
1601
unsigned int total;
common/lib/libc/gen/radixtree.c
1604
total = 0;
common/lib/libc/gen/radixtree.c
1608
total += nfound;
common/lib/libc/gen/radixtree.c
1613
assert(total == nnodes);
common/lib/libc/gen/radixtree.c
1619
unsigned int total = 0;
common/lib/libc/gen/radixtree.c
1632
total += nfound;
common/lib/libc/gen/radixtree.c
1636
check_tag_count(ntagged, tagmask, total);
common/lib/libc/gen/radixtree.c
1637
assert(tagmask != 0 || total == 0);
common/lib/libc/gen/radixtree.c
1638
printops(title, "ganglookup_tag", tagmask, total, &stv, &etv);
common/lib/libc/gen/radixtree.c
1642
unsigned int total = 0;
common/lib/libc/gen/radixtree.c
1656
total += nfound;
common/lib/libc/gen/radixtree.c
1663
check_tag_count(ntagged, tagmask, total);
common/lib/libc/gen/radixtree.c
1664
assert(tagmask != 0 || total == 0);
common/lib/libc/gen/radixtree.c
1665
printops(title, "ganglookup_tag_reverse", tagmask, total,
common/lib/libc/gen/radixtree.c
1671
unsigned int total;
common/lib/libc/gen/radixtree.c
1673
total = 0;
common/lib/libc/gen/radixtree.c
1690
total += nfound;
common/lib/libc/gen/radixtree.c
1698
check_tag_count(ntagged, tagmask, total);
common/lib/libc/gen/radixtree.c
1700
assert(total <= ntagged[tag]);
common/lib/libc/gen/radixtree.c
1702
printops(title, "ganglookup_tag+remove", tagmask, total, &stv,
common/lib/libc/gen/radixtree.c
1704
removed += total;
common/lib/libc/gen/radixtree.c
1712
unsigned int total;
common/lib/libc/gen/radixtree.c
1715
total = 0;
common/lib/libc/gen/radixtree.c
1723
total += nfound;
common/lib/libc/gen/radixtree.c
1728
assert(total == nnodes - removed);
games/backgammon/common_source/odds.c
72
int total;
games/backgammon/common_source/odds.c
74
total = 0;
games/backgammon/common_source/odds.c
77
total += table[i][j];
games/backgammon/common_source/odds.c
78
return (total);
games/canfield/canfield/canfield.c
1031
total.information += costofinformation;
games/canfield/canfield/canfield.c
1123
total.thinktime += dollars;
games/canfield/canfield/canfield.c
1129
totalcosts = total.hand + total.inspection + total.game +
games/canfield/canfield/canfield.c
1130
total.runs + total.information + total.thinktime;
games/canfield/canfield/canfield.c
1133
total.worth = total.wins - totalcosts;
games/canfield/canfield/canfield.c
1136
totalreturn = ((double)total.wins / (double)totalcosts - 1.0) * 100.0;
games/canfield/canfield/canfield.c
1140
printw("%4ld%8ld%9ld", this.hand, game.hand, total.hand);
games/canfield/canfield/canfield.c
1143
total.inspection);
games/canfield/canfield/canfield.c
1145
printw("%4ld%8ld%9ld", this.game, game.game, total.game);
games/canfield/canfield/canfield.c
1147
printw("%4ld%8ld%9ld", this.runs, game.runs, total.runs);
games/canfield/canfield/canfield.c
1150
total.information);
games/canfield/canfield/canfield.c
1152
printw("%4ld%8ld%9ld", this.thinktime, game.thinktime, total.thinktime);
games/canfield/canfield/canfield.c
1156
printw("%4ld%8ld%9ld", this.wins, game.wins, total.wins);
games/canfield/canfield/canfield.c
1158
printw("%4ld%8ld%9ld", this.worth, game.worth, total.worth);
games/canfield/canfield/canfield.c
1317
total.wins += valuepercardup;
games/canfield/canfield/canfield.c
1394
write(dbfd, (char *)&total, sizeof(total));
games/canfield/canfield/canfield.c
1461
total.inspection += costofinspection;
games/canfield/canfield/canfield.c
1506
total.wins += valuepercardup * cardsoff;
games/canfield/canfield/canfield.c
1509
total.game += costofgame;
games/canfield/canfield/canfield.c
1660
i = read(dbfd, (char *)&total, sizeof(total));
games/canfield/canfield/canfield.c
1713
total.thinktime += 1;
games/canfield/canfield/canfield.c
1718
write(dbfd, (char *)&total, sizeof(total));
games/canfield/canfield/canfield.c
187
static struct betinfo this, game, total;
games/canfield/canfield/canfield.c
671
total.wins += valuepercardup;
games/canfield/canfield/canfield.c
736
total.hand += costofhand;
games/canfield/canfield/canfield.c
893
total.runs += costofrunthroughhand;
games/canfield/canfield/canfield.c
933
total.information += costofinformation;
games/canfield/canfield/canfield.c
979
total.information += costofinformation;
games/canfield/canfield/canfield.c
991
total.information += costofinformation;
games/canfield/cfscores/cfscores.c
107
struct betinfo total;
games/canfield/cfscores/cfscores.c
120
i = read(dbfd, &total, sizeof(total));
games/canfield/cfscores/cfscores.c
123
if (i == 0 || total.hand == 0) {
games/canfield/cfscores/cfscores.c
129
if (total.worth >= 0)
games/canfield/cfscores/cfscores.c
135
printf("| Hands %8ld |\n", total.hand);
games/canfield/cfscores/cfscores.c
136
printf("| Inspections %8ld |\n", total.inspection);
games/canfield/cfscores/cfscores.c
137
printf("| Games %8ld |\n", total.game);
games/canfield/cfscores/cfscores.c
138
printf("| Runs %8ld |\n", total.runs);
games/canfield/cfscores/cfscores.c
139
printf("| Information %8ld |\n", total.information);
games/canfield/cfscores/cfscores.c
140
printf("| Think time %8ld |\n", total.thinktime);
games/canfield/cfscores/cfscores.c
141
printf("|Total Costs %8ld |\n", total.wins - total.worth);
games/canfield/cfscores/cfscores.c
142
printf("|Winnings %8ld |\n", total.wins);
games/canfield/cfscores/cfscores.c
143
printf("|Net Worth %8ld |\n", total.worth);
games/dab/board.cc
230
_scrn->total(i, p);
games/dab/board.h
73
void total(size_t i, const PLAYER& p); // Post totals
games/dab/gamescreen.h
68
virtual void total(size_t l, const PLAYER& p) = 0; // Post total score
games/dab/main.cc
91
b.total(0, *p[0]);
games/dab/main.cc
92
b.total(1, *p[1]);
games/dab/ttyscrn.h
57
void total(size_t s, const PLAYER& p);
games/gomoku/bdisp.c
128
int total = fixed + bw + ww;
games/gomoku/bdisp.c
131
if (total <= available)
games/gomoku/bdisp.c
132
x = (available - total) / 2;
games/hack/hack.shk.c
170
static long int total; /* filled by addupbill() */
games/hack/hack.shk.c
251
total = 0;
games/hack/hack.shk.c
253
total += bp->price * bp->bquan;
games/hack/hack.shk.c
273
total);
games/hack/hack.shk.c
274
ESHK(shopkeeper)->robbed += total;
games/hack/hack.shk.c
617
if (total > u.ugold) {
games/hack/hack.shk.c
623
u.ugold -= total;
games/hack/hack.shk.c
624
shopkeeper->mgold += total;
games/hack/hack.shk.c
626
Monnam(shopkeeper), total);
games/mille/end.c
135
pp->total += tot;
games/mille/end.c
149
pp->total -= Last_tot[i];
games/mille/end.c
83
pp->total += tot;
games/mille/mille.c
103
if (!restore || (Player[PLAYER].total >= 5000
games/mille/mille.c
104
|| Player[COMP].total >= 5000)) {
games/mille/mille.c
105
if (Player[COMP].total < Player[PLAYER].total)
games/mille/mille.c
107
else if (Player[COMP].total > Player[PLAYER].total)
games/mille/mille.c
109
Player[COMP].total = 0;
games/mille/mille.c
110
Player[PLAYER].total = 0;
games/mille/mille.c
131
} while (Player[COMP].total < 5000
games/mille/mille.c
132
&& Player[PLAYER].total < 5000);
games/mille/mille.h
190
int total;
games/mille/misc.c
225
if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000)
games/mille/misc.c
232
if (Player[PLAYER].total > Player[COMP].total)
games/mille/misc.c
234
else if (Player[PLAYER].total < Player[COMP].total)
games/mille/misc.c
236
Player[COMP].total = 0;
games/mille/misc.c
237
Player[PLAYER].total = 0;
games/mille/move.c
249
pp->total += v;
games/mille/move.c
316
pp->total += SC_COUP;
games/mille/move.c
327
pp->total += SC_SAFETY;
games/mille/move.c
330
pp->total += SC_ALL_SAFE;
games/mille/print.c
149
show_score(13, x, pp->total, &pp->sh_total);
games/mille/print.c
154
show_score(8, x, pp->total, &pp->sh_total);
games/rogue/hit.c
180
int i = 0, j, n, d, total = 0;
games/rogue/hit.c
201
total += get_rand(1, d);
games/rogue/hit.c
203
total += d;
games/rogue/hit.c
207
return(total);
games/rogue/hit.c
239
int total = 0;
games/rogue/hit.c
242
total = (10 * total) + (s[i] - '0');
games/rogue/hit.c
245
return(total);
games/rogue/hit.c
252
long total = 0;
games/rogue/hit.c
255
total = (10 * total) + (s[i] - '0');
games/rogue/hit.c
258
return(total);
games/sail/dr_2.c
180
int row, col, dir, total, ran;
games/sail/dr_2.c
193
total = -50 * ran;
games/sail/dr_2.c
195
total += 60;
games/sail/dr_2.c
197
total = -30000;
games/sail/dr_2.c
204
return total;
lib/libbluetooth/sdp_service.c
162
total = be16dec(ptr);
lib/libbluetooth/sdp_service.c
164
if (total > *num)
lib/libbluetooth/sdp_service.c
175
if (got + count > total)
lib/libbluetooth/sdp_service.c
98
uint16_t total, count, got;
lib/libc/db/recno/rec_search.c
75
recno_t total;
lib/libc/db/recno/rec_search.c
79
for (pg = P_ROOT, total = 0;;) {
lib/libc/db/recno/rec_search.c
84
t->bt_cur.index = recno - total;
lib/libc/db/recno/rec_search.c
89
if (++idx == top || total + r->nrecs > recno)
lib/libc/db/recno/rec_search.c
91
total += r->nrecs;
lib/libc/stdio/fread.c
100
count = (total - resid) / size;
lib/libc/stdio/fread.c
131
return (total - resid) / size;
lib/libc/stdio/fread.c
59
size_t total;
lib/libc/stdio/fread.c
84
total = resid;
lib/libc/stdlib/malloc.c
1090
if (info->free != info->total)
lib/libc/stdlib/malloc.c
156
u_short total; /* How many chunk */
lib/libc/stdlib/malloc.c
693
bp->total = bp->free = (u_short)(malloc_pagesize >> bits);
lib/libc/stdlib/malloc.c
697
k = bp->total;
lib/libc/stdlib/malloc.c
712
bp->total--;
lib/libc/time/zic.c
3243
int month, total;
lib/libc/time/zic.c
3247
total = 0;
lib/libc/time/zic.c
3249
total += len_months[0][month];
lib/libc/time/zic.c
3252
len += snprintf(result + len, resultlen - len, "%d", total + rp->r_dayofmonth - 1);
lib/libc/time/zic.c
3254
len += snprintf(result + len, resultlen - len, "J%d", total + rp->r_dayofmonth);
lib/librefuse/refuse/buf.c
101
total += n_read;
lib/librefuse/refuse/buf.c
111
return total;
lib/librefuse/refuse/buf.c
120
ssize_t total = 0;
lib/librefuse/refuse/buf.c
134
else if (total == 0)
lib/librefuse/refuse/buf.c
145
total += n_wrote;
lib/librefuse/refuse/buf.c
155
return total;
lib/librefuse/refuse/buf.c
164
ssize_t total = 0;
lib/librefuse/refuse/buf.c
182
if (total == 0) {
lib/librefuse/refuse/buf.c
198
if (total == 0) {
lib/librefuse/refuse/buf.c
211
total += n_wrote;
lib/librefuse/refuse/buf.c
223
return total;
lib/librefuse/refuse/buf.c
279
ssize_t total = 0;
lib/librefuse/refuse/buf.c
300
if (total == 0)
lib/librefuse/refuse/buf.c
308
total += n_copied;
lib/librefuse/refuse/buf.c
318
return total;
lib/librefuse/refuse/buf.c
50
size_t total = 0;
lib/librefuse/refuse/buf.c
53
total += bufv->buf[i].size;
lib/librefuse/refuse/buf.c
56
return total;
lib/librefuse/refuse/buf.c
75
ssize_t total = 0;
lib/librefuse/refuse/buf.c
89
else if (total == 0)
regress/sys/kern/allocfree/allocfree.c
178
total += x * 1000000000LL / cpu_frequency(curcpu());
regress/sys/kern/allocfree/allocfree.c
180
total += timespec2ns(&t);
regress/sys/kern/allocfree/allocfree.c
199
total = 0;
regress/sys/kern/allocfree/allocfree.c
222
printf("\t%d", (int)(total / nthreads / count));
regress/sys/kern/allocfree/allocfree.c
52
static uint64_t total;
sbin/fsck/progress.c
116
(current * (progress_highlim - progress_lowlim)) / total;
sbin/fsck/progress.c
90
progress_bar(const char *dev, const char *label, off_t current, off_t total)
sbin/fsck_v7fs/freeblock.c
137
int i, total, n;
sbin/fsck_v7fs/freeblock.c
144
total = 0;
sbin/fsck_v7fs/freeblock.c
145
for (i = sb->nfreeblock - 1; (i > 0) && (n >= 0); i--, n--, total++) {
sbin/fsck_v7fs/freeblock.c
173
sb->nfreeblock, total);
sbin/fsck_v7fs/freeblock.c
174
sb->nfreeblock = total; /*shotage freeblock list. */
sbin/fsck_v7fs/freeblock.c
179
total++;
sbin/fsck_v7fs/freeblock.c
184
i--, n--, total++) {
sbin/fsck_v7fs/fsck_v7fs.h
51
off_t total;
sbin/fsck_v7fs/inode.c
127
arg->total++;
sbin/fsck_v7fs/inode.c
138
struct ilistcheck_arg arg = { .total = 0, .alloc = 0 };
sbin/fsck_v7fs/inode.c
143
int nfree = arg.total - arg.alloc;
sbin/fsck_v7fs/inode.c
158
pwarn("\ninode usage: %d/%d (%d)\n", arg.alloc, arg.total, nfree);
sbin/fsck_v7fs/inode.c
48
int total;
sbin/fsck_v7fs/main.c
217
Progress.total++;
sbin/fsck_v7fs/main.c
218
progress_bar(cdev, label, Progress.total, PROGRESS_BAR_GRANULE);
sbin/iscsid/iscsid_main.c
113
total = snprintf((char *)snp.InitiatorName, sizeof(snp.InitiatorName),
sbin/iscsid/iscsid_main.c
115
if ((size_t)total > sizeof(snp.InitiatorName)) {
sbin/iscsid/iscsid_main.c
93
int total;
sbin/newfs_v7fs/newfs_v7fs.c
230
Progress.total++;
sbin/newfs_v7fs/newfs_v7fs.c
231
progress_bar(cdev, label, Progress.total, PROGRESS_BAR_GRANULE);
sbin/newfs_v7fs/newfs_v7fs.h
41
off_t total;
sbin/raidctl/raidctl.c
1097
while(progressInfo.completed < progressInfo.total) {
sbin/raidctl/raidctl.c
1100
progressInfo.total;
sbin/raidctl/raidctl.c
1126
simple_eta = (int) (((double)progressInfo.total -
sbin/rndctl/rndctl.c
477
printf("%10" PRIu32 " ", source->rt.total);
sbin/rndctl/rndctl.c
480
printf("%s\n", strflags(source->rt.total, source->rt.flags));
sbin/scan_ffs/scan_ffs.c
407
show_status(uintmax_t beg, uintmax_t total)
sbin/scan_ffs/scan_ffs.c
412
const double pcent = (100.0 * done) / total;
sbin/scan_ffs/scan_ffs.c
422
getprogname(), done, total, pcent);
sbin/scan_ffs/scan_ffs.c
446
const daddr_t total = end - beg;
sbin/scan_ffs/scan_ffs.c
449
show_status(beg, total);
share/examples/refuse/ian/libfetch/common.c
383
ssize_t rlen, total;
share/examples/refuse/ian/libfetch/common.c
392
total = 0;
share/examples/refuse/ian/libfetch/common.c
432
total += rlen;
share/examples/refuse/ian/libfetch/common.c
434
return (total);
share/examples/refuse/ian/libfetch/common.c
509
ssize_t wlen, total;
share/examples/refuse/ian/libfetch/common.c
518
total = 0;
share/examples/refuse/ian/libfetch/common.c
561
total += wlen;
share/examples/refuse/ian/libfetch/common.c
572
return (total);
share/examples/refuse/ian/libfetch/http.c
129
size_t total;
share/examples/refuse/ian/libfetch/http.c
164
io->total += io->chunksize;
share/examples/refuse/ian/libfetch/http.c
170
(unsigned long)io->total);
sys/altq/altq_hfsc.c
1647
sp->total = cl->cl_total;
sys/altq/altq_hfsc.h
75
u_int64_t total; /* total work in bytes */
sys/arch/aarch64/aarch64/procfs_machdep.c
180
return total;
sys/arch/aarch64/aarch64/procfs_machdep.c
188
size_t left, len, total;
sys/arch/aarch64/aarch64/procfs_machdep.c
192
total = 0;
sys/arch/aarch64/aarch64/procfs_machdep.c
213
if (total >= *lenp)
sys/arch/aarch64/aarch64/procfs_machdep.c
216
*lenp = total + 1; /* total output + '\0' */
sys/arch/aarch64/aarch64/procfs_machdep.c
44
total += _len; \
sys/arch/aarch64/aarch64/procfs_machdep.c
64
size_t left, total;
sys/arch/aarch64/aarch64/procfs_machdep.c
73
total = 0;
sys/arch/acorn32/stand/boot32/boot32.c
933
ssize_t bytes_read, total;
sys/arch/acorn32/stand/boot32/boot32.c
936
total = 0;
sys/arch/acorn32/stand/boot32/boot32.c
947
total += bytes_read; /* account read bytes */
sys/arch/acorn32/stand/boot32/boot32.c
950
return total; /* does this happen? */
sys/arch/acorn32/stand/boot32/boot32.c
955
return total;
sys/arch/alpha/alpha/fp_complete.c
177
static int total;
sys/arch/alpha/alpha/fp_complete.c
188
if (total >= 1000)
sys/arch/alpha/alpha/fp_complete.c
190
++total;
sys/arch/arm/arm32/pmap.c
3514
u_int cleanlist_idx, total, cnt;
sys/arch/arm/arm32/pmap.c
3526
total = 0;
sys/arch/arm/arm32/pmap.c
3638
total += cleanlist_idx;
sys/arch/arm/arm32/pmap.c
3661
if (total <= PMAP_REMOVE_CLEAN_LIST_SIZE)
sys/arch/arm/imx/imx23_platform.c
127
uint32_t total;
sys/arch/arm/imx/imx23_platform.c
130
total = 0;
sys/arch/arm/imx/imx23_platform.c
142
total += elapsed - last;
sys/arch/arm/imx/imx23_platform.c
145
} while (total < us);
sys/arch/arm/sunxi/sun8i_crypto.c
770
uint32_t total __diagused = 0;
sys/arch/arm/sunxi/sun8i_crypto.c
788
KASSERT(map->dm_segs[i].ds_len <= UINT32_MAX - total);
sys/arch/arm/sunxi/sun8i_crypto.c
791
total += map->dm_segs[i].ds_len;
sys/arch/arm/sunxi/sun8i_crypto.c
801
KASSERT(total == nbytes);
sys/arch/arm/sunxi/sunxi_emac.c
307
bus_dmamap_t map, int start, int end, int total, int flags)
sys/arch/arm/sunxi/sunxi_emac.c
314
DESC_OFF(total) - DESC_OFF(start), flags);
sys/arch/evbppc/dht/machdep.c
143
u_int total = 0;
sys/arch/evbppc/dht/machdep.c
150
total += SDRAM0_BnCR_SZ(val);
sys/arch/evbppc/dht/machdep.c
152
return total;
sys/arch/ews4800mips/ews4800mips/sbd.c
123
total += size;
sys/arch/ews4800mips/ews4800mips/sbd.c
126
printf(" total %dMB\n", total);
sys/arch/ews4800mips/ews4800mips/sbd.c
128
mem_clusters[0].size = total << 20;
sys/arch/ews4800mips/ews4800mips/sbd.c
80
size_t size, total = 0;
sys/arch/ews4800mips/stand/common/boot.c
181
int i, size, total;
sys/arch/ews4800mips/stand/common/boot.c
195
total = 0;
sys/arch/ews4800mips/stand/common/boot.c
199
total += size;
sys/arch/ews4800mips/stand/common/boot.c
203
printf(" total %dMB\n", total);
sys/arch/ews4800mips/stand/common/inckern.c
42
int err, i, n, total, nulldata;
sys/arch/ews4800mips/stand/common/inckern.c
46
total = 0;
sys/arch/ews4800mips/stand/common/inckern.c
54
total = strtoul(optarg, 0, 0);
sys/arch/ews4800mips/stand/common/inckern.c
58
if ((optarg == 0) || (total != 0) ||
sys/arch/ews4800mips/stand/common/inckern.c
74
fprintf(ofd, "%d];\n", total);
sys/arch/ews4800mips/stand/common/inckern.c
75
fprintf(ofd, "int kernel_binary_size = %d;\n", total);
sys/arch/ews4800mips/stand/common/inckern.c
84
total += n;
sys/arch/ews4800mips/stand/common/inckern.c
86
fprintf(ofd, "\n};\nint kernel_binary_size = %d;\n", total);
sys/arch/hpc/stand/hpcboot/file_http.cpp
364
size_t cnt, total = 0;
sys/arch/hpc/stand/hpcboot/file_http.cpp
367
cnt = recv(h, buf + total, size - total, 0);
sys/arch/hpc/stand/hpcboot/file_http.cpp
368
total += cnt;
sys/arch/hpc/stand/hpcboot/file_http.cpp
370
size, total, cnt));
sys/arch/hpc/stand/hpcboot/file_http.cpp
371
} while (total < size && cnt > 0);
sys/arch/hpc/stand/hpcboot/file_http.cpp
373
DPRINTFN(1,(TEXT("total read %d byte\n"), total));
sys/arch/hpc/stand/hpcboot/file_http.cpp
374
return total;
sys/arch/hpc/stand/libz/zalloc.c
37
size_t total = items * size;
sys/arch/hpc/stand/libz/zalloc.c
39
opaque = malloc(total);
sys/arch/hpc/stand/libz/zalloc.c
41
memset(opaque, 0, total);
sys/arch/hpcmips/vr/flash_vrip.c
347
int total;
sys/arch/hpcmips/vr/flash_vrip.c
356
total = uimin(sc->sc_size - off, uio->uio_resid);
sys/arch/hpcmips/vr/flash_vrip.c
358
while (total > 0) {
sys/arch/hpcmips/vr/flash_vrip.c
364
total -= count;
sys/arch/hppa/stand/mkboot/mkboot.c
238
int n, total;
sys/arch/hppa/stand/mkboot/mkboot.c
296
total = 0;
sys/arch/hppa/stand/mkboot/mkboot.c
309
total += n;
sys/arch/hppa/stand/mkboot/mkboot.c
315
load.count = htobe32(4 + total);
sys/arch/hppa/stand/mkboot/mkboot.c
319
warnx("wrote %d bytes of file \'%s\'", total, from_file);
sys/arch/hppa/stand/mkboot/mkboot.c
321
total += sizeof(load);
sys/arch/hppa/stand/mkboot/mkboot.c
323
lseek(to, -total, SEEK_CUR);
sys/arch/hppa/stand/mkboot/mkboot.c
326
lseek(to, total - sizeof(load), SEEK_CUR);
sys/arch/hppa/stand/mkboot/mkboot.c
330
n = sizeof(int) - total % sizeof(int);
sys/arch/hppa/stand/mkboot/mkboot.c
331
if (total % sizeof(int)) {
sys/arch/hppa/stand/mkboot/mkboot.c
335
total += n;
sys/arch/hppa/stand/mkboot/mkboot.c
339
n = sizeof(buf) - total % sizeof(buf);
sys/arch/hppa/stand/mkboot/mkboot.c
343
total += sizeof(buf);
sys/arch/hppa/stand/mkboot/mkboot.c
345
total += n;
sys/arch/hppa/stand/mkboot/mkboot.c
365
return total;
sys/arch/mac68k/dev/aed.c
598
int total;
sys/arch/mac68k/dev/aed.c
611
total = (aed_sc->sc_evq_len < willfit) ? aed_sc->sc_evq_len : willfit;
sys/arch/mac68k/dev/aed.c
613
firstmove = (aed_sc->sc_evq_tail + total > AED_MAX_EVENTS)
sys/arch/mac68k/dev/aed.c
614
? (AED_MAX_EVENTS - aed_sc->sc_evq_tail) : total;
sys/arch/mac68k/dev/aed.c
622
moremove = total - firstmove;
sys/arch/mac68k/dev/aed.c
632
aed_sc->sc_evq_tail = (aed_sc->sc_evq_tail + total) % AED_MAX_EVENTS;
sys/arch/mac68k/dev/aed.c
633
aed_sc->sc_evq_len -= total;
sys/arch/mac68k/obio/ascaudio.c
412
int total;
sys/arch/mac68k/obio/ascaudio.c
448
total = blksize;
sys/arch/mac68k/obio/ascaudio.c
450
total = sc->sc_playbuf + BUFSIZE - sc->sc_putptr;
sys/arch/mac68k/obio/ascaudio.c
452
if (total) {
sys/arch/mac68k/obio/ascaudio.c
453
memcpy(sc->sc_putptr, loc, total);
sys/arch/mac68k/obio/ascaudio.c
454
sc->sc_putptr += total;
sys/arch/mac68k/obio/ascaudio.c
455
loc += total;
sys/arch/mac68k/obio/ascaudio.c
458
total = blksize - total;
sys/arch/mac68k/obio/ascaudio.c
459
if (total) {
sys/arch/mac68k/obio/ascaudio.c
461
memcpy(sc->sc_playbuf, loc, total);
sys/arch/mac68k/obio/ascaudio.c
462
sc->sc_putptr += total;
sys/arch/mac68k/obio/ascaudio.c
488
int total;
sys/arch/mac68k/obio/ascaudio.c
555
total = blksize;
sys/arch/mac68k/obio/ascaudio.c
557
total = sc->sc_recbuf + BUFSIZE - sc->sc_getptr;
sys/arch/mac68k/obio/ascaudio.c
559
if (total) {
sys/arch/mac68k/obio/ascaudio.c
560
memcpy(loc, sc->sc_getptr, total);
sys/arch/mac68k/obio/ascaudio.c
561
sc->sc_getptr += total;
sys/arch/mac68k/obio/ascaudio.c
562
loc += total;
sys/arch/mac68k/obio/ascaudio.c
565
total = blksize - total;
sys/arch/mac68k/obio/ascaudio.c
566
if (total) {
sys/arch/mac68k/obio/ascaudio.c
568
memcpy(loc, sc->sc_getptr, total);
sys/arch/mac68k/obio/ascaudio.c
569
sc->sc_getptr += total;
sys/arch/mac68k/obio/ascaudio.c
794
int loc_a, loc_b, total, count, i;
sys/arch/mac68k/obio/ascaudio.c
825
total = count;
sys/arch/mac68k/obio/ascaudio.c
828
while (total) {
sys/arch/mac68k/obio/ascaudio.c
849
total -= count;
sys/arch/mac68k/obio/ascaudio.c
851
count = total;
sys/arch/mac68k/obio/ascaudio.c
896
total = count;
sys/arch/mac68k/obio/ascaudio.c
900
while (total) {
sys/arch/mac68k/obio/ascaudio.c
932
total -= count;
sys/arch/mac68k/obio/ascaudio.c
934
count = total;
sys/arch/macppc/dev/aed.c
470
int total;
sys/arch/macppc/dev/aed.c
483
total = (aed_sc->sc_evq_len < willfit) ? aed_sc->sc_evq_len : willfit;
sys/arch/macppc/dev/aed.c
485
firstmove = (aed_sc->sc_evq_tail + total > AED_MAX_EVENTS)
sys/arch/macppc/dev/aed.c
486
? (AED_MAX_EVENTS - aed_sc->sc_evq_tail) : total;
sys/arch/macppc/dev/aed.c
494
moremove = total - firstmove;
sys/arch/macppc/dev/aed.c
504
aed_sc->sc_evq_tail = (aed_sc->sc_evq_tail + total) % AED_MAX_EVENTS;
sys/arch/macppc/dev/aed.c
505
aed_sc->sc_evq_len -= total;
sys/arch/macppc/dev/lightbar.c
241
uint64_t total = 0;
sys/arch/macppc/dev/lightbar.c
245
total += cp_time[i] - prev[i];
sys/arch/macppc/dev/lightbar.c
248
all = (total - idle) * 8 / total;
sys/arch/macppc/dev/lightbar.c
249
sys = syst * 8 / total;
sys/arch/mips/atheros/dev/athflash.c
290
int total;
sys/arch/mips/atheros/dev/athflash.c
299
total = uimin(sc->sc_size - off, uio->uio_resid);
sys/arch/mips/atheros/dev/athflash.c
301
while (total > 0) {
sys/arch/mips/atheros/dev/athflash.c
307
total -= count;
sys/arch/mips/cavium/dev/octeon_mpi.c
200
octmpi_xfer(struct octmpi_softc *sc, size_t tx, size_t total)
sys/arch/mips/cavium/dev/octeon_mpi.c
206
(tx << MPI_TX_TXNUM_SHIFT) | (total << MPI_TX_TOTNUM_SHIFT));
sys/arch/x86/x86/procfs_machdep.c
221
size_t i, total, size, used;
sys/arch/x86/x86/procfs_machdep.c
223
i = total = 0;
sys/arch/x86/x86/procfs_machdep.c
228
total += used + 1;
sys/arch/x86/x86/procfs_machdep.c
238
*len = total;
sys/compat/common/rndpseudo_50.c
56
r50->total = r->total;
sys/compat/netbsd32/netbsd32_drm.c
415
int total; /**< Buffer size */
sys/compat/netbsd32/netbsd32_rndpseudo_50.c
60
r50_32->total = r->total;
sys/compat/sys/rnd.h
63
uint32_t total; /* entropy from this source */
sys/compat/sys/rnd.h
75
uint32_t total; /* entropy from this source */
sys/dev/hyperv/vmbus.c
2065
int total = atop(buflen);
sys/dev/hyperv/vmbus.c
2067
int inhdr = MIN(total, VMBUS_NPFNHDR);
sys/dev/hyperv/vmbus.c
2075
frames = kmem_zalloc(total * sizeof(*frames), KM_SLEEP);
sys/dev/hyperv/vmbus.c
2076
for (i = 0, j = 0; i < dma->map->dm_nsegs && j < total; i++) {
sys/dev/hyperv/vmbus.c
2083
while (addr < seg->ds_addr + seg->ds_len && j < total) {
sys/dev/hyperv/vmbus.c
2097
left = total - inhdr;
sys/dev/hyperv/vmbus.c
2114
hdr->chm_range_len = sizeof(struct vmbus_gpa_range) + total *
sys/dev/hyperv/vmbus.c
2166
kmem_free(frames, total * sizeof(*frames));
sys/dev/i2c/adt7462.c
1079
int32_t which, total;
sys/dev/i2c/adt7462.c
1096
total = 0;
sys/dev/i2c/adt7462.c
1102
total += which;
sys/dev/i2c/adt7462.c
1104
if (total != edata->value_cur)
sys/dev/i2c/adt7462.c
1107
edata->value_cur, total);
sys/dev/i2c/adt7462.c
1108
edata->value_cur = total;
sys/dev/ic/bcmgenet.c
706
uint32_t status, pidx, total;
sys/dev/ic/bcmgenet.c
710
total = (pidx - sc->sc_rx.cidx) & 0xffff;
sys/dev/ic/bcmgenet.c
712
DPRINTF("RX pidx=%08x total=%d\n", pidx, total);
sys/dev/ic/bcmgenet.c
715
for (n = 0; n < total; n++) {
sys/dev/ic/bcmgenet.c
734
device_printf(sc->sc_dev, "OWN %d of %d\n",n,total);
sys/dev/ic/ciss.c
1000
cmd->cdb[8] = total >> 8; /* biiiig endian */
sys/dev/ic/ciss.c
1001
cmd->cdb[9] = total & 0xff;
sys/dev/ic/ciss.c
128
int error, total, rseg;
sys/dev/ic/ciss.c
137
total = sizeof(uint64_t) * sc->maxcmd;
sys/dev/ic/ciss.c
139
if ((error = bus_dmamem_alloc(sc->sc_dmat, total, PAGE_SIZE, 0,
sys/dev/ic/ciss.c
145
if ((error = bus_dmamem_map(sc->sc_dmat, sc->replyseg, rseg, total,
sys/dev/ic/ciss.c
152
if ((error = bus_dmamap_create(sc->sc_dmat, total, 1,
sys/dev/ic/ciss.c
153
total, 0, BUS_DMA_WAITOK | BUS_DMA_ALLOCNOW, &sc->replymap))) {
sys/dev/ic/ciss.c
155
bus_dmamem_unmap(sc->sc_dmat, sc->perf_reply, total);
sys/dev/ic/ciss.c
162
total, NULL, BUS_DMA_WAITOK))) {
sys/dev/ic/ciss.c
165
bus_dmamem_unmap(sc->sc_dmat, sc->perf_reply, total);
sys/dev/ic/ciss.c
171
memset(sc->perf_reply, 0, total);
sys/dev/ic/ciss.c
223
int error, i, total, rseg, maxfer;
sys/dev/ic/ciss.c
313
total = sc->ccblen * sc->maxcmd;
sys/dev/ic/ciss.c
314
if ((error = bus_dmamem_alloc(sc->sc_dmat, total, PAGE_SIZE, 0,
sys/dev/ic/ciss.c
320
if ((error = bus_dmamem_map(sc->sc_dmat, sc->cmdseg, rseg, total,
sys/dev/ic/ciss.c
325
memset(sc->ccbs, 0, total);
sys/dev/ic/ciss.c
327
if ((error = bus_dmamap_create(sc->sc_dmat, total, 1,
sys/dev/ic/ciss.c
328
total, 0, BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW, &sc->cmdmap))) {
sys/dev/ic/ciss.c
334
if ((error = bus_dmamap_load(sc->sc_dmat, sc->cmdmap, sc->ccbs, total,
sys/dev/ic/ciss.c
345
for (i = 0; total > 0 && i < sc->maxcmd; i++, total -= sc->ccblen) {
sys/dev/ic/ciss.c
981
int total, rv;
sys/dev/ic/ciss.c
986
total = sizeof(*lmap) + (sc->maxunits - 1) * sizeof(lmap->map);
sys/dev/ic/ciss.c
989
ccb->ccb_len = total;
sys/dev/ic/dwc_eqos.c
265
u_int start, u_int end, u_int total, int flags)
sys/dev/ic/dwc_eqos.c
272
DESC_OFF(total) - DESC_OFF(start), flags);
sys/dev/pci/if_ipw.c
1716
uint32_t total;
sys/dev/pci/if_ipw.c
1724
total = count * size;
sys/dev/pci/if_ipw.c
1726
if (total > *len) {
sys/dev/pci/if_ipw.c
1727
*len = total;
sys/dev/pci/if_ipw.c
1731
*len = total;
sys/dev/pci/if_ipw.c
1732
ipw_read_mem_1(sc, addr, buf, total);
sys/dev/pci/if_iwm.c
4154
int i, total, nbant, noise;
sys/dev/pci/if_iwm.c
4156
total = nbant = noise = 0;
sys/dev/pci/if_iwm.c
4160
total += noise;
sys/dev/pci/if_iwm.c
4166
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/pci/if_iwn.c
2615
le32toh(miss->consecutive), le32toh(miss->total)));
sys/dev/pci/if_iwn.c
3918
int i, total, nbant, noise;
sys/dev/pci/if_iwn.c
3920
total = nbant = 0;
sys/dev/pci/if_iwn.c
3924
total += noise;
sys/dev/pci/if_iwn.c
3928
return (nbant == 0) ? -127 : (total / nbant) - 107;
sys/dev/pci/if_iwnreg.h
1212
uint32_t total;
sys/dev/pci/if_mcx.c
7225
int total)
sys/dev/pci/if_mcx.c
7235
kmem_free(slots, total * sizeof(*ms));
sys/dev/pci/if_msk.c
1883
uint32_t frag, cur, hiaddr, total;
sys/dev/pci/if_msk.c
1914
for (total = i = 0; i < txmap->dm_nsegs; i++) {
sys/dev/pci/if_msk.c
1917
total++;
sys/dev/pci/if_msk.c
1919
total++;
sys/dev/pci/if_msk.c
1922
if (total > MSK_TX_RING_CNT - sc_if->sk_cdata.sk_tx_cnt - 2) {
sys/dev/pci/if_msk.c
1929
txmap->dm_nsegs, total));
sys/dev/pci/if_msk.c
1968
KASSERTMSG(entries == total, "entries %u total %u", entries, total);
sys/dev/pci/if_msk.c
525
uint32_t rxidx, frag, cur, hiaddr, total;
sys/dev/pci/if_msk.c
559
for (total = i = 0; i < rxmap->dm_nsegs; i++) {
sys/dev/pci/if_msk.c
562
total++;
sys/dev/pci/if_msk.c
564
total++;
sys/dev/pci/if_msk.c
567
if (total > MSK_RX_RING_CNT - sc_if->sk_cdata.sk_rx_cnt - 1) {
sys/dev/pci/if_msk.c
575
rxmap->dm_nsegs, total));
sys/dev/pci/if_msk.c
621
KASSERTMSG(entries == total, "entries %u total %u", entries, total);
sys/dev/pci/ips.c
1091
u_int32_t total = 0, done = 0;
sys/dev/pci/ips.c
1115
total = htole32(rblstat->ld[vid].total);
sys/dev/pci/ips.c
1116
done = total - htole32(rblstat->ld[vid].remain);
sys/dev/pci/ips.c
1117
if (total && total > done) {
sys/dev/pci/ips.c
1119
bv->bv_percent = 100 * done / total;
sys/dev/pci/ips.c
1148
device_xname(sc->sc_dev), vid, ld->state, total, done, bv->bv_size,
sys/dev/pci/ips.c
352
u_int32_t total;
sys/dev/pci/ixgbe/ixgbe.c
1622
u64 total, total_missed_rx = 0, total_qprdc = 0;
sys/dev/pci/ixgbe/ixgbe.c
1708
total = lxontxc + lxofftxc;
sys/dev/pci/ixgbe/ixgbe.c
1715
- total * ETHER_MIN_LEN);
sys/dev/pci/ixgbe/ixgbe.c
1726
- total * ETHER_MIN_LEN);
sys/dev/pci/ixgbe/ixgbe.c
1745
IXGBE_EVC_ADD(&stats->gptc, IXGBE_READ_REG(hw, IXGBE_GPTC) - total);
sys/dev/pci/ixgbe/ixgbe.c
1746
IXGBE_EVC_ADD(&stats->mptc, IXGBE_READ_REG(hw, IXGBE_MPTC) - total);
sys/dev/pci/ixgbe/ixgbe.c
1747
IXGBE_EVC_ADD(&stats->ptc64, IXGBE_READ_REG(hw, IXGBE_PTC64) - total);
sys/dev/raidframe/raidframevar.h
531
RF_uint64 total;
sys/dev/raidframe/rf_netbsdkintf.c
3941
info->total = 100;
sys/dev/raidframe/rf_netbsdkintf.c
3944
info->total = raidPtr->reconControl->numRUsTotal;
sys/dev/raidframe/rf_netbsdkintf.c
3947
info->remaining = info->total - info->completed;
sys/dev/raidframe/rf_netbsdkintf.c
3958
info->total = raidPtr->Layout.numStripe;
sys/dev/raidframe/rf_netbsdkintf.c
3962
info->total = 100;
sys/dev/raidframe/rf_netbsdkintf.c
3964
info->remaining = info->total - info->completed;
sys/dev/raidframe/rf_netbsdkintf.c
3975
info->total = 100;
sys/dev/scsipi/cd.c
651
int bps, nblks, skip, total, count;
sys/dev/scsipi/cd.c
666
total = roundup(nblks + skip, bps) * DEV_BSIZE;
sys/dev/scsipi/cd.c
668
count = total;
sys/dev/scsipi/cd.c
680
count = total - count;
sys/dev/spkr.c
184
int total;
sys/dev/spkr.c
196
total = whole / val;
sys/dev/spkr.c
201
__func__, total);
sys/dev/spkr.c
203
if (total != 0)
sys/dev/spkr.c
204
rest(sc, total);
sys/dev/spkr.c
213
silence = total * (FILLTIME - sc->sc_fill) / FILLTIME;
sys/dev/spkr.c
214
sound = total - silence;
sys/dev/usb/uatp.c
1786
unsigned int total[UATP_MAX_SENSORS];
sys/dev/usb/uatp.c
1838
memset(total, 0, sizeof(total));
sys/dev/usb/uatp.c
1891
total[n_fingers - 1] += v;
sys/dev/usb/uatp.c
1893
CHECK_(total[n_fingers - 1] <=
sys/dev/usb/uatp.c
1905
("finger at %u\n", ((weighted[i] * ratio) / total[i])));
sys/dev/usb/uatp.c
1906
sum += ((weighted[i] * ratio) / total[i]);
sys/dev/usb/uaudio.c
3819
int i, n, size, residue, total;
sys/dev/usb/uaudio.c
3831
total = 0;
sys/dev/usb/uaudio.c
3841
total += size;
sys/dev/usb/uaudio.c
3844
cb->size = total;
sys/dev/usb/uaudio.c
3850
n = uimin(total, ch->end - ch->cur);
sys/dev/usb/uaudio.c
3855
if (total > n) {
sys/dev/usb/uaudio.c
3856
total -= n;
sys/dev/usb/uaudio.c
3857
memcpy(cb->buffer + n, ch->cur, total);
sys/dev/usb/uaudio.c
3858
ch->cur += total;
sys/dev/usb/uaudio.c
3930
int i, size, residue, total;
sys/dev/usb/uaudio.c
3942
total = 0;
sys/dev/usb/uaudio.c
3954
cb->offsets[i] = total;
sys/dev/usb/uaudio.c
3955
total += size;
sys/dev/usb/uaudio.c
3958
cb->size = total;
sys/fs/puffs/puffs_msgif.c
214
int total = 0;
sys/fs/puffs/puffs_msgif.c
219
total++;
sys/fs/puffs/puffs_msgif.c
221
DPRINTF(("puffs waitqueue at %p dumped, %d total\n", q, total));
sys/fs/tmpfs/tmpfs_mem.c
94
tmpfs_mem_info(bool total)
sys/fs/tmpfs/tmpfs_mem.c
99
if (!total) {
sys/kern/kern_entropy.c
1824
rs->total = 0;
sys/kern/kern_entropy.c
2298
rs->total = add_sat(rs->total, entropybits);
sys/kern/kern_entropy.c
2354
unsigned nbits = rs->total;
sys/kern/kern_entropy.c
2390
urs->total = rndsource_entropybits(rs);
sys/kern/kern_entropy.c
2418
urse->dv_total = urse->rt.total;
sys/kern/subr_localcount.c
100
int64_t total = 0;
sys/kern/subr_localcount.c
106
lc->lc_totalp = &total;
sys/kern/subr_localcount.c
120
while (total != 0) {
sys/kern/subr_localcount.c
126
KASSERTMSG((0 < total),
sys/kern/subr_localcount.c
128
lc, total);
sys/kern/subr_pool.c
1811
uint64_t total = 0;
sys/kern/subr_pool.c
1819
total += bytes;
sys/kern/subr_pool.c
1822
return atop(total);
sys/kern/subr_vmem.c
1806
vmem_size_t total = 0;
sys/kern/subr_vmem.c
1917
total += sz;
sys/kern/subr_vmem.c
1929
total -= r->sz;
sys/kern/subr_vmem.c
1935
printf("total=%" PRIu64 "\n", (uint64_t)total);
sys/kern/subr_vmem.c
1938
(uint64_t)total, nalloc, nfree);
sys/kern/sys_aio.c
1415
wg->total = 0;
sys/kern/sys_aio.c
1561
wg->total++;
sys/kern/sys_aio.c
565
wg->total++;
sys/kern/sys_aio.c
581
const size_t target = (flags & AIOSP_SUSPEND_ANY) ? 1 : wg->total;
sys/kern/tty.c
1796
int total;
sys/kern/tty.c
1800
total = tp->t_rawq.c_cc + tp->t_canq.c_cc;
sys/kern/tty.c
1809
if (total >= TTYHOG / 2 &&
sys/kern/vfs_cache.c
1350
int total, i;
sys/kern/vfs_cache.c
1355
total = cache_lru.count[LRU_ACTIVE] + cache_lru.count[LRU_INACTIVE];
sys/kern/vfs_cache.c
1356
if (total < (desiredvnodes >> 1)) {
sys/kern/vfs_cache.c
920
int total;
sys/kern/vfs_cache.c
939
total = atomic_load_relaxed(&cache_lru.count[LRU_ACTIVE]);
sys/kern/vfs_cache.c
940
total += atomic_load_relaxed(&cache_lru.count[LRU_INACTIVE]);
sys/kern/vfs_cache.c
941
if (__predict_false(total > desiredvnodes)) {
sys/miscfs/kernfs/kernfs_vnops.c
644
size_t nread, total;
sys/miscfs/kernfs/kernfs_vnops.c
699
total = 0;
sys/miscfs/kernfs/kernfs_vnops.c
702
error = kernfs_xread(kfs, total, &bf,
sys/miscfs/kernfs/kernfs_vnops.c
704
total += nread;
sys/miscfs/kernfs/kernfs_vnops.c
706
vap->va_bytes = vap->va_size = total;
sys/modules/examples/readhappy/readhappy.c
85
unsigned total = dsum(n);
sys/modules/examples/readhappy/readhappy.c
87
if (total == HAPPY_NUMBER)
sys/modules/examples/readhappy/readhappy.c
89
if (total == SAD_NUMBER)
sys/modules/examples/readhappy/readhappy.c
92
n = total;
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
101
total = dsum(n);
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
103
if (total == HAPPY_NUMBER)
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
105
if (total == SAD_NUMBER)
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
108
n = total;
sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
96
unsigned total;
sys/net/if.c
1741
if_clone_list(int buf_count, char *buffer, int *total)
sys/net/if.c
1748
*total = if_cloners_count;
sys/sys/aio.h
100
size_t total; /* Total jobs being waited on */
sys/sys/rndio.h
68
uint32_t total; /* entropy from this source */
sys/sys/rndsource.h
73
uint32_t total; /* number of bits added while cold */
sys/ufs/chfs/chfs_subr.c
73
chfs_mem_info(bool total)
sys/ufs/chfs/chfs_subr.c
79
if (!total) {
sys/uvm/uvm_km.c
910
vmem_size_t total;
sys/uvm/uvm_km.c
916
total = vmem_size(kmem_arena, VMEM_ALLOC|VMEM_FREE);
sys/uvm/uvm_km.c
919
return (free < (total / 10));
sys/uvm/uvm_pdpolicy_clock.c
619
int total = t;
sys/uvm/uvm_pdpolicy_clock.c
622
total += uvm_pctparam_get(&s->s_anonmin);
sys/uvm/uvm_pdpolicy_clock.c
625
total += uvm_pctparam_get(&s->s_filemin);
sys/uvm/uvm_pdpolicy_clock.c
628
total += uvm_pctparam_get(&s->s_execmin);
sys/uvm/uvm_pdpolicy_clock.c
630
if (total > 95) {
sys/uvm/uvm_stat.c
152
UVM_RA_EVCNT_DEFINE(total);
tests/bin/df/getmntinfo.c
69
int64_t total, used;
tests/bin/df/getmntinfo.c
77
total = (int64_t)(u_long)sf->f_blocks * sf->f_bsize;
tests/bin/df/getmntinfo.c
78
used = total * consumed[j] / 100;
tests/bin/df/getmntinfo.c
79
sf->f_bfree = (total - used) / sf->f_bsize;
tests/bin/df/getmntinfo.c
80
sf->f_bavail = (total * (100 - minfree[i]) / 100 -
tests/kernel/t_pty.c
192
size_t total = 0;
tests/kernel/t_pty.c
240
total += size;
tests/kernel/t_pty.c
246
(void)printf("child: closing TTY %zu\n", total);
tests/kernel/t_pty.c
250
if (total != buffer_size * packets)
tests/kernel/t_pty.c
252
"Lost data %zu != %zu\n", total, buffer_size * packets);
tests/lib/libc/sys/t_ptrace_wait.h
598
unsigned total = dsum(n);
tests/lib/libc/sys/t_ptrace_wait.h
600
if (total == HAPPY_NUMBER)
tests/lib/libc/sys/t_ptrace_wait.h
602
if (total == SAD_NUMBER)
tests/lib/libc/sys/t_ptrace_wait.h
605
n = total;
tests/lib/libpthread/t_cond.c
238
total++;
tests/lib/libpthread/t_cond.c
277
total++;
tests/lib/libpthread/t_cond.c
296
count, total);
tests/lib/libpthread/t_cond.c
299
ATF_REQUIRE_EQ(total, 50000);
tests/lib/libpthread/t_cond.c
368
total++;
tests/lib/libpthread/t_cond.c
408
total++;
tests/lib/libpthread/t_cond.c
426
total);
tests/lib/libpthread/t_cond.c
429
ATF_REQUIRE_EQ(total, 50000);
tests/lib/libpthread/t_cond.c
49
static int count, share, toggle, total;
tests/net/bpf/t_bpf.c
114
const size_t total = extra_bytes + UINT_MAX + 1;
tests/net/bpf/t_bpf.c
130
sz = round_page((total + (iov_max - 1)) / iov_max);
tests/net/bpf/t_bpf.c
137
while (sz + iov[0].iov_len <= total)
tests/net/bpf/t_bpf.c
145
if (sz < total)
tests/net/bpf/t_bpf.c
147
iov[iovlen].iov_len = total - sz;
tests/net/bpf/t_bpf.c
154
ATF_REQUIRE_EQ(iov[iovlen-1].iov_len, total % iov[0].iov_len);
usr.bin/cksum/sum1.c
53
off_t total;
usr.bin/cksum/sum1.c
63
thecrc = total = 0;
usr.bin/cksum/sum1.c
65
for (total += nr, p = buf; nr--; ++p) {
usr.bin/cksum/sum1.c
74
*clen = total;
usr.bin/cksum/sum2.c
54
off_t total;
usr.bin/cksum/sum2.c
67
total = 0;
usr.bin/cksum/sum2.c
69
for (total += nr, p = buf; nr--; ++p)
usr.bin/cksum/sum2.c
78
*clen = total;
usr.bin/fincore/fincore.c
157
const uintmax_t total = howmany(st.st_size, page_size);
usr.bin/fincore/fincore.c
158
const double pct = (total != 0) ? ((double)n / total * 100) : 0;
usr.bin/fincore/fincore.c
164
printf(" %ju / %ju in-core pages (%0.2f%%)", n, total, pct);
usr.bin/ftp/ssl.c
100
ssize_t len, total;
usr.bin/ftp/ssl.c
110
total = 0;
usr.bin/ftp/ssl.c
148
total += len;
usr.bin/ftp/ssl.c
159
return total;
usr.bin/ftp/ssl.c
409
ssize_t rlen, total;
usr.bin/ftp/ssl.c
419
total = 0;
usr.bin/ftp/ssl.c
430
total = (conn->cache.len < len) ? conn->cache.len : len;
usr.bin/ftp/ssl.c
431
memcpy(buf, conn->cache.buf, total);
usr.bin/ftp/ssl.c
433
conn->cache.len -= total;
usr.bin/ftp/ssl.c
434
conn->cache.pos += total;
usr.bin/ftp/ssl.c
435
len -= total;
usr.bin/ftp/ssl.c
436
buf += total;
usr.bin/ftp/ssl.c
469
return total;
usr.bin/ftp/ssl.c
473
fetch_cache_data(conn, start, total);
usr.bin/ftp/ssl.c
483
total += rlen;
usr.bin/ftp/ssl.c
487
return total;
usr.bin/gzip/gzip.c
1276
infile_set(const char *newinfile, off_t total)
usr.bin/gzip/gzip.c
1282
infile_total = total;
usr.bin/gzip/gzip.c
250
static void infile_set(const char *newinfile, off_t total);
usr.bin/m4/lib/ohash.c
120
h->total -= h->deleted;
usr.bin/m4/lib/ohash.c
137
if (h->deleted >= MINDELETED && 4 * h->deleted > h->total)
usr.bin/m4/lib/ohash.c
163
if (++h->total * 4 > h->size * 3)
usr.bin/m4/lib/ohash.c
172
return h->total - h->deleted;
usr.bin/m4/lib/ohash.c
209
h->total = h->deleted = 0;
usr.bin/m4/lib/ohash.c
84
if (4 * h->deleted < h->total) {
usr.bin/m4/lib/ohash.c
89
} else if (3 * h->deleted > 2 * h->total)
usr.bin/m4/lib/ohash.h
43
unsigned int total;
usr.bin/netstat/if.c
1033
sizeof(humbuf), sum->ift_ib - total->ift_ib, "",
usr.bin/netstat/if.c
1039
(sum->ift_ib - total->ift_ib), " ");
usr.bin/netstat/if.c
1042
sizeof(humbuf), sum->ift_ob - total->ift_ob, "",
usr.bin/netstat/if.c
1048
(sum->ift_ob - total->ift_ob), " ");
usr.bin/netstat/if.c
1052
(sum->ift_ip - total->ift_ip),
usr.bin/netstat/if.c
1054
(sum->ift_ie - total->ift_ie),
usr.bin/netstat/if.c
1056
(sum->ift_op - total->ift_op),
usr.bin/netstat/if.c
1058
(sum->ift_oe - total->ift_oe),
usr.bin/netstat/if.c
1060
(sum->ift_co - total->ift_co));
usr.bin/netstat/if.c
1064
(unsigned long long)(sum->ift_oq - total->ift_oq));
usr.bin/netstat/if.c
1066
*total = *sum;
usr.bin/netstat/if.c
208
uint64_t total = 0;
usr.bin/netstat/if.c
237
total = 0;
usr.bin/netstat/if.c
270
total = ifd->ifi_ibytes + ifd->ifi_obytes +
usr.bin/netstat/if.c
275
total += ifd->ifi_iqdrops;
usr.bin/netstat/if.c
276
if (total == 0)
usr.bin/netstat/if.c
287
if (qflag && total == 0)
usr.bin/netstat/if.c
845
struct iftot *ip, *total;
usr.bin/netstat/if.c
867
total = sum - 1;
usr.bin/nfsstat/nfsstat.c
206
uint64_t total;
usr.bin/nfsstat/nfsstat.c
211
#define RPCSTAT(x) (x), PCT(x, total)
usr.bin/nfsstat/nfsstat.c
216
total = 0;
usr.bin/nfsstat/nfsstat.c
218
total += nfsstats.rpccnt[i];
usr.bin/nfsstat/nfsstat.c
220
printf("RPC Counts: (%" PRIu64 " call%s)\n", total,
usr.bin/nfsstat/nfsstat.c
221
total == 1 ? "" : "s");
usr.bin/nfsstat/nfsstat.c
303
total = 0;
usr.bin/nfsstat/nfsstat.c
305
total += nfsstats.srvrpccnt[i];
usr.bin/nfsstat/nfsstat.c
307
printf("RPC Counts: (%" PRIu64 " call%s)\n", total,
usr.bin/nfsstat/nfsstat.c
308
total == 1 ? "" : "s");
usr.bin/pmap/pmap.c
217
total = dump_vm_map_tree(kd, proc, vmspace,
usr.bin/pmap/pmap.c
220
total = dump_vm_map_list(kd, proc, vmspace,
usr.bin/pmap/pmap.c
230
(unsigned long)total);
usr.bin/pmap/pmap.c
234
(unsigned long)total);
usr.bin/pmap/pmap.c
244
size_t total;
usr.bin/pmap/pmap.c
250
total = 0;
usr.bin/pmap/pmap.c
259
total += dump_vm_map_entry(kd, proc, vmspace, vm_map_entry, 0);
usr.bin/pmap/pmap.c
263
total += dump_vm_map_node(kd, lvl+1, proc, vmspace, vm_map_entry, left);
usr.bin/pmap/pmap.c
264
total += dump_vm_map_node(kd, lvl+1, proc, vmspace, vm_map_entry, right);
usr.bin/pmap/pmap.c
268
return total;
usr.bin/pmap/pmap.c
296
size_t total;
usr.bin/pmap/pmap.c
299
total = 0;
usr.bin/pmap/pmap.c
320
total += dump_vm_map_entry(kd, proc, vmspace, vm_map_entry, 0);
usr.bin/pmap/pmap.c
325
return total;
usr.bin/pmap/pmap.c
99
size_t total;
usr.bin/systat/pigs.c
105
total = 0.0;
usr.bin/systat/pigs.c
108
total += pt[i].pt_pctcpu;
usr.bin/systat/pigs.c
111
if (total < 1.0)
usr.bin/systat/pigs.c
112
total = 1.0;
usr.bin/systat/pigs.c
113
factor = 50.0/total;
usr.bin/systat/pigs.c
97
float total;
usr.bin/vmstat/vmstat.c
1228
double pcnt, total;
usr.bin/vmstat/vmstat.c
1232
total = 0;
usr.bin/vmstat/vmstat.c
1234
total += cur.cp_time[state];
usr.bin/vmstat/vmstat.c
1235
if (total)
usr.bin/vmstat/vmstat.c
1236
pcnt = 100 / total;
usr.bin/vmstat/vmstat.c
1458
uint64_t total, inuse, this_total, this_inuse;
usr.bin/vmstat/vmstat.c
1479
total = inuse = 0;
usr.bin/vmstat/vmstat.c
1553
total += (this_total - this_inuse);
usr.bin/vmstat/vmstat.c
1556
total += this_total;
usr.bin/vmstat/vmstat.c
1585
total /= KILO;
usr.bin/vmstat/vmstat.c
1589
inuse, total, (100.0 * inuse) / total);
usr.bin/vmstat/vmstat.c
1599
uint64_t total, inuse, this_total, this_inuse;
usr.bin/vmstat/vmstat.c
1624
total = inuse = 0;
usr.bin/vmstat/vmstat.c
1704
total += (this_total - this_inuse);
usr.bin/vmstat/vmstat.c
1707
total += this_total;
usr.bin/vmstat/vmstat.c
1736
total /= KILO;
usr.bin/vmstat/vmstat.c
1740
inuse, total, (100.0 * inuse) / total);
usr.bin/vmstat/vmstat.c
686
struct vmtotal total;
usr.bin/vmstat/vmstat.c
696
(void)memset(&total, 0, sizeof(total));
usr.bin/vmstat/vmstat.c
698
size = sizeof(total);
usr.bin/vmstat/vmstat.c
700
&total, &size, NULL, 0) == -1) {
usr.bin/vmstat/vmstat.c
702
(void)memset(&total, 0, sizeof(total));
usr.bin/vmstat/vmstat.c
705
(void)printf("%2d ", total.t_rq);
usr.bin/vmstat/vmstat.c
706
(void)printf("%2d ", total.t_dw);
usr.bin/vmstat/vmstat.c
707
(void)printf("%2d ", total.t_pw);
usr.bin/vmstat/vmstat.c
708
(void)printf("%2d ", total.t_sl);
usr.bin/vmstat/vmstat.c
710
(void)printf("%9d ", total.t_vm);
usr.bin/vmstat/vmstat.c
711
(void)printf("%9d ", total.t_avm);
usr.bin/vmstat/vmstat.c
712
(void)printf("%9d ", total.t_arm);
usr.bin/vmstat/vmstat.c
713
(void)printf("%5d ", total.t_vmshr);
usr.bin/vmstat/vmstat.c
714
(void)printf("%6d ", total.t_avmshr);
usr.bin/vmstat/vmstat.c
715
(void)printf("%5d ", total.t_rmshr);
usr.bin/vmstat/vmstat.c
716
(void)printf("%6d ", total.t_armshr);
usr.bin/vmstat/vmstat.c
717
(void)printf("%5d", total.t_free);
usr.bin/vmstat/vmstat.c
732
struct vmtotal total;
usr.bin/vmstat/vmstat.c
771
(void)memset(&total, 0, sizeof(total));
usr.bin/vmstat/vmstat.c
781
size = sizeof(total);
usr.bin/vmstat/vmstat.c
783
&total, &size, NULL, 0) == -1) {
usr.bin/vmstat/vmstat.c
785
(void)memset(&total, 0, sizeof(total));
usr.bin/vmstat/vmstat.c
794
PRWORD(ovflw, " %*d", 2, 1, total.t_rq - 1);
usr.bin/vmstat/vmstat.c
795
PRWORD(ovflw, " %*d", 2, 1, total.t_dw + total.t_pw);
usr.bin/vmstat/vmstat.c
798
PRWORD(ovflw, " %*ld", 9, 1, pgtok(total.t_avm));
usr.bin/vmstat/vmstat.c
799
PRWORD(ovflw, " %*ld", 7, 1, pgtok(total.t_free));
usr.sbin/altq/altqstat/qdisc_hfsc.c
118
rate2str(calc_rate(sp->total, lp->total, sec)),
usr.sbin/altq/altqstat/qdisc_hfsc.c
120
rate2str(calc_rate(sp->total - sp->cumul,
usr.sbin/altq/altqstat/qdisc_hfsc.c
121
lp->total - lp->cumul, sec)),
usr.sbin/altq/altqstat/qdisc_hfsc.c
130
(ull)sp->cumul, (ull)sp->total);
usr.sbin/arp/arp.c
877
sec2str(time_t total)
usr.sbin/arp/arp.c
886
days = total / 3600 / 24;
usr.sbin/arp/arp.c
887
hours = (total / 3600) % 24;
usr.sbin/arp/arp.c
888
mins = (total / 60) % 60;
usr.sbin/arp/arp.c
889
secs = total % 60;
usr.sbin/intrctl/intrctl.c
205
uint64_t total = 0;
usr.sbin/intrctl/intrctl.c
211
total += illc->illc_count;
usr.sbin/intrctl/intrctl.c
226
printf("%20" PRIu64 " ", total);
usr.sbin/makefs/v7fs.c
190
Progress.total++;
usr.sbin/makefs/v7fs.c
191
progress_bar(cdev, label, Progress.total, PROGRESS_BAR_GRANULE);
usr.sbin/mopd/common/file.c
1001
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1002
notdone = total - pos;
usr.sbin/mopd/common/file.c
1014
total = total + dlslot->a_data;
usr.sbin/mopd/common/file.c
1016
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1017
notdone = total - pos;
usr.sbin/mopd/common/file.c
1028
total = total + dlslot->a_data_fill;
usr.sbin/mopd/common/file.c
1030
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1031
notdone = total - pos;
usr.sbin/mopd/common/file.c
1043
total = total + dlslot->a_bss;
usr.sbin/mopd/common/file.c
1045
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1046
notdone = total - pos;
usr.sbin/mopd/common/file.c
1058
total = total + dlslot->a_bss_fill;
usr.sbin/mopd/common/file.c
1060
if ((bsz > 0) && (pos < total)) {
usr.sbin/mopd/common/file.c
1061
notdone = total - pos;
usr.sbin/mopd/common/file.c
917
int32_t pos, notdone, total;
usr.sbin/mopd/common/file.c
985
total = dlslot->a_text;
usr.sbin/mopd/common/file.c
987
if (pos < total) {
usr.sbin/mopd/common/file.c
988
notdone = total - pos;
usr.sbin/mopd/common/file.c
999
total = total + dlslot->a_text_fill;
usr.sbin/ndp/ndp.c
923
sec2str(time_t total)
usr.sbin/ndp/ndp.c
932
days = total / 3600 / 24;
usr.sbin/ndp/ndp.c
933
hours = (total / 3600) % 24;
usr.sbin/ndp/ndp.c
934
mins = (total / 60) % 60;
usr.sbin/ndp/ndp.c
935
secs = total % 60;
usr.sbin/npf/npftest/libnpftest/npf_gc_test.c
70
unsigned total, n = 0;
usr.sbin/npf/npftest/libnpftest/npf_gc_test.c
77
total = active + expired;
usr.sbin/npf/npftest/libnpftest/npf_gc_test.c
92
CHECK_TRUE(n == total);
usr.sbin/npf/npftest/libnpftest/npf_perf_test.c
57
uint64_t total = 0;
usr.sbin/npf/npftest/libnpftest/npf_perf_test.c
84
total += npackets[i];
usr.sbin/npf/npftest/libnpftest/npf_perf_test.c
89
printf("%u\t%" PRIu64 "\n", nthreads, total / NSECS);
usr.sbin/sdpd/service.c
117
count = total = 0;
usr.sbin/sdpd/service.c
123
while (db_next(srv, fd, &r) && total < max) {
usr.sbin/sdpd/service.c
124
if (total >= srv->fdidx[fd].offset
usr.sbin/sdpd/service.c
131
total++;
usr.sbin/sdpd/service.c
137
be16enc(srv->obuf, total);
usr.sbin/sdpd/service.c
144
if (r == NULL || total == max) {
usr.sbin/sdpd/service.c
64
int max, total, count;
usr.sbin/sysinst/label.c
1353
char total[6], free_space[6], scol[13], ecol[13], szcol[13],
usr.sbin/sysinst/label.c
1364
humanize_number(total, sizeof total,
usr.sbin/sysinst/label.c
1383
desc, total, free_space);
usr.sbin/sysinst/part_edit.c
1434
size_t total;
usr.sbin/sysinst/part_edit.c
1447
total = strlen(p1) + strlen(p2) + strlen(p3)
usr.sbin/sysinst/part_edit.c
1449
ms = tmp = malloc(total);
usr.sbin/sysinst/part_edit.c
1457
assert(strlen(ms) < total);
usr.sbin/sysinst/part_edit.c
901
*disk_info, total[SSTRSIZE], avail[SSTRSIZE];
usr.sbin/sysinst/part_edit.c
913
snprintf(total, sizeof(total), "%" PRIu64 " %s",
usr.sbin/sysinst/part_edit.c
915
snprintf(avail, sizeof(total), "%" PRIu64 " %s",
usr.sbin/sysinst/part_edit.c
918
args[1] = total;
usr.sbin/sysinst/partman.c
472
daddr_t total, const char *no_size_display)
usr.sbin/sysinst/partman.c
485
total * 512, "",
usr.sbin/timed/timed/measure.c
220
total = recvtime - sendtime;
usr.sbin/timed/timed/measure.c
221
if (total < 0) /* do not hassle midnight */
usr.sbin/timed/timed/measure.c
252
if (total < MIN_ROUND) {
usr.sbin/timed/timed/measure.c
82
long idelta, odelta, total;
usr.sbin/veriexecgen/veriexecgen.c
437
int ch, total = 0;
usr.sbin/veriexecgen/veriexecgen.c
462
(total + 1));
usr.sbin/veriexecgen/veriexecgen.c
463
search_path[total] = optarg;
usr.sbin/veriexecgen/veriexecgen.c
464
search_path[++total] = NULL;