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 | 38 | arch/m68k/lib/checksum.c | csum_partial (const unsigned char *buff, int len, unsigned int sum) |
sum | 117 | arch/m68k/lib/checksum.c | : "=d" (sum), "=d" (len), "=a" (buff), |
sum | 119 | arch/m68k/lib/checksum.c | : "0" (sum), "1" (len), "2" (buff) |
sum | 121 | arch/m68k/lib/checksum.c | return(sum); |
sum | 131 | arch/m68k/lib/checksum.c | csum_partial_copy_fromuser(const char *src, char *dst, int len, int sum) |
sum | 219 | arch/m68k/lib/checksum.c | : "=d" (sum), "=d" (len), "=a" (src), "=a" (dst), |
sum | 221 | arch/m68k/lib/checksum.c | : "0" (sum), "1" (len), "2" (src), "3" (dst) |
sum | 223 | arch/m68k/lib/checksum.c | return(sum); |
sum | 230 | arch/m68k/lib/checksum.c | csum_partial_copy(const char *src, char *dst, int len, int sum) |
sum | 318 | arch/m68k/lib/checksum.c | : "=d" (sum), "=d" (len), "=a" (src), "=a" (dst), |
sum | 320 | arch/m68k/lib/checksum.c | : "0" (sum), "1" (len), "2" (src), "3" (dst) |
sum | 322 | arch/m68k/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 | 285 | arch/sparc/kernel/setup.c | unsigned int sum = 0; |
sum | 288 | arch/sparc/kernel/setup.c | sum += sp_banks[i].num_bytes; |
sum | 290 | arch/sparc/kernel/setup.c | end_of_phys_memory = sum; |
sum | 256 | drivers/net/eexpress.c | unsigned short sum = 0; |
sum | 262 | drivers/net/eexpress.c | sum |= (t>>4) << ((t & 0x03)<<2); |
sum | 264 | drivers/net/eexpress.c | if (sum==0xbaba && !eexp_hw_probe(dev,*port)) |
sum | 1183 | drivers/net/tulip.c | unsigned short sum, bitsum; |
sum | 1210 | drivers/net/tulip.c | sum = 0; |
sum | 1221 | drivers/net/tulip.c | sum += value & 0xFF; |
sum | 1235 | drivers/net/tulip.c | sum += addr[i]; |
sum | 1245 | 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 | 654 | drivers/scsi/atari_scsi.c | unsigned char sum = 0, b; |
sum | 659 | drivers/scsi/atari_scsi.c | sum += RTC_READ(i); |
sum | 662 | drivers/scsi/atari_scsi.c | RTC_READ(62) == sum && RTC_READ(63) == ~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 | 178 | fs/affs/amigaffs.c | ULONG sum; |
sum | 187 | fs/affs/amigaffs.c | sum = 0; |
sum | 190 | fs/affs/amigaffs.c | sum += htonl(*p++); |
sum | 191 | fs/affs/amigaffs.c | return 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 | 97 | include/asm-alpha/bitops.h | unsigned long sum = 0; |
sum | 100 | include/asm-alpha/bitops.h | if (x & 0xF0) sum += 4; |
sum | 101 | include/asm-alpha/bitops.h | if (x & 0xCC) sum += 2; |
sum | 102 | include/asm-alpha/bitops.h | if (x & 0xAA) sum += 1; |
sum | 104 | include/asm-alpha/bitops.h | return 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 | 71 | include/asm-i386/checksum.h | : "=r" (sum), "=r" (iph), "=r" (ihl) |
sum | 73 | include/asm-i386/checksum.h | return(sum); |
sum | 80 | include/asm-i386/checksum.h | static inline unsigned int csum_fold(unsigned int sum) |
sum | 86 | include/asm-i386/checksum.h | : "=r" (sum) |
sum | 87 | include/asm-i386/checksum.h | : "r" (sum << 16), "0" (sum & 0xffff0000) |
sum | 89 | include/asm-i386/checksum.h | return (~sum) >> 16; |
sum | 101 | include/asm-i386/checksum.h | unsigned int sum) { |
sum | 108 | include/asm-i386/checksum.h | : "=r" (sum) |
sum | 109 | include/asm-i386/checksum.h | : "g" (daddr), "g"(saddr), "g"((ntohs(len)<<16)+proto*256), "0"(sum)); |
sum | 110 | include/asm-i386/checksum.h | return csum_fold(sum); |
sum | 16 | include/asm-m68k/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
sum | 26 | include/asm-m68k/checksum.h | unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum); |
sum | 36 | include/asm-m68k/checksum.h | unsigned int csum_partial_copy_fromuser(const char *src, char *dst, int len, int sum); |
sum | 47 | include/asm-m68k/checksum.h | unsigned int sum = 0; |
sum | 59 | include/asm-m68k/checksum.h | : "=d" (sum), "=a" (iph), "=d" (ihl) |
sum | 60 | include/asm-m68k/checksum.h | : "0" (sum), "1" (iph), "2" (ihl) |
sum | 62 | include/asm-m68k/checksum.h | return ~sum; |
sum | 74 | include/asm-m68k/checksum.h | unsigned short proto, unsigned int sum) |
sum | 84 | include/asm-m68k/checksum.h | : "=&d" (sum), "=&d" (saddr) |
sum | 86 | include/asm-m68k/checksum.h | "d"(sum)); |
sum | 87 | include/asm-m68k/checksum.h | return ~sum; |
sum | 94 | include/asm-m68k/checksum.h | static inline unsigned int csum_fold(unsigned int sum) |
sum | 96 | include/asm-m68k/checksum.h | unsigned int tmp = sum; |
sum | 101 | include/asm-m68k/checksum.h | : "=&d" (sum), "=&d" (tmp) |
sum | 102 | include/asm-m68k/checksum.h | : "0" (sum), "1" (sum)); |
sum | 103 | include/asm-m68k/checksum.h | return ~sum; |
sum | 114 | include/asm-m68k/checksum.h | unsigned int sum; |
sum | 122 | include/asm-m68k/checksum.h | : "=d" (sum), "=d" (scratch) |
sum | 124 | include/asm-m68k/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 | 25 | include/asm-sparc/checksum.h | unsigned int sum) |
sum | 52 | include/asm-sparc/checksum.h | : "=&r" (sum), "=&r" (saddr) |
sum | 53 | include/asm-sparc/checksum.h | : "0" (daddr), "1" (saddr), "r" (len+proto), "r" (sum)); |
sum | 54 | include/asm-sparc/checksum.h | return ((unsigned short) sum); |
sum | 123 | include/asm-sparc/checksum.h | unsigned int sum; |
sum | 151 | include/asm-sparc/checksum.h | : "=&r" (sum), "=&r" (iph), "=&r" (ihl) |
sum | 154 | include/asm-sparc/checksum.h | return sum; |
sum | 169 | include/asm-sparc/checksum.h | extern inline unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
sum | 261 | include/asm-sparc/checksum.h | "=&r" (buff), "=&r" (len), "=&r" (sum) : |
sum | 262 | include/asm-sparc/checksum.h | "0" (buff), "1" (len), "2" (sum) : |
sum | 265 | include/asm-sparc/checksum.h | return sum; |
sum | 275 | include/asm-sparc/checksum.h | extern inline unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
sum | 284 | include/asm-sparc/checksum.h | sum = csum_partial(src, len, sum); |
sum | 286 | include/asm-sparc/checksum.h | return sum; |
sum | 304 | include/asm-sparc/checksum.h | extern inline unsigned int csum_fold(unsigned int sum) |
sum | 312 | include/asm-sparc/checksum.h | : "=r" (sum) |
sum | 313 | include/asm-sparc/checksum.h | : "r" (sum << 16), "0" (sum)); |
sum | 314 | include/asm-sparc/checksum.h | return sum; |
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 | 592 | net/ipv4/tcp.c | int sum; |
sum | 619 | net/ipv4/tcp.c | sum = skb->len - (counted - skb->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
sum | 621 | net/ipv4/tcp.c | sum++; |
sum | 622 | net/ipv4/tcp.c | if (sum > 0) |
sum | 624 | net/ipv4/tcp.c | amount += sum; |
sum | 627 | net/ipv4/tcp.c | counted += sum; |
sum | 1220 | net/ipx/af_ipx.c | __u32 sum=0; |
sum | 1239 | net/ipx/af_ipx.c | sum+=*p++; |
sum | 1246 | net/ipx/af_ipx.c | sum+=ntohs(0xff00)&*p; |
sum | 1252 | net/ipx/af_ipx.c | sum=(sum&0xffff)+(sum>>16); |
sum | 1258 | net/ipx/af_ipx.c | if(sum>=0x10000) |
sum | 1259 | net/ipx/af_ipx.c | sum++; |
sum | 1261 | net/ipx/af_ipx.c | return ~sum; |