Home
last modified time | relevance | path

Searched refs:tot (Results 1 – 25 of 47) sorted by relevance

12

/freebsd/crypto/heimdal/lib/roken/
H A Dsnprintf-test.c62 int tot = 0; in cmp_with_sprintf_int() local
89 return tot; in cmp_with_sprintf_int()
95 int tot = 0; in cmp_with_sprintf_long() local
122 return tot; in cmp_with_sprintf_long()
133 int tot = 0; in cmp_with_sprintf_long_long() local
163 return tot; in cmp_with_sprintf_long_long()
172 int tot = 0;
215 return tot;
228 int tot = 0; in test_sizet() local
243 tot++; in test_sizet()
[all …]
H A Dreadv.c42 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 Dwritev.c42 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 Drecvmsg.c42 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 Dsendmsg.c44 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 Dkvm_getswapinfo.c118 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 Dcmp.pl16 $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 Daesni_wrap.c57 __m128i tot, ivreg; in aesni_encrypt_cbc() local
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
139 _mm_storeu_si128((__m128i *)to, tot); in aesni_encrypt_ecb()
149 __m128i tot; in aesni_decrypt_ecb() local
178 _mm_storeu_si128((__m128i *)to, tot); in aesni_decrypt_ecb()
206 __m128i tot; in aesni_encrypt_icm() local
267 tot = tot ^ _mm_loadu_si128((const __m128i *)from); in aesni_encrypt_icm()
284 tot = tot ^ _mm_loadu_si128(&block); in aesni_encrypt_icm()
[all …]
/freebsd/crypto/openssl/crypto/bn/asm/
H A Dco-586.pl120 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 Dvm_dumpset.h83 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 Diolat.c142 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/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c330 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/crypto/openssl/ssl/record/
H A Drec_layer_s3.c352 size_t tot; in ssl3_write_bytes() local
362 tot = s->rlayer.wnum; in ssl3_write_bytes()
421 s->rlayer.wnum = tot; in ssl3_write_bytes()
470 *written = tot; in ssl3_write_bytes()
474 n = (len - tot); in ssl3_write_bytes()
517 mb_param.inp = &buf[tot]; in ssl3_write_bytes()
556 tot += tmpwrit; in ssl3_write_bytes()
564 *written = tot; in ssl3_write_bytes()
568 n = (len - tot); in ssl3_write_bytes()
638 s->rlayer.wnum = tot; in ssl3_write_bytes()
[all …]
/freebsd/tools/test/stress2/tools/
H A Dvmstat.sh66 tot=$((((size * used) + 1023) / 1024))
67 [ $tot -ne 0 ] &&
68 echo "vmstat -z $name,$tot"
/freebsd/lib/libutil/
H A Dlogin_cap.c638 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 Dbridge.c43 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 Dc_zlib.c416 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 Dhash.c265 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 Dtvnlru.sh142 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 Darmv8_crypto_wrap.c104 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 Dbios.c448 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()
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 Dmemtest.c73 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 Dasn1_parse.c97 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 Dcol.c423 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 Dtxt_db.c190 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()

12