Searched refs:checksum (Results 1 - 16 of 16) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/
H A Dufs_attrlist.c125 u_int16_t checksum; local
150 checksum = ul_p->ul_checksum; /* Remember previous checksum. */
153 if (calc != checksum) {
155 printf("ufslabel_check: label checksum %x (should be %x)\n",
156 checksum, calc);
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dddp.c245 * This procedure determines the checksum of an extended DDP datagram.
248 * the accumulator. When done, if the checksum is 0, changed into 0xFFFF.
251 * checksum = ddp_checksum(mp, offset)
258 * The DDP checksum.
268 register u_short checksum; local
270 checksum = 0;
279 /* Portable checksum from 3.0 */
281 checksum += *data++;
282 checksum = (checksum
[all...]
H A Dddp_usrreq.c214 UAS_ASSIGN_HTON(ddp->checksum,
243 if (UAS_VALUE_NTOH(ddp->checksum))
244 UAS_ASSIGN_HTON(ddp->checksum, ddp_checksum(m, 4));
H A Dddp_rtmptable.c566 register u_short checksum=0, i; local
569 /* apply the upper name + DDP checksum algorithm */
583 checksum += c1;
584 checksum = ((checksum & 0x8000) ?
585 (checksum << 1 | 1) : (checksum << 1));
589 zname->str, checksum));
591 if (checksum)
592 return (checksum);
[all...]
H A Dddp.h82 ua_short checksum; /* Checksum */ member in struct:__anon274
H A Dddp_r_zip.c243 UAS_ASSIGN(ddp->checksum, 0);
304 UAS_ASSIGN(ddp->checksum, 0);
1069 UAS_ASSIGN(ddp->checksum, 0);
1250 UAS_ASSIGN(r_ddp->checksum, 0);
1320 UAS_ASSIGN(ddp->checksum, 0);
1609 UAS_ASSIGN(r_ddp->checksum, 0);
1705 UAS_ASSIGN(r_ddp->checksum, 0);
1947 UAS_ASSIGN(r_ddp->checksum, 0);
H A Dasp_proto.c737 UAS_ASSIGN(ddp->checksum, 0);
1024 UAS_ASSIGN(ddp->checksum, 0);
2034 UAS_ASSIGN(ddp->checksum, 0);
2108 UAS_ASSIGN(ddp->checksum, 0);
H A Dddp_r_rtmp.c858 UAS_ASSIGN(ddp->checksum, 0);
934 UAS_ASSIGN(ddp->checksum, 0);
H A Dddp_nbp.c949 UAS_ASSIGN(ddp->checksum, 0);
H A Datp_write.c417 UAS_ASSIGN_HTON(ddp->checksum, 0);
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_journal.h60 int32_t checksum; // on-disk: checksum of this header and binfo[0] member in struct:block_list_header
98 int32_t checksum; member in struct:journal_header
107 // we only checksum the original size of the journal_header to remain
H A Dvfs_journal.c90 // number of bytes to checksum in a block_list_header
188 // this isn't a great checksum routine but it will do for now.
189 // we use it to checksum the journal header and the block list
197 // this is a lame checksum but for now it'll do
403 jnl->jhdr->checksum = 0;
404 jnl->jhdr->checksum = calc_checksum((char *)jnl->jhdr, JOURNAL_HEADER_CKSUM_SIZE);
644 jnl->jhdr->checksum = SWAP32(jnl->jhdr->checksum);
657 blhdr->checksum = SWAP32(blhdr->checksum);
1004 int i, orig_checksum, checksum, check_block_checksums=0, bad_blocks=0; local
1616 int orig_checksum, checksum; local
1826 int orig_checksum, checksum; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dxsumas.s43 * This is the internet (IP, TCP) checksum algorithm, which is the 1s-complement sum
74 ; Partial word at start: zero filled on left, it becomes initial checksum.
88 ; r2 = initial checksum
134 ; r2 = checksum so far
176 ; r2 = checksum so far (word parallel)
185 srwi r6,r2,16 ; top half of 32-bit checksum
193 ; The checksum began on an odd address, so swap bytes.
199 ; Finally, add in checksum passed in as a parameter.
202 add r2,r2,r5 ; add passed-in checksum
203 srwi r6,r2,16 ; top half of 32-bit checksum
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIONVRAM.cpp158 // Set the checksum to 0.
179 // Set the partition checksum.
189 // Set the checksum to 0.
197 // Set the partition checksum.
1146 UInt32 cnt, checksum = 0; local
1150 checksum += tmpBuffer[cnt];
1152 return checksum % 0x0000FFFF;
1157 UInt32 cnt, checksum, sum = 0; local
1163 checksum = (sum >> 16) + (sum & 0x0000FFFF);
1164 if (checksum
[all...]
/macosx-10.5.8/xnu-1228.15.4/libsa/
H A Dcatalogue.cpp952 u_int32_t checksum; local
1002 checksum = adler32(crc_address,
1006 if (OSSwapBigToHostInt32(mkext_data->adler32) != checksum) {
1007 IOLog("Error: Extension archive has a bad checksum.\n");
1015 checksumObj = OSData::withBytes((void *)&checksum,
1016 sizeof(checksum));
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dudp_usrreq.c123 SYSCTL_INT(_net_inet_udp, UDPCTL_CHECKSUM, checksum, CTLFLAG_RW,
306 * but we don't yet have a way to check the checksum
1137 * Set up checksum and output datagram.

Completed in 118 milliseconds