tag | line | file | source code |
sum | 102 | arch/alpha/boot/main.c | unsigned long i, rev, sum; |
sum | 144 | arch/alpha/boot/main.c | sum = 0; |
sum | 146 | arch/alpha/boot/main.c | sum += *l; |
sum | 147 | arch/alpha/boot/main.c | hwrpb.chksum = sum; |
sum | 448 | arch/alpha/kernel/apecs.c | unsigned long *l, sum; |
sum | 450 | arch/alpha/kernel/apecs.c | sum = 0; |
sum | 452 | arch/alpha/kernel/apecs.c | sum += *l; |
sum | 453 | arch/alpha/kernel/apecs.c | hwrpb->chksum = sum; |
sum | 33 | arch/alpha/lib/checksum.c | unsigned int sum) |
sum | 35 | arch/alpha/lib/checksum.c | return ~from64to16(saddr + daddr + sum + |
sum | 130 | arch/alpha/lib/checksum.c | unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
sum | 135 | arch/alpha/lib/checksum.c | result += sum; |
sum | 149 | arch/alpha/lib/checksum.c | unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
sum | 158 | arch/alpha/lib/checksum.c | sum = csum_partial(src, len, sum); |
sum | 160 | arch/alpha/lib/checksum.c | return sum; |
sum | 410 | arch/i386/kernel/bios32.c | unsigned char sum; |
sum | 426 | arch/i386/kernel/bios32.c | sum = 0; |
sum | 428 | arch/i386/kernel/bios32.c | sum += check->chars[i]; |
sum | 429 | arch/i386/kernel/bios32.c | if (sum != 0) |
sum | 114 | arch/i386/kernel/smp.c | int sum=0; |
sum | 116 | arch/i386/kernel/smp.c | sum+=*mp++; |
sum | 117 | arch/i386/kernel/smp.c | return sum&0xFF; |
sum | 26 | arch/i386/lib/checksum.c | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) { |
sum | 92 | arch/i386/lib/checksum.c | : "=a"(sum) |
sum | 93 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(buff) |
sum | 95 | arch/i386/lib/checksum.c | return(sum); |
sum | 105 | arch/i386/lib/checksum.c | int len, int sum) { |
sum | 190 | arch/i386/lib/checksum.c | : "=a" (sum) |
sum | 191 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(src), "D" (dst) |
sum | 193 | arch/i386/lib/checksum.c | return(sum); |
sum | 200 | arch/i386/lib/checksum.c | int len, int sum) { |
sum | 285 | arch/i386/lib/checksum.c | : "=a" (sum) |
sum | 286 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(src), "D" (dst) |
sum | 288 | arch/i386/lib/checksum.c | return(sum); |
sum | 24 | arch/mips/lib/checksum.c | unsigned int csum_partial(const unsigned char *buff, int len, unsigned int sum) |
sum | 127 | arch/mips/lib/checksum.c | : "=r"(sum), "=r" (scratch1), "=r" (scratch2) |
sum | 128 | arch/mips/lib/checksum.c | : "0"(sum), "r"(len), "r"(buff) |
sum | 131 | arch/mips/lib/checksum.c | return sum; |
sum | 138 | arch/mips/lib/checksum.c | int len, int sum) |
sum | 144 | arch/mips/lib/checksum.c | sum = csum_partial(src, len, sum); |
sum | 147 | arch/mips/lib/checksum.c | return sum; |
sum | 107 | arch/ppc/kernel/stubs.c | unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
sum | 113 | arch/ppc/kernel/stubs.c | unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
sum | 273 | drivers/net/eexpress.c | unsigned short sum = 0; |
sum | 279 | drivers/net/eexpress.c | sum |= (t>>4) << ((t & 0x03)<<2); |
sum | 281 | drivers/net/eexpress.c | if (sum==0xbaba && !eexp_hw_probe(dev,*port)) |
sum | 1217 | drivers/net/tulip.c | unsigned short sum, bitsum; |
sum | 1244 | drivers/net/tulip.c | sum = 0; |
sum | 1255 | drivers/net/tulip.c | sum += value; |
sum | 1269 | drivers/net/tulip.c | sum += addr[i]; |
sum | 1279 | drivers/net/tulip.c | if (sum == 0) { |
sum | 8248 | drivers/scsi/advansys.c | ushort sum; |
sum | 8256 | drivers/scsi/advansys.c | sum = 0; |
sum | 8261 | drivers/scsi/advansys.c | sum += wval; |
sum | 8276 | drivers/scsi/advansys.c | sum += wval; |
sum | 8280 | drivers/scsi/advansys.c | return (sum); |
sum | 8291 | drivers/scsi/advansys.c | ushort sum; |
sum | 8298 | drivers/scsi/advansys.c | sum = 0; |
sum | 8300 | drivers/scsi/advansys.c | sum += *wbuf; |
sum | 8314 | drivers/scsi/advansys.c | sum += *wbuf; |
sum | 8319 | drivers/scsi/advansys.c | *wbuf = sum; |
sum | 8320 | drivers/scsi/advansys.c | if (sum != AscWriteEEPWord(iop_base, (uchar) s_addr, sum)) { |
sum | 8997 | drivers/scsi/advansys.c | ulong sum; |
sum | 9000 | drivers/scsi/advansys.c | sum = 0L; |
sum | 9002 | drivers/scsi/advansys.c | sum += AscReadLramWord(iop_base, s_addr); |
sum | 9004 | drivers/scsi/advansys.c | return (sum); |
sum | 24 | drivers/sound/hex2hex.h | unsigned char sum; |
sum | 30 | drivers/sound/hex2hex.h | sum = n; |
sum | 34 | drivers/sound/hex2hex.h | sum += addr/256; |
sum | 35 | drivers/sound/hex2hex.h | sum += addr%256; |
sum | 39 | drivers/sound/hex2hex.h | sum += linetype; |
sum | 53 | drivers/sound/hex2hex.h | sum += c; |
sum | 59 | drivers/sound/hex2hex.h | sum = ~sum + 1; |
sum | 60 | drivers/sound/hex2hex.h | if (check != sum) |
sum | 18 | fs/ext2/bitmap.c | unsigned long sum = 0; |
sum | 23 | fs/ext2/bitmap.c | sum += nibblemap[map->b_data[i] & 0xf] + |
sum | 25 | fs/ext2/bitmap.c | return (sum); |
sum | 218 | fs/fat/dir.c | unsigned char sum; |
sum | 220 | fs/fat/dir.c | for (sum = 0, i = 0; i < 11; i++) { |
sum | 221 | fs/fat/dir.c | sum = (((sum&1)<<7)|((sum&0xfe)>>1)) + de->name[i]; |
sum | 224 | fs/fat/dir.c | if (sum != alias_checksum) { |
sum | 225 | fs/fat/dir.c | PRINTK(("Checksums don't match %d != %d\n", sum, alias_checksum)); |
sum | 21 | fs/minix/bitmap.c | unsigned i, j, sum = 0; |
sum | 28 | fs/minix/bitmap.c | sum += nibblemap[bh->b_data[j] & 0xf] |
sum | 31 | fs/minix/bitmap.c | return(sum); |
sum | 193 | fs/proc/array.c | unsigned sum = 0; |
sum | 197 | fs/proc/array.c | sum += kstat.interrupts[i]; |
sum | 226 | fs/proc/array.c | sum); |
sum | 343 | fs/xiafs/bitmap.c | u_long sum; |
sum | 345 | fs/xiafs/bitmap.c | sum=0; |
sum | 348 | fs/xiafs/bitmap.c | sum += nibblemap[tmp & 0xf] + nibblemap[(tmp & 0xff) >> 4]; |
sum | 350 | fs/xiafs/bitmap.c | return sum; |
sum | 357 | fs/xiafs/bitmap.c | u_long sum; |
sum | 359 | fs/xiafs/bitmap.c | sum=0; |
sum | 364 | fs/xiafs/bitmap.c | sum += count_zone(bh); |
sum | 369 | fs/xiafs/bitmap.c | return i - sum; |
sum | 376 | fs/xiafs/bitmap.c | u_long sum; |
sum | 378 | fs/xiafs/bitmap.c | sum=0; |
sum | 383 | fs/xiafs/bitmap.c | sum += count_zone(bh); |
sum | 388 | fs/xiafs/bitmap.c | return i - sum; |
sum | 19 | include/asm-alpha/checksum.h | unsigned int sum); |
sum | 33 | include/asm-alpha/checksum.h | extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
sum | 42 | include/asm-alpha/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
sum | 62 | include/asm-alpha/checksum.h | static inline unsigned short csum_fold(unsigned int sum) |
sum | 64 | include/asm-alpha/checksum.h | sum = (sum & 0xffff) + (sum >> 16); |
sum | 65 | include/asm-alpha/checksum.h | sum = (sum & 0xffff) + (sum >> 16); |
sum | 66 | include/asm-alpha/checksum.h | return ~sum; |
sum | 16 | include/asm-i386/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
sum | 26 | include/asm-i386/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
sum | 36 | include/asm-i386/checksum.h | unsigned int csum_partial_copy_fromuser(const char *src, char *dst, int len, int sum); |
sum | 47 | include/asm-i386/checksum.h | unsigned int sum; |
sum | 68 | include/asm-i386/checksum.h | : "=&r" (sum), "=&r" (iph), "=&r" (ihl) |
sum | 70 | include/asm-i386/checksum.h | return(sum); |
sum | 85 | include/asm-i386/checksum.h | unsigned int sum) { |
sum | 97 | include/asm-i386/checksum.h | : "=&r" (sum), "=&r" (saddr) |
sum | 98 | include/asm-i386/checksum.h | : "0" (daddr), "1"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum)); |
sum | 99 | include/asm-i386/checksum.h | return((unsigned short)sum); |
sum | 106 | include/asm-i386/checksum.h | static inline unsigned int csum_fold(unsigned int sum) |
sum | 112 | include/asm-i386/checksum.h | : "=r" (sum) |
sum | 113 | include/asm-i386/checksum.h | : "r" (sum << 16), "0" (sum & 0xffff0000) |
sum | 115 | include/asm-i386/checksum.h | return (~sum) >> 16; |
sum | 124 | include/asm-i386/checksum.h | unsigned int sum; |
sum | 134 | include/asm-i386/checksum.h | : "=a"(sum), "=r" (scratch) |
sum | 136 | include/asm-i386/checksum.h | return(sum); |
sum | 25 | include/asm-mips/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
sum | 34 | include/asm-mips/checksum.h | unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum); |
sum | 52 | include/asm-mips/checksum.h | unsigned short int sum; |
sum | 95 | include/asm-mips/checksum.h | : "=r" (sum), "=r" (dummy1), "=r" (dummy2) |
sum | 99 | include/asm-mips/checksum.h | return sum; |
sum | 110 | include/asm-mips/checksum.h | unsigned int sum) |
sum | 130 | include/asm-mips/checksum.h | : "=r" (sum) |
sum | 131 | include/asm-mips/checksum.h | : "0" (daddr), "r"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum) |
sum | 134 | include/asm-mips/checksum.h | return (unsigned short)sum; |
sum | 140 | include/asm-mips/checksum.h | static inline unsigned short int csum_fold(unsigned int sum) |
sum | 150 | include/asm-mips/checksum.h | : "=r"(sum) |
sum | 151 | include/asm-mips/checksum.h | : "0" (sum) |
sum | 154 | include/asm-mips/checksum.h | return sum; |
sum | 162 | include/asm-mips/checksum.h | unsigned short int sum; |
sum | 172 | include/asm-mips/checksum.h | : "=r"(sum) |
sum | 176 | include/asm-mips/checksum.h | return sum; |
sum | 19 | include/asm-ppc/checksum.h | unsigned int sum); |
sum | 33 | include/asm-ppc/checksum.h | extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
sum | 42 | include/asm-ppc/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
sum | 92 | include/asm-sparc/checksum.h | extern inline unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
sum | 97 | include/asm-sparc/checksum.h | result += sum; |
sum | 110 | include/asm-sparc/checksum.h | extern inline unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
sum | 119 | include/asm-sparc/checksum.h | sum = csum_partial(src, len, sum); |
sum | 121 | include/asm-sparc/checksum.h | return sum; |
sum | 140 | include/asm-sparc/checksum.h | static inline unsigned short csum_fold(unsigned int sum) |
sum | 142 | include/asm-sparc/checksum.h | sum = (sum & 0xffff) + (sum >> 16); |
sum | 143 | include/asm-sparc/checksum.h | sum = (sum & 0xffff) + (sum >> 16); |
sum | 144 | include/asm-sparc/checksum.h | return ~sum; |
sum | 155 | include/asm-sparc/checksum.h | unsigned int sum) |
sum | 158 | include/asm-sparc/checksum.h | + (daddr & 0xffff) + (sum >> 16) + |
sum | 159 | include/asm-sparc/checksum.h | (sum & 0xffff) + proto + len)); |
sum | 974 | net/appletalk/ddp.c | unsigned long sum=0; /* Assume unsigned long is >16 bits */ |
sum | 983 | net/appletalk/ddp.c | sum+=*data; |
sum | 984 | net/appletalk/ddp.c | sum<<=1; |
sum | 985 | net/appletalk/ddp.c | if(sum&0x10000) |
sum | 987 | net/appletalk/ddp.c | sum++; |
sum | 988 | net/appletalk/ddp.c | sum&=0xFFFF; |
sum | 992 | net/appletalk/ddp.c | if(sum) |
sum | 993 | net/appletalk/ddp.c | return htons((unsigned short)sum); |
sum | 616 | net/ipv4/tcp.c | int sum; |
sum | 643 | net/ipv4/tcp.c | sum = skb->len - (counted - skb->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
sum | 645 | net/ipv4/tcp.c | sum++; |
sum | 646 | net/ipv4/tcp.c | if (sum > 0) |
sum | 648 | net/ipv4/tcp.c | amount += sum; |
sum | 651 | net/ipv4/tcp.c | counted += sum; |
sum | 1194 | net/ipx/af_ipx.c | __u32 sum=0; |
sum | 1213 | net/ipx/af_ipx.c | sum+=*p++; |
sum | 1220 | net/ipx/af_ipx.c | sum+=ntohs(0xff00)&*p; |
sum | 1226 | net/ipx/af_ipx.c | sum=(sum&0xffff)+(sum>>16); |
sum | 1232 | net/ipx/af_ipx.c | if(sum>=0x10000) |
sum | 1233 | net/ipx/af_ipx.c | sum++; |
sum | 1235 | net/ipx/af_ipx.c | return ~sum; |