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

123

/freebsd-9.3-release/usr.sbin/makefs/ffs/
H A Dffs_extern.h66 void ffs_csum_swap(struct csum *, struct csum *, int);
H A Dffs_bswap.c64 void ffs_csum_swap(struct csum *o, struct csum *n, int size);
172 ffs_csum_swap(struct csum *o, struct csum *n, int size)
/freebsd-9.3-release/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-9.3-release/sys/contrib/octeon-sdk/
H A Dcvmx-debug-uart.c196 unsigned char csum; local
200 for (csum = 0, i = 0; ptr[i]; i++)
201 csum += ptr[i];
202 sprintf(csumstr, "%02x", csum);
/freebsd-9.3-release/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...]
H A Dremote-mips.c131 unsigned int *csum, unsigned int *zerofill);
2897 int inamount, int *recsize, unsigned int *csum,
2913 *recsize = pmon_zeroset (*recsize, &p, zerofill, csum);
2915 count = pmon_makeb64 (inbuf[*inptr], &p[2], 12, csum);
2934 *recsize = pmon_zeroset (*recsize, &p, zerofill, csum);
2939 *recsize = pmon_zeroset (*recsize, &p, zerofill, csum);
2940 count = pmon_makeb64 (value, p, 24, csum);
3105 unsigned int csum = 0;
3154 reclen = pmon_makeb64 (s->vma, &buffer[2], 36, &csum);
3182 pmon_make_fastrec (&bp, binbuf, &binptr, binamount, &reclen, &csum,
2891 pmon_make_fastrec(char **outbuf, unsigned char *inbuf, int *inptr, int inamount, int *recsize, unsigned int *csum, unsigned int *zerofill) argument
3100 unsigned int csum = 0; local
[all...]
/freebsd-9.3-release/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-9.3-release/sys/dev/sfxge/common/
H A Dsiena_flash.h75 efx_byte_t csum; /* over header area (i.e. not including VPD) */ member in struct:siena_mc_static_config_hdr_s
108 efx_byte_t csum; /* over header area (i.e. not including VPD) */ member in struct:siena_mc_dynamic_config_hdr_s
/freebsd-9.3-release/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-9.3-release/crypto/heimdal/lib/gssapi/krb5/
H A Dverify_mic.c150 Checksum csum; local
245 csum.cksumtype = CKSUMTYPE_HMAC_SHA1_DES3;
246 csum.checksum.length = 20;
247 csum.checksum.data = p + 8;
252 &csum);
H A Dunwrap.c196 Checksum csum; local
321 csum.cksumtype = CKSUMTYPE_HMAC_SHA1_DES3;
322 csum.checksum.length = 20;
323 csum.checksum.data = cksum;
335 &csum);
/freebsd-9.3-release/contrib/ntp/include/
H A Dmbg_gps166.h777 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon14
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:__anon15
851 CSUM csum; ///< checksum of the remaining bytes */ member in struct:__anon16
867 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon17
917 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon18
943 CSUM csum; ///< checksum of the remaining bytes member in struct:__anon19
/freebsd-9.3-release/sys/netinet/
H A Dtcp_lro.c136 uint16_t tcp_data_len, uint16_t csum)
141 c = csum;
186 /* Remove TCP header csum. */
314 uint16_t csum; local
335 csum = in_cksum_hdr(ip4);
336 if (__predict_false((csum) != 0)) {
350 tcp_lro_rx(struct lro_ctrl *lc, struct mbuf *m, uint32_t csum) argument
453 if (csum == 0x0000)
454 csum = th->th_sum;
518 tcp_data_len, ~csum);
135 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-9.3-release/sys/dev/qlxgbe/
H A Dql_tmplt.h43 uint16_t csum; member in struct:_q8_tmplt_hdr
/freebsd-9.3-release/sys/dev/netmap/
H A Dnetmap_offloadings.c90 ND("IP csum %x", be16toh(iph->check));
128 ND("TCP/UDP csum %x", be16toh(*check));
327 rawsum_t csum = 0; local
344 csum = nm_csum_raw(src + vh->csum_start,
347 csum = nm_csum_raw(src, src_len, csum);
379 *check = nm_csum_fold(csum);
/freebsd-9.3-release/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-9.3-release/lib/libufs/
H A Dlibufs.h46 struct csum *d_sbcsum; /* Superblock summary info */
/freebsd-9.3-release/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-9.3-release/tools/tools/pirtool/
H A Dpirtool.c140 unsigned int csum = 0; local
171 csum += *p++;
173 if ((csum % 256) != 0)
/freebsd-9.3-release/sys/fs/hpfs/
H A Dhpfs_subr.c53 u_long csum=0L; local
55 csum += (u_long) *object++;
56 csum = (csum << 7) + (csum >> (25));
58 return (csum);
/freebsd-9.3-release/sys/dev/e1000/
H A De1000_manage.c135 s32 ret_val, hdr_csum, csum; local
165 csum = e1000_calculate_checksum((u8 *)hdr,
171 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) {
/freebsd-9.3-release/sys/ufs/ffs/
H A Dfs.h130 * of pointers to blocks of struct csum; now there are just a few
134 * is taken away to point to a contiguous array of struct csum for
242 struct csum { struct
315 struct csum fs_old_cstotal; /* cylinder summary information */
329 struct csum *fs_csp; /* (u) cg summary info buffer */
481 struct csum cg_cs; /* cylinder summary information */
/freebsd-9.3-release/sys/dev/mxge/
H A Dif_mxge.c1879 * If packet has full TCP csum, replace it with pseudo hdr
2043 * vlan interface respect our csum offload flags.
2498 uint32_t csum; local
2501 csum = 0;
2503 csum += *raw;
2507 csum = (csum >> 16) + (csum & 0xffff);
2508 csum = (csum >> 1
2513 mxge_rx_csum6(void *p, struct mbuf *m, uint32_t csum) argument
2559 mxge_rx_csum(struct mbuf *m, int csum) argument
2601 mxge_vlan_tag_remove(struct mbuf *m, uint32_t *csum) argument
2658 mxge_rx_done_big(struct mxge_slice_state *ss, uint32_t len, uint32_t csum, int lro) argument
2727 mxge_rx_done_small(struct mxge_slice_state *ss, uint32_t len, uint32_t csum, int lro) argument
[all...]
/freebsd-9.3-release/sys/fs/ext2fs/
H A Dext2fs.h149 struct csum *e2fs_clustersum; /* cluster summary in each cyl group */
155 struct csum { struct
/freebsd-9.3-release/sys/dev/usb/net/
H A Dif_axge.c1024 uint8_t csum; local
1030 csum = 0;
1032 csum |= CTCR_IP | CTCR_TCP | CTCR_UDP;
1033 axge_write_cmd_1(sc, AXGE_ACCESS_MAC, AXGE_CTCR, csum);
1035 csum = 0;
1037 csum |= CRCR_IP | CRCR_TCP | CRCR_UDP;
1038 axge_write_cmd_1(sc, AXGE_ACCESS_MAC, AXGE_CRCR, csum);

Completed in 168 milliseconds

123