/freebsd-9.3-release/contrib/file/src/ |
H A D | is_tar.c | 103 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 D | tar.h | 60 char chksum[8]; member in struct:record::header
|
/freebsd-9.3-release/sys/contrib/octeon-sdk/ |
H A D | cvmip.h | 91 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 D | tar.h | 96 char chksum[CHK_LEN]; /* checksum */ member in struct:__anon11 135 char chksum[CHK_LEN]; /* checksum */ member in struct:__anon12
|
H A D | tar.c | 322 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 D | direntry.h | 154 int chksum, struct msdosfsmount *pmp); 156 int chksum, struct msdosfsmount *pmp); 157 int win2unixfn(struct mbnambuf *nbp, struct winentry *wep, int chksum,
|
H A D | msdosfs_lookup.c | 120 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 D | msdosfs_conv.c | 526 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 D | msdosfs_vnops.c | 1566 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 D | ipsend.h | 37 extern u_short chksum __P((u_short *, int));
|
H A D | ip.c | 41 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 D | resend.c | 130 ip->ip_sum = chksum((u_short *)ip,
|
H A D | ipsend.c | 190 udp->uh_sum = chksum((u_short *)udp, len);
|
H A D | iptests.c | 235 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 D | ihex.c | 284 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 D | adwlib.c | 272 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 D | advlib.c | 1432 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 D | coverage.c | 433 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 D | if_plip.c | 694 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 D | remote-mips.c | 122 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 D | if_upgtvar.h | 164 uint32_t chksum; member in struct:upgt_lmac_mem
|
H A D | if_upgt.c | 457 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 D | xfs_log_recover.c | 3345 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 D | iplang_y.y | 1754 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 D | dmu.c | 1363 uint8_t chksum = BP_GET_CHECKSUM(bp_orig); local 1367 ASSERT(zio_checksum_table[chksum].ci_dedup);
|