Searched refs:sum (Results 276 - 300 of 332) sorted by relevance

<<11121314

/freebsd-11-stable/sys/net/
H A Dif_bridge.c3360 u_short sum; local
3400 sum = !(m->m_pkthdr.csum_flags & CSUM_IP_VALID);
3403 sum = in_cksum_hdr(ip);
3405 sum = in_cksum(m, hlen);
3408 if (sum) {
/freebsd-11-stable/sys/dev/usb/
H A Dusb_hub.c1835 usb_size_t sum; local
1846 sum = 0;
1848 /* compute sum of bandwidth */
1851 sum += ptr[z];
1855 if (min >= sum) {
1856 min = sum;
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_set_format_xar.c946 const char *key, struct chksumval *sum)
955 if (sum->len > 0) {
956 algname = getalgname(sum->alg);
957 algsize = getalgsize(sum->alg);
961 s = sum->val;
1734 * Compress the TOC and calculate the sum of the TOC.
945 xmlwrite_sum(struct archive_write *a, xmlTextWriterPtr writer, const char *key, struct chksumval *sum) argument
H A Darchive_read_support_format_tar.c891 int check, sum; local
909 sum = (int)tar_atol(header->checksum, sizeof(header->checksum));
917 if (sum == check)
932 if (sum == check)
H A Darchive_read_support_format_xar.c1388 unsigned char sum[MAX_SUM_SIZE]; local
1395 archive_sha1_final(&(sumwrk->sha1ctx), sum);
1397 memcmp(val, sum, SHA1_SIZE) != 0)
1401 archive_md5_final(&(sumwrk->md5ctx), sum);
1403 memcmp(val, sum, MD5_SIZE) != 0)
H A Darchive_read_support_format_lha.c783 * |header size(*1)|header sum|compression type|compressed size(*2)|
860 "LHa header sum error");
872 * |header size(*1)|header sum|compression type|skip size(*2)|
961 "LHa header sum error");
1754 lha_calcsum(unsigned char sum, const void *pp, int offset, size_t size) argument
1760 sum += *p++;
1761 return (sum);
/freebsd-11-stable/contrib/wpa/hostapd/
H A Dctrl_iface.c1809 u32 sum = 0; local
1813 sum += *pos++;
1815 while (sum >> 16)
1816 sum = (sum & 0xffff) + (sum >> 16);
1818 return sum ^ 0xffff;
/freebsd-11-stable/contrib/binutils/binutils/
H A Dsrconv.c166 int sum = 0; local
176 sum += ptr[j];
179 ptr[bytes] = ~sum;
/freebsd-11-stable/sys/dev/aic7xxx/
H A Daic7xxx_pci.c1643 int sum; local
1762 sum = internal50_present + internal68_present
1764 if (sum < 2 || (enableSEC_low != 0)) {
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_eq.c1402 unsigned int sum = 0; local
1405 sum += !!test_bit(port - 1,
1408 return sum;
/freebsd-11-stable/contrib/unbound/services/
H A Dmesh.c96 /** divide sum of timers to get average */
98 timeval_divide(struct timeval* avg, const struct timeval* sum, size_t d) argument
107 avg->tv_sec = sum->tv_sec / d;
108 avg->tv_usec = sum->tv_usec / d;
110 leftover = sum->tv_sec - avg->tv_sec*d;
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf.c5816 u_int16_t sum = 0; local
5829 sum = m->m_pkthdr.csum_data;
5832 sum = in_pseudo(ip->ip_src.s_addr,
5836 sum ^= 0xffff;
5843 sum = m->m_pkthdr.csum_data;
5846 sum = in_pseudo(ip->ip_src.s_addr,
5850 sum ^= 0xffff;
5871 sum = in_cksum(m, len);
5877 sum = in4_cksum(m, p, off, len);
5884 sum
[all...]
/freebsd-11-stable/contrib/gcc/doc/
H A Dmakefile.texi68 has various @file{.sum} and @file{.log} files containing the results of
/freebsd-11-stable/crypto/openssl/crypto/modes/asm/
H A Dghash-ia64.pl160 ($sum,$rum) = $big_endian ? ("nop.m","nop.m") : ("sum","rum");
205 { .mmi; $sum 1<<1 // go big-endian
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_fs/
H A Dstats.c253 histogram->total.sum += size;
255 histogram->lines[(apr_size_t)shift].sum += size;
1035 /* record the whole pack size in the first rev so the total sum will
/freebsd-11-stable/sys/dev/vmware/vmxnet3/
H A Dif_vmx.c2767 uint16_t sum; local
2779 sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
2785 sum = in6_cksum_pseudo(ip6, 0, IPPROTO_TCP, 0);
2789 sum = 0;
2795 sizeof(uint16_t), (caddr_t) &sum);
2801 tcp->th_sum = sum;
/freebsd-11-stable/sys/dev/qlxgbe/
H A Dql_hw.c4571 uint64_t sum = 0; local
4579 sum += *template_buff++;
4582 while (sum >> 32) {
4583 sum = (sum & 0xFFFFFFFF) + (sum >> 32);
4586 return (~sum);
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_attach.c3201 u_int32_t sum; local
3207 sum = 0;
3210 sum += eeval;
3214 if (sum == 0 || sum == 0xffff*3) {
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_consume.c173 dt_add_128(uint64_t *addend1, uint64_t *addend2, uint64_t *sum) argument
181 sum[0] = result[0];
182 sum[1] = result[1];
392 * When normalizing, we should divide the sum of x**2 by normal**2.
/freebsd-11-stable/sys/geom/journal/
H A Dg_journal.c1761 u_char *buf, sum[16]; local
1909 MD5Final(sum, &ctx);
1910 if (bcmp(sum, rhdr.jrh_sum, sizeof(rhdr.jrh_sum)) != 0) {
/freebsd-11-stable/sys/dev/wl/
H A Dif_wl.c2219 int sum = 0; local
2224 sum += (tbd.act_count & ~TBD_SW_EOF);
2227 (tbd.act_count & ~TBD_SW_EOF), sum,
/freebsd-11-stable/contrib/wpa/src/common/
H A Ddpp.c2701 BIGNUM *lx, *sum, *q; local
2708 sum = BN_new();
2711 if (!bnctx || !sum || !q || !lx)
2730 BN_mod_add(sum, bR_bn, pR_bn, q, bnctx) != 1)
2734 EC_POINT_mul(group, l, NULL, BI_point, sum, bnctx) != 1 ||
2754 BN_clear_free(sum);
2764 EC_POINT *l = NULL, *sum = NULL; local
2792 sum = EC_POINT_new(group);
2794 if (!sum || !l ||
2795 EC_POINT_add(group, sum, BR_poin
[all...]
/freebsd-11-stable/sys/dev/usb/wlan/
H A Dif_ural.c2207 int sum, retrycnt; local
2217 sum = ok+fail;
2220 ieee80211_ratectl_tx_update(vap, ni, &sum, &ok, &retrycnt);
/freebsd-11-stable/usr.sbin/bhyve/
H A Dpci_ahci.c928 uint8_t sum = 0; local
931 sum += buf[i];
932 buf[size - 1] = 0x100 - sum;
2374 * Use parts of the md5 sum of the filename
/freebsd-11-stable/sys/netinet6/
H A Dicmp6.c408 int code, sum, noff; local
460 if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
463 icmp6->icmp6_type, sum,

Completed in 404 milliseconds

<<11121314