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

/darwin-on-arm/xnu/osfmk/i386/
H A Ducode.h14 uint32_t checksum; member in struct:intel_ucupdate
/darwin-on-arm/xnu/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.c216 UAS_ASSIGN_HTON(ddp->checksum,
245 if (UAS_VALUE_NTOH(ddp->checksum))
246 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:__anon350
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.save106 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);
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_journal.h68 int32_t checksum; // on-disk: checksum of this header and binfo[0] member in struct:block_list_header
116 int32_t checksum; member in struct:journal_header
125 // we only checksum the original size of the journal_header to remain
H A Dvfs_journal.c150 // number of bytes to checksum in a block_list_header
247 // this isn't a great checksum routine but it will do for now.
248 // we use it to checksum the journal header and the block list
256 // this is a lame checksum but for now it'll do
479 jnl->jhdr->checksum = 0;
480 jnl->jhdr->checksum = calc_checksum((char *)jnl->jhdr, JOURNAL_HEADER_CKSUM_SIZE);
734 jnl->jhdr->checksum = SWAP32(jnl->jhdr->checksum);
747 blhdr->checksum = SWAP32(blhdr->checksum);
1094 int i, orig_checksum, checksum, check_block_checksums=0, bad_blocks=0; local
1827 int orig_checksum, checksum; local
2076 int orig_checksum, checksum; local
[all...]
/darwin-on-arm/xnu/libsa/
H A Dbootstrap.cpp668 uint32_t checksum; local
679 * then save the mkext's checksum in the IORegistry.
682 result = OSKext::readMkextArchive(booterData, &checksum);
688 "Startup mkext archive has checksum 0x%x.", (int)checksum);
692 checksumObj = OSData::withBytes((void *)&checksum, sizeof(checksum));
/darwin-on-arm/xnu/iokit/Kernel/
H A DIONVRAM.cpp157 // Set the checksum to 0.
178 // Set the partition checksum.
188 // Set the checksum to 0.
196 // Set the partition checksum.
1166 UInt32 cnt, checksum = 0; local
1170 checksum += tmpBuffer[cnt];
1172 return checksum % 0x0000FFFF;
1177 UInt32 cnt, checksum, sum = 0; local
1183 checksum = (sum >> 16) + (sum & 0x0000FFFF);
1184 if (checksum
[all...]
/darwin-on-arm/xnu/libkern/c++/
H A DOSKext.cpp2343 uint32_t checksum; local
2359 checksum = mkext_adler32(crc_address,
2363 if (OSSwapBigToHostInt32(mkextHeader->adler32) != checksum) {
2366 "Kext archive has a bad checksum.");
2372 *checksumPtr = checksum;
2668 uint32_t checksum; local
2687 checksum = mkext_adler32(crc_address,
2691 if (MKEXT_GET_CHECKSUM(mkextHeader) != checksum) {
2695 "Mkext archive has bad checksum.");
2701 *checksumPtr = checksum;
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dudp_usrreq.c126 SYSCTL_INT(_net_inet_udp, UDPCTL_CHECKSUM, checksum, CTLFLAG_RW | CTLFLAG_LOCKED,
290 * but we don't yet have a way to check the checksum
1514 * Set up checksum and output datagram.

Completed in 173 milliseconds