11 #ifndef _S390_CHECKSUM_H
12 #define _S390_CHECKSUM_H
14 #include <asm/uaccess.h>
31 register unsigned long reg2 asm(
"2") = (
unsigned long) buff;
32 register unsigned long reg3 asm(
"3") = (
unsigned long) len;
37 :
"+d" (
sum),
"+d" (
reg2),
"+d" (
reg3) : :
"cc",
"memory");
59 memset(dst + len - missing, 0, missing);
81 csum += (csum >> 16) + (csum << 16);
102 unsigned short len,
unsigned short proto,
116 if (csum < len + proto)
129 unsigned short len,
unsigned short proto,