Symbol: cnt
bin/dd/conv.c
102
size_t cnt, maxlen;
bin/dd/conv.c
113
for (inp = in.db, cnt = in.dbrcnt; cnt && *inp++ != '\n'; --cnt)
bin/dd/conv.c
115
if (!cnt) {
bin/dd/conv.c
122
in.dbcnt = cnt - 1;
bin/dd/conv.c
123
in.dbp = inp + cnt - 1;
bin/dd/conv.c
134
for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n';
bin/dd/conv.c
135
++cnt)
bin/dd/conv.c
138
for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n';
bin/dd/conv.c
139
++cnt)
bin/dd/conv.c
152
in.dbcnt -= cnt;
bin/dd/conv.c
157
if (cnt < cbsz) {
bin/dd/conv.c
158
memset(outp, ctab ? ctab[' '] : ' ', cbsz - cnt);
bin/dd/conv.c
217
size_t cnt;
bin/dd/conv.c
221
for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp)
bin/dd/conv.c
232
cnt = t - inp + 1;
bin/dd/conv.c
233
memmove(out.dbp, inp, cnt);
bin/dd/conv.c
234
out.dbp += cnt;
bin/dd/conv.c
235
out.dbcnt += cnt;
bin/dd/conv.c
250
size_t cnt;
bin/dd/conv.c
257
cnt = t - in.db + 1;
bin/dd/conv.c
258
memmove(out.dbp, in.db, cnt);
bin/dd/conv.c
259
out.dbp += cnt;
bin/dd/conv.c
260
out.dbcnt += cnt;
bin/dd/conv.c
58
size_t cnt;
bin/dd/conv.c
61
for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp)
bin/dd/dd.c
135
u_int cnt;
bin/dd/dd.c
208
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
209
casetab[cnt] = ctab[cnt];
bin/dd/dd.c
211
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
212
casetab[cnt] = cnt;
bin/dd/dd.c
219
for (cnt = 200; cnt <= 0377; ++cnt)
bin/dd/dd.c
220
casetab[cnt] = casetab[cnt & 0x7f];
bin/dd/dd.c
223
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
224
casetab[cnt] = tolower(casetab[cnt]);
bin/dd/dd.c
226
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
227
casetab[cnt] = toupper(casetab[cnt]);
bin/dd/dd.c
234
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
235
casetab[cnt] = casetab[cnt] & 0x7f;
bin/dd/dd.c
238
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
239
casetab[cnt] = casetab[cnt] | 0x80;
bin/dd/dd.c
242
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
243
if (parity(casetab[cnt]))
bin/dd/dd.c
244
casetab[cnt] = casetab[cnt] | 0x80;
bin/dd/dd.c
247
for (cnt = 0; cnt <= 0377; ++cnt)
bin/dd/dd.c
248
if (!parity(casetab[cnt]))
bin/dd/dd.c
249
casetab[cnt] = casetab[cnt] | 0x80;
bin/dd/dd.c
484
size_t cnt, n;
bin/dd/dd.c
513
cnt = n;
bin/dd/dd.c
518
sparse = BISZERO(outp, cnt);
bin/dd/dd.c
521
pending += cnt;
bin/dd/dd.c
522
nw = cnt;
bin/dd/dd.c
537
if (cnt) {
bin/dd/dd.c
538
nw = write(out.fd, outp, cnt);
bin/dd/dd.c
561
if ((size_t) nw != cnt) {
bin/dd/dd.c
572
cnt -= nw;
bin/dd/dd.c
573
} while (cnt != 0);
bin/dd/position.c
112
for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) {
bin/dd/position.c
117
--cnt;
bin/dd/position.c
120
--cnt;
bin/dd/position.c
158
off_t cnt;
bin/dd/position.c
189
for (cnt = 0; cnt < out.offset; ++cnt) {
bin/dd/position.c
206
while (cnt++ < out.offset) {
bin/dd/position.c
89
off_t cnt;
bin/df/df.c
504
int mib[3], maxvfsconf, cnt=0, i;
bin/df/df.c
523
listptr[cnt++] = strdup(ptr->vfc_name);
bin/df/df.c
524
if (listptr[cnt-1] == NULL) {
bin/df/df.c
531
if (cnt == 0 ||
bin/df/df.c
532
(str = malloc(sizeof(char) * (32 * cnt + cnt + 2))) == NULL) {
bin/df/df.c
533
if (cnt > 0)
bin/df/df.c
540
for (i = 0, strptr = str + 2; i < cnt; i++, strptr++) {
bin/ls/print.c
224
int cnt;
bin/ls/print.c
297
while ((cnt = (rounddown2(chcnt + tabwidth, tabwidth)))
bin/ls/print.c
302
chcnt = cnt;
bin/mined/mined.h
235
#define tab(cnt) (((cnt) + 8) & ~07)
bin/mined/mined.h
271
#define fstatus(mess, cnt) file_status((mess), (cnt), file_name, \
bin/mined/mined.h
277
#define get_shift(cnt) ((cnt) & DUMMY_MASK)
bin/mined/mined1.c
697
int cnt = get_shift(line->shift_count) * -SHIFT_SIZE;
bin/mined/mined1.c
701
while (cnt < 0) {
bin/mined/mined1.c
703
cnt = tab(cnt);
bin/mined/mined1.c
705
cnt++;
bin/mined/mined1.c
709
cnt = 0;
bin/mined/mined1.c
712
cnt = tab(cnt);
bin/mined/mined1.c
714
cnt++;
bin/mined/mined1.c
716
return cnt;
bin/mined/mined2.c
889
int cnt; /* Count check for read/write */
bin/mined/mined2.c
912
while ((cnt = read(yank_fd, text_buffer, sizeof(text_buffer))) > 0)
bin/mined/mined2.c
913
if (write(new_fd, text_buffer, cnt) != cnt) {
bin/pax/ar_io.c
503
ar_read(char *buf, int cnt)
bin/pax/ar_io.c
518
if ((res = read(arfd, buf, cnt)) > 0) {
bin/pax/ar_io.c
556
if ((res = read(arfd, buf, cnt)) > 0) {
bin/pax/ar_subs.c
1044
if ((ret = (*frmt->trail)(hdbuf,in_resync,&cnt)) == 0){
bin/pax/ar_subs.c
148
off_t cnt;
bin/pax/ar_subs.c
313
res = (*frmt->rd_data)(arcn, fd, &cnt);
bin/pax/ar_subs.c
320
rd_skip(cnt + arcn->pad);
bin/pax/ar_subs.c
355
off_t cnt;
bin/pax/ar_subs.c
496
res = (*frmt->wr_data)(arcn, fd, &cnt);
bin/pax/ar_subs.c
508
if (((cnt > 0) && (wr_skip(cnt) < 0)) ||
bin/pax/ar_subs.c
970
int cnt = 0; /* counter for trailer function */
bin/pax/buf_subs.c
207
off_t cnt;
bin/pax/buf_subs.c
236
if ((cnt = rounddown(skcnt, blksz)) < skcnt)
bin/pax/buf_subs.c
237
cnt += blksz;
bin/pax/buf_subs.c
238
if (ar_rev((off_t)cnt) < 0)
bin/pax/buf_subs.c
246
if ((cnt -= skcnt) > 0) {
bin/pax/buf_subs.c
262
bufpt = buf + cnt;
bin/pax/buf_subs.c
371
pback(char *pt, int cnt)
bin/pax/buf_subs.c
373
bufpt -= cnt;
bin/pax/buf_subs.c
374
memcpy(bufpt, pt, cnt);
bin/pax/buf_subs.c
390
off_t cnt;
bin/pax/buf_subs.c
416
cnt = rounddown(skcnt, rdblksz);
bin/pax/buf_subs.c
422
if (ar_fow(cnt, &skipped) < 0)
bin/pax/buf_subs.c
424
res += cnt - skipped;
bin/pax/buf_subs.c
432
cnt = bufend - bufpt;
bin/pax/buf_subs.c
436
if ((cnt <= 0) && ((cnt = buf_fill()) < 0))
bin/pax/buf_subs.c
438
if (cnt == 0)
bin/pax/buf_subs.c
440
cnt = MIN(cnt, res);
bin/pax/buf_subs.c
441
bufpt += cnt;
bin/pax/buf_subs.c
442
res -= cnt;
bin/pax/buf_subs.c
479
int cnt;
bin/pax/buf_subs.c
486
cnt = bufend - bufpt;
bin/pax/buf_subs.c
487
if ((cnt <= 0) && ((cnt = buf_flush(blksz)) < 0))
bin/pax/buf_subs.c
492
cnt = MIN(cnt, outcnt);
bin/pax/buf_subs.c
493
memcpy(bufpt, out, cnt);
bin/pax/buf_subs.c
494
bufpt += cnt;
bin/pax/buf_subs.c
495
out += cnt;
bin/pax/buf_subs.c
496
outcnt -= cnt;
bin/pax/buf_subs.c
516
int cnt;
bin/pax/buf_subs.c
523
cnt = bufend - bufpt;
bin/pax/buf_subs.c
524
if ((cnt <= 0) && ((cnt = buf_fill()) <= 0)) {
bin/pax/buf_subs.c
533
return(cnt);
bin/pax/buf_subs.c
540
cnt = MIN(cnt, incnt);
bin/pax/buf_subs.c
541
memcpy(in, bufpt, cnt);
bin/pax/buf_subs.c
542
bufpt += cnt;
bin/pax/buf_subs.c
543
incnt -= cnt;
bin/pax/buf_subs.c
544
in += cnt;
bin/pax/buf_subs.c
563
int cnt;
bin/pax/buf_subs.c
569
cnt = bufend - bufpt;
bin/pax/buf_subs.c
570
if ((cnt <= 0) && ((cnt = buf_flush(blksz)) < 0))
bin/pax/buf_subs.c
572
cnt = MIN(cnt, skcnt);
bin/pax/buf_subs.c
573
memset(bufpt, 0, cnt);
bin/pax/buf_subs.c
574
bufpt += cnt;
bin/pax/buf_subs.c
575
skcnt -= cnt;
bin/pax/buf_subs.c
601
int cnt;
bin/pax/buf_subs.c
610
cnt = bufend - bufpt;
bin/pax/buf_subs.c
611
if ((cnt <= 0) && ((cnt = buf_flush(blksz)) < 0)) {
bin/pax/buf_subs.c
615
cnt = MIN(cnt, size);
bin/pax/buf_subs.c
616
if ((res = read(ifd, bufpt, cnt)) <= 0)
bin/pax/buf_subs.c
662
int cnt = 0;
bin/pax/buf_subs.c
690
cnt = bufend - bufpt;
bin/pax/buf_subs.c
696
if ((cnt <= 0) && ((cnt = buf_fill()) <= 0))
bin/pax/buf_subs.c
698
cnt = MIN(cnt, size);
bin/pax/buf_subs.c
699
if ((res = file_write(ofd,bufpt,cnt,&rem,&isem,sz,fnm)) <= 0) {
bin/pax/buf_subs.c
708
cnt = res;
bin/pax/buf_subs.c
709
while (--cnt >= 0)
bin/pax/buf_subs.c
750
int cnt;
bin/pax/buf_subs.c
782
if ((cnt = read(fd1, buf, blksz)) <= 0)
bin/pax/buf_subs.c
785
res = write(fd2, buf, cnt);
bin/pax/buf_subs.c
787
res = file_write(fd2, buf, cnt, &rem, &isem, sz, fnm);
bin/pax/buf_subs.c
788
if (res != cnt)
bin/pax/buf_subs.c
790
cpcnt += cnt;
bin/pax/buf_subs.c
831
int cnt;
bin/pax/buf_subs.c
842
if ((cnt = ar_read(buf, blksz)) > 0) {
bin/pax/buf_subs.c
844
bufend = buf + cnt;
bin/pax/buf_subs.c
845
rdcnt += cnt;
bin/pax/buf_subs.c
846
return(cnt);
bin/pax/buf_subs.c
852
if (cnt < 0)
bin/pax/buf_subs.c
876
int cnt;
bin/pax/buf_subs.c
918
cnt = ar_write(buf, blksz);
bin/pax/buf_subs.c
919
if (cnt == blksz) {
bin/pax/buf_subs.c
923
wrcnt += cnt;
bin/pax/buf_subs.c
924
totcnt += cnt;
bin/pax/buf_subs.c
939
} else if (cnt > 0) {
bin/pax/buf_subs.c
946
totcnt += cnt;
bin/pax/buf_subs.c
947
wrcnt += cnt;
bin/pax/buf_subs.c
948
bufpt = buf + cnt;
bin/pax/buf_subs.c
949
cnt = bufcnt - cnt;
bin/pax/buf_subs.c
950
memcpy(buf, bufpt, cnt);
bin/pax/buf_subs.c
951
bufpt = buf + cnt;
bin/pax/buf_subs.c
952
if (!frmt->blkalgn || ((cnt % frmt->blkalgn) == 0))
bin/pax/file_subs.c
777
file_write(int fd, char *str, int cnt, int *rem, int *isempt, int sz,
bin/pax/file_subs.c
788
while (cnt) {
bin/pax/file_subs.c
803
wcnt = MIN(cnt, *rem);
bin/pax/file_subs.c
804
cnt -= wcnt;
bin/pax/ftree.c
328
int cnt;
bin/pax/ftree.c
459
if ((cnt = readlink(ftent->fts_path, arcn->ln_name,
bin/pax/ftree.c
469
arcn->ln_name[cnt] = '\0';
bin/pax/ftree.c
470
arcn->ln_nlen = cnt;
bin/pax/tables.c
1164
u_long cnt;
bin/pax/tables.c
1171
for (cnt = 0; cnt < dircnt; ++cnt) {
bin/pax/tables.c
1199
if (cnt != dircnt)
bin/pax/tar.c
103
tar_trail(char *buf, int in_resync, int *cnt)
bin/pax/tar.c
129
if (!in_resync && (++*cnt >= NULLCNT))
bin/pax/tar.c
710
int cnt = 0;
bin/pax/tar.c
731
cnt = l_strncpy(dest, hd->prefix, sizeof(arcn->name) - 2);
bin/pax/tar.c
732
dest += cnt;
bin/pax/tar.c
734
cnt++;
bin/pax/tar.c
736
arcn->nlen = cnt + l_strncpy(dest, hd->name, sizeof(arcn->name) - cnt);
bin/stty/print.c
188
for (p = cchars1, cnt = 0; p->name; ++p) {
bin/stty/print.c
192
snprintf(buf1 + cnt * 8, sizeof(buf1) - cnt * 8,
bin/stty/print.c
194
snprintf(buf2 + cnt * 8, sizeof(buf2) - cnt * 8,
bin/stty/print.c
196
if (++cnt == LINELENGTH / 8) {
bin/stty/print.c
197
cnt = 0;
bin/stty/print.c
202
if (cnt) {
bin/stty/print.c
52
int cnt, ispeed, ospeed;
bin/stty/print.c
55
cnt = 0;
bin/stty/print.c
61
cnt += printf("slip disc; ");
bin/stty/print.c
64
cnt += printf("ppp disc; ");
bin/stty/print.c
67
cnt += printf("#%d disc; ", ldisc);
bin/stty/print.c
76
cnt +=
bin/stty/print.c
79
cnt += printf("speed %d baud;", ispeed);
bin/stty/print.c
81
cnt += printf(" %d rows; %d columns;", wp->ws_row, wp->ws_col);
bin/stty/print.c
82
if (cnt)
crypto/libressl/apps/nc/socks.c
185
size_t cnt;
crypto/libressl/apps/nc/socks.c
218
cnt = atomicio(vwrite, proxyfd, buf, 3);
crypto/libressl/apps/nc/socks.c
219
if (cnt != 3)
crypto/libressl/apps/nc/socks.c
220
err(1, "write failed (%zu/3)", cnt);
crypto/libressl/apps/nc/socks.c
222
cnt = atomicio(read, proxyfd, buf, 2);
crypto/libressl/apps/nc/socks.c
223
if (cnt != 2)
crypto/libressl/apps/nc/socks.c
224
err(1, "read failed (%zu/3)", cnt);
crypto/libressl/apps/nc/socks.c
271
cnt = atomicio(vwrite, proxyfd, buf, wlen);
crypto/libressl/apps/nc/socks.c
272
if (cnt != wlen)
crypto/libressl/apps/nc/socks.c
273
err(1, "write failed (%zu/%zu)", cnt, wlen);
crypto/libressl/apps/nc/socks.c
275
cnt = atomicio(read, proxyfd, buf, 4);
crypto/libressl/apps/nc/socks.c
276
if (cnt != 4)
crypto/libressl/apps/nc/socks.c
277
err(1, "read failed (%zu/4)", cnt);
crypto/libressl/apps/nc/socks.c
284
cnt = atomicio(read, proxyfd, buf + 4, 6);
crypto/libressl/apps/nc/socks.c
285
if (cnt != 6)
crypto/libressl/apps/nc/socks.c
286
err(1, "read failed (%zu/6)", cnt);
crypto/libressl/apps/nc/socks.c
289
cnt = atomicio(read, proxyfd, buf + 4, 18);
crypto/libressl/apps/nc/socks.c
290
if (cnt != 18)
crypto/libressl/apps/nc/socks.c
291
err(1, "read failed (%zu/18)", cnt);
crypto/libressl/apps/nc/socks.c
309
cnt = atomicio(vwrite, proxyfd, buf, wlen);
crypto/libressl/apps/nc/socks.c
310
if (cnt != wlen)
crypto/libressl/apps/nc/socks.c
311
err(1, "write failed (%zu/%zu)", cnt, wlen);
crypto/libressl/apps/nc/socks.c
313
cnt = atomicio(read, proxyfd, buf, 8);
crypto/libressl/apps/nc/socks.c
314
if (cnt != 8)
crypto/libressl/apps/nc/socks.c
315
err(1, "read failed (%zu/8)", cnt);
crypto/libressl/apps/nc/socks.c
341
cnt = atomicio(vwrite, proxyfd, buf, r);
crypto/libressl/apps/nc/socks.c
342
if (cnt != r)
crypto/libressl/apps/nc/socks.c
343
err(1, "write failed (%zu/%d)", cnt, r);
crypto/libressl/apps/nc/socks.c
363
if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != r)
crypto/libressl/apps/nc/socks.c
364
err(1, "write failed (%zu/%d)", cnt, r);
crypto/libressl/apps/nc/socks.c
370
if ((cnt = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2)
crypto/libressl/apps/nc/socks.c
371
err(1, "write failed (%zu/2)", cnt);
crypto/libressl/apps/openssl/ca.c
2651
int i, cnt = 0;
crypto/libressl/apps/openssl/ca.c
2657
cnt = -1;
crypto/libressl/apps/openssl/ca.c
2664
cnt = -1;
crypto/libressl/apps/openssl/ca.c
2669
cnt = -1;
crypto/libressl/apps/openssl/ca.c
2693
cnt++;
crypto/libressl/apps/openssl/ca.c
2701
cnt++;
crypto/libressl/apps/openssl/ca.c
2713
return (cnt);
crypto/libressl/crypto/asn1/a_strex.c
427
int i, prev = -1, orflags, cnt;
crypto/libressl/crypto/asn1/a_strex.c
490
cnt = X509_NAME_entry_count(n);
crypto/libressl/crypto/asn1/a_strex.c
491
for (i = 0; i < cnt; i++) {
crypto/libressl/crypto/asn1/a_strex.c
493
ent = X509_NAME_get_entry(n, cnt - i - 1);
crypto/libressl/crypto/modes/gcm128.c
336
int cnt = 15;
crypto/libressl/crypto/modes/gcm128.c
358
if (--cnt<0) break;
crypto/libressl/crypto/modes/gcm128.c
360
nlo = ((const u8 *)Xi)[cnt];
crypto/libressl/crypto/modes/gcm128.c
406
int cnt;
crypto/libressl/crypto/modes/gcm128.c
411
cnt = 15;
crypto/libressl/crypto/modes/gcm128.c
432
if (--cnt<0) break;
crypto/libressl/crypto/modes/gcm128.c
434
nlo = ((const u8 *)Xi)[cnt];
crypto/libressl/crypto/modes/gcm128.c
435
nlo ^= inp[cnt];
crypto/libressl/crypto/modes/gcm128.c
498
for (cnt=0; cnt<16; ++cnt) {
crypto/libressl/crypto/modes/gcm128.c
499
Z.hi = Htable[cnt].hi;
crypto/libressl/crypto/modes/gcm128.c
500
Z.lo = Htable[cnt].lo;
crypto/libressl/crypto/modes/gcm128.c
501
Hshr4[cnt].lo = (Z.hi<<60)|(Z.lo>>4);
crypto/libressl/crypto/modes/gcm128.c
502
Hshr4[cnt].hi = (Z.hi>>4);
crypto/libressl/crypto/modes/gcm128.c
503
Hshl4[cnt] = (u8)(Z.lo<<4);
crypto/libressl/crypto/modes/gcm128.c
507
for (Z.lo=0, Z.hi=0, cnt=15; cnt; --cnt) {
crypto/libressl/crypto/modes/gcm128.c
508
nlo = ((const u8 *)Xi)[cnt];
crypto/libressl/crypto/modes/gcm128.c
509
nlo ^= inp[cnt];
crypto/libressl/crypto/rsa/rsa_oaep.c
324
unsigned char cnt[4];
crypto/libressl/crypto/rsa/rsa_oaep.c
335
cnt[0] = (unsigned char)((i >> 24) & 255);
crypto/libressl/crypto/rsa/rsa_oaep.c
336
cnt[1] = (unsigned char)((i >> 16) & 255);
crypto/libressl/crypto/rsa/rsa_oaep.c
337
cnt[2] = (unsigned char)((i >> 8)) & 255;
crypto/libressl/crypto/rsa/rsa_oaep.c
338
cnt[3] = (unsigned char)(i & 255);
crypto/libressl/crypto/rsa/rsa_oaep.c
341
!EVP_DigestUpdate(&c, cnt, 4))
crypto/libressl/crypto/x509/x509_lu.c
536
int i, idx, cnt;
crypto/libressl/crypto/x509/x509_lu.c
540
idx = x509_object_idx_cnt(store->objs, X509_LU_X509, name, &cnt);
crypto/libressl/crypto/x509/x509_lu.c
547
for (i = 0; i < cnt; i++, idx++) {
crypto/libressl/crypto/x509/x509_lu.c
600
int i, idx, cnt;
crypto/libressl/crypto/x509/x509_lu.c
614
idx = x509_object_idx_cnt(store->objs, X509_LU_CRL, name, &cnt);
crypto/libressl/crypto/x509/x509_lu.c
621
for (i = 0; i < cnt; i++, idx++) {
crypto/libressl/include/openssl/evp.h
449
int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt);
crypto/libressl/include/openssl/pem.h
408
int PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);
crypto/openssh/scp.c
1464
for (haderr = i = 0; i < stb.st_size; i += bp->cnt) {
crypto/openssh/scp.c
1465
amt = bp->cnt;
crypto/openssh/scp.c
1898
for (count = i = 0; i < size; i += bp->cnt) {
crypto/openssh/scp.c
1899
amt = bp->cnt;
crypto/openssh/scp.c
1916
if (count == bp->cnt) {
crypto/openssh/scp.c
2243
if (bp->cnt >= size)
crypto/openssh/scp.c
2245
bp->buf = xrecallocarray(bp->buf, bp->cnt, size, 1);
crypto/openssh/scp.c
2246
bp->cnt = size;
crypto/openssh/scp.c
431
size_t cnt;
crypto/openssh/scp.c
726
off_t *cnt = (off_t *)_cnt;
crypto/openssh/scp.c
728
*cnt += s;
games/arithmetic/arithmetic.c
101
int ch, cnt;
games/arithmetic/arithmetic.c
141
for (cnt = NQUESTS; cnt--;)
games/battlestar/getcom.c
102
cnt++;
games/battlestar/getcom.c
104
if (cnt == WORDLEN)
games/battlestar/getcom.c
70
int cnt;
games/battlestar/getcom.c
72
cnt = 1;
games/battlestar/getcom.c
80
while (cnt < WORDLEN && *buf1 &&
games/battlestar/getcom.c
86
cnt++;
games/battlestar/getcom.c
89
cnt++;
games/battlestar/getcom.c
95
cnt++;
games/battlestar/getcom.c
98
cnt++;
games/canfield/canfield/canfield.c
448
int cnt, row, col;
games/canfield/canfield/canfield.c
477
for (cnt = 0; cnt < 4; cnt++) {
games/canfield/canfield/canfield.c
478
switch(cnt) {
games/canfield/canfield/canfield.c
492
for(ptr = tableau[cnt], row = tabrow;
games/cribbage/io.c
482
int cnt;
games/cribbage/io.c
486
cnt = 0;
games/cribbage/io.c
488
if (cnt++ > 100) { /* if we are getting infinite EOFs */
games/fortune/fortune/fortune.c
1226
unsigned int cnt;
games/fortune/fortune/fortune.c
1229
cnt = 1; /* allow for '\0' */
games/fortune/fortune/fortune.c
1232
cnt += 4;
games/fortune/fortune/fortune.c
1234
cnt++;
games/fortune/fortune/fortune.c
1235
if ((new = malloc(cnt)) == NULL) {
games/hack/hack.apply.c
242
int cnt = 0;
games/hack/hack.apply.c
247
cnt++;
games/hack/hack.apply.c
248
if (!cnt)
games/hack/hack.dog.c
194
xchar cnt, chcnt, nix, niy;
games/hack/hack.dog.c
302
cnt = rooms[dogroom].doorct;
games/hack/hack.dog.c
305
while (cnt--) {
games/hack/hack.dog.c
355
cnt = mfndpos(mtmp, poss, info, ALLOW_M | ALLOW_TRAPS);
games/hack/hack.dog.c
358
for (i = 0; i < cnt; i++) {
games/hack/hack.dog.c
424
for (j = 0; j < MTSZ && j < cnt - 1; j++)
games/hack/hack.dog.c
426
if (rn2(4 * (cnt - j)))
games/hack/hack.engrave.c
121
u_wipe_engr(int cnt)
games/hack/hack.engrave.c
124
wipe_engr_at(u.ux, u.uy, cnt);
games/hack/hack.engrave.c
128
wipe_engr_at(xchar x, xchar y, xchar cnt)
games/hack/hack.engrave.c
137
cnt = rn2(1 + 50 / (cnt + 1)) ? 0 : 1;
games/hack/hack.engrave.c
140
if (lth && cnt > 0) {
games/hack/hack.engrave.c
141
while (cnt--) {
games/hack/hack.invent.c
392
long cnt;
games/hack/hack.invent.c
463
cnt = 0;
games/hack/hack.invent.c
466
if (cnt < 100000000)
games/hack/hack.invent.c
467
cnt = 10 * cnt + (ilet - '0');
games/hack/hack.invent.c
469
cnt = 999999999;
games/hack/hack.invent.c
487
if (!(allowcnt == 2 && cnt < u.ugold))
games/hack/hack.invent.c
488
cnt = u.ugold;
games/hack/hack.invent.c
489
return (mkgoldobj(cnt));
games/hack/hack.invent.c
517
if (cnt < 0 || otmp->quan < cnt) {
games/hack/hack.invent.c
529
if (cnt == 0)
games/hack/hack.invent.c
531
if (cnt != otmp->quan) {
games/hack/hack.invent.c
533
obj = splitobj(otmp, (int) cnt);
games/hack/hack.invent.c
640
int cnt = 0;
games/hack/hack.invent.c
664
cnt += (*fn) (otmp);
games/hack/hack.invent.c
675
pline(cnt ? "That was all." : "No applicable objects.");
games/hack/hack.invent.c
677
return (cnt);
games/hack/hack.makemon.c
167
int cnt = rnd(10);
games/hack/hack.makemon.c
170
while (cnt--) {
games/hack/hack.mon.c
315
int nx, ny, omx, omy, appr, nearer, cnt, i, j;
games/hack/hack.mon.c
458
cnt = mfndpos(mtmp, poss, info,
games/hack/hack.mon.c
465
for (i = 0; i < cnt; i++) {
games/hack/hack.mon.c
468
for (j = 0; j < MTSZ && j < cnt - 1; j++)
games/hack/hack.mon.c
470
if (rn2(4 * (cnt - j)))
games/hack/hack.mon.c
573
int x, y, nx, ny, cnt = 0, ntyp;
games/hack/hack.mon.c
596
info[cnt] = 0;
games/hack/hack.mon.c
600
info[cnt] = ALLOW_U;
games/hack/hack.mon.c
604
info[cnt] = ALLOW_M;
games/hack/hack.mon.c
608
info[cnt] |= ALLOW_TM;
games/hack/hack.mon.c
614
info[cnt] |= NOGARLIC;
games/hack/hack.mon.c
620
info[cnt] |= ALLOW_SSM;
games/hack/hack.mon.c
625
info[cnt] |= ALLOW_ROCK;
games/hack/hack.mon.c
630
info[cnt] |= NOTONL;
games/hack/hack.mon.c
647
info[cnt] |= tt;
games/hack/hack.mon.c
651
poss[cnt].x = nx;
games/hack/hack.mon.c
652
poss[cnt].y = ny;
games/hack/hack.mon.c
653
cnt++;
games/hack/hack.mon.c
655
if (!cnt && pool && nowtyp != POOL) {
games/hack/hack.mon.c
659
return (cnt);
games/hack/hack.objnam.c
448
int cnt, spe, spesgn, typ, heavy;
games/hack/hack.objnam.c
452
cnt = spe = spesgn = typ = heavy = 0;
games/hack/hack.objnam.c
462
cnt = 1;
games/hack/hack.objnam.c
465
cnt = 1;
games/hack/hack.objnam.c
468
if (!cnt && digit(*bp)) {
games/hack/hack.objnam.c
469
cnt = atoi(bp);
games/hack/hack.objnam.c
475
if (!cnt)
games/hack/hack.objnam.c
476
cnt = 1; /* %% what with "gems" etc. ? */
games/hack/hack.objnam.c
524
if (cnt != 1) {
games/hack/hack.objnam.c
644
if (cnt > 0 && strchr("%?!*)", let) &&
games/hack/hack.objnam.c
645
(cnt < 4 || (let == WEAPON_SYM && typ <= ROCK && cnt < 20)))
games/hack/hack.objnam.c
646
otmp->quan = cnt;
games/hack/hack.pri.c
189
static xchar cnt;
games/hack/hack.pri.c
195
cnt = 0;
games/hack/hack.pri.c
199
while (cnt--) {
games/hack/hack.pri.c
200
xx = tc[cnt].x;
games/hack/hack.pri.c
201
yy = tc[cnt].y;
games/hack/hack.pri.c
205
cnt = let = 0; /* superfluous */
games/hack/hack.pri.c
214
if (cnt)
games/hack/hack.pri.c
217
tc[cnt].x = x;
games/hack/hack.pri.c
218
tc[cnt].y = y;
games/hack/hack.pri.c
219
if (++cnt >= COLNO)
games/hack/hack.read.c
210
int cnt = 1;
games/hack/hack.read.c
213
cnt += rnd(4);
games/hack/hack.read.c
215
cnt += 12;
games/hack/hack.read.c
216
while (cnt--)
games/hack/hack.shk.c
1032
cnt = mfndpos(shkp, poss, info, ALLOW_SSM);
games/hack/hack.shk.c
1034
for (i = 0; i < cnt; i++)
games/hack/hack.shk.c
1043
for (i = 0; i < cnt; i++) {
games/hack/hack.shk.c
783
int cnt = 0;
games/hack/hack.shk.c
789
cnt++;
games/hack/hack.shk.c
790
return (cnt);
games/hack/hack.shk.c
808
int cnt, oquan, uquan;
games/hack/hack.shk.c
818
for (cnt = 0; buf[cnt]; cnt++);
games/hack/hack.shk.c
819
while (cnt < 50)
games/hack/hack.shk.c
820
buf[cnt++] = ' ';
games/hack/hack.shk.c
821
(void) snprintf(buf+cnt, sizeof(buf)-cnt,
games/hack/hack.shk.c
941
schar shkroom, chi, chcnt, cnt;
games/hack/hack.topl.c
113
int cnt = OTLMAX;
games/hack/hack.topl.c
126
while (cnt && tl) {
games/hack/hack.topl.c
127
cnt--;
games/hack/hack.track.c
95
int i, cnt, distsq;
games/hack/hack.track.c
98
cnt = utcnt;
games/hack/hack.track.c
99
for (i = utpnt - 1; cnt--; i--) {
games/hack/hack.tty.c
354
int cnt = NR_OF_EOFS;
games/hack/hack.tty.c
355
while (cnt--) {
games/hack/hack.unix.c
443
int cnt = rooms[uroom].doorct;
games/hack/hack.unix.c
445
while (cnt--) {
games/hack/hack.zap.c
235
int cnt = 1;
games/hack/hack.zap.c
237
cnt += rn2(7) + 1;
games/hack/hack.zap.c
238
while (cnt--)
games/hack/hack.zap.c
736
int cnt = 0;
games/hack/hack.zap.c
741
cnt++;
games/hack/hack.zap.c
745
if (cnt > 1) {
games/hack/hack.zap.c
747
losehp(cnt, "burning scrolls");
games/hack/hack.zap.c
748
} else if (cnt) {
games/hangman/getguess.c
110
int cnt;
games/hangman/getguess.c
113
cnt = 0;
games/hangman/getguess.c
116
if (++cnt > 100)
games/hunt/hunt/hunt.c
374
int s, cnt, i;
games/hunt/hunt/hunt.c
391
while ((cnt = read(s, buf, sizeof buf)) > 0) {
games/hunt/hunt/hunt.c
393
for (i = 0; i < cnt; i++)
games/hunt/hunt/hunt.c
397
fwrite(buf, cnt, 1, stdout);
games/hunt/hunt/hunt.c
399
if (cnt < 0)
games/mille/misc.c
237
int cnt;
games/mille/misc.c
240
for (cnt = 0; read(0, &c, 1) <= 0; cnt++)
games/mille/misc.c
241
if (cnt > 100)
games/pom/pom.c
69
int cnt;
games/pom/pom.c
75
for (cnt = EPOCH; cnt < GMT->tm_year; ++cnt)
games/pom/pom.c
76
days += isleap(1900 + cnt) ? 366 : 365;
lib/i18n_module/UTF1632/citrus_utf1632.c
253
size_t cnt;
lib/i18n_module/UTF1632/citrus_utf1632.c
255
cnt = (size_t)0;
lib/i18n_module/UTF1632/citrus_utf1632.c
259
cnt = 4;
lib/i18n_module/UTF1632/citrus_utf1632.c
261
cnt = 2;
lib/i18n_module/UTF1632/citrus_utf1632.c
264
if (n < cnt)
lib/i18n_module/UTF1632/citrus_utf1632.c
266
memcpy(s, bom, cnt);
lib/i18n_module/UTF1632/citrus_utf1632.c
267
s += cnt, n -= cnt;
lib/i18n_module/UTF1632/citrus_utf1632.c
281
cnt += 4;
lib/i18n_module/UTF1632/citrus_utf1632.c
288
cnt += 2;
lib/i18n_module/UTF1632/citrus_utf1632.c
314
cnt += 4;
lib/i18n_module/UTF1632/citrus_utf1632.c
330
*nresult = cnt;
lib/i18n_module/UTF8/citrus_utf8.c
248
size_t cnt;
lib/i18n_module/UTF8/citrus_utf8.c
255
cnt = _UTF8_findlen(wc);
lib/i18n_module/UTF8/citrus_utf8.c
256
if (cnt <= 0 || cnt > 6) {
lib/i18n_module/UTF8/citrus_utf8.c
261
if (n < cnt) {
lib/i18n_module/UTF8/citrus_utf8.c
269
for (i = cnt - 1; i > 0; i--) {
lib/i18n_module/UTF8/citrus_utf8.c
274
if (cnt == 1)
lib/i18n_module/UTF8/citrus_utf8.c
277
s[0] &= (0x7f >> cnt);
lib/i18n_module/UTF8/citrus_utf8.c
278
s[0] |= ((0xff00 >> cnt) & 0xff);
lib/i18n_module/UTF8/citrus_utf8.c
282
*nresult = (size_t)cnt;
lib/libc/db/btree/bt_delete.c
370
indx_t cnt, idx, *ip, offset;
lib/libc/db/btree/bt_delete.c
425
for (cnt = idx, ip = &pg->linp[0]; cnt--; ++ip)
lib/libc/db/btree/bt_delete.c
428
for (cnt = NEXTINDEX(pg) - idx; --cnt; ++ip)
lib/libc/db/btree/bt_delete.c
462
indx_t cnt, *ip, offset;
lib/libc/db/btree/bt_delete.c
490
for (cnt = idx, ip = &h->linp[0]; cnt--; ++ip)
lib/libc/db/btree/bt_delete.c
493
for (cnt = NEXTINDEX(h) - idx; --cnt; ++ip)
lib/libc/db/btree/bt_utils.c
233
size_t cnt, len;
lib/libc/db/btree/bt_utils.c
235
cnt = 1;
lib/libc/db/btree/bt_utils.c
237
for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2, ++cnt)
lib/libc/db/btree/bt_utils.c
239
return (cnt);
lib/libc/db/mpool/mpool.c
454
int cnt;
lib/libc/db/mpool/mpool.c
474
cnt = 0;
lib/libc/db/mpool/mpool.c
481
if (++cnt == 10) {
lib/libc/db/mpool/mpool.c
483
cnt = 0;
lib/libc/db/recno/rec_delete.c
147
indx_t *ip, cnt, offset;
lib/libc/db/recno/rec_delete.c
176
for (cnt = &h->linp[idx] - (ip = &h->linp[0]); cnt--; ++ip)
lib/libc/db/recno/rec_delete.c
179
for (cnt = &h->linp[NEXTINDEX(h)] - ip; --cnt; ++ip)
lib/libc/db/test/btree.tests/main.c
576
recno_t cnt;
lib/libc/db/test/btree.tests/main.c
588
for (cnt = 1; (lp = fgetline(fp, &len)) != NULL; ++cnt) {
lib/libc/db/test/btree.tests/main.c
590
key.data = &cnt;
lib/libc/db/test/btree.tests/main.c
611
"duplicate: %ld {%s}\n", cnt, data.data);
lib/libc/db/test/btree.tests/main.c
614
"duplicate: %ld {%s}\n", cnt, key.data);
lib/libc/gen/exec.c
149
int cnt;
lib/libc/gen/exec.c
215
for (cnt = 0; argv[cnt]; ++cnt)
lib/libc/gen/exec.c
217
memp = alloca((cnt + 2) * sizeof(char *));
lib/libc/gen/exec.c
224
bcopy(argv + 1, memp + 2, cnt * sizeof(char *));
lib/libc/gen/getvfsbyname.c
47
int name[4], maxtypenum, cnt;
lib/libc/gen/getvfsbyname.c
59
for (cnt = 0; cnt < maxtypenum; cnt++) {
lib/libc/gen/getvfsbyname.c
60
name[3] = cnt;
lib/libc/gen/syslog.c
134
int cnt, fd, saved_errno, maxtries;
lib/libc/gen/syslog.c
229
cnt = sizeof(tbuf) - tbuf_cookie.left;
lib/libc/gen/syslog.c
232
if (tbuf[cnt - 1] == '\n')
lib/libc/gen/syslog.c
233
cnt--;
lib/libc/gen/syslog.c
241
v->iov_len = cnt - (stdp - tbuf);
lib/libc/gen/syslog.c
273
if (send(LogFile, tbuf, cnt, 0) < 0) {
lib/libc/gen/syslog.c
279
if (send(LogFile, tbuf, cnt, 0) >= 0)
lib/libc/gen/syslog.c
303
v->iov_len = cnt - (p - tbuf);
lib/libc/isc/ev_streams.c
51
evConsIovec(void *buf, size_t cnt) {
lib/libc/isc/ev_streams.c
56
ret.iov_len = cnt;
lib/libc/resolv/res_init.c
720
res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) {
lib/libc/resolv/res_init.c
731
for (i = 0; i < cnt && nserv < MAXNS; i++) {
lib/libc/resolv/res_init.c
771
res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) {
lib/libc/resolv/res_init.c
776
for (i = 0; i < statp->nscount && i < cnt; i++) {
lib/libc/rpc/clnt_vc.c
695
int i, cnt;
lib/libc/rpc/clnt_vc.c
700
for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) {
lib/libc/rpc/clnt_vc.c
702
(size_t)cnt)) == -1) {
lib/libc/rpc/clnt_vc.c
709
for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) {
lib/libc/rpc/clnt_vc.c
710
if ((i = _write(ct->ct_fd, buf, (size_t)cnt)) == -1) {
lib/libc/rpc/clnt_vc.c
756
__msgread(int sock, void *buf, size_t cnt)
lib/libc/rpc/clnt_vc.c
767
iov[0].iov_len = cnt;
lib/libc/rpc/clnt_vc.c
781
__msgwrite(int sock, void *buf, size_t cnt)
lib/libc/rpc/clnt_vc.c
792
iov[0].iov_len = cnt;
lib/libc/rpc/svc_vc.c
504
int i, cnt;
lib/libc/rpc/svc_vc.c
516
for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) {
lib/libc/rpc/svc_vc.c
517
i = _write(xprt->xp_fd, buf, (size_t)cnt);
lib/libc/rpc/svc_vc.c
523
if (cd->nonblock && i != cnt) {
lib/libc/stdio/fparseln.c
101
while (cnt) {
lib/libc/stdio/fparseln.c
102
cnt = 0;
lib/libc/stdio/fparseln.c
114
cnt = s == 0 && buf == NULL;
lib/libc/stdio/fparseln.c
131
cnt = 1;
lib/libc/stdio/fparseln.c
140
if (cnt || buf != NULL)
lib/libc/stdio/fparseln.c
78
int cnt;
lib/libc/stdio/fparseln.c
87
cnt = 1;
lib/libc/stdlib/getsubopt.c
48
int cnt;
lib/libc/stdlib/getsubopt.c
89
for (cnt = 0; *tokens; ++tokens, ++cnt)
lib/libc/stdlib/getsubopt.c
91
return(cnt);
lib/libc/stdlib/heapsort.c
140
size_t cnt, i, j, l;
lib/libc/stdlib/heapsort.c
162
CREATE(l, nmemb, i, j, t, p, size, cnt, tmp);
lib/libc/stdlib/heapsort.c
170
COPY(k, base + nmemb * size, cnt, size, tmp1, tmp2);
lib/libc/stdlib/heapsort.c
171
COPY(base + nmemb * size, base + size, cnt, size, tmp1, tmp2);
lib/libc/stdlib/heapsort.c
173
SELECT(i, j, nmemb, t, p, size, k, cnt, tmp1, tmp2);
lib/libc/xdr/xdr.c
511
xdr_opaque(XDR *xdrs, caddr_t cp, u_int cnt)
lib/libc/xdr/xdr.c
519
if (cnt == 0)
lib/libc/xdr/xdr.c
525
rndup = cnt % BYTES_PER_XDR_UNIT;
lib/libc/xdr/xdr.c
530
if (!XDR_GETBYTES(xdrs, cp, cnt)) {
lib/libc/xdr/xdr.c
539
if (!XDR_PUTBYTES(xdrs, cp, cnt)) {
lib/libc/xdr/xdr_rec.c
701
skip_input_bytes(RECSTREAM *rstrm, long cnt)
lib/libc/xdr/xdr_rec.c
705
while (cnt > 0) {
lib/libc/xdr/xdr_rec.c
713
current = (uint32_t)((cnt < current) ? cnt : current);
lib/libc/xdr/xdr_rec.c
715
cnt -= current;
lib/libcrypt/crypt-sha256.c
310
size_t cnt;
lib/libcrypt/crypt-sha256.c
391
for (cnt = key_len; cnt > 32; cnt -= 32)
lib/libcrypt/crypt-sha256.c
393
__crypt__sha256_process_bytes (alt_result, cnt, &ctx);
lib/libcrypt/crypt-sha256.c
397
for (cnt = key_len; cnt > 0; cnt >>= 1)
lib/libcrypt/crypt-sha256.c
398
if ((cnt & 1) != 0)
lib/libcrypt/crypt-sha256.c
410
for (cnt = 0; cnt < key_len; ++cnt)
lib/libcrypt/crypt-sha256.c
418
for (cnt = key_len; cnt >= 32; cnt -= 32)
lib/libcrypt/crypt-sha256.c
420
memcpy (cp, temp_result, cnt);
lib/libcrypt/crypt-sha256.c
426
for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt)
lib/libcrypt/crypt-sha256.c
434
for (cnt = salt_len; cnt >= 32; cnt -= 32)
lib/libcrypt/crypt-sha256.c
436
memcpy (cp, temp_result, cnt);
lib/libcrypt/crypt-sha256.c
440
for (cnt = 0; cnt < rounds; ++cnt)
lib/libcrypt/crypt-sha256.c
446
if ((cnt & 1) != 0)
lib/libcrypt/crypt-sha256.c
452
if (cnt % 3 != 0)
lib/libcrypt/crypt-sha256.c
456
if (cnt % 7 != 0)
lib/libcrypt/crypt-sha256.c
460
if ((cnt & 1) != 0)
lib/libcrypt/crypt-sha256.c
652
int cnt;
lib/libcrypt/crypt-sha256.c
654
for (cnt = 0; cnt < (int) ntests; ++cnt)
lib/libcrypt/crypt-sha256.c
657
__crypt__sha256_process_bytes (tests[cnt].input, strlen (tests[cnt].input), &ctx);
lib/libcrypt/crypt-sha256.c
659
if (memcmp (tests[cnt].result, sum, 32) != 0)
lib/libcrypt/crypt-sha256.c
661
printf ("test %d run %d failed\n", cnt, 1);
lib/libcrypt/crypt-sha256.c
666
for (int i = 0; tests[cnt].input[i] != '\0'; ++i)
lib/libcrypt/crypt-sha256.c
667
__crypt__sha256_process_bytes (&tests[cnt].input[i], 1, &ctx);
lib/libcrypt/crypt-sha256.c
669
if (memcmp (tests[cnt].result, sum, 32) != 0)
lib/libcrypt/crypt-sha256.c
671
printf ("test %d run %d failed\n", cnt, 2);
lib/libcrypt/crypt-sha256.c
688
printf ("test %d failed\n", cnt);
lib/libcrypt/crypt-sha256.c
692
for (cnt = 0; cnt < ntests2; ++cnt)
lib/libcrypt/crypt-sha256.c
694
char *cp = crypt_sha256 (tests2[cnt].input, tests2[cnt].salt);
lib/libcrypt/crypt-sha256.c
696
if (strcmp (cp, tests2[cnt].expected) != 0)
lib/libcrypt/crypt-sha256.c
699
cnt, tests2[cnt].expected, cp);
lib/libcrypt/crypt-sha512.c
341
size_t cnt;
lib/libcrypt/crypt-sha512.c
422
for (cnt = key_len; cnt > 64; cnt -= 64)
lib/libcrypt/crypt-sha512.c
424
__crypt__sha512_process_bytes (alt_result, cnt, &ctx);
lib/libcrypt/crypt-sha512.c
428
for (cnt = key_len; cnt > 0; cnt >>= 1)
lib/libcrypt/crypt-sha512.c
429
if ((cnt & 1) != 0)
lib/libcrypt/crypt-sha512.c
441
for (cnt = 0; cnt < key_len; ++cnt)
lib/libcrypt/crypt-sha512.c
449
for (cnt = key_len; cnt >= 64; cnt -= 64)
lib/libcrypt/crypt-sha512.c
451
memcpy (cp, temp_result, cnt);
lib/libcrypt/crypt-sha512.c
457
for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt)
lib/libcrypt/crypt-sha512.c
465
for (cnt = salt_len; cnt >= 64; cnt -= 64)
lib/libcrypt/crypt-sha512.c
467
memcpy (cp, temp_result, cnt);
lib/libcrypt/crypt-sha512.c
471
for (cnt = 0; cnt < rounds; ++cnt)
lib/libcrypt/crypt-sha512.c
477
if ((cnt & 1) != 0)
lib/libcrypt/crypt-sha512.c
483
if (cnt % 3 != 0)
lib/libcrypt/crypt-sha512.c
487
if (cnt % 7 != 0)
lib/libcrypt/crypt-sha512.c
491
if ((cnt & 1) != 0)
lib/libcrypt/crypt-sha512.c
716
int cnt;
lib/libcrypt/crypt-sha512.c
718
for (cnt = 0; cnt < (int) ntests; ++cnt)
lib/libcrypt/crypt-sha512.c
721
__crypt__sha512_process_bytes (tests[cnt].input, strlen (tests[cnt].input), &ctx);
lib/libcrypt/crypt-sha512.c
723
if (memcmp (tests[cnt].result, sum, 64) != 0)
lib/libcrypt/crypt-sha512.c
725
printf ("test %d run %d failed\n", cnt, 1);
lib/libcrypt/crypt-sha512.c
730
for (int i = 0; tests[cnt].input[i] != '\0'; ++i)
lib/libcrypt/crypt-sha512.c
731
__crypt__sha512_process_bytes (&tests[cnt].input[i], 1, &ctx);
lib/libcrypt/crypt-sha512.c
733
if (memcmp (tests[cnt].result, sum, 64) != 0)
lib/libcrypt/crypt-sha512.c
735
printf ("test %d run %d failed\n", cnt, 2);
lib/libcrypt/crypt-sha512.c
754
printf ("test %d failed\n", cnt);
lib/libcrypt/crypt-sha512.c
758
for (cnt = 0; cnt < ntests2; ++cnt)
lib/libcrypt/crypt-sha512.c
760
char *cp = crypt_sha512 (tests2[cnt].input, tests2[cnt].salt);
lib/libcrypt/crypt-sha512.c
762
if (strcmp (cp, tests2[cnt].expected) != 0)
lib/libcrypt/crypt-sha512.c
765
cnt, tests2[cnt].expected, cp);
lib/libexecinfo/private_libelf.h
1983
Elf64_Word aux, anext, cnt, vnext;
lib/libexecinfo/private_libelf.h
2016
cnt = t.vd_cnt;
lib/libexecinfo/private_libelf.h
2024
cnt != 0 && anext != 0 && dstaux + auxmsz <= dstend &&
lib/libexecinfo/private_libelf.h
2026
dstaux += anext, srcaux += anext, cnt--) {
lib/libexecinfo/private_libelf.h
2047
if (anext || cnt)
lib/libexecinfo/private_libelf.h
2070
Elf64_Word aux, anext, cnt, vnext;
lib/libexecinfo/private_libelf.h
2099
cnt = t.vn_cnt;
lib/libexecinfo/private_libelf.h
2107
cnt != 0 && anext != 0 && dstaux + auxmsz <= dstend &&
lib/libexecinfo/private_libelf.h
2109
dstaux += anext, srcaux += anext, cnt--) {
lib/libexecinfo/private_libelf.h
2136
if (anext || cnt)
lib/libexecinfo/private_libelf.h
2308
size_t cnt, int byteswap);
lib/libexecinfo/private_libelf.h
2310
size_t cnt, int byteswap);
lib/libexecinfo/private_libelf.h
2312
size_t cnt, int byteswap);
lib/libexecinfo/private_libelf.h
2314
size_t cnt, int byteswap);
lib/libkvm/kvm_file.c
177
kvm_getfiles(kvm_t *kd, int op __unused, int arg __unused, int *cnt)
lib/libkvm/kvm_file.c
265
*cnt = nfiles;
lib/libkvm/kvm_proc.c
422
int cnt, partcnt, n;
lib/libkvm/kvm_proc.c
426
cnt = partcnt = 0;
lib/libkvm/kvm_proc.c
450
bp = kd->procbase + cnt;
lib/libkvm/kvm_proc.c
458
cnt += partcnt;
lib/libkvm/kvm_proc.c
462
return (cnt);
lib/libkvm/kvm_proc.c
466
kvm_getprocs(kvm_t *kd, int op, int arg, int *cnt)
lib/libkvm/kvm_proc.c
537
*cnt = nprocs;
lib/libkvm/kvm_proc.c
793
int cnt;
lib/libkvm/kvm_proc.c
813
(*info)(&arginfo, &addr, &cnt);
lib/libkvm/kvm_proc.c
814
if (cnt == 0)
lib/libkvm/kvm_proc.c
816
ap = kvm_argv(kd, kp->kp_pid, addr, cnt, nchr);
lib/libnvmm/libnvmm_x86.c
3340
uint64_t cnt = 0; /* GCC */
lib/libnvmm/libnvmm_x86.c
3372
cnt = rep_get_cnt(state, instr.address_size);
lib/libnvmm/libnvmm_x86.c
3373
if (__predict_false(cnt == 0)) {
lib/libnvmm/libnvmm_x86.c
3390
cnt -= 1;
lib/libnvmm/libnvmm_x86.c
3391
rep_set_cnt(state, instr.address_size, cnt);
lib/libnvmm/libnvmm_x86.c
3392
if (cnt == 0) {
lib/libnvmm/libnvmm_x86.c
562
uint64_t mask, cnt;
lib/libnvmm/libnvmm_x86.c
565
cnt = state->gprs[NVMM_X64_GPR_RCX] & mask;
lib/libnvmm/libnvmm_x86.c
567
return cnt;
lib/libnvmm/libnvmm_x86.c
571
rep_set_cnt(struct nvmm_x64_state *state, size_t adsize, uint64_t cnt)
lib/libnvmm/libnvmm_x86.c
578
state->gprs[NVMM_X64_GPR_RCX] |= cnt;
lib/libnvmm/libnvmm_x86.c
703
struct nvmm_io *io, gvaddr_t gva, uint64_t cnt)
lib/libnvmm/libnvmm_x86.c
709
cnt = MIN(cnt, NVMM_IO_BATCH_SIZE);
lib/libnvmm/libnvmm_x86.c
710
iosize = MIN(io->size * cnt, NVMM_IO_BATCH_SIZE);
lib/libnvmm/libnvmm_x86.c
741
uint64_t cnt = 0; /* GCC */
lib/libnvmm/libnvmm_x86.c
768
cnt = rep_get_cnt(state, exit->u.io.address_size);
lib/libnvmm/libnvmm_x86.c
769
if (__predict_false(cnt == 0)) {
lib/libnvmm/libnvmm_x86.c
816
iocnt = assist_io_batch(mach, vcpu, &io, gva, cnt);
lib/libnvmm/libnvmm_x86.c
861
cnt -= iocnt;
lib/libnvmm/libnvmm_x86.c
862
rep_set_cnt(state, exit->u.io.address_size, cnt);
lib/libnvmm/libnvmm_x86.c
863
if (cnt == 0) {
lib/libtelnet/auth.c
370
auth_send(unsigned char *data, int cnt)
lib/libtelnet/auth.c
385
printd(data, cnt); printf("\r\n");
lib/libtelnet/auth.c
394
auth_send_cnt = (size_t)cnt > sizeof(_auth_send_data)
lib/libtelnet/auth.c
396
: cnt;
lib/libtelnet/auth.c
404
auth_send_cnt = cnt;
lib/libtelnet/auth.c
456
auth_is(unsigned char *data, int cnt)
lib/libtelnet/auth.c
460
if (cnt < 2)
lib/libtelnet/auth.c
470
(*ap->is)(ap, data+2, cnt-2);
lib/libtelnet/auth.c
477
auth_reply(unsigned char *data, int cnt)
lib/libtelnet/auth.c
481
if (cnt < 2)
lib/libtelnet/auth.c
486
(*ap->reply)(ap, data+2, cnt-2);
lib/libtelnet/auth.c
493
auth_name(unsigned char *data, int cnt)
lib/libtelnet/auth.c
497
if (cnt < 1) {
lib/libtelnet/auth.c
502
if ((size_t)cnt > sizeof(savename) - 1) {
lib/libtelnet/auth.c
505
Name, cnt, (u_int)sizeof(savename)-1);
lib/libtelnet/auth.c
508
memmove((void *)savename, (void *)data, cnt);
lib/libtelnet/auth.c
509
savename[cnt] = '\0'; /* Null terminate */
lib/libtelnet/auth.c
584
auth_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
lib/libtelnet/auth.c
589
(*ap->printsub)(data, cnt, buf, buflen);
lib/libtelnet/auth.c
591
auth_gen_printsub(data, cnt, buf, buflen);
lib/libtelnet/auth.c
595
auth_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
lib/libtelnet/auth.c
600
cnt -= 3;
lib/libtelnet/auth.c
605
for (; cnt > 0; cnt--, data++) {
lib/libtelnet/enc_des.c
233
cfb64_is(unsigned char *data, int cnt)
lib/libtelnet/enc_des.c
235
return(fb64_is(data, cnt, &fb[CFB]));
lib/libtelnet/enc_des.c
239
ofb64_is(unsigned char *data, int cnt)
lib/libtelnet/enc_des.c
241
return(fb64_is(data, cnt, &fb[OFB]));
lib/libtelnet/enc_des.c
245
fb64_is(unsigned char *data, int cnt, struct fb *fbp)
lib/libtelnet/enc_des.c
250
if (cnt-- < 1)
lib/libtelnet/enc_des.c
255
if (cnt != sizeof(Block)) {
lib/libtelnet/enc_des.c
285
printd(data, cnt);
lib/libtelnet/enc_des.c
316
cfb64_reply(unsigned char *data, int cnt)
lib/libtelnet/enc_des.c
318
return(fb64_reply(data, cnt, &fb[CFB]));
lib/libtelnet/enc_des.c
322
ofb64_reply(unsigned char *data, int cnt)
lib/libtelnet/enc_des.c
324
return(fb64_reply(data, cnt, &fb[OFB]));
lib/libtelnet/enc_des.c
328
fb64_reply(unsigned char *data, int cnt, struct fb *fbp)
lib/libtelnet/enc_des.c
332
if (cnt-- < 1)
lib/libtelnet/enc_des.c
353
printd(data, cnt);
lib/libtelnet/enc_des.c
437
fb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen, const char *type)
lib/libtelnet/enc_des.c
468
for (i = 3; i < cnt; i++) {
lib/libtelnet/enc_des.c
478
cfb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
lib/libtelnet/enc_des.c
480
fb64_printsub(data, cnt, buf, buflen, "CFB64");
lib/libtelnet/enc_des.c
484
ofb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
lib/libtelnet/enc_des.c
486
fb64_printsub(data, cnt, buf, buflen, "OFB64");
lib/libtelnet/encrypt.c
471
encrypt_support(unsigned char *typelist, int cnt)
lib/libtelnet/encrypt.c
481
while (cnt-- > 0) {
lib/libtelnet/encrypt.c
511
encrypt_is(unsigned char *data, int cnt)
lib/libtelnet/encrypt.c
516
if (--cnt < 0)
lib/libtelnet/encrypt.c
539
ret = (*ep->is)(data, cnt);
lib/libtelnet/encrypt.c
541
printf("(*ep->is)(%p, %d) returned %s(%d)\n", data, cnt,
lib/libtelnet/encrypt.c
555
encrypt_reply(unsigned char *data, int cnt)
lib/libtelnet/encrypt.c
560
if (--cnt < 0)
lib/libtelnet/encrypt.c
581
ret = (*ep->reply)(data, cnt);
lib/libtelnet/encrypt.c
584
data, cnt,
lib/libtelnet/encrypt.c
603
encrypt_start(unsigned char *data __unused, int cnt __unused)
lib/libtelnet/encrypt.c
681
encrypt_request_start(unsigned char *data __unused, int cnt __unused)
lib/libtelnet/encrypt.c
911
encrypt_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
lib/libtelnet/encrypt.c
915
cnt -= 2;
lib/libtelnet/encrypt.c
920
for (; cnt > 0; cnt--, data++) {
lib/libtelnet/encrypt.c
931
encrypt_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
lib/libtelnet/encrypt.c
940
(*ep->printsub)(data, cnt, buf, buflen);
lib/libtelnet/encrypt.c
942
encrypt_gen_printsub(data, cnt, buf, buflen);
lib/libtelnet/kerberos5.c
293
kerberos5_is(Authenticator *ap, unsigned char *data, int cnt)
lib/libtelnet/kerberos5.c
302
if (cnt-- < 1)
lib/libtelnet/kerberos5.c
307
auth.length = cnt;
lib/libtelnet/kerberos5.c
494
inbuf.length = cnt;
lib/libtelnet/kerberos5.c
562
kerberos5_reply(Authenticator *ap, unsigned char *data, int cnt)
lib/libtelnet/kerberos5.c
566
if (cnt-- < 1)
lib/libtelnet/kerberos5.c
570
if (cnt > 0) {
lib/libtelnet/kerberos5.c
572
cnt, data);
lib/libtelnet/kerberos5.c
588
if (cnt)
lib/libtelnet/kerberos5.c
589
printf("[ Kerberos V5 accepts you as ``%.*s'' ]\r\n", cnt, data);
lib/libtelnet/kerberos5.c
624
inbuf.length = cnt;
lib/libtelnet/kerberos5.c
643
cnt, data);
lib/libtelnet/kerberos5.c
673
kerberos5_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
lib/libtelnet/kerberos5.c
689
if (cnt <= 4)
lib/libtelnet/kerberos5.c
692
for (i = 4; i < cnt; i++)
lib/libtelnet/kerberos5.c
724
for (i = 4; i < cnt; i++) {
lib/libtelnet/krb4encpwd.c
187
krb4encpwd_is(ap, data, cnt)
lib/libtelnet/krb4encpwd.c
190
int cnt;
lib/libtelnet/krb4encpwd.c
197
if (cnt-- < 1)
lib/libtelnet/krb4encpwd.c
201
memmove((void *)auth.dat, (void *)data, auth.length = cnt);
lib/libtelnet/krb4encpwd.c
260
krb4encpwd_reply(ap, data, cnt)
lib/libtelnet/krb4encpwd.c
263
int cnt;
lib/libtelnet/krb4encpwd.c
270
if (cnt-- < 1)
lib/libtelnet/krb4encpwd.c
274
if (cnt > 0) {
lib/libtelnet/krb4encpwd.c
276
cnt, data);
lib/libtelnet/krb4encpwd.c
292
memmove((void *)challenge, (void *)data, cnt);
lib/libtelnet/krb4encpwd.c
337
krb4encpwd_printsub(data, cnt, buf, buflen)
lib/libtelnet/krb4encpwd.c
339
int cnt, buflen;
lib/libtelnet/krb4encpwd.c
356
if (cnt <= 4)
lib/libtelnet/krb4encpwd.c
359
for (i = 4; i < cnt; i++)
lib/libtelnet/krb4encpwd.c
382
for (i = 4; i < cnt; i++) {
lib/libtelnet/misc.c
83
auth_encrypt_connect(int cnt __unused)
lib/libtelnet/misc.c
89
printd(const unsigned char *data, int cnt)
lib/libtelnet/misc.c
91
if (cnt > 16)
lib/libtelnet/misc.c
92
cnt = 16;
lib/libtelnet/misc.c
93
while (cnt-- > 0) {
lib/libtelnet/rsaencpwd.c
183
rsaencpwd_is(ap, data, cnt)
lib/libtelnet/rsaencpwd.c
186
int cnt;
lib/libtelnet/rsaencpwd.c
195
cnt--;
lib/libtelnet/rsaencpwd.c
198
memmove((void *)auth.dat, (void *)data, auth.length = cnt);
lib/libtelnet/rsaencpwd.c
301
rsaencpwd_reply(ap, data, cnt)
lib/libtelnet/rsaencpwd.c
304
int cnt;
lib/libtelnet/rsaencpwd.c
310
if (cnt-- < 1)
lib/libtelnet/rsaencpwd.c
314
if (cnt > 0) {
lib/libtelnet/rsaencpwd.c
316
cnt, data);
lib/libtelnet/rsaencpwd.c
330
memmove((void *)chalkey, (void *)data, cnt);
lib/libtelnet/rsaencpwd.c
390
rsaencpwd_printsub(data, cnt, buf, buflen)
lib/libtelnet/rsaencpwd.c
392
int cnt, buflen;
lib/libtelnet/rsaencpwd.c
409
if (cnt <= 4)
lib/libtelnet/rsaencpwd.c
412
for (i = 4; i < cnt; i++)
lib/libtelnet/rsaencpwd.c
431
for (i = 4; i < cnt; i++) {
lib/libtelnet/sra.c
154
sra_is(Authenticator *ap, unsigned char *data, int cnt)
lib/libtelnet/sra.c
159
if (cnt-- < 1)
lib/libtelnet/sra.c
164
if (cnt < HEXKEYBYTES) {
lib/libtelnet/sra.c
185
if (cnt > XSMALL_LEN - 1) /* Attempted buffer overflow */
lib/libtelnet/sra.c
187
memcpy(xuser, data, cnt);
lib/libtelnet/sra.c
188
xuser[cnt] = '\0';
lib/libtelnet/sra.c
195
if (cnt > XSMALL_LEN - 1) /* Attempted buffer overflow */
lib/libtelnet/sra.c
198
memcpy(xpass, data, cnt);
lib/libtelnet/sra.c
199
xpass[cnt] = '\0';
lib/libtelnet/sra.c
241
sra_reply(Authenticator *ap, unsigned char *data, int cnt)
lib/libtelnet/sra.c
247
if (cnt-- < 1)
lib/libtelnet/sra.c
253
if (cnt < HEXKEYBYTES) {
lib/libtelnet/sra.c
357
sra_printsub(unsigned char *data, int cnt, unsigned char *ubuf, int buflen)
lib/libtelnet/sra.c
379
if (cnt <= 4)
lib/libtelnet/sra.c
382
for (i = 4; i < cnt; i++)
lib/libtelnet/sra.c
406
for (i = 4; i < cnt; i++) {
libexec/ftpd/ftpd.c
195
#define LOGBYTES(cmd, file, cnt) logcmd((cmd), (file), NULL, (cnt))
libexec/ftpd/ftpd.c
2068
off_t cnt, offset;
libexec/ftpd/ftpd.c
2071
cnt = offset = 0;
libexec/ftpd/ftpd.c
2075
NULL, &cnt, 0);
libexec/ftpd/ftpd.c
2080
byte_count += cnt;
libexec/ftpd/ftpd.c
2081
offset += cnt;
libexec/ftpd/ftpd.c
2082
filesize -= cnt;
libexec/ftpd/ftpd.c
2086
cnt == 0 && offset == 0)
libexec/ftpd/ftpd.c
2096
if (cnt == 0) {
libexec/ftpd/ftpd.c
2115
int cnt, len;
libexec/ftpd/ftpd.c
2118
cnt = read(filefd, buf, blksize);
libexec/ftpd/ftpd.c
2120
else if (cnt < 0) {
libexec/ftpd/ftpd.c
2124
if (cnt < 0) /* resume after OOB */
libexec/ftpd/ftpd.c
2126
if (cnt == 0) /* EOF */
libexec/ftpd/ftpd.c
2128
for (len = cnt, bp = buf; len > 0;) {
libexec/ftpd/ftpd.c
2129
cnt = write(netfd, bp, len);
libexec/ftpd/ftpd.c
2131
else if (cnt < 0) {
libexec/ftpd/ftpd.c
2135
if (cnt <= 0)
libexec/ftpd/ftpd.c
2137
len -= cnt;
libexec/ftpd/ftpd.c
2138
bp += cnt;
libexec/ftpd/ftpd.c
2139
byte_count += cnt;
libexec/ftpd/ftpd.c
2182
int cnt, len;
libexec/ftpd/ftpd.c
2186
cnt = read(fileno(instr), buf, sizeof(buf));
libexec/ftpd/ftpd.c
2188
else if (cnt < 0)
libexec/ftpd/ftpd.c
2190
if (cnt < 0) /* resume after OOB */
libexec/ftpd/ftpd.c
2192
if (cnt == 0) /* EOF */
libexec/ftpd/ftpd.c
2194
for (len = cnt, bp = buf; len > 0;) {
libexec/ftpd/ftpd.c
2195
cnt = write(fileno(outstr), bp, len);
libexec/ftpd/ftpd.c
2197
else if (cnt < 0)
libexec/ftpd/ftpd.c
2199
if (cnt <= 0)
libexec/ftpd/ftpd.c
2201
len -= cnt;
libexec/ftpd/ftpd.c
2202
bp += cnt;
libexec/ftpd/ftpd.c
2203
byte_count += cnt;
libexec/ftpd/ftpd.c
3262
logcmd(char *cmd, char *file1, char *file2, off_t cnt)
libexec/ftpd/ftpd.c
3278
if (cnt >= 0)
libexec/ftpd/ftpd.c
3279
appendf(&msg, " = %jd bytes", (intmax_t)cnt);
libexec/rtld-elf/libmap.c
207
size_t cnt;
libexec/rtld-elf/libmap.c
210
cnt = 0;
libexec/rtld-elf/libmap.c
212
while (cnt < lm_len) {
libexec/rtld-elf/libmap.c
214
while (cnt < lm_len && lm_p[cnt] != '\n' &&
libexec/rtld-elf/libmap.c
216
line[i] = lm_p[cnt];
libexec/rtld-elf/libmap.c
217
cnt++;
libexec/rtld-elf/libmap.c
221
while (cnt < lm_len && lm_p[cnt] != '\n')
libexec/rtld-elf/libmap.c
222
cnt++;
libexec/rtld-elf/libmap.c
224
cnt++;
libexec/telnetd/utility.c
1044
printdata(const char *tag, char *ptr, int cnt)
libexec/telnetd/utility.c
1049
while (cnt) {
libexec/telnetd/utility.c
1057
for (i = 0; i < 20 && cnt; i++) {
libexec/telnetd/utility.c
1067
cnt--;
sbin/badsect/badsect.c
150
chkuse(daddr_t blkno, int cnt)
sbin/badsect/badsect.c
156
if (fs->fs_size < 0 || fsbn + cnt < 0) {
sbin/badsect/badsect.c
160
if (fsbn + cnt > fs->fs_size) {
sbin/badsect/badsect.c
166
if (cg == 0 || (fsbn+cnt) > cgsblock(fs, cg)) {
sbin/badsect/badsect.c
172
if ((fsbn+cnt) > cgbase(fs, cg+1)) {
sbin/dump/traverse.c
353
int ind_level, cnt;
sbin/dump/traverse.c
409
cnt = UFS_NDADDR * sblock->fs_frag;
sbin/dump/traverse.c
411
cnt = howmany(dp->di_size, sblock->fs_fsize);
sbin/dump/traverse.c
412
blksout(&dp->di_db[0], cnt, ino);
sbin/dump/traverse.c
428
int i, cnt;
sbin/dump/traverse.c
437
cnt = howmany(*size, sblock->fs_fsize);
sbin/dump/traverse.c
439
cnt = NINDIR(sblock) * sblock->fs_frag;
sbin/dump/traverse.c
441
blksout(&idblk[0], cnt, ino);
sbin/dump/traverse.c
509
int32_t sum, cnt, *lp;
sbin/dump/traverse.c
516
cnt = sizeof(union u_spcl) / (4 * sizeof(int32_t));
sbin/dump/traverse.c
517
while (--cnt >= 0) {
sbin/dump/traverse.c
555
int cnt, i;
sbin/dump/traverse.c
558
cnt = cread(diskfd, buf, size, ((off_t)blkno << dev_bshift));
sbin/dump/traverse.c
559
if (cnt == size)
sbin/dump/traverse.c
575
if (cnt == -1)
sbin/dump/traverse.c
580
disk, blkno, size, cnt);
sbin/dump/traverse.c
598
if ((cnt = pread(diskfd, buf, (int)dev_bsize,
sbin/dump/traverse.c
601
if (cnt == -1) {
sbin/dump/traverse.c
607
disk, blkno, dev_bsize, cnt);
sbin/fsck/inode.c
229
chkrange(ufs_daddr_t blk, int cnt)
sbin/fsck/inode.c
233
if (cnt <= 0 || blk <= 0 || blk > maxfsblock ||
sbin/fsck/inode.c
234
cnt - 1 > maxfsblock - blk)
sbin/fsck/inode.c
236
if (cnt > sblock.fs_frag ||
sbin/fsck/inode.c
237
fragnum(&sblock, blk) + cnt > sblock.fs_frag) {
sbin/fsck/inode.c
240
(long)blk, fragnum(&sblock, blk), cnt);
sbin/fsck/inode.c
245
if ((blk + cnt) > cgsblock(&sblock, c)) {
sbin/fsck/inode.c
250
(long)(blk + cnt),
sbin/fsck/inode.c
256
if ((blk + cnt) > cgbase(&sblock, c+1)) {
sbin/fsck/inode.c
261
(long)(blk + cnt), (long)sblock.fs_fpg);
sbin/fsck/utilities.c
255
int ofsmodified, cnt = 0;
sbin/fsck/utilities.c
271
cnt++;
sbin/fsck/utilities.c
277
if (bufhead.b_size != cnt)
sbin/fsck/utilities.c
278
errx(EEXIT, "panic: lost %d buffers", bufhead.b_size - cnt);
sbin/ifconfig/ifgroup.c
105
cnt = 0;
sbin/ifconfig/ifgroup.c
110
if (cnt == 0)
sbin/ifconfig/ifgroup.c
112
cnt++;
sbin/ifconfig/ifgroup.c
116
if (cnt)
sbin/ifconfig/ifgroup.c
86
size_t len, cnt;
sbin/ip6fw/ip6fw.c
612
add_port(u_short *cnt, u_short *ptr, u_short off, u_short port)
sbin/ip6fw/ip6fw.c
614
if (off + *cnt >= IPV6_FW_MAX_PORTS)
sbin/ip6fw/ip6fw.c
616
ptr[off+*cnt] = port;
sbin/ip6fw/ip6fw.c
617
(*cnt)++;
sbin/ip6fw/ip6fw.c
652
fill_port(u_short *cnt, u_short *ptr, u_short off, char *arg)
sbin/ip6fw/ip6fw.c
662
add_port(cnt, ptr, off, *arg ? lookup_port(arg, 0, 0) : 0x0000);
sbin/ip6fw/ip6fw.c
667
add_port(cnt, ptr, off, *arg ? lookup_port(arg, 0, 0) : 0xffff);
sbin/ip6fw/ip6fw.c
675
add_port(cnt, ptr, off, lookup_port(arg, 0, 0));
sbin/mountd/mountd.c
2298
int cnt;
sbin/mountd/mountd.c
2338
for (cnt = 2; cnt < ngroups; cnt++)
sbin/mountd/mountd.c
2339
cr->cr_groups[cnt - 1] = groups[cnt];
sbin/quotacheck/quotacheck.c
391
oneof(char *target, char **list, int cnt)
sbin/quotacheck/quotacheck.c
395
for (i = 0; i < cnt; i++)
sbin/quotacheck/quotacheck.c
583
bread(daddr_t bno, char *buf, long cnt)
sbin/quotacheck/quotacheck.c
587
read(fi, buf, cnt) != cnt)
sbin/restore/tape.c
836
int cnt, seek_failed;
sbin/restore/tape.c
848
cnt = ntrec * TP_BSIZE;
sbin/restore/tape.c
853
i = rmtread(&tapebuf[rd], cnt);
sbin/restore/tape.c
856
i = read(mt, &tapebuf[rd], cnt);
sbin/restore/tape.c
873
cnt -= i;
sbin/restore/tape.c
874
if (cnt > 0)
sbin/tunefs/tunefs.c
372
bread(daddr_t bno, char *buf, int cnt)
sbin/tunefs/tunefs.c
378
if ((i = read(fi, buf, cnt)) != cnt) {
stand/lib/dosfs.c
251
u_int nb, off, clus, c, cnt, n;
stand/lib/dosfs.c
264
cnt = nb;
stand/lib/dosfs.c
265
while (cnt) {
stand/lib/dosfs.c
280
if (!clus || (n = f->fs->bsize - off) > cnt)
stand/lib/dosfs.c
281
n = cnt;
stand/lib/dosfs.c
290
cnt -= n;
stand/lib/dosfs.c
294
*resid = nbyte - nb + cnt;
sys/bus/cam/cam_periph.c
1011
uint32_t cnt;
sys/bus/cam/cam_periph.c
1022
cnt = crs->qfrozen_cnt;
sys/bus/cam/cam_periph.c
1026
return cnt;
sys/bus/isa/x86_64/isa_dma.c
430
u_long cnt = 0;
sys/bus/isa/x86_64/isa_dma.c
469
cnt = (low1 + (high1 << 8) + 1) & 0xffff;
sys/bus/isa/x86_64/isa_dma.c
471
cnt = (low2 + (high2 << 8) + 1) & 0xffff;
sys/bus/isa/x86_64/isa_dma.c
475
cnt *= 2;
sys/bus/isa/x86_64/isa_dma.c
476
return(cnt);
sys/bus/ppbus/ppbio.h
38
#define ppb_outsb_epp(dev,buf,cnt) \
sys/bus/ppbus/ppbio.h
39
(PPBUS_IO(device_get_parent(dev), PPB_OUTSB_EPP, buf, cnt, 0))
sys/bus/ppbus/ppbio.h
40
#define ppb_outsw_epp(dev,buf,cnt) \
sys/bus/ppbus/ppbio.h
41
(PPBUS_IO(device_get_parent(dev), PPB_OUTSW_EPP, buf, cnt, 0))
sys/bus/ppbus/ppbio.h
42
#define ppb_outsl_epp(dev,buf,cnt) \
sys/bus/ppbus/ppbio.h
43
(PPBUS_IO(device_get_parent(dev), PPB_OUTSL_EPP, buf, cnt, 0))
sys/bus/ppbus/ppbio.h
45
#define ppb_insb_epp(dev,buf,cnt) \
sys/bus/ppbus/ppbio.h
46
(PPBUS_IO(device_get_parent(dev), PPB_INSB_EPP, buf, cnt, 0))
sys/bus/ppbus/ppbio.h
47
#define ppb_insw_epp(dev,buf,cnt) \
sys/bus/ppbus/ppbio.h
48
(PPBUS_IO(device_get_parent(dev), PPB_INSW_EPP, buf, cnt, 0))
sys/bus/ppbus/ppbio.h
49
#define ppb_insl_epp(dev,buf,cnt) \
sys/bus/ppbus/ppbio.h
50
(PPBUS_IO(device_get_parent(dev), PPB_INSL_EPP, buf, cnt, 0))
sys/bus/smbus/smbacpi/smbacpi.c
133
int cnt, val = 0;
sys/bus/smbus/smbacpi/smbacpi.c
216
cnt = 0;
sys/bus/smbus/smbacpi/smbacpi.c
219
buf, info->AccessLength, &cnt);
sys/bus/smbus/smbacpi/smbacpi.c
221
memcpy(gsb->data, buf, cnt);
sys/bus/u4b/serial/ugensa.c
188
int x, cnt;
sys/bus/u4b/serial/ugensa.c
194
for (cnt = 0; cnt < UGENSA_IFACE_MAX; cnt++) {
sys/bus/u4b/serial/ugensa.c
195
if ((usbd_get_endpoint(uaa->device, cnt, ugensa_xfer_config + 0) == NULL) ||
sys/bus/u4b/serial/ugensa.c
196
(usbd_get_endpoint(uaa->device, cnt, ugensa_xfer_config + 1) == NULL)) {
sys/bus/u4b/serial/ugensa.c
202
if (cnt == 0) {
sys/bus/u4b/serial/ugensa.c
206
for (x = 0; x < cnt; x++) {
sys/bus/u4b/serial/usb_serial.c
1849
uint32_t cnt;
sys/bus/u4b/serial/usb_serial.c
1906
cnt = clist_qtob(&tp->t_outq, res.buffer, len);
sys/bus/u4b/serial/usb_serial.c
1907
if (cnt == 0) {
sys/bus/u4b/serial/usb_serial.c
1924
offset += cnt;
sys/bus/u4b/serial/usb_serial.c
1925
len -= cnt;
sys/bus/u4b/serial/usb_serial.c
1927
if (cnt < res.length) {
sys/bus/u4b/serial/usb_serial.c
1955
uint32_t cnt;
sys/bus/u4b/serial/usb_serial.c
2015
cnt = res.length;
sys/bus/u4b/serial/usb_serial.c
2024
if (tp->t_rawq.c_cc + cnt > tp->t_ihiwat
sys/bus/u4b/serial/usb_serial.c
2029
lostcc = clist_btoq((char *)buf, cnt, &tp->t_rawq);
sys/bus/u4b/serial/usb_serial.c
2030
tp->t_rawcc += cnt;
sys/bus/u4b/serial/usb_serial.c
2032
while (cnt) {
sys/bus/u4b/serial/usb_serial.c
2035
--cnt;
sys/bus/u4b/serial/usb_serial.c
2038
if (cnt)
sys/bus/u4b/serial/usb_serial.c
2060
for (cnt = 0; cnt != res.length; cnt++) {
sys/bus/u4b/serial/usb_serial.c
2062
(*linesw[tp->t_line].l_rint)((unsigned char)buf[cnt], tp) == -1) {
sys/bus/u4b/serial/usb_serial.c
2073
for (; cnt != res.length; cnt++) {
sys/bus/u4b/serial/usb_serial.c
2076
sc->sc_jitterbuf[pos] = buf[cnt];
sys/bus/u4b/serial/usb_serial.c
2089
"chars\n", tp, res.length - cnt);
sys/bus/u4b/wlan/if_mtw.c
2380
uint32_t cnt = MTW_CMDQ_GET(&sc->cmdq_store);
sys/bus/u4b/wlan/if_mtw.c
2381
MTW_DPRINTF(sc, MTW_DEBUG_STATE, "cmdq_store=%d\n", cnt);
sys/bus/u4b/wlan/if_mtw.c
2382
sc->cmdq[cnt].func = mtw_newassoc_cb;
sys/bus/u4b/wlan/if_mtw.c
2383
sc->cmdq[cnt].arg0 = NULL;
sys/bus/u4b/wlan/if_mtw.c
2384
sc->cmdq[cnt].arg1 = ni;
sys/bus/u4b/wlan/if_mtw.c
2385
sc->cmdq[cnt].wcid = wcid;
sys/bus/u4b/wlan/if_run.c
2669
uint32_t cnt = RUN_CMDQ_GET(&sc->cmdq_store);
sys/bus/u4b/wlan/if_run.c
2670
DPRINTF("cmdq_store=%d\n", cnt);
sys/bus/u4b/wlan/if_run.c
2671
sc->cmdq[cnt].func = run_newassoc_cb;
sys/bus/u4b/wlan/if_run.c
2672
sc->cmdq[cnt].arg0 = NULL;
sys/bus/u4b/wlan/if_run.c
2673
sc->cmdq[cnt].arg1 = ni;
sys/bus/u4b/wlan/if_run.c
2674
sc->cmdq[cnt].wcid = wcid;
sys/cpu/x86_64/include/cpufunc.h
382
insb(u_int port, void *addr, size_t cnt)
sys/cpu/x86_64/include/cpufunc.h
385
: "+D" (addr), "+c" (cnt)
sys/cpu/x86_64/include/cpufunc.h
391
insw(u_int port, void *addr, size_t cnt)
sys/cpu/x86_64/include/cpufunc.h
394
: "+D" (addr), "+c" (cnt)
sys/cpu/x86_64/include/cpufunc.h
400
insl(u_int port, void *addr, size_t cnt)
sys/cpu/x86_64/include/cpufunc.h
403
: "+D" (addr), "+c" (cnt)
sys/cpu/x86_64/include/cpufunc.h
483
outsb(u_int port, const void *addr, size_t cnt)
sys/cpu/x86_64/include/cpufunc.h
486
: "+S" (addr), "+c" (cnt)
sys/cpu/x86_64/include/cpufunc.h
491
outsw(u_int port, const void *addr, size_t cnt)
sys/cpu/x86_64/include/cpufunc.h
494
: "+S" (addr), "+c" (cnt)
sys/cpu/x86_64/include/cpufunc.h
499
outsl(u_int port, const void *addr, size_t cnt)
sys/cpu/x86_64/include/cpufunc.h
502
: "+S" (addr), "+c" (cnt)
sys/cpu/x86_64/include/cpufunc.h
947
void insb(u_int port, void *addr, size_t cnt);
sys/cpu/x86_64/include/cpufunc.h
948
void insl(u_int port, void *addr, size_t cnt);
sys/cpu/x86_64/include/cpufunc.h
949
void insw(u_int port, void *addr, size_t cnt);
sys/cpu/x86_64/include/cpufunc.h
965
void outsb(u_int port, void *addr, size_t cnt);
sys/cpu/x86_64/include/cpufunc.h
966
void outsl(u_int port, void *addr, size_t cnt);
sys/cpu/x86_64/include/cpufunc.h
967
void outsw(u_int port, void *addr, size_t cnt);
sys/dev/acpica/acpi.c
146
int cnt);
sys/dev/acpica/acpi.c
1690
int cnt;
sys/dev/acpica/acpi.c
1707
device_get_children(bus, &children, &cnt);
sys/dev/acpica/acpi.c
1721
acpi_reprobe_children(bus, children, cnt);
sys/dev/acpica/acpi.c
1787
acpi_reprobe_children(device_t bus, device_t *children, int cnt)
sys/dev/acpica/acpi.c
1791
for (i = 0; i < cnt; i++) {
sys/dev/acpica/acpi_cpu_pstate.c
1256
int cnt, i, sstart, scount;
sys/dev/acpica/acpi_cpu_pstate.c
1261
cnt = scount - sstart;
sys/dev/acpica/acpi_cpu_pstate.c
1262
for (i = 0; i < cnt; ++i)
sys/dev/acpica/acpi_cpu_pstate.c
1265
return sysctl_handle_opaque(oidp, freqs, cnt * sizeof(freqs[0]), req);
sys/dev/acpica/acpi_cpu_pstate.c
1272
int cnt, i, sstart, scount;
sys/dev/acpica/acpi_cpu_pstate.c
1277
cnt = scount - sstart;
sys/dev/acpica/acpi_cpu_pstate.c
1278
for (i = 0; i < cnt; ++i)
sys/dev/acpica/acpi_cpu_pstate.c
1281
return sysctl_handle_opaque(oidp, power, cnt * sizeof(power[0]), req);
sys/dev/crypto/rdrand/rdrand.c
165
int cnt;
sys/dev/crypto/rdrand/rdrand.c
169
cnt = rdrand_rng(arandomness, RDRAND_SIZE);
sys/dev/crypto/rdrand/rdrand.c
170
if (cnt > 0 && cnt < sizeof(randomness)) {
sys/dev/crypto/rdrand/rdrand.c
171
add_buffer_randomness_src(arandomness, cnt,
sys/dev/crypto/rdrand/rdrand.c
178
cnt, mycpu->gd_cpuid,
sys/dev/crypto/tpm/tpm.c
1076
size_t cnt;
sys/dev/crypto/tpm/tpm.c
1079
cnt = rv = 0;
sys/dev/crypto/tpm/tpm.c
1089
cnt++;
sys/dev/crypto/tpm/tpm.c
1092
*count = cnt;
sys/dev/crypto/tpm/tpm.c
1187
size_t cnt;
sys/dev/crypto/tpm/tpm.c
1202
if ((rv = (sc->sc_read)(sc, buf, TPM_HDRSIZE, &cnt, 0))) {
sys/dev/crypto/tpm/tpm.c
1224
if ((rv = uiomove((caddr_t)buf, cnt, uio))) {
sys/dev/crypto/tpm/tpm.c
1231
for (len -= cnt, p = buf, n = sizeof(buf); len > 0; p = buf, len -= n,
sys/dev/crypto/tpm/tpm.c
771
size_t cnt;
sys/dev/crypto/tpm/tpm.c
777
cnt = 0;
sys/dev/crypto/tpm/tpm.c
790
cnt++;
sys/dev/crypto/tpm/tpm.c
793
if ((flags & TPM_PARAM_SIZE) == 0 && cnt >= 6)
sys/dev/crypto/tpm/tpm.c
797
kprintf("%s: read %zd bytes, len %d\n", __func__, cnt, len);
sys/dev/crypto/tpm/tpm.c
801
*count = cnt;
sys/dev/crypto/tpm/tpm.c
810
size_t cnt;
sys/dev/crypto/tpm/tpm.c
820
cnt = 0;
sys/dev/crypto/tpm/tpm.c
821
while (cnt < len - 1) {
sys/dev/crypto/tpm/tpm.c
822
for (r = tpm_getburst(sc); r > 0 && cnt < len - 1; r--) {
sys/dev/crypto/tpm/tpm.c
824
cnt++;
sys/dev/crypto/tpm/tpm.c
843
cnt++;
sys/dev/crypto/tpm/tpm.c
860
kprintf("%s: wrote %zd byte\n", __func__, cnt);
sys/dev/crypto/tpm/tpm.c
917
static int cnt = 0;
sys/dev/crypto/tpm/tpm.c
924
TPM_INTERRUPT_ENABLE_BITS, r, cnt);
sys/dev/crypto/tpm/tpm.c
926
cnt++;
sys/dev/disk/fd/fd.c
1620
#define SET_BCDR(fdc,wr,cnt,port) \
sys/dev/disk/fd/fd.c
1622
((cnt)-1) & 0xff); \
sys/dev/disk/fd/fd.c
1624
((wr ? 0x80 : 0) | ((((cnt)-1) >> 8) & 0x7f)));
sys/dev/disk/iscsi/initiator/iscsi.c
514
int error, mustfree, cnt;
sys/dev/disk/iscsi/initiator/iscsi.c
525
cnt = 6; // XXX: maybe the user can request a time out?
sys/dev/disk/iscsi/initiator/iscsi.c
529
if(cnt-- == 0) break; // XXX: for now, needs work
sys/dev/disk/iscsi/initiator/iscsi.c
538
sdebug(4, "cnt=%d", cnt);
sys/dev/disk/isp/isp_freebsd.c
3736
uint32_t cnt, curcnt;
sys/dev/disk/isp/isp_freebsd.c
3742
cnt = (((uint32_t)cdb[10]) << 24) |
sys/dev/disk/isp/isp_freebsd.c
3758
cnt = (((uint32_t)cdb[6]) << 16) |
sys/dev/disk/isp/isp_freebsd.c
3769
cnt = (((uint32_t)cdb[7]) << 8) |
sys/dev/disk/isp/isp_freebsd.c
3779
cnt = cdb[4];
sys/dev/disk/isp/isp_freebsd.c
3780
if (cnt == 0) {
sys/dev/disk/isp/isp_freebsd.c
3781
cnt = 256;
sys/dev/disk/isp/isp_freebsd.c
3791
cnt <<= DISK_SHIFT;
sys/dev/disk/isp/isp_freebsd.c
3794
if (offset == cnt) {
sys/dev/disk/isp/isp_freebsd.c
3799
if (lba + cnt > dl) {
sys/dev/disk/isp/isp_freebsd.c
3805
if (offset + curcnt >= cnt) {
sys/dev/disk/isp/isp_freebsd.c
3806
curcnt = cnt - offset;
sys/dev/disk/mpt/mpt.c
1144
int cnt;
sys/dev/disk/mpt/mpt.c
1145
for (cnt = 0; cnt < 5; cnt++) {
sys/dev/disk/mpt/mpt.c
1165
retry_cnt, cnt);
sys/dev/disk/sym/sym_hipd.c
2450
int cnt;
sys/dev/disk/sym/sym_hipd.c
2453
for (cnt = 0, i = 0 ; i < SYM_CONF_MAX_TARGET ; i++) {
sys/dev/disk/sym/sym_hipd.c
2457
if (!cnt++)
sys/dev/disk/sym/sym_hipd.c
2463
if (cnt)
sys/dev/disk/trm/trm.c
1135
u_int16_t cnt, i;
sys/dev/disk/trm/trm.c
1142
cnt = pdcb->GoingSRBCnt;
sys/dev/disk/trm/trm.c
1144
for (i = 0; i < cnt; i++) {
sys/dev/disk/trm/trm.c
1367
u_int16_t i, cnt;
sys/dev/disk/trm/trm.c
1374
cnt = pSRB->MsgCnt;
sys/dev/disk/trm/trm.c
1375
if (cnt) {
sys/dev/disk/trm/trm.c
1377
for (i = 0; i < cnt; i++) {
sys/dev/disk/trm/trm.c
1457
u_int16_t i, cnt;
sys/dev/disk/trm/trm.c
1466
cnt = (u_int16_t) pSRB->ScsiCmdLen;
sys/dev/disk/trm/trm.c
1468
for (i = 0; i < cnt; i++) {
sys/dev/disk/trm/trm.c
2280
u_int16_t cnt, i;
sys/dev/disk/trm/trm.c
2302
cnt = pACB->DeviceCnt;
sys/dev/disk/trm/trm.c
2304
for (i = 0; i < cnt; i++) {
sys/dev/disk/trm/trm.c
2337
u_int16_t i,j, cnt;
sys/dev/disk/trm/trm.c
2368
cnt = pDCB->GoingSRBCnt;
sys/dev/disk/trm/trm.c
2371
for (i = 0; i < cnt; i++) {
sys/dev/disk/trm/trm.c
2745
u_int16_t cnt, i;
sys/dev/disk/trm/trm.c
2753
cnt = pdcb->GoingSRBCnt;
sys/dev/disk/trm/trm.c
2755
for (i = 0; i < cnt; i++) {
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
137
signed long r, cnt = 0;
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
174
while (r < 1 && cnt++ < MAX_KIQ_REG_TRY) {
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
179
if (cnt > MAX_KIQ_REG_TRY)
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
191
signed long r, cnt = 0;
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
227
while (r < 1 && cnt++ < MAX_KIQ_REG_TRY) {
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
233
if (cnt > MAX_KIQ_REG_TRY)
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4348
int cnt;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4350
cnt = (sizeof(ce_payload) >> 2) + 4 - 2;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4353
amdgpu_ring_write(ring, PACKET3(PACKET3_WRITE_DATA, cnt));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4367
int cnt;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4374
cnt = (sizeof(de_payload) >> 2) + 4 - 2;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4375
amdgpu_ring_write(ring, PACKET3(PACKET3_WRITE_DATA, cnt));
sys/dev/drm/amd/amdgpu/gmc_v9_0.c
319
signed long r, cnt = 0;
sys/dev/drm/amd/amdgpu/gmc_v9_0.c
344
while (r < 1 && cnt++ < MAX_KIQ_REG_TRY) {
sys/dev/drm/amd/amdgpu/gmc_v9_0.c
349
if (cnt > MAX_KIQ_REG_TRY)
sys/dev/drm/i915/i915_gpu_error.c
1565
int cnt = 0, i, j;
sys/dev/drm/i915/i915_gpu_error.c
1583
gem_capture_vm(error, ee->vm, cnt++);
sys/dev/misc/ichwd/ichwd.c
325
uint16_t cnt;
sys/dev/misc/ichwd/ichwd.c
327
cnt = ichwd_read_tco_2(sc, TCO1_CNT) & TCO_CNT_PRESERVE;
sys/dev/misc/ichwd/ichwd.c
328
ichwd_write_tco_2(sc, TCO1_CNT, cnt & ~TCO_TMR_HALT);
sys/dev/misc/ichwd/ichwd.c
339
uint16_t cnt;
sys/dev/misc/ichwd/ichwd.c
341
cnt = ichwd_read_tco_2(sc, TCO1_CNT) & TCO_CNT_PRESERVE;
sys/dev/misc/ichwd/ichwd.c
342
ichwd_write_tco_2(sc, TCO1_CNT, cnt | TCO_TMR_HALT);
sys/dev/misc/nmdm/nmdm.c
365
int cnt = 0;
sys/dev/misc/nmdm/nmdm.c
434
if (cnt == 0) {
sys/dev/misc/nmdm/nmdm.c
460
cnt++;
sys/dev/misc/ppc/ppc.c
1975
ppc_io(device_t ppcdev, int iop, u_char *addr, int cnt, u_char byte)
sys/dev/misc/ppc/ppc.c
1980
bus_space_write_multi_1(ppc->bst, ppc->bsh, PPC_EPP_DATA, addr, cnt);
sys/dev/misc/ppc/ppc.c
1983
bus_space_write_multi_2(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int16_t *)addr, cnt);
sys/dev/misc/ppc/ppc.c
1986
bus_space_write_multi_4(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int32_t *)addr, cnt);
sys/dev/misc/ppc/ppc.c
1989
bus_space_read_multi_1(ppc->bst, ppc->bsh, PPC_EPP_DATA, addr, cnt);
sys/dev/misc/ppc/ppc.c
1992
bus_space_read_multi_2(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int16_t *)addr, cnt);
sys/dev/misc/ppc/ppc.c
1995
bus_space_read_multi_4(ppc->bst, ppc->bsh, PPC_EPP_DATA, (u_int32_t *)addr, cnt);
sys/dev/misc/syscons/schistory.c
245
history_to_screen_lines(scr_stat *scp, int cnt)
sys/dev/misc/syscons/schistory.c
249
int lines = imin(cnt, scp->ysize);
sys/dev/misc/syscons/schistory.c
68
static void history_to_screen_lines(scr_stat *scp, int cnt);
sys/dev/misc/syscons/sctermvar.h
316
int cnt;
sys/dev/misc/syscons/sctermvar.h
327
cnt = imin(l, scp->xsize - scp->xpos);
sys/dev/misc/syscons/sctermvar.h
328
i = cnt;
sys/dev/misc/syscons/sctermvar.h
335
l -= cnt - i;
sys/dev/misc/syscons/sctermvar.h
337
scp->cursor_pos += cnt - i;
sys/dev/misc/syscons/sctermvar.h
339
scp->xpos += cnt - i;
sys/dev/misc/syscons/sysmouse.c
237
int error = 0, val, cnt = 0;
sys/dev/misc/syscons/sysmouse.c
271
cnt++;
sys/dev/misc/syscons/sysmouse.c
278
if (cnt > 0 && error != EFAULT)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_reset.c
2707
#define XPA_LVL_FREQ(cnt) (pModal->xpaBiasLvlFreq[cnt])
sys/dev/netif/bge/if_bge.c
598
bge_read_nvram(struct bge_softc *sc, caddr_t dest, int off, int cnt)
sys/dev/netif/bge/if_bge.c
606
for (i = 0; i < cnt; i++) {
sys/dev/netif/bge/if_bgereg.h
2629
#define BGE_RX_RTN_RING_SZ(cnt) \
sys/dev/netif/bge/if_bgereg.h
2630
(sizeof(struct bge_rx_bd) * (cnt))
sys/dev/netif/bnx/if_bnx.c
406
bnx_read_nvram(struct bnx_softc *sc, caddr_t dest, int off, int cnt)
sys/dev/netif/bnx/if_bnx.c
5442
bnx_teardown_intr(struct bnx_softc *sc, int cnt)
sys/dev/netif/bnx/if_bnx.c
5446
for (i = 0; i < cnt; ++i) {
sys/dev/netif/bnx/if_bnx.c
5607
int cnt, refill_mask;
sys/dev/netif/bnx/if_bnx.c
5610
cnt = 0;
sys/dev/netif/bnx/if_bnx.c
5632
++cnt;
sys/dev/netif/bnx/if_bnx.c
5633
if (cnt >= 8) {
sys/dev/netif/bnx/if_bnx.c
5635
&std->bnx_rx_std_used, cnt);
sys/dev/netif/bnx/if_bnx.c
5639
cnt = 0;
sys/dev/netif/bnx/if_bnx.c
5648
if (cnt) {
sys/dev/netif/bnx/if_bnx.c
5649
atomic_subtract_int(&std->bnx_rx_std_used, cnt);
sys/dev/netif/bwn/bwn/if_bwn.c
5452
int cnt = 0;
sys/dev/netif/bwn/bwn/if_bwn.c
5494
cnt++;
sys/dev/netif/bwn/bwn/if_bwn.c
5501
len, dr->dr_rx_bufsize, cnt);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2457
int lower, repeat, cnt = 0;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2502
if (cnt == 0) {
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2505
cnt++;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2508
} else if (cnt == 2)
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2512
} while (++cnt < repeat);
sys/dev/netif/dc/if_dc.c
3024
int frag, cur, cnt = 0;
sys/dev/netif/dc/if_dc.c
3042
(sc->dc_cdata.dc_tx_cnt + cnt)) < 5)
sys/dev/netif/dc/if_dc.c
3047
if (cnt == 0) {
sys/dev/netif/dc/if_dc.c
3055
cnt++;
sys/dev/netif/dc/if_dc.c
3062
sc->dc_cdata.dc_tx_cnt += cnt;
sys/dev/netif/dc/if_dc.c
576
dc_read_eeprom(struct dc_softc *sc, caddr_t dest, int off, int cnt, int swap)
sys/dev/netif/dc/if_dc.c
581
for (i = 0; i < cnt; i++) {
sys/dev/netif/dc/if_dc.c
656
dc_mii_send(struct dc_softc *sc, u_int32_t bits, int cnt)
sys/dev/netif/dc/if_dc.c
660
for (i = (0x1 << (cnt - 1)); i; i >>= 1)
sys/dev/netif/de/if_de.c
1412
int idx, cnt = 0;
sys/dev/netif/de/if_de.c
1429
if (++cnt > 100)
sys/dev/netif/de/if_de.c
1434
cnt = 0;
sys/dev/netif/de/if_de.c
1438
sc->tulip_media = cnt > 100 ? TULIP_MEDIA_100BASETX : TULIP_MEDIA_10BASET;
sys/dev/netif/de/if_de.c
2457
int cnt = 0;
sys/dev/netif/de/if_de.c
2458
while (((csr = TULIP_CSR_READ(sc, csr_enetrom)) & 0x80000000L) && cnt < 10000)
sys/dev/netif/de/if_de.c
2459
cnt++;
sys/dev/netif/lge/if_lge.c
244
lge_read_eeprom(struct lge_softc *sc, caddr_t dest, int off, int cnt)
sys/dev/netif/lge/if_lge.c
249
for (i = 0; i < cnt; i++) {
sys/dev/netif/lge/if_lge.c
848
lge_rxeof(struct lge_softc *sc, int cnt)
sys/dev/netif/lge/if_lge.c
858
c = cnt;
sys/dev/netif/mxge/if_mxge.c
1240
ss->rx_data.rx_big.cnt = 0;
sys/dev/netif/mxge/if_mxge.c
1241
ss->rx_data.rx_small.cnt = 0;
sys/dev/netif/mxge/if_mxge.c
140
static void mxge_teardown_intr(struct mxge_softc *sc, int cnt);
sys/dev/netif/mxge/if_mxge.c
1541
CTLFLAG_RD, &ss->rx_data.rx_small.cnt, 0, "rx_small_cnt");
sys/dev/netif/mxge/if_mxge.c
1544
CTLFLAG_RD, &ss->rx_data.rx_big.cnt, 0, "rx_small_cnt");
sys/dev/netif/mxge/if_mxge.c
1572
mcp_kreq_ether_send_t *src, int cnt)
sys/dev/netif/mxge/if_mxge.c
1577
while (cnt > 1) {
sys/dev/netif/mxge/if_mxge.c
1578
cnt--;
sys/dev/netif/mxge/if_mxge.c
1579
idx = (starting_slot + cnt) & tx->mask;
sys/dev/netif/mxge/if_mxge.c
1580
mxge_pio_copy(&tx->lanai[idx], &src[cnt], sizeof(*src));
sys/dev/netif/mxge/if_mxge.c
1592
mxge_submit_req(mxge_tx_ring_t *tx, mcp_kreq_ether_send_t *src, int cnt)
sys/dev/netif/mxge/if_mxge.c
1609
if ((idx + cnt) < tx->mask) {
sys/dev/netif/mxge/if_mxge.c
1610
for (i = 0; i < cnt - 1; i += 2) {
sys/dev/netif/mxge/if_mxge.c
1621
mxge_submit_req_backwards(tx, src, cnt);
sys/dev/netif/mxge/if_mxge.c
1624
if (i < cnt) {
sys/dev/netif/mxge/if_mxge.c
1637
tx->req += cnt;
sys/dev/netif/mxge/if_mxge.c
1677
int next_is_first, chop, cnt, rdma_count, small;
sys/dev/netif/mxge/if_mxge.c
1706
cnt = 0;
sys/dev/netif/mxge/if_mxge.c
1777
cnt++;
sys/dev/netif/mxge/if_mxge.c
1783
if (__predict_false(cnt > tx->max_desc))
sys/dev/netif/mxge/if_mxge.c
1796
info_last = &tx->info[((cnt - 1) + tx->req) & tx->mask];
sys/dev/netif/mxge/if_mxge.c
1802
mxge_submit_req(tx, tx->req_list, cnt);
sys/dev/netif/mxge/if_mxge.c
1825
int cnt, cum_len, err, i, idx, odd_flag;
sys/dev/netif/mxge/if_mxge.c
1844
tx->seg_list, tx->max_desc - 2, &cnt, BUS_DMA_NOWAIT);
sys/dev/netif/mxge/if_mxge.c
1853
return mxge_encap_tso(tx, info_map, m, cnt);
sys/dev/netif/mxge/if_mxge.c
1882
for (i = 0; i < cnt; i++) {
sys/dev/netif/mxge/if_mxge.c
1915
cnt++;
sys/dev/netif/mxge/if_mxge.c
1918
tx->req_list[0].rdma_count = cnt;
sys/dev/netif/mxge/if_mxge.c
1921
for (i = 0; i < cnt; i++) {
sys/dev/netif/mxge/if_mxge.c
1933
info_last = &tx->info[((cnt - 1) + tx->req) & tx->mask];
sys/dev/netif/mxge/if_mxge.c
1939
mxge_submit_req(tx, tx->req_list, cnt);
sys/dev/netif/mxge/if_mxge.c
2045
int cnt, err, mflag;
sys/dev/netif/mxge/if_mxge.c
2066
&seg, 1, &cnt, BUS_DMA_NOWAIT);
sys/dev/netif/mxge/if_mxge.c
2095
int cnt, err, mflag;
sys/dev/netif/mxge/if_mxge.c
2119
&seg, 1, &cnt, BUS_DMA_NOWAIT);
sys/dev/netif/mxge/if_mxge.c
2232
idx = rx->cnt & rx->mask;
sys/dev/netif/mxge/if_mxge.c
2233
rx->cnt++;
sys/dev/netif/mxge/if_mxge.c
2289
idx = rx->cnt & rx->mask;
sys/dev/netif/mxge/if_mxge.c
2290
rx->cnt++;
sys/dev/netif/mxge/if_mxge.c
4685
mxge_teardown_intr(struct mxge_softc *sc, int cnt)
sys/dev/netif/mxge/if_mxge.c
4692
for (i = 0; i < cnt; ++i) {
sys/dev/netif/mxge/if_mxge_var.h
64
int cnt;
sys/dev/netif/nge/if_nge.c
1564
int frag, cur, cnt = 0;
sys/dev/netif/nge/if_nge.c
1576
(sc->nge_cdata.nge_tx_cnt + cnt)) < 2)
sys/dev/netif/nge/if_nge.c
1581
if (cnt != 0)
sys/dev/netif/nge/if_nge.c
1585
cnt++;
sys/dev/netif/nge/if_nge.c
1612
sc->nge_cdata.nge_tx_cnt += cnt;
sys/dev/netif/nge/if_nge.c
1648
int cnt;
sys/dev/netif/nge/if_nge.c
1656
cnt = 0;
sys/dev/netif/nge/if_nge.c
1658
++cnt;
sys/dev/netif/nge/if_nge.c
1660
(sc->nge_cdata.nge_tx_cnt + cnt)) < 2) {
sys/dev/netif/nge/if_nge.c
349
nge_read_eeprom(struct nge_softc *sc, void *dest, int off, int cnt)
sys/dev/netif/nge/if_nge.c
354
for (i = 0; i < cnt; i++) {
sys/dev/netif/nge/if_nge.c
383
nge_mii_send(struct nge_softc *sc, uint32_t bits, int cnt)
sys/dev/netif/nge/if_nge.c
389
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/pcn/if_pcn.c
1018
int cnt;
sys/dev/netif/pcn/if_pcn.c
1026
cnt = 0;
sys/dev/netif/pcn/if_pcn.c
1028
++cnt;
sys/dev/netif/pcn/if_pcn.c
1030
(sc->pcn_cdata.pcn_tx_cnt + cnt)) < 2) {
sys/dev/netif/pcn/if_pcn.c
947
int frag, cur, cnt = 0;
sys/dev/netif/pcn/if_pcn.c
959
(sc->pcn_cdata.pcn_tx_cnt + cnt)) < 2)
sys/dev/netif/pcn/if_pcn.c
965
if (cnt == 0)
sys/dev/netif/pcn/if_pcn.c
971
cnt++;
sys/dev/netif/pcn/if_pcn.c
981
sc->pcn_cdata.pcn_tx_cnt += cnt;
sys/dev/netif/re/re.c
31053
u_int32_t cnt;
sys/dev/netif/re/re.c
31062
cnt = 0;
sys/dev/netif/re/re.c
31066
cnt++;
sys/dev/netif/re/re.c
31067
} while (!(temp & EFUSE_READ_OK) && (cnt < EFUSE_Check_Cnt));
sys/dev/netif/re/re.c
31069
if (cnt == EFUSE_Check_Cnt)
sys/dev/netif/re/re.c
31079
cnt = 0;
sys/dev/netif/re/re.c
31083
cnt++;
sys/dev/netif/re/re.c
31084
} while (!(temp & EFUSE_READ_OK) && (cnt < EFUSE_Check_Cnt));
sys/dev/netif/re/re.c
31086
if (cnt == EFUSE_Check_Cnt) {
sys/dev/netif/re/re.c
31105
cnt = 0;
sys/dev/netif/re/re.c
31109
cnt++;
sys/dev/netif/re/re.c
31110
} while (!(temp & EFUSE_READ_OK) && (cnt < EFUSE_Check_Cnt));
sys/dev/netif/re/re.c
31112
if (cnt == EFUSE_Check_Cnt) {
sys/dev/netif/re/re.c
31908
static void re_read_eeprom(struct re_softc *sc, caddr_t dest, int off, int cnt, int swap)
sys/dev/netif/re/re.c
31913
for (i = 0; i < cnt; i++) {
sys/dev/netif/rl/if_rl.c
329
rl_read_eeprom(struct rl_softc *sc, caddr_t dest, int off, int cnt, int swap)
sys/dev/netif/rl/if_rl.c
334
for (i = 0; i < cnt; i++) {
sys/dev/netif/rl/if_rl.c
379
rl_mii_send(struct rl_softc *sc, uint32_t bits, int cnt)
sys/dev/netif/rl/if_rl.c
385
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/sis/if_sis.c
337
sis_read_eeprom(struct sis_softc *sc, caddr_t dest, int off, int cnt, int swap)
sys/dev/netif/sis/if_sis.c
342
for (i = 0; i < cnt; i++) {
sys/dev/netif/sis/if_sis.c
391
int cnt)
sys/dev/netif/sis/if_sis.c
407
for (i = 0; i < cnt; i++) {
sys/dev/netif/sis/if_sis.c
462
sis_mii_send(struct sis_softc *sc, uint32_t bits, int cnt)
sys/dev/netif/sis/if_sis.c
468
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/ste/if_ste.c
214
ste_mii_send(struct ste_softc *sc, u_int32_t bits, int cnt)
sys/dev/netif/ste/if_ste.c
220
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/ste/if_ste.c
510
ste_read_eeprom(struct ste_softc *sc, caddr_t dest, int off, int cnt, int swap)
sys/dev/netif/ste/if_ste.c
518
for (i = 0; i < cnt; i++) {
sys/dev/netif/stge/if_stge.c
245
stge_mii_send(struct stge_softc *sc, uint32_t bits, int cnt)
sys/dev/netif/stge/if_stge.c
251
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/ti/if_ti.c
1818
uint32_t cnt = 0, cur, frag;
sys/dev/netif/ti/if_ti.c
1873
if ((TI_TX_RING_CNT - (sc->ti_txcnt + cnt)) < 16)
sys/dev/netif/ti/if_ti.c
1877
cnt++;
sys/dev/netif/ti/if_ti.c
1893
sc->ti_txcnt += cnt;
sys/dev/netif/ti/if_ti.c
348
ti_read_eeprom(struct ti_softc *sc, caddr_t dest, int off, int cnt)
sys/dev/netif/ti/if_ti.c
353
for (i = 0; i < cnt; i++) {
sys/dev/netif/ti/if_ti.c
370
int cnt, segptr, segsize;
sys/dev/netif/ti/if_ti.c
374
cnt = len;
sys/dev/netif/ti/if_ti.c
378
while(cnt) {
sys/dev/netif/ti/if_ti.c
379
if (cnt < TI_WINLEN)
sys/dev/netif/ti/if_ti.c
380
segsize = cnt;
sys/dev/netif/ti/if_ti.c
393
cnt -= segsize;
sys/dev/netif/tl/if_tl.c
569
tl_read_eeprom(struct tl_softc *sc, caddr_t dest, int off, int cnt)
sys/dev/netif/tl/if_tl.c
574
for (i = 0; i < cnt; i++) {
sys/dev/netif/tl/if_tl.c
600
tl_mii_send(struct tl_softc *sc, u_int32_t bits, int cnt)
sys/dev/netif/tl/if_tl.c
604
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/txp/if_txp.c
1194
u_int32_t firstprod, firstcnt, prod, cnt;
sys/dev/netif/txp/if_txp.c
1202
cnt = r->r_cnt;
sys/dev/netif/txp/if_txp.c
1208
firstcnt = cnt;
sys/dev/netif/txp/if_txp.c
1210
if ((TX_ENTRIES - cnt) < 4)
sys/dev/netif/txp/if_txp.c
1221
if ((cnt + frag) >= (TX_ENTRIES - 4)) {
sys/dev/netif/txp/if_txp.c
1257
++cnt;
sys/dev/netif/txp/if_txp.c
1258
KASSERT(cnt < (TX_ENTRIES - 4), ("too many frag"));
sys/dev/netif/txp/if_txp.c
1281
++cnt;
sys/dev/netif/txp/if_txp.c
1282
KASSERT(cnt < (TX_ENTRIES - 4), ("too many frag"));
sys/dev/netif/txp/if_txp.c
1307
r->r_cnt = cnt;
sys/dev/netif/txp/if_txp.c
807
u_int32_t cons = r->r_cons, cnt = r->r_cnt;
sys/dev/netif/txp/if_txp.c
813
if (cnt == 0)
sys/dev/netif/txp/if_txp.c
837
cnt--;
sys/dev/netif/txp/if_txp.c
841
r->r_cnt = cnt;
sys/dev/netif/txp/if_txp.c
842
if (cnt == 0)
sys/dev/netif/vge/if_vge.c
282
vge_read_eeprom(struct vge_softc *sc, uint8_t *dest, int off, int cnt, int swap)
sys/dev/netif/vge/if_vge.c
288
for (i = 0; i < cnt; i++) {
sys/dev/netif/vr/if_vr.c
263
vr_mii_send(struct vr_softc *sc, uint32_t bits, int cnt)
sys/dev/netif/vr/if_vr.c
269
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/wb/if_wb.c
292
wb_read_eeprom(struct wb_softc *sc, caddr_t dest, int off, int cnt)
sys/dev/netif/wb/if_wb.c
297
for (i = 0; i < cnt; i++) {
sys/dev/netif/wb/if_wb.c
326
wb_mii_send(struct wb_softc *sc, uint32_t bits, int cnt)
sys/dev/netif/wb/if_wb.c
332
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/wi/if_wi.c
1904
int error, cnt;
sys/dev/netif/wi/if_wi.c
1912
cnt = (buflen + 1) / 2;
sys/dev/netif/wi/if_wi.c
1913
CSR_READ_MULTI_STREAM_2(sc, WI_DATA0, (u_int16_t *)buf, cnt);
sys/dev/netif/wi/if_wi.c
1914
sc->sc_bap_off += cnt * 2;
sys/dev/netif/wi/if_wi.c
1921
int error, cnt;
sys/dev/netif/wi/if_wi.c
1930
cnt = (buflen + 1) / 2;
sys/dev/netif/wi/if_wi.c
1931
CSR_WRITE_MULTI_STREAM_2(sc, WI_DATA0, (const uint16_t *)buf, cnt);
sys/dev/netif/wi/if_wi.c
1932
sc->sc_bap_off += cnt * 2;
sys/dev/netif/xe/if_xe.c
1650
xe_mii_send(struct xe_softc *scp, u_int32_t bits, int cnt) {
sys/dev/netif/xe/if_xe.c
1656
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/xe/if_xe.c
178
static void xe_mii_send (struct xe_softc *scp, u_int32_t bits, int cnt);
sys/dev/netif/xl/if_xl.c
383
xl_mii_send(struct xl_softc *sc, u_int32_t bits, int cnt)
sys/dev/netif/xl/if_xl.c
390
for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
sys/dev/netif/xl/if_xl.c
677
xl_read_eeprom(struct xl_softc *sc, caddr_t dest, int off, int cnt, int swap)
sys/dev/netif/xl/if_xl.c
695
for (i = 0; i < cnt; i++) {
sys/dev/pccard/pccbb/pccbb.c
735
int cnt, sane;
sys/dev/pccard/pccbb/pccbb.c
795
cnt = sc->powerintr;
sys/dev/pccard/pccbb/pccbb.c
798
cnt == sc->powerintr && sane-- > 0)
sys/dev/powermng/clockmod/clockmod.c
298
int nctrl, step, i, shift, cnt;
sys/dev/powermng/clockmod/clockmod.c
317
cnt = 0;
sys/dev/powermng/clockmod/clockmod.c
320
&clockmod_dom_controls[cnt];
sys/dev/powermng/clockmod/clockmod.c
326
++cnt;
sys/dev/powermng/clockmod/clockmod.c
340
clockmod_dom_nctrl = cnt;
sys/dev/raid/hpt27xx/ldm.h
454
PCOMMAND ldm_alloc_cmds(PVBUS vbus, HPT_UINT cnt);
sys/dev/raid/hpt27xx/ldm.h
458
PCOMMAND ldm_alloc_cmds_from_list(PVBUS vbus, struct freelist *list, HPT_UINT cnt);
sys/dev/raid/hptrr/ldm.h
449
PCOMMAND ldm_alloc_cmds(PVBUS vbus, HPT_UINT cnt);
sys/dev/raid/hptrr/ldm.h
453
PCOMMAND ldm_alloc_cmds_from_list(PVBUS vbus, struct freelist *list, HPT_UINT cnt);
sys/dev/raid/iir/iir.c
1015
cnt = ucmd->u.ioctl.param_size;
sys/dev/raid/iir/iir.c
1016
if (cnt > GDT_SCRATCH_SZ) {
sys/dev/raid/iir/iir.c
1018
gdt->sc_hanum, GDT_SCRATCH_SZ, cnt);
sys/dev/raid/iir/iir.c
1025
cnt = ucmd->u.cache.BlockCnt * GDT_SECTOR_SIZE;
sys/dev/raid/iir/iir.c
1026
if (cnt > GDT_SCRATCH_SZ) {
sys/dev/raid/iir/iir.c
1028
gdt->sc_hanum, GDT_SCRATCH_SZ, cnt);
sys/dev/raid/iir/iir.c
1036
cnt = ucmd->u.raw.sdlen;
sys/dev/raid/iir/iir.c
1037
if (cnt + ucmd->u.raw.sense_len > GDT_SCRATCH_SZ) {
sys/dev/raid/iir/iir.c
1039
gdt->sc_hanum, GDT_SCRATCH_SZ, cnt + ucmd->u.raw.sense_len);
sys/dev/raid/iir/iir.c
1044
if (cnt != 0)
sys/dev/raid/iir/iir.c
1045
bcopy(ucmd->data, gccb->gc_scratch, cnt);
sys/dev/raid/iir/iir.c
1529
u_int32_t cnt;
sys/dev/raid/iir/iir.c
1613
cnt = ucmd->u.ioctl.param_size;
sys/dev/raid/iir/iir.c
1614
if (cnt != 0)
sys/dev/raid/iir/iir.c
1615
bcopy(gccb->gc_scratch, ucmd->data, cnt);
sys/dev/raid/iir/iir.c
1617
cnt = ucmd->u.cache.BlockCnt * GDT_SECTOR_SIZE;
sys/dev/raid/iir/iir.c
1618
if (cnt != 0)
sys/dev/raid/iir/iir.c
1619
bcopy(gccb->gc_scratch, ucmd->data, cnt);
sys/dev/raid/iir/iir.c
1622
cnt = ucmd->u.raw.sdlen;
sys/dev/raid/iir/iir.c
1623
if (cnt != 0)
sys/dev/raid/iir/iir.c
1624
bcopy(gccb->gc_scratch, ucmd->data, cnt);
sys/dev/raid/iir/iir.c
1626
bcopy(gccb->gc_scratch, ucmd->data, cnt);
sys/dev/raid/iir/iir.c
995
u_int32_t cnt;
sys/dev/sound/pci/envy24.c
1205
u_int32_t ptr, size, cnt;
sys/dev/sound/pci/envy24.c
1232
cnt = blk - 1;
sys/dev/sound/pci/envy24.c
1234
device_printf(sc->dev, "envy24_updintr():ptr = %d, blk = %d, cnt = %d\n", ptr, blk, cnt);
sys/dev/sound/pci/envy24.c
1236
envy24_wrmt(sc, regintr, cnt, 2);
sys/dev/sound/pci/envy24ht.c
1159
u_int32_t ptr, size, cnt;
sys/dev/sound/pci/envy24ht.c
1186
cnt = blk - 1;
sys/dev/sound/pci/envy24ht.c
1188
device_printf(sc->dev, "envy24ht_updintr():ptr = %d, blk = %d, cnt = %d\n", ptr, blk, cnt);
sys/dev/sound/pci/envy24ht.c
1190
envy24ht_wrmt(sc, regintr, cnt, 2);
sys/dev/sound/pci/es137x.c
759
uint32_t cnt, b = 0;
sys/dev/sound/pci/es137x.c
765
cnt = (ch->blksz / sndbuf_getalign(ch->buffer)) - 1;
sys/dev/sound/pci/es137x.c
781
es_wr(es, ES1370_REG_DAC1_SCOUNT, cnt, 4);
sys/dev/sound/pci/es137x.c
798
es_wr(es, ES1370_REG_DAC2_SCOUNT, cnt, 4);
sys/dev/sound/pci/es137x.c
817
es_wr(es, ES1370_REG_ADC_SCOUNT, cnt, 4);
sys/dev/sound/pci/es137x.c
857
uint32_t reg, cnt;
sys/dev/sound/pci/es137x.c
861
cnt = ch->ptr;
sys/dev/sound/pci/es137x.c
871
cnt = es_rd(es, reg & 0x000000ff, 4) >> 16;
sys/dev/sound/pci/es137x.c
873
cnt <<= 2;
sys/dev/sound/pci/es137x.c
877
cnt &= ES_BLK_ALIGN;
sys/dev/sound/pci/es137x.c
879
return (cnt);
sys/dev/sound/pci/hda/hdaa.c
212
int index, int cnt)
sys/dev/sound/pci/hda/hdaa.c
232
if (found == cnt || cnt <= 0)
sys/dev/sound/pci/hda/hdaa.c
3034
int i, j, cnt, max, ocap, icap;
sys/dev/sound/pci/hda/hdaa.c
3078
cnt = 0;
sys/dev/sound/pci/hda/hdaa.c
3079
for (i = devinfo->startnode; cnt < max && i < devinfo->endnode; i++) {
sys/dev/sound/pci/hda/hdaa.c
3099
ctls[cnt].enable = 1;
sys/dev/sound/pci/hda/hdaa.c
3100
ctls[cnt].widget = w;
sys/dev/sound/pci/hda/hdaa.c
3101
ctls[cnt].mute = mute;
sys/dev/sound/pci/hda/hdaa.c
3102
ctls[cnt].step = step;
sys/dev/sound/pci/hda/hdaa.c
3103
ctls[cnt].size = size;
sys/dev/sound/pci/hda/hdaa.c
3104
ctls[cnt].offset = offset;
sys/dev/sound/pci/hda/hdaa.c
3105
ctls[cnt].left = offset;
sys/dev/sound/pci/hda/hdaa.c
3106
ctls[cnt].right = offset;
sys/dev/sound/pci/hda/hdaa.c
3109
ctls[cnt].ndir = HDAA_CTL_IN;
sys/dev/sound/pci/hda/hdaa.c
3111
ctls[cnt].ndir = HDAA_CTL_OUT;
sys/dev/sound/pci/hda/hdaa.c
3112
ctls[cnt++].dir = HDAA_CTL_OUT;
sys/dev/sound/pci/hda/hdaa.c
3133
if (cnt >= max) {
sys/dev/sound/pci/hda/hdaa.c
3143
ctls[cnt].enable = 1;
sys/dev/sound/pci/hda/hdaa.c
3144
ctls[cnt].widget = w;
sys/dev/sound/pci/hda/hdaa.c
3145
ctls[cnt].childwidget = cw;
sys/dev/sound/pci/hda/hdaa.c
3146
ctls[cnt].index = j;
sys/dev/sound/pci/hda/hdaa.c
3147
ctls[cnt].mute = mute;
sys/dev/sound/pci/hda/hdaa.c
3148
ctls[cnt].step = step;
sys/dev/sound/pci/hda/hdaa.c
3149
ctls[cnt].size = size;
sys/dev/sound/pci/hda/hdaa.c
3150
ctls[cnt].offset = offset;
sys/dev/sound/pci/hda/hdaa.c
3151
ctls[cnt].left = offset;
sys/dev/sound/pci/hda/hdaa.c
3152
ctls[cnt].right = offset;
sys/dev/sound/pci/hda/hdaa.c
3153
ctls[cnt].ndir = HDAA_CTL_IN;
sys/dev/sound/pci/hda/hdaa.c
3154
ctls[cnt++].dir = HDAA_CTL_IN;
sys/dev/sound/pci/hda/hdaa.c
3158
if (cnt >= max) {
sys/dev/sound/pci/hda/hdaa.c
3164
ctls[cnt].enable = 1;
sys/dev/sound/pci/hda/hdaa.c
3165
ctls[cnt].widget = w;
sys/dev/sound/pci/hda/hdaa.c
3166
ctls[cnt].mute = mute;
sys/dev/sound/pci/hda/hdaa.c
3167
ctls[cnt].step = step;
sys/dev/sound/pci/hda/hdaa.c
3168
ctls[cnt].size = size;
sys/dev/sound/pci/hda/hdaa.c
3169
ctls[cnt].offset = offset;
sys/dev/sound/pci/hda/hdaa.c
3170
ctls[cnt].left = offset;
sys/dev/sound/pci/hda/hdaa.c
3171
ctls[cnt].right = offset;
sys/dev/sound/pci/hda/hdaa.c
3174
ctls[cnt].ndir = HDAA_CTL_OUT;
sys/dev/sound/pci/hda/hdaa.c
3176
ctls[cnt].ndir = HDAA_CTL_IN;
sys/dev/sound/pci/hda/hdaa.c
3177
ctls[cnt++].dir = HDAA_CTL_IN;
sys/dev/sound/pci/hda/hdaa.c
3191
int i, j, cnt, max, type, dir, assoc, seq, first, hpredir;
sys/dev/sound/pci/hda/hdaa.c
3234
cnt = 0;
sys/dev/sound/pci/hda/hdaa.c
3249
KASSERT(cnt < max,
sys/dev/sound/pci/hda/hdaa.c
3251
__func__, cnt, max));
sys/dev/sound/pci/hda/hdaa.c
3264
if (as[cnt].pincnt == 0) {
sys/dev/sound/pci/hda/hdaa.c
3265
as[cnt].enable = 1;
sys/dev/sound/pci/hda/hdaa.c
3266
as[cnt].index = j;
sys/dev/sound/pci/hda/hdaa.c
3267
as[cnt].dir = dir;
sys/dev/sound/pci/hda/hdaa.c
3272
if (as[cnt].pins[seq] != 0) {
sys/dev/sound/pci/hda/hdaa.c
3276
as[cnt].enable = 0;
sys/dev/sound/pci/hda/hdaa.c
3278
if (dir != as[cnt].dir) {
sys/dev/sound/pci/hda/hdaa.c
3283
as[cnt].enable = 0;
sys/dev/sound/pci/hda/hdaa.c
3286
as[cnt].digital |= 0x1;
sys/dev/sound/pci/hda/hdaa.c
3288
as[cnt].digital |= 0x2;
sys/dev/sound/pci/hda/hdaa.c
3290
as[cnt].digital |= 0x4;
sys/dev/sound/pci/hda/hdaa.c
3292
if (as[cnt].location == -1) {
sys/dev/sound/pci/hda/hdaa.c
3293
as[cnt].location =
sys/dev/sound/pci/hda/hdaa.c
3295
} else if (as[cnt].location !=
sys/dev/sound/pci/hda/hdaa.c
3297
as[cnt].location = -2;
sys/dev/sound/pci/hda/hdaa.c
3303
as[cnt].pins[seq] = w->nid;
sys/dev/sound/pci/hda/hdaa.c
3304
as[cnt].pincnt++;
sys/dev/sound/pci/hda/hdaa.c
3307
cnt++;
sys/dev/sound/pci/hda/hdaa.c
3309
if (j != 15 && as[cnt].pincnt > 0) {
sys/dev/sound/pci/hda/hdaa.c
3310
if (hpredir && as[cnt].pincnt > 1)
sys/dev/sound/pci/hda/hdaa.c
3311
as[cnt].hpredir = first;
sys/dev/sound/pci/hda/hdaa.c
3312
cnt++;
sys/dev/sound/pci/hda/hdaa.c
4100
int i, j, cnt = 0, free;
sys/dev/sound/pci/hda/hdaa.c
4104
cnt += as[j].num_chans;
sys/dev/sound/pci/hda/hdaa.c
4108
sizeof(struct hdaa_chan) * cnt,
sys/dev/sound/pci/hda/hdaa.c
4117
sizeof(struct hdaa_chan) * (devinfo->num_chans + cnt),
sys/dev/sound/pci/hda/hdaa.c
4130
devinfo->num_chans += cnt;
sys/dev/sound/pci/hda/hdaa.c
4132
for (j = free; j < free + cnt; j++) {
sys/dev/sound/pci/neomagic.c
210
int cnt = 10;
sys/dev/sound/pci/neomagic.c
213
while (cnt-- > 0) {
sys/dev/sound/pci/neomagic.c
265
int cnt = 3;
sys/dev/sound/pci/neomagic.c
268
while (cnt-- > 0) {
sys/dev/sound/pci/solo.c
137
static int ess_dmasetup(struct ess_info *sc, int ch, u_int32_t base, u_int16_t cnt, int dir);
sys/dev/sound/pci/solo.c
769
ess_dmasetup(struct ess_info *sc, int ch, u_int32_t base, u_int16_t cnt, int dir)
sys/dev/sound/pci/solo.c
772
sc->dmasz[ch - 1] = cnt;
sys/dev/sound/pci/solo.c
779
port_wr(sc->vc, 0x4, cnt - 1, 2);
sys/dev/sound/pci/solo.c
784
port_wr(sc->io, 0x4, cnt, 2);
sys/dev/sound/pci/via8233.c
1112
uint32_t data, cnt;
sys/dev/sound/pci/via8233.c
1154
for (cnt = 0; cnt < 2000; cnt++) {
sys/dev/sound/pci/via8233.c
1160
device_printf(dev, "primary codec not ready (cnt = 0x%02x)\n", cnt);
sys/dev/sound/pci/via82c686.c
482
u_int32_t data, cnt;
sys/dev/sound/pci/via82c686.c
514
for (cnt = 0; cnt < 2000; cnt++) {
sys/dev/sound/pcm/buffer.c
690
unsigned int cnt, maxfeed;
sys/dev/sound/pcm/buffer.c
708
cnt = FEEDER_FEED(feeder, channel, to->tmpbuf,
sys/dev/sound/pcm/buffer.c
710
if (cnt == 0)
sys/dev/sound/pcm/buffer.c
712
sndbuf_acquire(to, to->tmpbuf, cnt);
sys/dev/sound/pcm/buffer.c
713
count -= cnt;
sys/dev/sound/pcm/feeder_mixer.c
182
uint32_t cnt, maxfeed;
sys/dev/sound/pcm/feeder_mixer.c
194
cnt = sndbuf_getsize(b);
sys/dev/sound/pcm/feeder_mixer.c
198
cnt = FEEDER_FEED(c->feeder->source, c, b->tmpbuf,
sys/dev/sound/pcm/feeder_mixer.c
199
min(cnt, maxfeed), c->bufhard);
sys/dev/sound/pcm/feeder_mixer.c
200
if (cnt != 0) {
sys/dev/sound/pcm/feeder_mixer.c
201
sndbuf_acquire(b, b->tmpbuf, cnt);
sys/dev/sound/pcm/feeder_mixer.c
202
cnt = sndbuf_getfree(b);
sys/dev/sound/pcm/feeder_mixer.c
204
} while (cnt != 0);
sys/dev/sound/pcm/feeder_mixer.c
235
cnt = sndbuf_getfree(bs);
sys/dev/sound/pcm/feeder_mixer.c
236
if (cnt < sndbuf_getalign(bs)) {
sys/dev/sound/pcm/feeder_mixer.c
242
cnt = FEEDER_FEED(ch->feeder, ch, bs->tmpbuf,
sys/dev/sound/pcm/feeder_mixer.c
243
min(cnt, maxfeed), b);
sys/dev/sound/pcm/feeder_mixer.c
244
if (cnt != 0) {
sys/dev/sound/pcm/feeder_mixer.c
245
sndbuf_acquire(bs, bs->tmpbuf, cnt);
sys/dev/sound/pcm/feeder_mixer.c
246
cnt = sndbuf_getfree(bs);
sys/dev/sound/pcm/feeder_mixer.c
248
} while (cnt != 0);
sys/dev/sound/pcm/feeder_mixer.c
286
uint32_t cnt, mcnt, rcnt, sz;
sys/dev/sound/pcm/feeder_mixer.c
364
cnt = SND_FXROUND(FEEDER_FEED(ch->feeder, ch,
sys/dev/sound/pcm/feeder_mixer.c
366
if (cnt != 0) {
sys/dev/sound/pcm/feeder_mixer.c
373
info->mix(tmp, b, cnt);
sys/dev/sound/pcm/feeder_mixer.c
374
if (cnt > rcnt)
sys/dev/sound/pcm/feeder_mixer.c
375
rcnt = cnt;
sys/dev/sound/pcm/feeder_rate.c
413
uint32_t cnt;
sys/dev/sound/pcm/feeder_rate.c
416
cnt = info->channels * info->bps;
sys/dev/sound/pcm/feeder_rate.c
417
src = info->z_delay + (info->z_start * cnt);
sys/dev/sound/pcm/feeder_rate.c
425
} while (--cnt != 0);
sys/dev/sound/pcm/mixer.c
400
int i, cnt;
sys/dev/sound/pcm/mixer.c
402
cnt = 0;
sys/dev/sound/pcm/mixer.c
409
++cnt;
sys/dev/sound/pcm/mixer.c
415
*route = cnt;
sys/dev/sound/pcm/mixer.c
435
int i, cnt, ret;
sys/dev/sound/pcm/mixer.c
438
cnt = 0;
sys/dev/sound/pcm/mixer.c
442
if (route == cnt)
sys/dev/sound/pcm/mixer.c
444
++cnt;
sys/dev/sound/pcm/vchan.c
298
int err, cnt;
sys/dev/sound/pcm/vchan.c
311
cnt = d->playcount;
sys/dev/sound/pcm/vchan.c
316
cnt = d->reccount;
sys/dev/sound/pcm/vchan.c
324
if (cnt < 1) {
sys/dev/sound/pcm/vchan.c
332
cnt = vchancount;
sys/dev/sound/pcm/vchan.c
333
err = sysctl_handle_int(oidp, &cnt, 0, req);
sys/dev/sound/pcm/vchan.c
335
if (err == 0 && req->newptr != NULL && vchancount != cnt) {
sys/dev/sound/pcm/vchan.c
336
if (cnt < 0)
sys/dev/sound/pcm/vchan.c
337
cnt = 0;
sys/dev/sound/pcm/vchan.c
338
if (cnt > SND_MAXVCHANS)
sys/dev/sound/pcm/vchan.c
339
cnt = SND_MAXVCHANS;
sys/dev/sound/pcm/vchan.c
340
err = pcm_setvchans(d, direction, cnt, -1);
sys/dev/video/vga/vga_switcheroo.c
1079
int cnt;
sys/dev/video/vga/vga_switcheroo.c
1100
cnt = amt;
sys/dev/video/vga/vga_switcheroo.c
791
size_t cnt, loff_t *ppos)
sys/dev/video/vga/vga_switcheroo.c
800
if (cnt > 63)
sys/dev/video/vga/vga_switcheroo.c
801
cnt = 63;
sys/dev/video/vga/vga_switcheroo.c
803
if (copy_from_user(usercmd, ubuf, cnt))
sys/dev/video/vga/vga_switcheroo.c
809
cnt = -EINVAL;
sys/dev/video/vga/vga_switcheroo.c
911
return cnt;
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
245
u16 cnt;
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
252
cnt = ATOMIC32_READ(&admin_queue->outstanding_cmds);
sys/dev/virtual/amazon/ena/ena-com/ena_com.c
253
if (cnt >= admin_queue->q_depth) {
sys/dev/virtual/amazon/ena/ena-com/ena_eth_com.h
103
u16 tail, next_to_comp, cnt;
sys/dev/virtual/amazon/ena/ena-com/ena_eth_com.h
107
cnt = tail - next_to_comp;
sys/dev/virtual/amazon/ena/ena-com/ena_eth_com.h
109
return io_sq->q_depth - 1 - cnt;
sys/dev/virtual/amazon/ena/ena.c
1705
counter_u64_add_protected(rx_ring->rx_stats.cnt, 1);
sys/dev/virtual/amazon/ena/ena.c
2311
ena_get_counter(if_t ifp, ift_counter cnt)
sys/dev/virtual/amazon/ena/ena.c
2319
switch (cnt) {
sys/dev/virtual/amazon/ena/ena.c
2331
return (if_get_counter_default(ifp, cnt));
sys/dev/virtual/amazon/ena/ena.c
2858
counter_u64_add_protected(tx_ring->tx_stats.cnt, 1);
sys/dev/virtual/amazon/ena/ena.h
209
counter_u64_t cnt;
sys/dev/virtual/amazon/ena/ena.h
221
counter_u64_t cnt;
sys/dev/virtual/amazon/ena/ena_sysctl.c
156
&tx_stats->cnt, "Packets sent");
sys/dev/virtual/amazon/ena/ena_sysctl.c
194
&rx_stats->cnt, "Packets received");
sys/dev/virtual/virtio/balloon/virtio_balloon.c
417
int cnt, error;
sys/dev/virtual/virtio/balloon/virtio_balloon.c
425
cnt = intrcount;
sys/dev/virtual/virtio/balloon/virtio_balloon.c
426
error = virtio_intr_alloc(sc->vtballoon_dev, &cnt, use_config, NULL);
sys/dev/virtual/virtio/balloon/virtio_balloon.c
431
sc->vtballoon_nintr = cnt;
sys/dev/virtual/virtio/block/virtio_blk.c
596
int cnt = sc->vtblk_nintrs;
sys/dev/virtual/virtio/block/virtio_blk.c
600
if (cnt > 1) {
sys/dev/virtual/virtio/block/virtio_blk.c
607
error = virtio_intr_alloc(sc->vtblk_dev, &cnt, 0, cpus);
sys/dev/virtual/virtio/block/virtio_blk.c
610
else if (cnt != sc->vtblk_nqs)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
439
vtmmio_intr_alloc(device_t dev, int *cnt, int use_config, int *cpus)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
450
if (*cnt <= 0)
sys/dev/virtual/virtio/mmio/virtio_mmio.c
453
*cnt = 1;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
78
static int vtmmio_intr_alloc(device_t dev, int *cnt, int use_config,
sys/dev/virtual/virtio/net/if_vtnet.c
584
int cnt, error;
sys/dev/virtual/virtio/net/if_vtnet.c
604
cnt = intrcount;
sys/dev/virtual/virtio/net/if_vtnet.c
605
error = virtio_intr_alloc(sc->vtnet_dev, &cnt, use_config,
sys/dev/virtual/virtio/net/if_vtnet.c
611
sc->vtnet_nintr = cnt;
sys/dev/virtual/virtio/pci/virtio_pci.c
125
static int vtpci_intr_alloc(device_t dev, int *cnt, int use_config,
sys/dev/virtual/virtio/pci/virtio_pci.c
461
vtpci_intr_alloc(device_t dev, int *cnt, int use_config, int *cpus)
sys/dev/virtual/virtio/pci/virtio_pci.c
469
if (*cnt <= 0)
sys/dev/virtual/virtio/pci/virtio_pci.c
474
if (nmsix < *cnt)
sys/dev/virtual/virtio/pci/virtio_pci.c
475
*cnt = nmsix;
sys/dev/virtual/virtio/pci/virtio_pci.c
478
if ((*cnt > 1 || use_config == 0) &&
sys/dev/virtual/virtio/pci/virtio_pci.c
484
for (i = 0; i < *cnt; i++) {
sys/dev/virtual/virtio/pci/virtio_pci.c
497
*cnt = i;
sys/dev/virtual/virtio/pci/virtio_pci.c
524
*cnt = 1;
sys/dev/virtual/virtio/pci/virtio_pci.c
540
sc->vtpci_nintr_res = *cnt;
sys/dev/virtual/virtio/pci/virtio_pci.c
557
device_printf(dev, "using %d MSI-X vectors\n", *cnt);
sys/dev/virtual/virtio/scsi/virtio_scsi.c
515
int cnt, i, error;
sys/dev/virtual/virtio/scsi/virtio_scsi.c
524
cnt = intrcount;
sys/dev/virtual/virtio/scsi/virtio_scsi.c
525
error = virtio_intr_alloc(sc->vtscsi_dev, &cnt, 0, sc->vtscsi_cpus);
sys/dev/virtual/virtio/scsi/virtio_scsi.c
530
sc->vtscsi_nintr = cnt;
sys/dev/virtual/virtio/virtio/virtio.c
217
virtio_intr_alloc(device_t dev, int *cnt, int use_config, int *cpus)
sys/dev/virtual/virtio/virtio/virtio.c
219
return (VIRTIO_BUS_INTR_ALLOC(device_get_parent(dev), cnt, use_config,
sys/dev/virtual/virtio/virtio/virtio.h
140
int virtio_intr_alloc(device_t dev, int *cnt, int use_config, int *cpus);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3241
int cnt = 0, overflow = 0;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3246
else if (cnt == VMXNET3_MULTICAST_MAX) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3252
&sc->vmx_mcast[cnt*ETHER_ADDR_LEN], ETHER_ADDR_LEN);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3253
cnt++;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3257
cnt = 0;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3259
} else if (cnt > 0)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
3261
ds->mcast_tablelen = cnt * ETHER_ADDR_LEN;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
597
int nmsix, cnt, required;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
611
cnt = required;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
612
if (pci_alloc_msix(dev, &cnt) == 0 && cnt >= required) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
627
int nmsi, cnt, required;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
636
cnt = required;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
637
if (pci_alloc_msi(dev, &cnt) == 0 && cnt >= required) {
sys/kern/kern_subr.c
100
size_t cnt;
sys/kern/kern_subr.c
119
cnt = iov->iov_len;
sys/kern/kern_subr.c
120
if (cnt == 0) {
sys/kern/kern_subr.c
125
if (cnt > n)
sys/kern/kern_subr.c
126
cnt = n;
sys/kern/kern_subr.c
127
tot += cnt;
sys/kern/kern_subr.c
134
error = copyout(cp, iov->iov_base, cnt);
sys/kern/kern_subr.c
136
error = copyin(iov->iov_base, cp, cnt);
sys/kern/kern_subr.c
140
bcopy(cp, iov->iov_base, cnt);
sys/kern/kern_subr.c
142
bcopy(iov->iov_base, cp, cnt);
sys/kern/kern_subr.c
150
iov->iov_base = (char *)iov->iov_base + cnt;
sys/kern/kern_subr.c
151
iov->iov_len -= cnt;
sys/kern/kern_subr.c
152
uio->uio_resid -= cnt;
sys/kern/kern_subr.c
153
uio->uio_offset += cnt;
sys/kern/kern_subr.c
154
cp += cnt;
sys/kern/kern_subr.c
155
n -= cnt;
sys/kern/kern_subr.c
226
size_t cnt;
sys/kern/kern_subr.c
235
cnt = iov->iov_len;
sys/kern/kern_subr.c
236
if (cnt == 0) {
sys/kern/kern_subr.c
241
if (cnt > n)
sys/kern/kern_subr.c
242
cnt = n;
sys/kern/kern_subr.c
246
error = copyout(ZeroPage, iov->iov_base, cnt);
sys/kern/kern_subr.c
249
bzero(iov->iov_base, cnt);
sys/kern/kern_subr.c
257
iov->iov_base = (char *)iov->iov_base + cnt;
sys/kern/kern_subr.c
258
iov->iov_len -= cnt;
sys/kern/kern_subr.c
259
uio->uio_resid -= cnt;
sys/kern/kern_subr.c
260
uio->uio_offset += cnt;
sys/kern/kern_subr.c
261
n -= cnt;
sys/kern/kern_subr.c
549
size_t cnt;
sys/kern/kern_subr.c
565
cnt = iov->iov_len;
sys/kern/kern_subr.c
566
if (cnt == 0) {
sys/kern/kern_subr.c
571
if (cnt > n)
sys/kern/kern_subr.c
572
cnt = n;
sys/kern/kern_subr.c
574
cnt = min(cnt, PAGE_SIZE - page_offset);
sys/kern/kern_subr.c
586
error = copyout(cp, iov->iov_base, cnt);
sys/kern/kern_subr.c
588
error = copyin(iov->iov_base, cp, cnt);
sys/kern/kern_subr.c
596
bcopy(cp, iov->iov_base, cnt);
sys/kern/kern_subr.c
598
bcopy(iov->iov_base, cp, cnt);
sys/kern/kern_subr.c
604
iov->iov_base = (char *)iov->iov_base + cnt;
sys/kern/kern_subr.c
605
iov->iov_len -= cnt;
sys/kern/kern_subr.c
606
uio->uio_resid -= cnt;
sys/kern/kern_subr.c
607
uio->uio_offset += cnt;
sys/kern/kern_subr.c
608
offset += cnt;
sys/kern/kern_subr.c
609
n -= cnt;
sys/kern/kern_uuid.c
189
int cnt;
sys/kern/kern_uuid.c
192
cnt = ksnprintf(buf, sz, "%08x-%04x-%04x-%04x-%04x%04x%04x",
sys/kern/kern_uuid.c
195
return (cnt);
sys/kern/subr_csprng.c
130
int cnt;
sys/kern/subr_csprng.c
153
cnt = (bytes > (1 << 20)) ? (1 << 20) : bytes;
sys/kern/subr_csprng.c
155
chacha_encrypt_bytes(&state->cipher_ctx, NULL, out, cnt);
sys/kern/subr_csprng.c
163
out += cnt;
sys/kern/subr_csprng.c
164
bytes -= cnt;
sys/kern/subr_csprng.c
165
total_bytes += cnt;
sys/kern/subr_gtaskqueue.c
783
taskqgroup_create(const char *name, int cnt, int stride)
sys/kern/subr_gtaskqueue.c
791
qgroup->tqg_cnt = cnt;
sys/kern/subr_gtaskqueue.c
793
for (cpu = i = 0; i < cnt; i++) {
sys/kern/tty.c
114
static void ttyrubo (struct tty *tp, int cnt);
sys/kern/tty.c
1995
size_t cnt;
sys/kern/tty.c
2002
cnt = uio->uio_resid;
sys/kern/tty.c
2007
if (uio->uio_resid == cnt)
sys/kern/tty.c
2169
return (uio->uio_resid == cnt ? EWOULDBLOCK : 0);
sys/kern/tty.c
2280
ttyrubo(struct tty *tp, int cnt)
sys/kern/tty.c
2283
while (cnt-- > 0) {
sys/kern/tty_pty.c
1036
cnt++;
sys/kern/tty_pty.c
1059
if (cnt == 0) {
sys/kern/tty_pty.c
953
int cnt = 0;
sys/kern/uipc_socket.c
1153
int cnt = 0, async = 0;
sys/kern/uipc_socket.c
1186
++cnt;
sys/kern/uipc_socket.c
1187
} while (space > 0 && cnt < tcp_sosend_agglim);
sys/kern/vfs_bio.c
902
int cnt, struct buf **bpp)
sys/kern/vfs_bio.c
926
for (i = 0; i < cnt; i++, raoffset++, rabsize++) {
sys/net/if.c
4042
int subset_grid, cnt, divisor, mod, offset, i;
sys/net/if.c
4070
cnt = rm0->rm_cnt;
sys/net/if.c
4075
cnt = rm1->rm_cnt;
sys/net/if.c
4084
mod = cnt / subset_grid;
sys/net/if_ringmap.h
47
struct if_ringmap *if_ringmap_alloc(device_t dev, int cnt, int cnt_max);
sys/net/if_ringmap.h
49
struct if_ringmap *if_ringmap_alloc2(device_t dev, int cnt, int cnt_max);
sys/net/ipfw/ip_fw2.c
337
int cnt;
sys/net/ipfw/ip_fw2.c
6022
int *cnt = xcnt;
sys/net/ipfw/ip_fw2.c
6024
(*cnt)++;
sys/net/ipfw/ip_fw2.c
6035
int cnt;
sys/net/ipfw/ip_fw2.c
6053
cnt = 1;
sys/net/ipfw/ip_fw2.c
6058
++cnt;
sys/net/ipfw/ip_fw2.c
6064
KASSERT(cnt == netisr_ncpus,
sys/net/ipfw/ip_fw2.c
6065
("invalid # of tblent %d, should be %d", cnt, netisr_ncpus));
sys/net/ipfw/ip_fw2.c
6080
int cnt = 0, sz;
sys/net/ipfw/ip_fw2.c
6097
++cnt;
sys/net/ipfw/ip_fw2.c
6100
sz = __offsetof(struct ipfw_ioc_tbllist, tables[cnt]);
sys/net/ipfw/ip_fw2.c
6106
list->tablecnt = cnt;
sys/net/ipfw/ip_fw2.c
6108
cnt = 0;
sys/net/ipfw/ip_fw2.c
6111
KASSERT(cnt < list->tablecnt,
sys/net/ipfw/ip_fw2.c
6113
cnt, list->tablecnt));
sys/net/ipfw/ip_fw2.c
6114
list->tables[cnt++] = i;
sys/net/ipfw/ip_fw2.c
6126
rnh->rnh_walktree(rnh, ipfw_table_cntent, &cnt);
sys/net/ipfw/ip_fw2.c
6128
sz = __offsetof(struct ipfw_ioc_tblcont, ent[cnt]);
sys/net/ipfw/ip_fw2.c
6134
cont->entcnt = cnt;
sys/net/ipfw/ip_fw2.c
6138
cp.te_cnt = cnt;
sys/net/ipfw/ip_fw2.c
6360
KASSERT(nm->expcnt == nm->cnt * (mycpuid + 1),
sys/net/ipfw/ip_fw2.c
6362
nm->cnt * (mycpuid + 1), nm->expcnt));
sys/net/ipfw/ip_fw2.c
6385
KASSERT(nm->expcnt == nm->cnt * (mycpuid + 1),
sys/net/ipfw/ip_fw2.c
6387
nm->cnt * (mycpuid + 1), nm->expcnt));
sys/net/ipfw/ip_fw2.c
6415
nm->cnt++;
sys/net/ipfw/ip_fw2.c
6436
nm.cnt = 0;
sys/net/ipfw/ip_fw2.c
6448
if (nm.cnt == 0) {
sys/net/ipfw/ip_fw2.c
6452
tbl->expcnt = nm.cnt;
sys/net/ipfw/ip_fw2.c
6458
KASSERT(nm.expcnt == nm.cnt * netisr_ncpus,
sys/net/ipfw/ip_fw2.c
6460
nm.cnt * netisr_ncpus, nm.expcnt));
sys/net/ipfw/ip_fw2.c
6471
if (nm.cnt == 0) {
sys/net/ipfw/ip_fw2.c
6475
tbl->expcnt = nm.cnt;
sys/net/ipfw/ip_fw2.c
6481
KASSERT(nm.expcnt == nm.cnt * netisr_ncpus,
sys/net/ipfw/ip_fw2.c
6483
nm.cnt * netisr_ncpus, nm.expcnt));
sys/net/netmap/netmap_user.h
260
nm_dispatch(struct nm_desc_t *d, int cnt, nm_cb_t cb, u_char *arg)
sys/net/netmap/netmap_user.h
265
if (cnt == 0)
sys/net/netmap/netmap_user.h
266
cnt = -1;
sys/net/netmap/netmap_user.h
271
for (c=0; c < n && cnt != got; c++) {
sys/net/netmap/netmap_user.h
279
for ( ; ring->avail > 0 && cnt != got; got++) {
sys/net/netmap/netmap_vale.c
1306
u_int cnt;
sys/net/netmap/netmap_vale.c
1321
cnt = ft_p->ft_frags; // cnt > 0
sys/net/netmap/netmap_vale.c
1322
if (unlikely(cnt > howmany))
sys/net/netmap/netmap_vale.c
1324
howmany -= cnt;
sys/net/netmap/netmap_vale.c
1325
if (netmap_verbose && cnt > 1)
sys/net/netmap/netmap_vale.c
1326
RD(5, "rx %d frags to %d", cnt, j);
sys/net/netmap/netmap_vale.c
1327
ft_end = ft_p + cnt;
sys/net/netmap/netmap_vale.c
1348
slot->flags = (cnt << 8)| NS_MOREFRAG;
sys/net/netmap/netmap_vale.c
1353
slot->flags = (cnt << 8); /* clear flag on last entry */
sys/net/pf/pf_norm.c
1913
int opt, cnt, optlen = 0;
sys/net/pf/pf_norm.c
1919
cnt = thoff - sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
1921
if (cnt > 0 && !pf_pull_hdr(m, off + sizeof(*th), opts, cnt,
sys/net/pf/pf_norm.c
1925
for (; cnt > 0; cnt -= optlen, optp += optlen) {
sys/net/pf/pf_norm.c
1932
if (cnt < 2)
sys/net/pf/pf_norm.c
1935
if (optlen < 2 || optlen > cnt)
sys/net/pf/pf_osfp.c
117
int cnt, optlen = 0;
sys/net/pf/pf_osfp.c
184
cnt = (tcp->th_off << 2) - sizeof(*tcp);
sys/net/pf/pf_osfp.c
186
for (; cnt > 0; cnt -= optlen, optp += optlen) {
sys/net/pf/pf_osfp.c
196
if (cnt < 2)
sys/net/pf/pf_osfp.c
199
if (optlen > cnt || optlen < 2)
sys/netgraph7/ng_source.c
120
struct ng_source_embed_cnt_info *cnt,
sys/netgraph7/ng_source.c
841
ng_source_mod_counter(sc_p sc, struct ng_source_embed_cnt_info *cnt,
sys/netgraph7/ng_source.c
847
val = htonl(cnt->next_val);
sys/netgraph7/ng_source.c
848
cp = (caddr_t)&val + sizeof(val) - cnt->width;
sys/netgraph7/ng_source.c
849
ng_source_packet_mod(sc, m, cnt->offset, cnt->width, cp, cnt->flags);
sys/netgraph7/ng_source.c
852
cnt->next_val += increment;
sys/netgraph7/ng_source.c
854
if (increment > 0 && cnt->next_val > cnt->max_val) {
sys/netgraph7/ng_source.c
855
cnt->next_val = cnt->min_val - 1 +
sys/netgraph7/ng_source.c
856
(cnt->next_val - cnt->max_val);
sys/netgraph7/ng_source.c
857
if (cnt->next_val > cnt->max_val)
sys/netgraph7/ng_source.c
858
cnt->next_val = cnt->max_val;
sys/netgraph7/ng_source.c
859
} else if (increment < 0 && cnt->next_val < cnt->min_val) {
sys/netgraph7/ng_source.c
860
cnt->next_val = cnt->max_val + 1 +
sys/netgraph7/ng_source.c
861
(cnt->next_val - cnt->min_val);
sys/netgraph7/ng_source.c
862
if (cnt->next_val < cnt->min_val)
sys/netgraph7/ng_source.c
863
cnt->next_val = cnt->max_val;
sys/netgraph7/ng_source.c
872
struct ng_source_embed_cnt_info *cnt;
sys/netgraph7/ng_source.c
901
cnt = &sc->embed_counter[i];
sys/netgraph7/ng_source.c
902
if (cnt->flags & NGM_SOURCE_EMBED_ENABLE) {
sys/netgraph7/ng_source.c
903
if ((cnt->flags & NGM_SOURCE_INC_CNT_PER_LIST) == 0 ||
sys/netgraph7/ng_source.c
905
increment = cnt->increment;
sys/netgraph7/ng_source.c
908
ng_source_mod_counter(sc, cnt, m, increment);
sys/netinet/in_pcb.h
318
#define INP_PCBPORTHASH(lport, cnt) (ntohs(lport) % (cnt))
sys/netinet/ip_icmp.c
1027
int opt, cnt;
sys/netinet/ip_icmp.c
1046
for (cnt = optlen; cnt > 0; cnt -= len, cp += len) {
sys/netinet/ip_icmp.c
1053
if (cnt < IPOPT_OLEN + sizeof *cp)
sys/netinet/ip_icmp.c
1057
len > cnt)
sys/netinet/ip_icmp.c
1073
cnt = opts->m_len % 4;
sys/netinet/ip_icmp.c
1074
if (cnt) {
sys/netinet/ip_icmp.c
1075
for (; cnt < 4; cnt++) {
sys/netinet/ip_input.c
1535
int opt, optlen, cnt, off, code, type = ICMP_PARAMPROB;
sys/netinet/ip_input.c
1542
cnt = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip);
sys/netinet/ip_input.c
1543
for (; cnt > 0; cnt -= optlen, cp += optlen) {
sys/netinet/ip_input.c
1550
if (cnt < IPOPT_OLEN + sizeof(*cp)) {
sys/netinet/ip_input.c
1555
if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) {
sys/netinet/ip_output.c
1013
int opt, optlen, cnt;
sys/netinet/ip_output.c
1017
cnt = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip);
sys/netinet/ip_output.c
1018
for (; cnt > 0; cnt -= optlen, cp += optlen) {
sys/netinet/ip_output.c
1029
KASSERT(cnt >= IPOPT_OLEN + sizeof *cp,
sys/netinet/ip_output.c
1032
KASSERT(optlen >= IPOPT_OLEN + sizeof *cp && optlen <= cnt,
sys/netinet/ip_output.c
1036
if (optlen > cnt)
sys/netinet/ip_output.c
1037
optlen = cnt;
sys/netinet/ip_output.c
1324
int cnt, optlen;
sys/netinet/ip_output.c
1350
cnt = m->m_len;
sys/netinet/ip_output.c
1353
bcopy(mtod(m, caddr_t), cp, cnt);
sys/netinet/ip_output.c
1356
for (; cnt > 0; cnt -= optlen, cp += optlen) {
sys/netinet/ip_output.c
1363
if (cnt < IPOPT_OLEN + sizeof *cp)
sys/netinet/ip_output.c
1366
if (optlen < IPOPT_OLEN + sizeof *cp || optlen > cnt)
sys/netinet/ip_output.c
1387
cnt -= sizeof(struct in_addr);
sys/netinet/ip_output.c
1401
cnt - (IPOPT_MINOFF - 1));
sys/netinet/tcp_input.c
2661
tcp_dooptions(struct tcpopt *to, u_char *cp, int cnt, boolean_t is_syn,
sys/netinet/tcp_input.c
2667
for (; cnt > 0; cnt -= optlen, cp += optlen) {
sys/netinet/tcp_input.c
2674
if (cnt < 2)
sys/netinet/tcp_input.c
2677
if (optlen < 2 || optlen > cnt)
sys/netinet/tcp_input.c
2778
int cnt = off + th->th_urp - 1;
sys/netinet/tcp_input.c
2780
while (cnt >= 0) {
sys/netinet/tcp_input.c
2781
if (m->m_len > cnt) {
sys/netinet/tcp_input.c
2782
char *cp = mtod(m, caddr_t) + cnt;
sys/netinet/tcp_input.c
2787
bcopy(cp + 1, cp, m->m_len - cnt - 1);
sys/netinet/tcp_input.c
2793
cnt -= m->m_len;
sys/netproto/802_11/wlan/ieee80211.c
517
ieee80211_get_counter(struct ifnet *ifp, ift_counter cnt)
sys/netproto/802_11/wlan/ieee80211.c
523
rv = if_get_counter_default(ifp, cnt);
sys/netproto/802_11/wlan/ieee80211.c
524
switch (cnt) {
sys/platform/pc64/include/md_var.h
100
void fillw(int /*u_short*/ pat, void *base, size_t cnt);
sys/platform/pc64/isa/clock.c
1031
cnt = 200000;
sys/platform/pc64/isa/clock.c
1033
cnt = 500000;
sys/platform/pc64/isa/clock.c
1035
cnt = 1000000;
sys/platform/pc64/isa/clock.c
1038
tsc_frequency = do_calibrate_cputimer(cnt, cputime_latency_tsc);
sys/platform/pc64/isa/clock.c
773
int cnt = 0;
sys/platform/pc64/isa/clock.c
776
if (cnt > MAX_MEASURE_RETRIES/2)
sys/platform/pc64/isa/clock.c
781
cnt++;
sys/platform/pc64/isa/clock.c
785
} while (timer_latency > 0 && cnt < MAX_MEASURE_RETRIES &&
sys/platform/pc64/isa/clock.c
788
*retries = cnt - 1;
sys/platform/pc64/isa/clock.c
981
u_int cnt;
sys/sys/buf2.h
364
int *rabsize, int cnt, struct buf **bpp)
sys/sys/buf2.h
368
rabsize, cnt, bpp));
sys/sys/gtaskqueue.h
117
#define TASKQGROUP_DEFINE(name, cnt, stride) \
sys/sys/gtaskqueue.h
124
qgroup_##name = taskqgroup_create(#name, (cnt), (stride)); \
sys/sys/gtaskqueue.h
96
struct taskqgroup *taskqgroup_create(const char *name, int cnt, int stride);
sys/vfs/dirfs/dirfs_vfsops.c
181
int cnt;
sys/vfs/dirfs/dirfs_vfsops.c
185
cnt = 0;
sys/vfs/dirfs/dirfs_vnops.c
1226
off_t cnt;
sys/vfs/dirfs/dirfs_vnops.c
1239
cnt = 0;
sys/vfs/dirfs/dirfs_vnops.c
1285
cnt++;
sys/vfs/ext2fs/ext2_htree.c
176
ext2_htree_set_count(struct ext2fs_htree_entry *ep, uint16_t cnt)
sys/vfs/ext2fs/ext2_htree.c
178
((struct ext2fs_htree_count *)(ep))->h_entries_num = htole16(cnt);
sys/vfs/ext2fs/ext2_htree.c
270
uint32_t levels, cnt;
sys/vfs/ext2fs/ext2_htree.c
313
cnt = ext2_htree_get_count(entp);
sys/vfs/ext2fs/ext2_htree.c
314
if (cnt == 0 || cnt > ext2_htree_get_limit(entp))
sys/vfs/ext2fs/ext2_htree.c
318
end = entp + cnt - 1;
sys/vfs/ext2fs/ext2_htree.c
89
uint16_t cnt);
sys/vfs/ext2fs/ext2_subr.c
114
ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, e4fs_daddr_t bno, int cnt)
sys/vfs/ext2fs/ext2_subr.c
200
sump[i] += cnt;
sys/vfs/ext2fs/ext2_subr.c
202
sump[back] -= cnt;
sys/vfs/ext2fs/ext2_subr.c
204
sump[forw] -= cnt;
sys/vfs/hammer/hammer_volume.c
298
int i, len, cnt = 0;
sys/vfs/hammer/hammer_volume.c
306
if (cnt >= ioc->nvols)
sys/vfs/hammer/hammer_volume.c
315
error = copyout(&vol_no, &ioc->vols[cnt].vol_no,
sys/vfs/hammer/hammer_volume.c
316
sizeof(ioc->vols[cnt].vol_no));
sys/vfs/hammer/hammer_volume.c
319
&ioc->vols[cnt].device_name[0], len);
sys/vfs/hammer/hammer_volume.c
323
cnt++;
sys/vfs/hammer/hammer_volume.c
325
ioc->nvols = cnt;
sys/vfs/hammer2/hammer2_ioctl.c
1424
int i, error = 0, cnt = 0;
sys/vfs/hammer2/hammer2_ioctl.c
1433
if (cnt >= vollist->nvolumes)
sys/vfs/hammer2/hammer2_ioctl.c
1442
error = copyout(&entry, &vollist->volumes[cnt], sizeof(entry));
sys/vfs/hammer2/hammer2_ioctl.c
1445
cnt++;
sys/vfs/hammer2/hammer2_ioctl.c
1447
vollist->nvolumes = cnt;
sys/vfs/hpfs/hpfs.h
36
u_int32_t cnt;
sys/vfs/msdosfs/direntry.h
150
int unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt,
sys/vfs/msdosfs/msdosfs_conv.c
527
unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt,
sys/vfs/msdosfs/msdosfs_conv.c
542
unlen = mbsadjpos((const char **)&un, unlen, (cnt - 1) * WIN_CHARS, 2,
sys/vfs/msdosfs/msdosfs_conv.c
549
wep->weCnt = cnt;
sys/vfs/msdosfs/msdosfs_lookup.c
655
int cnt = 1;
sys/vfs/msdosfs/msdosfs_lookup.c
685
cnt++, chksum, pmp))
sys/vfs/nfs/nfs.h
671
int nfs_commitrpc_uio (struct vnode *vp, u_quad_t offset, int cnt,
sys/vfs/nfs/nfs_serv.c
1003
int i, cnt;
sys/vfs/nfs/nfs_serv.c
1048
cnt = i = 0;
sys/vfs/nfs/nfs_serv.c
1075
cnt++;
sys/vfs/nfs/nfs_serv.c
1123
ivp = kmalloc(cnt * sizeof(struct iovec), M_TEMP, M_WAITOK);
sys/vfs/nfs/nfs_serv.c
1125
uiop->uio_iovcnt = cnt;
sys/vfs/nfs/nfs_serv.c
2944
int siz, cnt, fullsiz, eofflag, rdonly, ncookies;
sys/vfs/nfs/nfs_serv.c
2977
cnt = fxdr_unsigned(int, *tl);
sys/vfs/nfs/nfs_serv.c
2978
siz = roundup2(cnt, DIRBLKSIZ);
sys/vfs/nfs/nfs_serv.c
2980
if ((unsigned)cnt > xfer)
sys/vfs/nfs/nfs_serv.c
2981
cnt = xfer;
sys/vfs/nfs/nfs_serv.c
3148
if (len > cnt) {
sys/vfs/nfs/nfs_serv.c
3253
int siz, cnt, fullsiz, eofflag, rdonly, dirlen, ncookies;
sys/vfs/nfs/nfs_serv.c
3278
cnt = fxdr_unsigned(int, *tl);
sys/vfs/nfs/nfs_serv.c
3282
if ((unsigned)cnt > xfer)
sys/vfs/nfs/nfs_serv.c
3283
cnt = xfer;
sys/vfs/nfs/nfs_serv.c
3436
NEGKEEPOUT(nfsm_reply(&info, nfsd, slp, cnt, &error));
sys/vfs/nfs/nfs_serv.c
3480
if (len > cnt || dirlen > fullsiz) {
sys/vfs/nfs/nfs_serv.c
3591
int error = 0, rdonly, for_ret = 1, aft_ret = 1, cnt;
sys/vfs/nfs/nfs_serv.c
3611
cnt = fxdr_unsigned(int, *tl);
sys/vfs/nfs/nfs_serv.c
3629
if (cnt == 0 || cnt > MAX_COMMIT_COUNT) {
sys/vfs/nfs/nfs_serv.c
3652
cnt += off & iomask;
sys/vfs/nfs/nfs_serv.c
3656
cnt += off & PAGE_MASK;
sys/vfs/nfs/nfs_serv.c
3664
(cnt + PAGE_MASK) / PAGE_SIZE, OBJPC_SYNC);
sys/vfs/nfs/nfs_serv.c
3668
while (error == 0 || cnt > 0) {
sys/vfs/nfs/nfs_serv.c
3696
if (cnt < iosize)
sys/vfs/nfs/nfs_serv.c
3698
cnt -= iosize;
sys/vfs/nfs/nfs_serv.c
805
int error = 0, rdonly, cnt, len, left, siz, tlen, getret;
sys/vfs/nfs/nfs_serv.c
881
cnt = 0;
sys/vfs/nfs/nfs_serv.c
883
cnt = vap->va_size - off;
sys/vfs/nfs/nfs_serv.c
885
cnt = reqlen;
sys/vfs/nfs/nfs_serv.c
889
3 * NFSX_UNSIGNED + nfsm_rndup(cnt),
sys/vfs/nfs/nfs_serv.c
901
len = left = nfsm_rndup(cnt);
sys/vfs/nfs/nfs_serv.c
902
if (cnt > 0) {
sys/vfs/nfs/nfs_serv.c
974
cnt = cnt < tlen ? cnt : tlen;
sys/vfs/nfs/nfs_serv.c
975
tlen = nfsm_rndup(cnt);
sys/vfs/nfs/nfs_serv.c
976
if (len != tlen || tlen != cnt)
sys/vfs/nfs/nfs_serv.c
977
nfsm_adj(info.mb, len - tlen, tlen - cnt);
sys/vfs/nfs/nfs_serv.c
979
*tl++ = txdr_unsigned(cnt);
sys/vfs/nfs/nfs_serv.c
980
if (cnt < reqlen)
sys/vfs/nfs/nfs_serv.c
985
*tl = txdr_unsigned(cnt);
sys/vfs/nfs/nfs_vnops.c
3139
nfs_commitrpc_uio(struct vnode *vp, u_quad_t offset, int cnt, struct thread *td)
sys/vfs/nfs/nfs_vnops.c
3157
*tl = txdr_unsigned(cnt);
sys/vfs/ntfs/ntfs_subr.c
1374
int cnt;
sys/vfs/ntfs/ntfs_subr.c
1394
cnt = 0;
sys/vfs/ntfs/ntfs_subr.c
1395
for (; left && (cnt < vap->va_vruncnt); cnt++) {
sys/vfs/ntfs/ntfs_subr.c
1396
ccn = vap->va_vruncn[cnt];
sys/vfs/ntfs/ntfs_subr.c
1397
ccl = vap->va_vruncl[cnt];
sys/vfs/ntfs/ntfs_subr.c
1406
cnt++;
sys/vfs/ntfs/ntfs_subr.c
1483
int cnt;
sys/vfs/ntfs/ntfs_subr.c
1496
cnt = 0;
sys/vfs/ntfs/ntfs_subr.c
1497
while (left && (cnt < vap->va_vruncnt)) {
sys/vfs/ntfs/ntfs_subr.c
1498
ccn = vap->va_vruncn[cnt];
sys/vfs/ntfs/ntfs_subr.c
1499
ccl = vap->va_vruncl[cnt];
sys/vfs/ntfs/ntfs_subr.c
1508
cnt++;
sys/vfs/ntfs/ntfs_subr.c
1585
cnt++;
sys/vfs/ntfs/ntfs_subr.c
588
u_long cnt;
sys/vfs/ntfs/ntfs_subr.c
593
cnt = 0;
sys/vfs/ntfs/ntfs_subr.c
597
cnt++;
sys/vfs/ntfs/ntfs_subr.c
599
cn = kmalloc(cnt * sizeof(cn_t), M_NTFSRUN, M_WAITOK);
sys/vfs/ntfs/ntfs_subr.c
600
cl = kmalloc(cnt * sizeof(cn_t), M_NTFSRUN, M_WAITOK);
sys/vfs/ntfs/ntfs_subr.c
603
cnt = 0;
sys/vfs/ntfs/ntfs_subr.c
608
cl[cnt] = 0;
sys/vfs/ntfs/ntfs_subr.c
611
cl[cnt] += (u_int32_t) run[off++] << (i << 3);
sys/vfs/ntfs/ntfs_subr.c
624
prev = cn[cnt] = prev + tmp;
sys/vfs/ntfs/ntfs_subr.c
626
cn[cnt] = tmp;
sys/vfs/ntfs/ntfs_subr.c
628
cnt++;
sys/vfs/ntfs/ntfs_subr.c
632
*rcntp = cnt;
sys/vfs/ntfs/ntfs_subr.h
57
u_long cnt;
sys/vfs/ntfs/ntfs_subr.h
67
#define va_vruncnt va_d.vrun.cnt
sys/vfs/smbfs/smbfs_smb.c
1058
int error, svtz, cnt, fxsz, nmlen, recsz;
sys/vfs/smbfs/smbfs_smb.c
1122
cnt = next - nmlen - fxsz;
sys/vfs/smbfs/smbfs_smb.c
1123
if (cnt > 0)
sys/vfs/smbfs/smbfs_smb.c
1124
md_get_mem(mbp, NULL, cnt, MB_MSYSTEM);
sys/vfs/smbfs/smbfs_smb.c
1125
else if (cnt < 0) {
sys/vfs/tmpfs/tmpfs_vnops.c
1652
off_t cnt = 0;
sys/vfs/tmpfs/tmpfs_vnops.c
1670
cnt++;
sys/vfs/tmpfs/tmpfs_vnops.c
1680
cnt++;
sys/vfs/tmpfs/tmpfs_vnops.c
1684
error = tmpfs_dir_getdents(node, uio, &cnt);
sys/vfs/tmpfs/tmpfs_vnops.c
1702
*ncookies = cnt;
sys/vfs/tmpfs/tmpfs_vnops.c
1703
*cookies = kmalloc(cnt * sizeof(off_t), M_TEMP, M_WAITOK);
sys/vfs/tmpfs/tmpfs_vnops.c
1705
for (i = 0; i < cnt; i++) {
sys/vfs/ufs/ffs_alloc.c
1884
ffs_clusteracct(struct fs *fs, struct cg *cgp, ufs_daddr_t blkno, int cnt)
sys/vfs/ufs/ffs_alloc.c
1898
if (cnt > 0)
sys/vfs/ufs/ffs_alloc.c
1951
sump[i] += cnt;
sys/vfs/ufs/ffs_alloc.c
1953
sump[back] -= cnt;
sys/vfs/ufs/ffs_alloc.c
1955
sump[forw] -= cnt;
sys/vfs/ufs/ffs_softdep.c
4788
int error, cnt;
sys/vfs/ufs/ffs_softdep.c
4792
for (cnt = 0; cnt < pagedep_hash; cnt++) {
sys/vfs/ufs/ffs_softdep.c
4846
int error, cnt;
sys/vfs/ufs/ffs_softdep.c
4856
for (cnt = 0; cnt < inodedep_hash; cnt++) {
sys/vfs/ufs/ffs_subr.c
163
ffs_fragacct(struct fs *fs, int fragmap, int32_t fraglist[], int cnt)
sys/vfs/ufs/ffs_subr.c
204
fraglist[siz] += cnt;
usr.bin/column/column.c
145
int chcnt, col, cnt, endcol, numcols;
usr.bin/column/column.c
160
while ((cnt = roundup(chcnt + 1, TAB)) <= endcol) {
usr.bin/column/column.c
162
chcnt = cnt;
usr.bin/column/column.c
174
int base, chcnt, cnt, col, endcol, numcols, numrows, row;
usr.bin/column/column.c
188
while ((cnt = roundup(chcnt + 1, TAB)) <= endcol) {
usr.bin/column/column.c
190
chcnt = cnt;
usr.bin/column/column.c
201
int cnt;
usr.bin/column/column.c
204
for (cnt = entries, lp = list; cnt--; ++lp)
usr.bin/column/column.c
218
int coloff, cnt;
usr.bin/column/column.c
231
for (cnt = 0, lp = list; cnt < entries; ++cnt, ++lp, ++t) {
usr.bin/column/column.c
256
for (cnt = 0, t = tbl; cnt < entries; ++cnt, ++t) {
usr.bin/ctags/print.c
49
int cnt;
usr.bin/ctags/print.c
62
else for (cnt = 0, cp = lbuf; GETC(!=, EOF) && cnt < ENDLINE; ++cnt) {
usr.bin/ctags/print.c
64
if (cnt > ENDLINE - 2)
usr.bin/ctags/print.c
67
++cnt;
usr.bin/ctags/print.c
70
if (cnt > ENDLINE - 2)
usr.bin/ctags/print.c
73
++cnt;
usr.bin/diff/diffreg.c
1234
size_t cnt;
usr.bin/diff/diffreg.c
1240
cnt = fread(buf, 1, sizeof(buf), f);
usr.bin/diff/diffreg.c
1241
return (memchr(buf, '\0', cnt) == NULL);
usr.bin/find/function.c
540
int cnt;
usr.bin/find/function.c
569
for (cnt = 0; plan->e_argv[cnt]; ++cnt)
usr.bin/find/function.c
570
if (plan->e_len[cnt])
usr.bin/find/function.c
571
brace_subst(plan->e_orig[cnt],
usr.bin/find/function.c
572
&plan->e_argv[cnt], file,
usr.bin/find/function.c
573
plan->e_len[cnt]);
usr.bin/find/function.c
620
int cnt, i;
usr.bin/find/function.c
651
cnt = ap - *argvp + 1;
usr.bin/find/function.c
653
new->e_ppos = new->e_pbnum = cnt - 2;
usr.bin/find/function.c
674
cnt += new->e_pnummax + 1;
usr.bin/find/function.c
678
if ((new->e_argv = malloc(cnt * sizeof(char *))) == NULL)
usr.bin/find/function.c
680
if ((new->e_orig = malloc(cnt * sizeof(char *))) == NULL)
usr.bin/find/function.c
682
if ((new->e_len = malloc(cnt * sizeof(int))) == NULL)
usr.bin/find/function.c
685
for (argv = *argvp, cnt = 0; argv < ap; ++argv, ++cnt) {
usr.bin/find/function.c
686
new->e_orig[cnt] = *argv;
usr.bin/find/function.c
692
if ((new->e_argv[cnt] =
usr.bin/find/function.c
695
new->e_len[cnt] = MAXPATHLEN;
usr.bin/find/function.c
699
new->e_argv[cnt] = *argv;
usr.bin/find/function.c
700
new->e_len[cnt] = 0;
usr.bin/find/function.c
705
cnt--;
usr.bin/find/function.c
707
new->e_argv[cnt] = NULL;
usr.bin/find/function.c
708
new->e_len[cnt] = 0;
usr.bin/find/function.c
709
cnt++;
usr.bin/find/function.c
714
new->e_argv[cnt] = new->e_orig[cnt] = NULL;
usr.bin/finger/lprint.c
290
int ch, cnt;
usr.bin/finger/lprint.c
308
for (p = tbuf, cnt = nr; cnt--; ++p)
usr.bin/finger/lprint.c
311
if (cnt <= 1) {
usr.bin/finger/lprint.c
314
for (p = tbuf, cnt = nr; cnt--; ++p)
usr.bin/finger/net.c
102
int cnt, line_len, s;
usr.bin/finger/net.c
167
cnt = 0;
usr.bin/finger/net.c
170
if (++cnt > OUTPUT_MAX) {
usr.bin/finger/net.c
172
cnt - 1);
usr.bin/fstat/fstat.c
159
int cnt;
usr.bin/fstat/fstat.c
242
if ((p = kvm_getprocs(kd, what, arg, &cnt)) == NULL)
usr.bin/fstat/fstat.c
260
for (plast = &p[cnt]; p < plast; ++p) {
usr.bin/gcore/gcore.c
152
cnt = read(efd, &exec, sizeof(Elf_Ehdr));
usr.bin/gcore/gcore.c
153
if (cnt != sizeof(Elf_Ehdr))
usr.bin/gcore/gcore.c
155
binfile, cnt > 0 ? strerror(EIO) : strerror(errno));
usr.bin/gcore/gcore.c
80
int ch, cnt, efd, fd, sflag;
usr.bin/head/head.c
122
head(FILE *fp, size_t cnt)
usr.bin/head/head.c
127
while (cnt && (cp = fgetln(fp, &readlen)) != NULL) {
usr.bin/head/head.c
131
cnt--;
usr.bin/head/head.c
136
head_bytes(FILE *fp, size_t cnt)
usr.bin/head/head.c
141
while (cnt) {
usr.bin/head/head.c
142
if (cnt < sizeof(buf))
usr.bin/head/head.c
143
readlen = cnt;
usr.bin/head/head.c
151
cnt -= readlen;
usr.bin/hexdump/display.c
155
int cnt;
usr.bin/hexdump/display.c
166
for (cnt = fu->reps; cnt; --cnt)
usr.bin/hexdump/display.c
172
if (cnt == 1 && pr->nospace) {
usr.bin/hexdump/display.c
177
if (cnt == 1 && pr->nospace)
usr.bin/hexdump/display.c
333
int cnt;
usr.bin/hexdump/display.c
351
for (cnt = 0; cnt < skip; ++cnt)
usr.bin/hexdump/display.c
354
address += cnt;
usr.bin/hexdump/display.c
355
skip -= cnt;
usr.bin/id/id.c
210
int cnt, id, eid, lastid, ngroups;
usr.bin/id/id.c
233
for (fmt = " groups=%u", lastid = -1, cnt = 0; cnt < ngroups;
usr.bin/id/id.c
235
id = groups[cnt++];
usr.bin/id/id.c
251
int cnt, ngroups;
usr.bin/id/id.c
262
for (lastgid = -1, cnt = 0; cnt < ngroups; ++cnt) {
usr.bin/id/id.c
263
if (lastgid == (gid = groups[cnt]))
usr.bin/id/id.c
278
int cnt, id, lastid, ngroups;
usr.bin/id/id.c
290
for (lastid = -1, cnt = 0; cnt < ngroups; ++cnt) {
usr.bin/id/id.c
291
if (lastid == (id = groups[cnt]))
usr.bin/join/join.c
268
int cnt;
usr.bin/join/join.c
283
cnt = F->setalloc;
usr.bin/join/join.c
288
memset(F->set + cnt, 0, 50 * sizeof(LINE));
usr.bin/join/join.c
444
u_long cnt;
usr.bin/join/join.c
452
for (cnt = 0; cnt < olistcnt; ++cnt) {
usr.bin/join/join.c
453
if (olist[cnt].filenum == (unsigned)F->number)
usr.bin/join/join.c
454
outfield(lp, olist[cnt].fieldno, 0);
usr.bin/join/join.c
455
else if (olist[cnt].filenum == 0)
usr.bin/join/join.c
461
for (cnt = 0; cnt < lp->fieldcnt; ++cnt)
usr.bin/join/join.c
462
outfield(lp, cnt, 0);
usr.bin/join/join.c
472
u_long cnt;
usr.bin/join/join.c
476
for (cnt = 0; cnt < olistcnt; ++cnt)
usr.bin/join/join.c
477
if (olist[cnt].filenum == 0) {
usr.bin/join/join.c
482
} else if (olist[cnt].filenum == 1)
usr.bin/join/join.c
483
outfield(lp1, olist[cnt].fieldno, 0);
usr.bin/join/join.c
485
outfield(lp2, olist[cnt].fieldno, 0);
usr.bin/join/join.c
492
for (cnt = 0; cnt < lp1->fieldcnt; ++cnt)
usr.bin/join/join.c
493
if (F1->joinf != cnt)
usr.bin/join/join.c
494
outfield(lp1, cnt, 0);
usr.bin/join/join.c
495
for (cnt = 0; cnt < lp2->fieldcnt; ++cnt)
usr.bin/join/join.c
496
if (F2->joinf != cnt)
usr.bin/join/join.c
497
outfield(lp2, cnt, 0);
usr.bin/killall/killall.c
91
int cnt;
usr.bin/killall/killall.c
94
for (cnt = NSIG, p = sys_signame + 1; --cnt; ++p) {
usr.bin/killall/killall.c
96
if (offset >= 75 && cnt > 1) {
usr.bin/localedef/collate.c
1094
#define RB_COUNT(x, name, head, cnt) do { \
usr.bin/localedef/collate.c
1095
(cnt) = 0; \
usr.bin/localedef/collate.c
1097
(cnt)++; \
usr.bin/localedef/collate.c
1101
#define RB_NUMNODES(type, name, head, cnt) do { \
usr.bin/localedef/collate.c
1103
cnt = 0; \
usr.bin/localedef/collate.c
1105
cnt++; \
usr.bin/localedef/wide.c
269
int cnt;
usr.bin/localedef/wide.c
278
cnt = 2;
usr.bin/localedef/wide.c
281
cnt = 3;
usr.bin/localedef/wide.c
284
cnt = 4;
usr.bin/localedef/wide.c
290
for (i = cnt - 1; i; i--) {
usr.bin/localedef/wide.c
295
s[cnt] = 0;
usr.bin/localedef/wide.c
296
return (cnt);
usr.bin/login/login.c
154
int ask, ch, cnt, quietlog, rootlogin, rval;
usr.bin/login/login.c
227
for (cnt = getdtablesize(); cnt > 2; cnt--)
usr.bin/login/login.c
228
close(cnt);
usr.bin/login/login.c
261
for (cnt = 0;; ask = 1) {
usr.bin/login/login.c
354
if (++cnt > backoff) {
usr.bin/login/login.c
355
if (cnt >= retries) {
usr.bin/login/login.c
359
sleep((u_int)((cnt - backoff) * 5));
usr.bin/paste/paste.c
113
int cnt;
usr.bin/paste/paste.c
121
int cnt;
usr.bin/paste/paste.c
128
for (cnt = 0, head = tmp = NULL; (p = *argv); ++argv, ++cnt) {
usr.bin/paste/paste.c
136
lp->cnt = cnt;
usr.bin/paste/paste.c
146
for (opencnt = cnt; opencnt;) {
usr.bin/paste/paste.c
149
if (output && lp->cnt &&
usr.bin/paste/paste.c
150
(ch = delim[(lp->cnt - 1) % delimcnt]))
usr.bin/paste/paste.c
158
if (output && lp->cnt &&
usr.bin/paste/paste.c
159
(ch = delim[(lp->cnt - 1) % delimcnt]))
usr.bin/paste/paste.c
169
for (cnt = 0; cnt < lp->cnt; ++cnt)
usr.bin/paste/paste.c
170
if ((ch = delim[cnt % delimcnt]))
usr.bin/paste/paste.c
172
} else if ((ch = delim[(lp->cnt - 1) % delimcnt]))
usr.bin/paste/paste.c
191
int cnt, failed, needdelim;
usr.bin/paste/paste.c
204
cnt = needdelim = 0;
usr.bin/paste/paste.c
208
if (delim[cnt] != '\0')
usr.bin/paste/paste.c
209
putwchar(delim[cnt]);
usr.bin/paste/paste.c
210
if (++cnt == delimcnt)
usr.bin/paste/paste.c
211
cnt = 0;
usr.bin/paste/paste.c
230
int cnt;
usr.bin/paste/paste.c
233
for (p = arg, cnt = 0; (ch = *p++); ++arg, ++cnt)
usr.bin/paste/paste.c
251
if (!cnt)
usr.bin/paste/paste.c
253
return(cnt);
usr.bin/pr/pr.c
1086
otln(char *buf, int cnt, int *svips, int *svops, int mor)
usr.bin/pr/pr.c
1098
endbuf = buf + cnt;
usr.bin/pr/pr.c
1196
if (cnt && (fwrite(buf, sizeof(char), cnt, stdout) <= 0)) {
usr.bin/pr/pr.c
1226
int cnt;
usr.bin/pr/pr.c
1229
cnt = lncnt;
usr.bin/pr/pr.c
1231
if ((c == '\n') && (--cnt == 0))
usr.bin/pr/pr.c
1447
prtail(int cnt, int incomp)
usr.bin/pr/pr.c
1474
cnt *= 2;
usr.bin/pr/pr.c
1480
++cnt;
usr.bin/pr/pr.c
1493
cnt += TAILLEN;
usr.bin/pr/pr.c
1494
while (--cnt >= 0) {
usr.bin/pr/pr.c
160
int cnt = -1;
usr.bin/pr/pr.c
244
if ((cnt = inln(inf,lbuf,LBUF,&cps,0,&mor)) < 0)
usr.bin/pr/pr.c
256
if (otln(obuf,cnt+off, &ips, &ops, mor))
usr.bin/pr/pr.c
258
} else if (otln(lbuf, cnt, &ips, &ops, mor))
usr.bin/pr/pr.c
287
if (cnt < 0)
usr.bin/pr/pr.c
309
int cnt = -1;
usr.bin/pr/pr.c
464
cnt = inln(inf,ptbf,colwd,&cps,1,&mor);
usr.bin/pr/pr.c
465
vc[cvc++].cnt = cnt;
usr.bin/pr/pr.c
466
if (cnt < 0)
usr.bin/pr/pr.c
468
ptbf += cnt;
usr.bin/pr/pr.c
479
else if ((pln = col-cnt) > 0) {
usr.bin/pr/pr.c
492
if (cnt < 0)
usr.bin/pr/pr.c
513
if ((cnt < 0) && cvc && ((mvc-cvc) >= clcnt)){
usr.bin/pr/pr.c
538
cnt = vc[tvc].cnt;
usr.bin/pr/pr.c
540
cnt += cw;
usr.bin/pr/pr.c
545
cnt = vc[tvc].cnt + 1;
usr.bin/pr/pr.c
547
cnt += cw;
usr.bin/pr/pr.c
549
cnt = fullcol;
usr.bin/pr/pr.c
550
if (otln(vc[tvc].pt, cnt, &ips,
usr.bin/pr/pr.c
608
if (cnt < 0)
usr.bin/pr/pr.c
628
int cnt = -1;
usr.bin/pr/pr.c
703
if ((cnt = inln(inf,ptbf,colwd,&cps,1,
usr.bin/pr/pr.c
706
ptbf += cnt;
usr.bin/pr/pr.c
720
else if ((pln = col - cnt) > 0) {
usr.bin/pr/pr.c
750
if (cnt < 0)
usr.bin/pr/pr.c
772
int cnt;
usr.bin/pr/pr.c
896
cnt = 0;
usr.bin/pr/pr.c
897
} else if ((cnt = inln(fbuf[j], ptbf, colwd,
usr.bin/pr/pr.c
906
cnt = 0;
usr.bin/pr/pr.c
911
ptbf += cnt;
usr.bin/pr/pr.c
927
} else if ((pln = col - cnt) > 0) {
usr.bin/pr/pr.h
74
int cnt; /* char count */
usr.bin/rpcgen/rpc_util.c
367
int cnt;
usr.bin/rpcgen/rpc_util.c
373
cnt = 8 - (i % TABSIZE);
usr.bin/rpcgen/rpc_util.c
376
cnt = 1;
usr.bin/rpcgen/rpc_util.c
378
while (cnt--)
usr.bin/rpcgen/rpc_util.c
388
int cnt;
usr.bin/rpcgen/rpc_util.c
394
cnt = 8 - (i % TABSIZE);
usr.bin/rpcgen/rpc_util.c
396
cnt = 1;
usr.bin/rpcgen/rpc_util.c
397
while (cnt--) {
usr.bin/rpcinfo/rpcinfo.c
1034
cnt = 0;
usr.bin/rpcinfo/rpcinfo.c
1037
cnt += pa->success;
usr.bin/rpcinfo/rpcinfo.c
1038
sprintf(fieldbuf, "%d/", cnt);
usr.bin/rpcinfo/rpcinfo.c
1041
cnt = 0;
usr.bin/rpcinfo/rpcinfo.c
1044
cnt += pr->success;
usr.bin/rpcinfo/rpcinfo.c
1045
sprintf(fieldbuf, "%d/", cnt);
usr.bin/rpcinfo/rpcinfo.c
1056
spaces(cnt = ((TABSTOP * (1 + flen / TABSTOP))
usr.bin/rpcinfo/rpcinfo.c
1058
lp += (flen + cnt);
usr.bin/rpcinfo/rpcinfo.c
1087
cnt = 0;
usr.bin/rpcinfo/rpcinfo.c
1090
cnt += pa->success;
usr.bin/rpcinfo/rpcinfo.c
1091
sprintf(fieldbuf, "%d/", cnt);
usr.bin/rpcinfo/rpcinfo.c
1094
cnt = 0;
usr.bin/rpcinfo/rpcinfo.c
1097
cnt += pr->success;
usr.bin/rpcinfo/rpcinfo.c
1098
sprintf(fieldbuf, "%d/", cnt);
usr.bin/rpcinfo/rpcinfo.c
1109
spaces(cnt = ((TABSTOP * (1 + flen / TABSTOP))
usr.bin/rpcinfo/rpcinfo.c
1111
lp += (flen + cnt);
usr.bin/rpcinfo/rpcinfo.c
1143
cnt = 0;
usr.bin/rpcinfo/rpcinfo.c
1146
cnt += pa->success;
usr.bin/rpcinfo/rpcinfo.c
1147
sprintf(fieldbuf, "%d/", cnt);
usr.bin/rpcinfo/rpcinfo.c
1150
cnt = 0;
usr.bin/rpcinfo/rpcinfo.c
1153
cnt += pr->success;
usr.bin/rpcinfo/rpcinfo.c
1154
sprintf(fieldbuf, "%d/", cnt);
usr.bin/rpcinfo/rpcinfo.c
1174
spaces(cnt = ((TABSTOP * (1 + flen / TABSTOP))
usr.bin/rpcinfo/rpcinfo.c
1176
lp += (flen + cnt);
usr.bin/rpcinfo/rpcinfo.c
982
int cnt, flen;
usr.bin/strfile/strfile.c
138
uint32_t cnt;
usr.bin/strfile/strfile.c
237
for (p = Seekpts, cnt = Num_pts; cnt--; ++p)
usr.bin/strfile/strfile.c
427
uint32_t cnt, i;
usr.bin/strfile/strfile.c
432
cnt = Tbl.str_numstr;
usr.bin/strfile/strfile.c
438
for (sp = Seekpts; cnt > 0; cnt--, sp++) {
usr.bin/strfile/strfile.c
439
i = arc4random_uniform(cnt);
usr.bin/tail/read.c
138
int blen, cnt, recno, wrap;
usr.bin/tail/read.c
143
blen = cnt = recno = wrap = 0;
usr.bin/tail/read.c
147
if (++cnt > blen) {
usr.bin/tail/read.c
151
p = sp + cnt - 1;
usr.bin/tail/read.c
155
if (lines[recno].blen < cnt) {
usr.bin/tail/read.c
156
lines[recno].blen = cnt + 256;
usr.bin/tail/read.c
162
bcopy(sp, lines[recno].l, cnt);
usr.bin/tail/read.c
163
lines[recno].len = cnt;
usr.bin/tail/read.c
164
cnt = 0;
usr.bin/tail/read.c
177
if (cnt) {
usr.bin/tail/read.c
180
lines[recno].len = cnt;
usr.bin/tail/read.c
188
for (cnt = recno - 1; cnt >= 0; --cnt)
usr.bin/tail/read.c
189
WR(lines[cnt].l, lines[cnt].len);
usr.bin/tail/read.c
191
for (cnt = off - 1; cnt >= recno; --cnt)
usr.bin/tail/read.c
192
WR(lines[cnt].l, lines[cnt].len);
usr.bin/tail/read.c
195
for (cnt = recno; cnt < off; ++cnt)
usr.bin/tail/read.c
196
WR(lines[cnt].l, lines[cnt].len);
usr.bin/tail/read.c
197
for (cnt = 0; cnt < recno; ++cnt)
usr.bin/tail/read.c
198
WR(lines[cnt].l, lines[cnt].len);
usr.bin/tail/read.c
201
for (cnt = 0; cnt < off; cnt++)
usr.bin/tail/read.c
202
free(lines[cnt].l);
usr.bin/telnet/commands.c
2524
command(int top, const char *tbuf, int cnt)
usr.bin/telnet/commands.c
2541
while (cnt > 0 && (*cp++ = *tbuf++) != '\n')
usr.bin/telnet/commands.c
2542
cnt--;
usr.bin/tip/cmds.c
156
int cnt, eof, v;
usr.bin/tip/cmds.c
168
if ((cnt = number(value(FRAMESIZE))) != BUFSIZ)
usr.bin/tip/cmds.c
169
if (setvbuf(ff, NULL, _IOFBF, cnt) != 0) {
usr.bin/tip/cmds.c
241
int cnt, eof, v;
usr.bin/tip/cmds.c
253
if ((cnt = number(value(FRAMESIZE))) != BUFSIZ)
usr.bin/tip/cmds.c
254
if (setvbuf(ff, NULL, _IOFBF, cnt) != 0) {
usr.bin/tip/cmds.c
71
int cnt;
usr.bin/tip/cmds.c
74
for (cnt = 0; cnt < NCCS; cnt++)
usr.bin/tip/cmds.c
75
ttermios.c_cc [cnt] = otermios.c_cc [cnt];
usr.bin/tip/tipout.c
116
int cnt;
usr.bin/tip/tipout.c
128
cnt = read(FD, buf, BUFSIZ);
usr.bin/tip/tipout.c
129
if (cnt <= 0) {
usr.bin/tip/tipout.c
131
if (cnt < 0 && errno == EIO) {
usr.bin/tip/tipout.c
135
} else if (cnt == 0 && errno == ENOENT) {
usr.bin/tip/tipout.c
141
} else if (cnt < 0) {
usr.bin/tip/tipout.c
152
for (cp = buf; cp < buf + cnt; cp++)
usr.bin/tip/tipout.c
154
if (write(1, buf, cnt) < 0)
usr.bin/tip/tipout.c
158
fwrite(buf, 1, cnt, fscript);
usr.bin/tip/tipout.c
161
for (cp = buf; cp < buf + cnt; cp++)
usr.bin/top/commands.c
206
register int cnt = 0;
usr.bin/top/commands.c
226
while (cnt < errcnt)
usr.bin/top/commands.c
229
errp = &(errs[cnt++]);
usr.bin/top/commands.c
338
register int cnt = 0;
usr.bin/top/commands.c
342
while (cnt++ < errcnt)
usr.bin/top/display.c
1887
register char cnt = 0;
usr.bin/top/display.c
1912
if (cnt <= 0)
usr.bin/top/display.c
1923
while(cnt > 0 && ptr[-1] == ' ')
usr.bin/top/display.c
1927
cnt--;
usr.bin/top/display.c
1929
while(cnt > 0 && ptr[-1] != ' ')
usr.bin/top/display.c
1933
cnt--;
usr.bin/top/display.c
1940
if (cnt <= 0)
usr.bin/top/display.c
1949
cnt--;
usr.bin/top/display.c
1953
else if (cnt == size || (numeric && !isdigit((int)ch)) ||
usr.bin/top/display.c
1964
cnt++;
usr.bin/top/display.c
197
register int cnt = 0;
usr.bin/top/display.c
1972
message_length += cnt;
usr.bin/top/display.c
1976
return(cnt == 0 ? -1 : numeric ? atoi(buffer) : cnt);
usr.bin/top/display.c
203
cnt++;
usr.bin/top/display.c
206
return(cnt);
usr.bin/top/display.c
237
int cnt = 0;
usr.bin/top/display.c
247
cnt = CURSOR_COST;
usr.bin/top/display.c
251
while (cnt > 0 && curr_y < y)
usr.bin/top/display.c
258
cnt -= 5;
usr.bin/top/display.c
264
cnt--;
usr.bin/top/display.c
270
while (cnt > 0 && curr_x < x)
usr.bin/top/display.c
277
cnt -= 5;
usr.bin/top/display.c
289
cnt--;
usr.bin/top/display.c
294
if (cnt > 0)
usr.bin/top/hash.c
266
register int cnt = 0;
usr.bin/top/hash.c
272
cnt += bucket->list.count;
usr.bin/top/hash.c
276
return cnt;
usr.bin/top/utils.c
188
register int cnt = 0;
usr.bin/top/utils.c
196
cnt++;
usr.bin/top/utils.c
199
return(cnt);
usr.bin/top/utils.c
303
int cnt = 0;
usr.bin/top/utils.c
312
cnt += strlen(p) + 2;
usr.bin/top/utils.c
315
if (cnt > 0)
usr.bin/top/utils.c
317
resp = result = (char *)malloc(cnt);
usr.bin/top/utils.c
345
register int cnt;
usr.bin/top/utils.c
358
lastch = cnt = length = 0;
usr.bin/top/utils.c
364
cnt++;
usr.bin/top/utils.c
371
cnt += 3;
usr.bin/top/utils.c
374
argarray = (char **)malloc(cnt * sizeof(char *));
usr.bin/top/utils.c
388
cnt = 2;
usr.bin/top/utils.c
400
cnt++;
usr.bin/top/utils.c
409
*cntp = cnt;
usr.bin/top/utils.c
423
percentages(int cnt, int *out, long *new, long *old, long *diffs)
usr.bin/top/utils.c
437
for (i = 0; i < cnt; i++)
usr.bin/top/utils.c
457
for (i = 0; i < cnt; i++)
usr.bin/tr/extern.h
42
int cnt; /* character count */
usr.bin/tr/str.c
102
if (s->cnt-- == 0) {
usr.bin/tr/str.c
110
s->cnt++;
usr.bin/tr/str.c
119
if ((ch = s->set[s->cnt++]) == OOBCH) {
usr.bin/tr/str.c
173
s->cnt = 0;
usr.bin/tr/str.c
228
s->cnt = 0;
usr.bin/tr/str.c
238
int n, cnt, *p;
usr.bin/tr/str.c
262
s->cnt = stopval - s->lastch + 1;
usr.bin/tr/str.c
273
for (cnt = 0; cnt < NCHARS_SB; cnt++)
usr.bin/tr/str.c
274
if (charcoll((const void *)&cnt, (const void *)&(s->lastch)) >= 0 &&
usr.bin/tr/str.c
275
charcoll((const void *)&cnt, (const void *)&stopval) <= 0)
usr.bin/tr/str.c
276
*p++ = cnt;
usr.bin/tr/str.c
280
s->cnt = 0;
usr.bin/tr/str.c
311
s->cnt = backslash(s, NULL);
usr.bin/tr/str.c
314
s->cnt = 0;
usr.bin/tr/str.c
319
s->cnt = strtol(s->str, &ep, 0);
usr.bin/tr/str.c
329
s->state = s->cnt ? SEQUENCE : INFINITE;
usr.bin/tr/str.c
339
int ch, cnt, val;
usr.bin/tr/str.c
343
for (cnt = val = 0;;) {
usr.bin/tr/str.c
348
if (++cnt == 3) {
usr.bin/tr/str.c
353
if (cnt) {
usr.bin/tr/str.c
95
if (s->cnt-- == 0) {
usr.bin/tr/tr.c
207
s1.cnt == 1 && s2.cnt == 1) {
usr.bin/tr/tr.c
215
} while (s1.state == CCLASS_LOWER && s1.cnt > 1);
usr.bin/tr/tr.c
220
} while (s2.state == CCLASS_UPPER && s2.cnt > 1);
usr.bin/tr/tr.c
224
s1.cnt == 1 && s2.cnt == 1) {
usr.bin/tr/tr.c
232
} while (s1.state == CCLASS_UPPER && s1.cnt > 1);
usr.bin/tr/tr.c
237
} while (s2.state == CCLASS_LOWER && s2.cnt > 1);
usr.bin/tr/tr.c
261
for (cnt = 0; cnt < WINT_MAX; cnt++) {
usr.bin/tr/tr.c
262
if (Cflag && !iswrune(cnt))
usr.bin/tr/tr.c
264
if (cmap_lookup(map, cnt) == OOBCH) {
usr.bin/tr/tr.c
266
cmap_add(map, cnt, s2.lastch);
usr.bin/tr/tr.c
270
cmap_add(map, cnt, cnt);
usr.bin/tr/tr.c
272
cnt >= cmap_max(map))
usr.bin/tr/tr.c
277
for (p = carray, cnt = 0; cnt < NCHARS_SB; cnt++) {
usr.bin/tr/tr.c
278
if (cmap_lookup(map, cnt) == OOBCH && iswrune(cnt))
usr.bin/tr/tr.c
279
*p++ = cnt;
usr.bin/tr/tr.c
281
cmap_add(map, cnt, cnt);
usr.bin/tr/tr.c
289
for (cnt = 0; cnt < n; cnt++) {
usr.bin/tr/tr.c
291
cmap_add(map, carray[cnt], s2.lastch);
usr.bin/tr/tr.c
66
wint_t ch, cnt, lastch;
usr.bin/tsort/tsort.c
296
int cnt, i;
usr.bin/tsort/tsort.c
305
for (cnt = 0, n = graph; n != NULL; n = next) {
usr.bin/tsort/tsort.c
309
++cnt;
usr.bin/tsort/tsort.c
312
} while (graph != NULL && cnt != 0);
usr.bin/tsort/tsort.c
323
for (cnt = 0, n = graph; n != NULL; n = n->n_next)
usr.bin/tsort/tsort.c
324
++cnt;
usr.bin/tsort/tsort.c
325
cycle_buf = malloc(sizeof(NODE *) * cnt);
usr.bin/tsort/tsort.c
326
longest_cycle = malloc(sizeof(NODE *) * cnt);
usr.bin/tsort/tsort.c
332
if ((cnt = find_cycle(n, n, 0, 0))) {
usr.bin/tsort/tsort.c
335
for (i = 0; i < cnt; i++)
usr.bin/users/users.c
55
int cnt;
usr.bin/users/users.c
82
for (cnt = 1; cnt < ncnt; ++cnt) {
usr.bin/users/users.c
83
if (strcmp(names[cnt], names[cnt - 1]))
usr.bin/users/users.c
84
printf(" %.*s", 32, names[cnt]);
usr.bin/wall/ttymsg.c
107
for (cnt = 0; (size_t)wret >= iov->iov_len; ++cnt) {
usr.bin/wall/ttymsg.c
60
int cnt, fd;
usr.bin/wall/ttymsg.c
93
for (cnt = 0, left = 0; cnt < iovcnt; ++cnt)
usr.bin/wall/ttymsg.c
94
left += iov[cnt].iov_len;
usr.bin/wall/wall.c
166
int cnt;
usr.bin/wall/wall.c
222
for (cnt = 0, p = lbuf; (ch = *p) != '\0'; ++p, ++cnt) {
usr.bin/wall/wall.c
224
cnt = 0;
usr.bin/wall/wall.c
225
} else if (cnt == 79 || ch == '\n') {
usr.bin/wall/wall.c
226
for (; cnt < 79; ++cnt)
usr.bin/wall/wall.c
230
cnt = 0;
usr.bin/wall/wall.c
239
if (++cnt == 79) {
usr.bin/wall/wall.c
242
cnt = 0;
usr.bin/wall/wall.c
245
if (++cnt == 79) {
usr.bin/wall/wall.c
248
cnt = 0;
usr.bin/wall/wall.c
254
if (++cnt == 79) {
usr.bin/wall/wall.c
257
cnt = 0;
usr.bin/wc/wc.c
121
if (cnt(NULL) != 0)
usr.bin/wc/wc.c
125
if (cnt(*argv) != 0)
usr.bin/wc/wc.c
56
static int cnt(const char *);
usr.bin/xargs/xargs.c
267
cnt = strlen(*bxp++ = echo);
usr.bin/xargs/xargs.c
275
cnt += strlen(*avj) + 1;
usr.bin/xargs/xargs.c
278
cnt += strlen(*bxp++ = *argv) + 1;
usr.bin/xargs/xargs.c
297
nline -= cnt;
usr.bin/xargs/xargs.c
467
cnt = ebp - argp;
usr.bin/xargs/xargs.c
468
memcpy(bbp, argp, (size_t)cnt);
usr.bin/xargs/xargs.c
469
p = (argp = bbp) + cnt;
usr.bin/xargs/xargs.c
90
static int cnt, Iflag, jfound, Lflag, Sflag, wasquoted, xflag;
usr.sbin/ckdist/ckdist.c
326
int rval, error, c, pieces, cnt, fd;
usr.sbin/ckdist/ckdist.c
330
for (cnt = -1; fgets(buf, sizeof(buf), fp); cnt++) {
usr.sbin/ckdist/ckdist.c
334
if (cnt == -1) {
usr.sbin/ckdist/ckdist.c
341
ext[0] != 'a' + cnt / 26 || ext[1] != 'a' + cnt % 26)
usr.sbin/ckdist/ckdist.c
362
if (error || (opt_all && cnt >= 0))
usr.sbin/edquota/edquota.c
504
int cnt;
usr.sbin/edquota/edquota.c
528
cnt = sscanf(cp,
usr.sbin/edquota/edquota.c
531
if (cnt != 3) {
usr.sbin/edquota/edquota.c
542
cnt = sscanf(cp,
usr.sbin/edquota/edquota.c
545
if (cnt != 3) {
usr.sbin/edquota/edquota.c
636
int cnt;
usr.sbin/edquota/edquota.c
661
cnt = sscanf(cp,
usr.sbin/edquota/edquota.c
664
if (cnt != 4) {
usr.sbin/efibootmgr/efibootmgr.c
351
int cnt;
usr.sbin/efibootmgr/efibootmgr.c
355
cnt = 1;
usr.sbin/efibootmgr/efibootmgr.c
358
cnt++;
usr.sbin/efibootmgr/efibootmgr.c
360
size = sizeof(uint16_t) * cnt;
usr.sbin/efibootmgr/efibootmgr.c
552
int cnt = 0;
usr.sbin/efibootmgr/efibootmgr.c
556
cnt++;
usr.sbin/efibootmgr/efibootmgr.c
559
vals = malloc(sizeof(uint16_t) * cnt);
usr.sbin/efibootmgr/efibootmgr.c
567
qsort(vals, cnt, sizeof(uint16_t), compare);
usr.sbin/efibootmgr/efibootmgr.c
573
for (i = 0; i < cnt - 1 && next_free == 0; i++)
usr.sbin/efibootmgr/efibootmgr.c
577
next_free = vals[cnt - 1] + 1;
usr.sbin/inetd/inetd.c
1988
int cnt = 0;
usr.sbin/inetd/inetd.c
2092
cnt += ct->ct_Count;
usr.sbin/inetd/inetd.c
2095
if (cnt * (CHTSIZE * CHTGRAN) / 60 > sep->se_maxcpm) {
usr.sbin/lpr/common_source/matchjobs.c
512
int cnt, matched, total;
usr.sbin/lpr/common_source/matchjobs.c
530
for (qent = squeue, cnt = 0; cnt < qcount;
usr.sbin/lpr/common_source/matchjobs.c
531
qent++, cnt++) {
usr.sbin/lpr/common_source/matchjobs.c
558
for (qent = squeue, cnt = 0; cnt < qcount;
usr.sbin/lpr/common_source/matchjobs.c
559
qent++, cnt++) {
usr.sbin/lpr/lpc/cmds.c
1209
int cnt = 0;
usr.sbin/lpr/lpc/cmds.c
1243
cnt++;
usr.sbin/lpr/lpc/cmds.c
1246
return(cnt);
usr.sbin/lpr/lpc/cmds.c
1265
cnt++;
usr.sbin/lpr/lpc/cmds.c
1268
return(cnt);
usr.sbin/makefs/ffs/ffs_alloc.c
618
ffs_clusteracct(struct fs *fs, struct cg *cgp, int32_t blkno, int cnt)
usr.sbin/makefs/ffs/ffs_alloc.c
633
if (cnt > 0)
usr.sbin/makefs/ffs/ffs_alloc.c
686
ufs_add32(sump[i], cnt, needswap);
usr.sbin/makefs/ffs/ffs_alloc.c
688
ufs_add32(sump[back], -cnt, needswap);
usr.sbin/makefs/ffs/ffs_alloc.c
690
ufs_add32(sump[forw], -cnt, needswap);
usr.sbin/makefs/ffs/ffs_subr.c
50
ffs_fragacct_swap(struct fs *fs, int fragmap, uint32_t fraglist[], int cnt, int needswap)
usr.sbin/makefs/ffs/ffs_subr.c
66
ufs_rw32(fraglist[siz], needswap) + cnt,
usr.sbin/makefs/hammer2/hammer2_buf.c
128
size_t cnt;
usr.sbin/makefs/hammer2/hammer2_buf.c
136
cnt = iov->iov_len;
usr.sbin/makefs/hammer2/hammer2_buf.c
137
if (cnt == 0) {
usr.sbin/makefs/hammer2/hammer2_buf.c
142
if (cnt > n)
usr.sbin/makefs/hammer2/hammer2_buf.c
143
cnt = n;
usr.sbin/makefs/hammer2/hammer2_buf.c
149
bcopy(cp, iov->iov_base, cnt);
usr.sbin/makefs/hammer2/hammer2_buf.c
151
bcopy(iov->iov_base, cp, cnt);
usr.sbin/makefs/hammer2/hammer2_buf.c
155
bcopy(cp, iov->iov_base, cnt);
usr.sbin/makefs/hammer2/hammer2_buf.c
157
bcopy(iov->iov_base, cp, cnt);
usr.sbin/makefs/hammer2/hammer2_buf.c
166
iov->iov_base = (char *)iov->iov_base + cnt;
usr.sbin/makefs/hammer2/hammer2_buf.c
167
iov->iov_len -= cnt;
usr.sbin/makefs/hammer2/hammer2_buf.c
168
uio->uio_resid -= cnt;
usr.sbin/makefs/hammer2/hammer2_buf.c
169
uio->uio_offset += cnt;
usr.sbin/makefs/hammer2/hammer2_buf.c
170
cp += cnt;
usr.sbin/makefs/hammer2/hammer2_buf.c
171
n -= cnt;
usr.sbin/makefs/hammer2/hammer2_ioctl.c
1428
int i, error = 0, cnt = 0;
usr.sbin/makefs/hammer2/hammer2_ioctl.c
1437
if (cnt >= vollist->nvolumes)
usr.sbin/makefs/hammer2/hammer2_ioctl.c
1446
error = copyout(&entry, &vollist->volumes[cnt], sizeof(entry));
usr.sbin/makefs/hammer2/hammer2_ioctl.c
1449
cnt++;
usr.sbin/makefs/hammer2/hammer2_ioctl.c
1451
vollist->nvolumes = cnt;
usr.sbin/makefs/msdos/direntry.h
139
int unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt,
usr.sbin/makefs/msdos/msdosfs_conv.c
235
unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt,
usr.sbin/makefs/msdos/msdosfs_conv.c
252
i = (cnt - 1) * WIN_CHARS;
usr.sbin/makefs/msdos/msdosfs_conv.c
264
wep->weCnt = cnt;
usr.sbin/makefs/msdos/msdosfs_lookup.c
142
int cnt = 1;
usr.sbin/makefs/msdos/msdosfs_lookup.c
169
cnt++, chksum))
usr.sbin/ppp/async.c
109
size_t cnt;
usr.sbin/ppp/async.c
122
for (cnt = wp->m_len; cnt > 0; cnt--) {
usr.sbin/ppp/async.c
133
cnt = cp - p->async.xbuff;
usr.sbin/ppp/async.c
135
bp = m_get(cnt, MB_ASYNCOUT);
usr.sbin/ppp/async.c
136
memcpy(MBUF_CTOP(bp), p->async.xbuff, cnt);
usr.sbin/ppp/async.c
192
size_t cnt;
usr.sbin/ppp/async.c
204
for (cnt = bp->m_len; cnt; cnt--) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
196
for (cnt = 1; scan(fp, &pwd); ++cnt);
usr.sbin/pwd_mkdb/pwd_mkdb.c
343
for (cnt = 1; scan(fp, &pwd); ++cnt) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
348
--cnt;
usr.sbin/pwd_mkdb/pwd_mkdb.c
401
store = htonl(cnt);
usr.sbin/pwd_mkdb/pwd_mkdb.c
425
store = htonl(cnt);
usr.sbin/pwd_mkdb/pwd_mkdb.c
492
store = HTOL(cnt);
usr.sbin/pwd_mkdb/pwd_mkdb.c
516
store = HTOL(cnt);
usr.sbin/pwd_mkdb/pwd_mkdb.c
93
int ch, cnt, ypcnt, makeold, tfd, yp_enabled = 0;
usr.sbin/quot/quot.c
533
int cnt;
usr.sbin/quot/quot.c
571
cnt = getmntinfo(&mp,MNT_NOWAIT);
usr.sbin/quot/quot.c
572
for (; --cnt >= 0; mp++) {
usr.sbin/quotaon/quotaon.c
175
oneof(char *target, char *list[], int cnt)
usr.sbin/quotaon/quotaon.c
179
for (i = 0; i < cnt; i++)
usr.sbin/repquota/repquota.c
256
oneof(char *target, char *list[], int cnt)
usr.sbin/repquota/repquota.c
260
for (i = 0; i < cnt; i++)
usr.sbin/rtadvd/advcap.c
111
int i = 0, cnt = 0;
usr.sbin/rtadvd/advcap.c
136
if (i == cnt) {
usr.sbin/rtadvd/advcap.c
137
cnt = read(tf, ibuf, BUFSIZ);
usr.sbin/rtadvd/advcap.c
138
if (cnt <= 0) {
usr.sbin/sshlockout/sshlockout.c
276
int cnt = 0;
usr.sbin/sshlockout/sshlockout.c
277
while (str[cnt] == ':' || isxdigit(str[cnt])) {
usr.sbin/sshlockout/sshlockout.c
278
++cnt;
usr.sbin/sshlockout/sshlockout.c
280
if (cnt > 0 && cnt < (int)sizeof(ips)) {
usr.sbin/sshlockout/sshlockout.c
281
memcpy(ips, str, cnt);
usr.sbin/sshlockout/sshlockout.c
282
ips[cnt] = '\0';
usr.sbin/tcpdrop/tcpdrop.c
211
int cnt, i;
usr.sbin/tcpdrop/tcpdrop.c
216
cnt = len / sizeof(*tcp);
usr.sbin/tcpdrop/tcpdrop.c
218
for (i = 0; i < cnt; ++i) {
usr.sbin/ypbind/yp_ping.c
210
__yp_ping(struct in_addr *restricted_addrs, int cnt, char *dom, short *port)
usr.sbin/ypbind/yp_ping.c
226
reqs = calloc(1, sizeof(struct ping_req *) * cnt);
usr.sbin/ypbind/yp_ping.c
229
for (i = 0; i < cnt; i++) {
usr.sbin/ypbind/yp_ping.c
257
for (i = 0; i < cnt; i++)
usr.sbin/ypbind/yp_ping.c
272
for (i = 0; i < cnt; i++) {
usr.sbin/ypbind/yp_ping.c
287
for (i = 0; i < cnt; i++) {
usr.sbin/ypbind/yp_ping.c
299
for (i = 0; i < cnt; i++)