tag | line | file | source code |
sum | 101 | arch/alpha/boot/main.c | unsigned long i, rev, sum; |
sum | 143 | arch/alpha/boot/main.c | sum = 0; |
sum | 145 | arch/alpha/boot/main.c | sum += *l; |
sum | 146 | arch/alpha/boot/main.c | hwrpb.chksum = sum; |
sum | 421 | arch/alpha/kernel/apecs.c | unsigned long *l, sum; |
sum | 423 | arch/alpha/kernel/apecs.c | sum = 0; |
sum | 425 | arch/alpha/kernel/apecs.c | sum += *l; |
sum | 426 | 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 | 73 | arch/i386/kernel/smp.c | int sum=0; |
sum | 75 | arch/i386/kernel/smp.c | sum+=*mp++; |
sum | 76 | 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 | 101 | arch/ppc/kernel/stubs.c | unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
sum | 107 | arch/ppc/kernel/stubs.c | unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
sum | 321 | drivers/net/eexpress.c | unsigned short sum = 0; |
sum | 325 | drivers/net/eexpress.c | sum += inb(id_addr); |
sum | 326 | drivers/net/eexpress.c | printk("EtherExpress ID checksum is %04x.\n", sum); |
sum | 330 | drivers/net/eexpress.c | sum |= (id_val >> 4) << ((id_val & 3) << 2); |
sum | 333 | drivers/net/eexpress.c | if (sum == 0xbaba |
sum | 42 | drivers/sound/hex2hex.h | unsigned char sum; |
sum | 48 | drivers/sound/hex2hex.h | sum = n; |
sum | 52 | drivers/sound/hex2hex.h | sum += addr/256; |
sum | 53 | drivers/sound/hex2hex.h | sum += addr%256; |
sum | 57 | drivers/sound/hex2hex.h | sum += linetype; |
sum | 71 | drivers/sound/hex2hex.h | sum += c; |
sum | 77 | drivers/sound/hex2hex.h | sum = ~sum + 1; |
sum | 78 | 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 | 22 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
sum | 36 | fs/minix/bitmap.c | sum += nibblemap[tmp&0xf] + nibblemap[(tmp>>4)&0xf]; |
sum | 40 | fs/minix/bitmap.c | sum += nibblemap[bh->b_data[j] & 0xf] |
sum | 43 | fs/minix/bitmap.c | return(sum); |
sum | 197 | fs/proc/array.c | unsigned sum = 0; |
sum | 200 | fs/proc/array.c | sum += kstat.interrupts[i]; |
sum | 229 | 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 | 923 | net/appletalk/ddp.c | unsigned long sum=0; /* Assume unsigned long is >16 bits */ |
sum | 932 | net/appletalk/ddp.c | sum+=*data; |
sum | 933 | net/appletalk/ddp.c | sum<<=1; |
sum | 934 | net/appletalk/ddp.c | if(sum&0x10000) |
sum | 936 | net/appletalk/ddp.c | sum++; |
sum | 937 | net/appletalk/ddp.c | sum&=0xFFFF; |
sum | 941 | net/appletalk/ddp.c | if(sum) |
sum | 942 | net/appletalk/ddp.c | return htons((unsigned short)sum); |
sum | 1141 | net/ipv4/tcp.c | int sum; |
sum | 1168 | net/ipv4/tcp.c | sum = skb->len - (counted - skb->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
sum | 1170 | net/ipv4/tcp.c | sum++; |
sum | 1171 | net/ipv4/tcp.c | if (sum > 0) |
sum | 1173 | net/ipv4/tcp.c | amount += sum; |
sum | 1176 | net/ipv4/tcp.c | counted += sum; |