/freebsd-11-stable/sys/net/ |
H A D | if_bridge.c | 3360 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 D | usb_hub.c | 1835 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 D | archive_write_set_format_xar.c | 946 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 D | archive_read_support_format_tar.c | 891 int check, sum; local 909 sum = (int)tar_atol(header->checksum, sizeof(header->checksum)); 917 if (sum == check) 932 if (sum == check)
|
H A D | archive_read_support_format_xar.c | 1388 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 D | archive_read_support_format_lha.c | 783 * |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 D | ctrl_iface.c | 1809 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 D | srconv.c | 166 int sum = 0; local 176 sum += ptr[j]; 179 ptr[bytes] = ~sum;
|
/freebsd-11-stable/sys/dev/aic7xxx/ |
H A D | aic7xxx_pci.c | 1643 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 D | mlx4_eq.c | 1402 unsigned int sum = 0; local 1405 sum += !!test_bit(port - 1, 1408 return sum;
|
/freebsd-11-stable/contrib/unbound/services/ |
H A D | mesh.c | 96 /** 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 D | pf.c | 5816 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 D | makefile.texi | 68 has various @file{.sum} and @file{.log} files containing the results of
|
/freebsd-11-stable/crypto/openssl/crypto/modes/asm/ |
H A D | ghash-ia64.pl | 160 ($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 D | stats.c | 253 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 D | if_vmx.c | 2767 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 D | ql_hw.c | 4571 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 D | ar9300_attach.c | 3201 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 D | dt_consume.c | 173 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 D | g_journal.c | 1761 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 D | if_wl.c | 2219 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 D | dpp.c | 2701 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 D | if_ural.c | 2207 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 D | pci_ahci.c | 928 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 D | icmp6.c | 408 int code, sum, noff; local 460 if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) { 463 icmp6->icmp6_type, sum,
|