/freebsd/crypto/heimdal/lib/roken/ |
H A D | snprintf-test.c | 62 int tot = 0; in cmp_with_sprintf_int() local 67 tot += try ("%d", int_values[i]); in cmp_with_sprintf_int() 68 tot += try ("%x", int_values[i]); in cmp_with_sprintf_int() 69 tot += try ("%X", int_values[i]); in cmp_with_sprintf_int() 70 tot += try ("%o", int_values[i]); in cmp_with_sprintf_int() 71 tot += try ("%#x", int_values[i]); in cmp_with_sprintf_int() 72 tot += try ("%#X", int_values[i]); in cmp_with_sprintf_int() 73 tot += try ("%#o", int_values[i]); in cmp_with_sprintf_int() 74 tot += try ("%10d", int_values[i]); in cmp_with_sprintf_int() 75 tot += try ("%10x", int_values[i]); in cmp_with_sprintf_int() [all …]
|
H A D | writev.c | 42 size_t tot = 0; in writev() local 47 tot += iov[i].iov_len; in writev() 48 buf = malloc(tot); in writev() 49 if (tot != 0 && buf == NULL) { in writev() 58 ret = write (d, buf, tot); in writev()
|
H A D | readv.c | 42 size_t tot = 0; in readv() local 47 tot += iov[i].iov_len; in readv() 48 buf = malloc(tot); in readv() 49 if (tot != 0 && buf == NULL) { in readv() 53 nb = ret = read (d, buf, tot); in readv()
|
H A D | recvmsg.c | 42 size_t tot = 0; in recvmsg() local 48 tot += iov[i].iov_len; in recvmsg() 49 buf = malloc(tot); in recvmsg() 50 if (tot != 0 && buf == NULL) { in recvmsg() 54 nb = ret = recvfrom (s, buf, tot, flags, msg->msg_name, &msg->msg_namelen); in recvmsg()
|
H A D | sendmsg.c | 44 size_t tot = 0; in sendmsg() local 50 tot += iov[i].iov_len; in sendmsg() 51 buf = malloc(tot); in sendmsg() 52 if (tot != 0 && buf == NULL) { in sendmsg() 61 ret = sendto (s, buf, tot, flags, msg->msg_name, msg->msg_namelen); in sendmsg()
|
/freebsd/lib/libkvm/ |
H A D | kvm_getswapinfo.c | 118 struct kvm_swap tot; in kvm_getswapinfo_kvm() local 129 bzero(&tot, sizeof(tot)); in kvm_getswapinfo_kvm() 143 tot.ksw_total += ttl; in kvm_getswapinfo_kvm() 144 tot.ksw_used += swinfo.sw_used; in kvm_getswapinfo_kvm() 151 swap_ary[i] = tot; in kvm_getswapinfo_kvm() 170 struct kvm_swap tot; in kvm_getswapinfo_sysctl() local 181 bzero(&tot, sizeof(tot)); in kvm_getswapinfo_sysctl() 212 tot.ksw_total += ttl; in kvm_getswapinfo_sysctl() 213 tot.ksw_used += xsd.xsw_used; in kvm_getswapinfo_sysctl() 220 swap_ary[ti] = tot; in kvm_getswapinfo_sysctl()
|
/freebsd/crypto/openssl/ms/ |
H A D | cmp.pl | 16 $tot=0; 31 $tot+=$n1; 49 $nm=$tot+$n1; 50 $tot+=$i+1; 51 printf STDERR "diff at char $tot of $nm\n";
|
/freebsd/sys/crypto/aesni/ |
H A D | aesni_wrap.c | 57 __m128i tot, ivreg; in aesni_encrypt_cbc() local 63 tot = aesni_enc(rounds - 1, key_schedule, in aesni_encrypt_cbc() 65 ivreg = tot; in aesni_encrypt_cbc() 66 _mm_storeu_si128((__m128i *)to, tot); in aesni_encrypt_cbc() 110 __m128i tot; in aesni_encrypt_ecb() local 137 tot = aesni_enc(rounds - 1, key_schedule, in aesni_encrypt_ecb() 139 _mm_storeu_si128((__m128i *)to, tot); in aesni_encrypt_ecb() 149 __m128i tot; in aesni_decrypt_ecb() local 176 tot = aesni_dec(rounds - 1, key_schedule, in aesni_decrypt_ecb() 178 _mm_storeu_si128((__m128i *)to, tot); in aesni_decrypt_ecb() [all …]
|
/freebsd/crypto/openssl/crypto/bn/asm/ |
H A D | co-586.pl | 120 local($tot,$end); 134 $tot=$num+$num-1; 148 for ($i=0; $i<$tot; $i++) 162 $v=2 if (($i+1) == $tot); 211 local($b,$tot,$end,$half); 235 $tot=$num+$num-1; 237 for ($i=0; $i<$tot; $i++) 250 $v=2 if ($i+1) == $tot;
|
/freebsd/sys/vm/ |
H A D | vm_dumpset.h | 83 int i, tot; in vm_page_dump_index_to_pa() local 86 tot = howmany(dump_avail[i + 1], PAGE_SIZE) - in vm_page_dump_index_to_pa() 88 if (bit < tot) in vm_page_dump_index_to_pa() 91 bit -= tot; in vm_page_dump_index_to_pa()
|
/freebsd/usr.bin/systat/ |
H A D | iolat.c | 142 uint64_t tot, samp; in pest() local 146 for (tot = 0, i = 0; i < nlat; i++) in pest() 147 tot += lats[i]; in pest() 148 if (tot == 0) in pest() 150 if (tot < (uint64_t)2000 / (1000 - permill)) in pest() 152 samp = tot * permill / 1000; in pest() 155 for (tot = 0, i = 0; samp >= tot && i < nlat; i++) in pest() 156 tot += lats[i]; in pest() 161 return b1 + (b2 - b1) * (float)(lats[i] - (tot - samp)) / lats[i]; in pest()
|
/freebsd/crypto/openssl/ssl/record/ |
H A D | rec_layer_s3.c | 367 size_t tot; in ssl3_write_bytes() 377 tot = s->rlayer.wnum; in ssl3_write_bytes() 383 * possible to end up with (len-tot) as a large number that will then in ssl3_write_bytes() 432 i = ssl3_write_pending(s, type, &buf[tot], s->rlayer.wpend_tot, in ssl3_write_bytes() 436 s->rlayer.wnum = tot; in ssl3_write_bytes() 439 tot += tmpwrit; /* this might be last fragment */ in ssl3_write_bytes() 466 if (tot == 0 || wb->buf == NULL) { /* allocate jumbo buffer */ in ssl3_write_bytes() 482 } else if (tot == len) { /* done? */ in ssl3_write_bytes() 485 *written = tot; in ssl3_write_bytes() 489 n = (len - tot); in ssl3_write_bytes() 352 size_t tot; ssl3_write_bytes() local [all...] |
/freebsd/contrib/netbsd-tests/net/icmp/ |
H A D | t_ping.c | 330 size_t tot, frag; in ATF_TC_BODY() local 403 for (tot = 0; in ATF_TC_BODY() 404 tot < 65538 - sizeof(*ip); in ATF_TC_BODY() 405 tot += (frag - sizeof(*ip))) { in ATF_TC_BODY() 406 frag = MIN(65538 - tot, sizeof(data)); in ATF_TC_BODY() 407 ip->ip_off = tot >> 3; in ATF_TC_BODY() 408 assert((size_t)ip->ip_off << 3 == tot); in ATF_TC_BODY()
|
/freebsd/tools/test/stress2/tools/ |
H A D | vmstat.sh | 66 tot=$((((size * used) + 1023) / 1024)) 67 [ $tot -ne 0 ] && 68 echo "vmstat -z $name,$tot"
|
/freebsd/lib/libutil/ |
H A D | login_cap.c | 638 rlim_t tot; in login_getcaptime() local 665 tot = 0; in login_getcaptime() 704 tot += rmultiply(tim, mult); in login_getcaptime() 709 return tot; in login_getcaptime() 824 rlim_t tot; in login_getcapsize() local 838 tot = 0; in login_getcapsize() 874 tot += rmultiply(siz, mult); in login_getcapsize() 879 return tot; in login_getcapsize()
|
/freebsd/tools/tools/netmap/ |
H A D | bridge.c | 43 u_int i, tot = 0; in rx_slots_avail() local 46 tot += nm_ring_space(NETMAP_RXRING(d->nifp, i)); in rx_slots_avail() 49 return tot; in rx_slots_avail() 55 u_int i, tot = 0; in tx_slots_avail() local 58 tot += nm_ring_space(NETMAP_TXRING(d->nifp, i)); in tx_slots_avail() 61 return tot; in tx_slots_avail()
|
/freebsd/crypto/openssl/crypto/comp/ |
H A D | c_zlib.c | 416 int tot = outl - zin->avail_out; in bio_zlib_read() local 419 return (tot > 0) ? tot : ret; in bio_zlib_read() 420 return tot; in bio_zlib_read() 467 int tot = inl - zout->avail_in; in bio_zlib_write() local 470 return (tot > 0) ? tot : ret; in bio_zlib_write() 471 return tot; in bio_zlib_write()
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | hash.c | 265 int tot = min; in hash_stats() local 283 tot += count; in hash_stats() 288 printf(" Items : %d\n", tot); in hash_stats() 290 printf(" Average: %5.2f\n", (float)tot / (float)hash->h_nbuckets); in hash_stats()
|
/freebsd/tools/test/stress2/misc/ |
H A D | tvnlru.sh | 142 uint64_t mx, tot, usec; 171 tot = 0; 180 tot += usec; 189 tvnodes, maxvnodes, (double)tot / 1000000 / n, (double)mx /
|
/freebsd/sys/crypto/armv8/ |
H A D | armv8_crypto_wrap.c | 104 uint8x16_t tot, ivreg, tmp; in armv8_aes_encrypt_cbc() local 120 tot = armv8_aes_enc(key->aes_rounds - 1, in armv8_aes_encrypt_cbc() 122 ivreg = tot; in armv8_aes_encrypt_cbc() 123 vst1q_u8(block, tot); in armv8_aes_encrypt_cbc() 130 tot = armv8_aes_enc(key->aes_rounds - 1, in armv8_aes_encrypt_cbc() 133 ivreg = tot; in armv8_aes_encrypt_cbc() 134 vst1q_u8(to, tot); in armv8_aes_encrypt_cbc()
|
/freebsd/sys/i386/i386/ |
H A D | bios.c | 448 size_t i, off, len, tot; in bios_oem_strings() local 466 tot = sig->totlen; in bios_oem_strings() 478 if (idx + tot > maxlen - 1) { in bios_oem_strings() 480 "idx %d + tot %d = %d > maxlen-1 %d\n", in bios_oem_strings() 481 str, idx, tot, idx+tot, maxlen-1); in bios_oem_strings() 498 for (i=0; i<tot; i++) { in bios_oem_strings()
|
/freebsd/contrib/file/src/ |
H A D | memtest.c | 73 size_t tot = len * nitems; in calloc() local 74 int l = snprintf(buf, sizeof(buf), "calloc %zu %p\n", tot, p); in calloc()
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | asn1_parse.c | 97 const unsigned char *p, *ep, *tot, *op, *opp; in asn1_parse2() local 115 tot = p + length; in asn1_parse2() 143 r = asn1_parse2(bp, &p, (long)(tot - p), in asn1_parse2() 148 if ((r == 2) || (p >= tot)) { in asn1_parse2()
|
/freebsd/usr.bin/col/ |
H A D | col.c | 423 int i, j, nchars, last_col, save, this_col, tot; in flush_line() local 456 for (tot = 0, i = 0; i <= l->l_max_col; i++) { in flush_line() 458 count[i] = tot; in flush_line() 459 tot += save; in flush_line()
|
/freebsd/crypto/openssl/crypto/txt_db/ |
H A D | txt_db.c | 190 long i, j, n, nn, l, tot = 0; in TXT_DB_write() local 227 tot += j; in TXT_DB_write() 229 ret = tot; in TXT_DB_write()
|