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

12

/freebsd-10.0-release/contrib/file/
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-10.0-release/sys/contrib/octeon-sdk/
H A Dcvmip.h91 uint16_t chksum ; member in struct:__anon6756
111 uint16_t chksum ; member in struct:__anon6759
132 uint16_t chksum ; member in struct:__anon6760::__anon6761
149 uint16_t chksum ; member in struct:__anon6760::__anon6764
174 uint16_t chksum ; member in struct:__anon6765
/freebsd-10.0-release/bin/pax/
H A Dtar.h96 char chksum[CHK_LEN]; /* checksum */ member in struct:__anon10
135 char chksum[CHK_LEN]; /* checksum */ member in struct:__anon11
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-10.0-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.c1575 int chksum = -1; local
1721 chksum = -1;
1732 chksum = win2unixfn(&nb,
1733 (struct winentry *)dentp, chksum, pmp);
1741 chksum = -1;
1777 if (chksum != winChksum(dentp->deName)) {
1787 chksum = -1;
/freebsd-10.0-release/contrib/ipfilter/ipsend/
H A Dipsend.h39 extern u_short chksum __P((u_short *, int));
H A Dip.c39 u_short chksum(buf,len) function
151 ip->ip_sum = chksum((u_short *)ip, IP_HL(ip) << 2);
224 ip->ip_sum = chksum((u_short *)ip, hlen);
293 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
324 ti->ti_sum = chksum((u_short *)ti, thlen + sizeof(ip_t));
345 ic->icmp_cksum = chksum((u_short *)ic, sizeof(struct icmp));
H A Dresend.c127 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-10.0-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-10.0-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);
H A Dadvlib.h308 u_int16_t chksum; member in struct:adv_eeprom_config
/freebsd-10.0-release/contrib/gcc/
H A Dcoverage.c433 coverage_checksum_string (unsigned chksum, const char *string)
483 chksum = crc32_string (chksum, string);
487 return chksum;
497 unsigned chksum = xloc.line;
499 chksum = coverage_checksum_string (chksum, xloc.file);
500 chksum = coverage_checksum_string
501 (chksum, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl)));
503 return chksum;
430 coverage_checksum_string(unsigned chksum, const char *string) argument
494 unsigned chksum = xloc.line; local
[all...]
/freebsd-10.0-release/sys/dev/ppbus/
H A Dif_plip.c693 u_char chksum = 0; local
738 chksum += i;
745 chksum += 0x08 + 0x00; /* Add into checksum */
752 chksum += *cp;
759 if (clpoutbyte(chksum, LPMAXSPIN2, ppbus))
/freebsd-10.0-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-10.0-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,
1392 mem->chksum = upgt_chksum_le((uint32_t *)eeprom,
2275 mem->chksum = upgt_chksum_le((uint32_t *)txdesc, len - sizeof(*mem));
/freebsd-10.0-release/contrib/ipfilter/iplang/
H A Diplang_y.y1750 ip->ip_sum = chksum((u_short *)ip, ip->ip_hl << 2);
1764 icmp->icmp_cksum = chksum((u_short *)icmp, canip->ah_len);
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu.c1304 uint8_t chksum = BP_GET_CHECKSUM(bp_orig); local
1308 ASSERT(zio_checksum_table[chksum].ci_dedup);

Completed in 307 milliseconds

12