Searched refs:chksum (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-9.3-release/contrib/file/src/
H A Dis_tar.c103 recsum = from_oct(8, header->header.chksum);
110 /* Adjust checksum to count the "chksum" field as blanks. */
111 for (i = sizeof(header->header.chksum); --i >= 0;)
112 sum -= header->header.chksum[i];
113 sum += ' ' * sizeof header->header.chksum;
H A Dtar.h60 char chksum[8]; member in struct:record::header
/freebsd-9.3-release/sys/contrib/octeon-sdk/
H A Dcvmip.h91 uint16_t chksum ; member in struct:__anon6313
111 uint16_t chksum ; member in struct:__anon6316
132 uint16_t chksum ; member in struct:__anon6317::__anon6318
149 uint16_t chksum ; member in struct:__anon6317::__anon6321
174 uint16_t chksum ; member in struct:__anon6322
/freebsd-9.3-release/bin/pax/
H A Dtar.h96 char chksum[CHK_LEN]; /* checksum */ member in struct:__anon11
135 char chksum[CHK_LEN]; /* checksum */ member in struct:__anon12
H A Dtar.c322 if (asc_ul(hd->chksum,sizeof(hd->chksum),OCT) != tar_chksm(blk,BLKMULT))
639 if (ul_oct(tar_chksm((char *)&hdblk, sizeof(HD_TAR)), hd->chksum,
640 sizeof(hd->chksum), 3))
719 if (asc_ul(hd->chksum,sizeof(hd->chksum),OCT) != tar_chksm(blk,BLKMULT))
1047 if (ul_oct(tar_chksm((char *)&hdblk, sizeof(HD_USTAR)), hd->chksum,
1048 sizeof(hd->chksum), 3))
/freebsd-9.3-release/sys/fs/msdosfs/
H A Ddirentry.h154 int chksum, struct msdosfsmount *pmp);
156 int chksum, struct msdosfsmount *pmp);
157 int win2unixfn(struct mbnambuf *nbp, struct winentry *wep, int chksum,
H A Dmsdosfs_lookup.c120 int chksum = -1, chksum_ok; local
235 chksum = -1;
261 chksum = win2unixfn(&nb,
262 (struct winentry *)dep, chksum,
267 chksum = winChkName(&nb,
269 chksum, pmp);
270 if (chksum == -2) {
271 chksum = -1;
280 chksum = -1;
287 chksum_ok = (chksum
686 u_int8_t chksum = winChksum(ndep->deName); local
[all...]
H A Dmsdosfs_conv.c526 unix2winfn(un, unlen, wep, cnt, chksum, pmp)
531 int chksum;
556 wep->weChksum = chksum;
595 winChkName(nbp, un, unlen, chksum, pmp)
599 int chksum;
637 return chksum;
645 win2unixfn(nbp, wep, chksum, pmp)
648 int chksum;
665 chksum = wep->weChksum;
666 } else if (chksum !
[all...]
H A Dmsdosfs_vnops.c1566 int chksum = -1; local
1712 chksum = -1;
1723 chksum = win2unixfn(&nb,
1724 (struct winentry *)dentp, chksum, pmp);
1732 chksum = -1;
1768 if (chksum != winChksum(dentp->deName)) {
1778 chksum = -1;
/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Dipsend.h37 extern u_short chksum __P((u_short *, int));
H A Dip.c41 u_short chksum(buf,len) function
153 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
226 ip->ip_sum = chksum((u_short *)ip, hlen);
295 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
326 ti->ti_sum = chksum((u_short *)ti, thlen + sizeof(ip_t));
347 ic->icmp_cksum = chksum((u_short *)ic, sizeof(struct icmp));
H A Dresend.c130 ip->ip_sum = chksum((u_short *)ip,
H A Dipsend.c190 udp->uh_sum = chksum((u_short *)udp, len);
H A Diptests.c235 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
247 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
266 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
278 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
/freebsd-9.3-release/contrib/binutils/bfd/
H A Dihex.c284 unsigned int chksum; local
329 chksum = len + addr + (addr >> 8) + type;
331 chksum += HEX2 (buf + 2 * i);
332 if (((- chksum) & 0xff) != (unsigned int) HEX2 (buf + 2 * i))
337 (- chksum) & 0xff, (unsigned int) HEX2 (buf + 2 * i));
721 unsigned int chksum; local
734 chksum = count + addr + (addr >> 8) + type;
739 chksum += *data;
742 TOHEX (p, (- chksum) & 0xff);
/freebsd-9.3-release/sys/dev/advansys/
H A Dadwlib.c272 u_int16_t chksum; local
276 chksum = 0;
282 chksum += wval;
296 return (chksum);
304 u_int16_t chksum; local
307 chksum = 0;
317 chksum += *wbuf;
324 adw_eeprom_write_16(adw, addr, chksum);
H A Dadvlib.c1432 u_int32_t chksum; local
1441 chksum = adv_msum_lram_16(adv, s_addr, mcode_lram_size);
1447 return (chksum);
/freebsd-9.3-release/contrib/gcc/
H A Dcoverage.c433 coverage_checksum_string (unsigned chksum, const char *string)
500 chksum = crc32_string (chksum, (ptr) ? ptr : string);
505 return chksum;
515 unsigned chksum = xloc.line;
517 chksum = coverage_checksum_string (chksum, xloc.file);
518 chksum = coverage_checksum_string
519 (chksum, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl)));
521 return chksum;
430 coverage_checksum_string(unsigned chksum, const char *string) argument
512 unsigned chksum = xloc.line; local
[all...]
/freebsd-9.3-release/sys/dev/ppbus/
H A Dif_plip.c694 u_char chksum = 0; local
739 chksum += i;
746 chksum += 0x08 + 0x00; /* Add into checksum */
753 chksum += *cp;
760 if (clpoutbyte(chksum, LPMAXSPIN2, ppbus))
/freebsd-9.3-release/contrib/gdb/gdb/
H A Dremote-mips.c122 static int pmon_makeb64 (unsigned long v, char *p, int n, int *chksum);
125 unsigned int *chksum);
2810 pmon_makeb64 (unsigned long v, char *p, int n, int *chksum)
2828 if (chksum != NULL)
2833 *chksum += ((v >> 24) & 0xFFF);
2835 *chksum += ((v >> 12) & 0xFFF);
2837 *chksum += ((v >> 0) & 0xFFF);
2854 pmon_zeroset (int recsize, char **buff, int *amount, unsigned int *chksum)
2859 count = pmon_makeb64 (*amount, (*buff + 2), 12, chksum);
2805 pmon_makeb64(unsigned long v, char *p, int n, int *chksum) argument
2849 pmon_zeroset(int recsize, char **buff, int *amount, unsigned int *chksum) argument
/freebsd-9.3-release/sys/dev/usb/wlan/
H A Dif_upgtvar.h164 uint32_t chksum; member in struct:upgt_lmac_mem
H A Dif_upgt.c457 mem->chksum = upgt_chksum_le((uint32_t *)stats,
609 mem->chksum = upgt_chksum_le((uint32_t *)led,
755 mem->chksum = upgt_chksum_le((uint32_t *)filter,
1020 mem->chksum = upgt_chksum_le((uint32_t *)chan,
1397 mem->chksum = upgt_chksum_le((uint32_t *)eeprom,
2280 mem->chksum = upgt_chksum_le((uint32_t *)txdesc, len - sizeof(*mem));
/freebsd-9.3-release/sys/gnu/fs/xfs/
H A Dxfs_log_recover.c3345 uint chksum = 0; local
3350 chksum ^= INT_GET(*up, ARCH_CONVERT);
3353 INT_SET(iclog->ic_header.h_chksum, ARCH_CONVERT, chksum);
3410 uint chksum = 0; local
3415 chksum ^= INT_GET(*up, ARCH_CONVERT);
3418 if (chksum != INT_GET(rhead->h_chksum, ARCH_CONVERT)) {
3422 "XFS: LogR chksum mismatch: was (0x%x) is (0x%x)",
3423 INT_GET(rhead->h_chksum, ARCH_CONVERT), chksum);
/freebsd-9.3-release/contrib/ipfilter/iplang/
H A Diplang_y.y1754 ip->ip_sum = chksum((u_short *)ip, ip->ip_hl << 2);
1768 icmp->icmp_cksum = chksum((u_short *)icmp, canip->ah_len);
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu.c1363 uint8_t chksum = BP_GET_CHECKSUM(bp_orig); local
1367 ASSERT(zio_checksum_table[chksum].ci_dedup);

Completed in 289 milliseconds

12