Searched refs:csum (Results 1 - 25 of 78) sorted by relevance

1234

/freebsd-11-stable/usr.sbin/makefs/ffs/
H A Dffs_extern.h66 void ffs_csum_swap(struct csum *, struct csum *, int);
H A Dffs_bswap.c67 void ffs_csum_swap(struct csum *o, struct csum *n, int size);
178 ffs_csum_swap(struct csum *o, struct csum *n, int size)
/freebsd-11-stable/contrib/gcc/
H A Dgcov-io.c357 const struct gcov_ctr_summary *csum; local
361 for (csum = summary->ctrs, ix = GCOV_COUNTERS_SUMMABLE; ix--; csum++)
363 gcov_write_unsigned (csum->num);
364 gcov_write_unsigned (csum->runs);
365 gcov_write_counter (csum->sum_all);
366 gcov_write_counter (csum->run_max);
367 gcov_write_counter (csum->sum_max);
477 struct gcov_ctr_summary *csum; local
480 for (csum
[all...]
/freebsd-11-stable/contrib/gdb/gdb/
H A Dremote-sds.c705 compute_checksum (int csum, char *buf, int len)
710 csum += (unsigned char) buf[i];
712 csum %= 253;
713 return csum;
733 unsigned char csum = 0;
765 csum = compute_checksum (csum, buf, len);
766 csum = compute_checksum (csum, header + 1, 2);
768 header[0] = csum;
698 compute_checksum(int csum, char *buf, int len) argument
726 unsigned char csum = 0; local
860 int val, i, len, csum; local
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c68 uint16_t oldmss, csum; local
107 bcopy(&tcp->th_sum, &csum, sizeof(csum));
108 csum = cksum_adjust(csum, oldmss, mss);
109 bcopy(&csum, &tcp->th_sum, sizeof(csum));
/freebsd-11-stable/tools/tools/find-sb/
H A Dmini_ufs.h34 struct csum { struct
108 struct csum fs_old_cstotal; /* cylinder summary information */
122 struct csum *fs_csp; /* (u) cg summary info buffer */
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-debug-uart.c224 unsigned char csum; local
228 for (csum = 0, i = 0; ptr[i]; i++)
229 csum += ptr[i];
230 cvmx_debug_uart_strhex(csumstr, csum);
/freebsd-11-stable/contrib/gdb/gdb/gdbserver/
H A Dremote-utils.c267 unsigned char csum = 0; local
283 csum += buf[i];
287 *p++ = tohex ((csum >> 4) & 0xf);
288 *p++ = tohex (csum & 0xf);
436 unsigned char csum, c1, c2; local
441 csum = 0;
467 csum += c;
474 if (csum == (c1 << 4) + c2)
477 fprintf (stderr, "Bad checksum, sentsum=0x%x, csum=0x%x, buf=%s\n",
478 (c1 << 4) + c2, csum, bu
[all...]
/freebsd-11-stable/contrib/ntp/include/
H A Dmbg_gps166.h777 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon4763
796 * The csum field is only used by the card's firmware to check the
831 CSUM csum; ///< Checksum of the remaining bytes member in struct:__anon4764
851 CSUM csum; ///< checksum of the remaining bytes */ member in struct:__anon4765
867 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon4766
917 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon4767
943 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon4768
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dcrypto.h95 Checksum *csum);
100 Checksum *csum);
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c1179 uint16_t *csum; local
1246 csum = &TCP(mtodo(m, hlen))->th_sum;
1249 *csum = cksum_adjust(*csum, tcp->th_dport, lport);
1252 *csum = cksum_add(*csum, ~nat64_cksum_convert(&ip6, ip));
1255 csum = &UDP(mtodo(m, hlen))->uh_sum;
1258 *csum = cksum_adjust(*csum, udp->uh_dport, lport);
1261 *csum
1513 uint16_t *csum; local
[all...]
/freebsd-11-stable/sys/dev/qlxgbe/
H A Dql_tmplt.h43 uint16_t csum; member in struct:_q8_tmplt_hdr
/freebsd-11-stable/crypto/heimdal/lib/gssapi/krb5/
H A Dunwrap.c212 Checksum csum; local
349 csum.cksumtype = CKSUMTYPE_HMAC_SHA1_DES3;
350 csum.checksum.length = 20;
351 csum.checksum.data = cksum;
363 &csum);
H A Dverify_mic.c155 Checksum csum; local
250 csum.cksumtype = CKSUMTYPE_HMAC_SHA1_DES3;
251 csum.checksum.length = 20;
252 csum.checksum.data = p + 8;
265 &csum);
/freebsd-11-stable/sys/dev/netmap/
H A Dnetmap_offloadings.c92 nm_prdis("IP csum %x", be16toh(iph->check));
130 nm_prdis("TCP/UDP csum %x", be16toh(*check));
417 rawsum_t csum = 0; local
434 csum = nm_os_csum_raw(src + vh->csum_start,
437 csum = nm_os_csum_raw(src, src_len, csum);
467 *check = nm_os_csum_fold(csum);
/freebsd-11-stable/contrib/ntp/libparse/
H A Ddata_mbg.c90 ascii_msgp->csum = (CSUM) get_lsb_short(bufpp);
300 cfghp->csum = (CSUM) get_lsb_short(buffpp);
323 utcp->csum = (CSUM) get_lsb_short(buffpp);
429 ephp->csum = (CSUM) get_lsb_short(buffpp);
474 almp->csum = (CSUM) get_lsb_short(buffpp);
499 ionop->csum = (CSUM) get_lsb_short(buffpp);
/freebsd-11-stable/sys/dev/sfxge/common/
H A Dsiena_flash.h139 efx_byte_t csum; /* over header area (i.e. not including VPD) */ member in struct:siena_mc_static_config_hdr_s
174 efx_byte_t csum; /* over header area (i.e. not including VPD) */ member in struct:siena_mc_dynamic_config_hdr_s
/freebsd-11-stable/lib/libufs/
H A Dlibufs.h46 struct csum *d_sbcsum; /* Superblock summary info */
/freebsd-11-stable/sys/netinet6/
H A Din6_cksum.c84 _in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument
97 sum = csum;
130 in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument
138 sum = _in6_cksum_pseudo(ip6, len, nxt, csum);
/freebsd-11-stable/tools/tools/pirtool/
H A Dpirtool.c140 unsigned int csum = 0; local
171 csum += *p++;
173 if ((csum % 256) != 0)
/freebsd-11-stable/sys/netinet/
H A Dtcp_lro.c195 uint16_t tcp_data_len, uint16_t csum)
200 c = csum;
245 /* Remove TCP header csum. */
539 uint16_t csum; local
560 csum = in_cksum_hdr(ip4);
561 if (__predict_false((csum) != 0)) {
575 tcp_lro_rx(struct lro_ctrl *lc, struct mbuf *m, uint32_t csum) argument
691 if (csum == 0x0000)
692 csum = th->th_sum;
773 tcp_data_len, ~csum);
194 tcp_lro_rx_csum_fixup(struct lro_entry *le, void *l3hdr, struct tcphdr *th, uint16_t tcp_data_len, uint16_t csum) argument
[all...]
/freebsd-11-stable/sys/netipsec/
H A Dxform_tcp.c174 u_short csum; local
196 csum = th->th_sum;
199 th->th_sum = csum;
/freebsd-11-stable/sys/dev/mxge/
H A Dif_mxge.c1881 * If packet has full TCP csum, replace it with pseudo hdr
2045 * vlan interface respect our csum offload flags.
2500 uint32_t csum; local
2503 csum = 0;
2505 csum += *raw;
2509 csum = (csum >> 16) + (csum & 0xffff);
2510 csum = (csum >> 1
2515 mxge_rx_csum6(void *p, struct mbuf *m, uint32_t csum) argument
2561 mxge_rx_csum(struct mbuf *m, int csum) argument
2603 mxge_vlan_tag_remove(struct mbuf *m, uint32_t *csum) argument
2660 mxge_rx_done_big(struct mxge_slice_state *ss, uint32_t len, uint32_t csum, int lro) argument
2728 mxge_rx_done_small(struct mxge_slice_state *ss, uint32_t len, uint32_t csum, int lro) argument
[all...]
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2fs.h178 struct csum *e2fs_clustersum; /* cluster summary in each cyl group */
184 struct csum { struct
/freebsd-11-stable/sys/dev/ixgbe/
H A Dixgbe_phy.c123 u8 csum; local
126 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF);
127 csum = ~csum;
141 /* Write csum */
142 if (ixgbe_out_i2c_byte_ack(hw, csum))
155 /* Get csum */
198 u8 csum; local
201 csum = ixgbe_ones_comp_byte_add(reg_high, reg & 0xFF);
202 csum
[all...]

Completed in 181 milliseconds

1234