Lines Matching refs:csum
712 unsigned long csum = 0; in checksum() local
716 csum ^= *addr++; in checksum()
717 csum = ((csum>>1) & 0x55555555) ^ (csum & 0x55555555); in checksum()
719 return csum; in checksum()
757 unsigned long csum; in amiga_read() local
774 csum = checksum((ulong *)&hdr, in amiga_read()
785 if (hdr.hdrchk != csum) { in amiga_read()
786 printk(KERN_INFO "MFM_HEADER: %08lx,%08lx\n", hdr.hdrchk, csum); in amiga_read()
798 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); in amiga_read()
800 if (hdr.datachk != csum) { in amiga_read()
803 hdr.datachk, csum); in amiga_read()