/linux-2.4.37.9/include/net/ |
D | checksum.h | 41 unsigned int csum) in csum_ipv6_magic() argument 48 csum += saddr->s6_addr32[0]; in csum_ipv6_magic() 49 carry = (csum < saddr->s6_addr32[0]); in csum_ipv6_magic() 50 csum += carry; in csum_ipv6_magic() 52 csum += saddr->s6_addr32[1]; in csum_ipv6_magic() 53 carry = (csum < saddr->s6_addr32[1]); in csum_ipv6_magic() 54 csum += carry; in csum_ipv6_magic() 56 csum += saddr->s6_addr32[2]; in csum_ipv6_magic() 57 carry = (csum < saddr->s6_addr32[2]); in csum_ipv6_magic() 58 csum += carry; in csum_ipv6_magic() [all …]
|
/linux-2.4.37.9/include/asm-mips/ |
D | checksum.h | 99 unsigned int csum; in ip_fast_csum() local 102 csum = word[0]; in ip_fast_csum() 103 csum += word[1]; in ip_fast_csum() 104 carry = (csum < word[1]); in ip_fast_csum() 105 csum += carry; in ip_fast_csum() 107 csum += word[2]; in ip_fast_csum() 108 carry = (csum < word[2]); in ip_fast_csum() 109 csum += carry; in ip_fast_csum() 111 csum += word[3]; in ip_fast_csum() 112 carry = (csum < word[3]); in ip_fast_csum() [all …]
|
/linux-2.4.37.9/include/asm-mips64/ |
D | checksum.h | 102 unsigned int csum; in ip_fast_csum() local 105 csum = word[0]; in ip_fast_csum() 106 csum += word[1]; in ip_fast_csum() 107 carry = (csum < word[1]); in ip_fast_csum() 108 csum += carry; in ip_fast_csum() 110 csum += word[2]; in ip_fast_csum() 111 carry = (csum < word[2]); in ip_fast_csum() 112 csum += carry; in ip_fast_csum() 114 csum += word[3]; in ip_fast_csum() 115 carry = (csum < word[3]); in ip_fast_csum() [all …]
|
/linux-2.4.37.9/net/core/ |
D | skbuff.c | 375 C(csum); in skb_clone() 482 n->csum = skb->csum; in skb_copy() 578 n->csum = skb->csum; in pskb_copy() 1033 unsigned int skb_checksum(const struct sk_buff *skb, int offset, int len, unsigned int csum) in skb_checksum() argument 1043 csum = csum_partial(skb->data+offset, copy, csum); in skb_checksum() 1045 return csum; in skb_checksum() 1067 csum = csum_block_add(csum, csum2, pos); in skb_checksum() 1069 return csum; in skb_checksum() 1090 csum = csum_block_add(csum, csum2, pos); in skb_checksum() 1092 return csum; in skb_checksum() [all …]
|
D | iovec.c | 204 int csum = *csump; in csum_partial_copy_fromiovecend() local 237 partial_cnt, csum); in csum_partial_copy_fromiovecend() 242 csum = csum_partial(kdata - partial_cnt, 4, csum); in csum_partial_copy_fromiovecend() 263 csum = csum_and_copy_from_user(base, kdata, copy, in csum_partial_copy_fromiovecend() 264 csum, &err); in csum_partial_copy_fromiovecend() 272 *csump = csum; in csum_partial_copy_fromiovecend()
|
D | datagram.c | 372 unsigned int csum; in skb_copy_and_csum_datagram_iovec() local 380 if ((unsigned short)csum_fold(skb_checksum(skb, 0, chunk+hlen, skb->csum))) in skb_copy_and_csum_datagram_iovec() 385 csum = csum_partial(skb->data, hlen, skb->csum); in skb_copy_and_csum_datagram_iovec() 386 if (skb_copy_and_csum_datagram(skb, hlen, iov->iov_base, chunk, &csum)) in skb_copy_and_csum_datagram_iovec() 388 if ((unsigned short)csum_fold(csum)) in skb_copy_and_csum_datagram_iovec()
|
/linux-2.4.37.9/fs/partitions/ |
D | sgi.c | 22 int i, csum, magic; in sgi_partition() local 42 int csum; /* Disk label checksum */ in sgi_partition() member 59 for(csum = 0; ui >= ((unsigned int *) label);) { in sgi_partition() 61 csum += be32_to_cpu(cs); in sgi_partition() 63 if(csum) { in sgi_partition()
|
D | sun.c | 29 int i, csum; in sun_partition() local 58 unsigned short csum; /* Label xor'd checksum */ in sun_partition() member 76 for (csum = 0; ush >= ((unsigned short *) label);) in sun_partition() 77 csum ^= *ush--; in sun_partition() 78 if (csum) { in sun_partition()
|
/linux-2.4.37.9/arch/x86_64/lib/ |
D | Makefile | 10 export-objs := csum-wrappers.o 13 obj-y = csum-partial.o csum-copy.o csum-wrappers.o delay.o \
|
/linux-2.4.37.9/net/ipv6/ |
D | icmp.c | 96 __u32 csum; member 128 __u32 csum; in icmpv6_getfrag() local 131 csum = skb_copy_and_csum_bits(msg->skb, msg->offset + in icmpv6_getfrag() 133 buff, len, msg->csum); in icmpv6_getfrag() 134 msg->csum = csum; in icmpv6_getfrag() 138 csum = csum_partial_copy_nocheck((void *) &msg->icmph, buff, in icmpv6_getfrag() 139 sizeof(struct icmp6hdr), msg->csum); in icmpv6_getfrag() 141 csum = skb_copy_and_csum_bits(msg->skb, msg->offset, in icmpv6_getfrag() 143 len - sizeof(struct icmp6hdr), csum); in icmpv6_getfrag() 148 IPPROTO_ICMPV6, csum); in icmpv6_getfrag() [all …]
|
D | raw.c | 287 if ((unsigned short)csum_fold(skb_checksum(skb, 0, skb->len, skb->csum))) { in rawv6_rcv_skb() 322 skb->len, sk->num, skb->csum)) { in rawv6_rcv() 328 skb->csum = ~csum_ipv6_magic(&skb->nh.ipv6h->saddr, in rawv6_rcv() 335 (unsigned short)csum_fold(skb_checksum(skb, 0, skb->len, skb->csum))) { in rawv6_rcv() 382 if ((unsigned short)csum_fold(skb_checksum(skb, 0, skb->len, skb->csum))) in rawv6_recvmsg() 490 __u16 *csum; in rawv6_frag_cksum() local 492 csum = (__u16 *) (buff + opt->offset); in rawv6_frag_cksum() 493 if (*csum) { in rawv6_frag_cksum() 496 sum += *csum; in rawv6_frag_cksum() 497 *csum = hdr->cksum = (sum + (sum>>16)); in rawv6_frag_cksum() [all …]
|
D | reassembly.c | 88 unsigned int csum; member 437 skb->csum = csum_sub(skb->csum, in ip6_frag_queue() 634 clone->csum = 0; in ip6_frag_reasm() 663 head->csum = csum_add(head->csum, fp->csum); in ip6_frag_reasm() 677 head->csum = csum_partial(head->nh.raw, head->h.raw-head->nh.raw, head->csum); in ip6_frag_reasm()
|
/linux-2.4.37.9/arch/cris/drivers/ |
D | axisflashmap.c | 442 unsigned long csum = 0; in init_axis_flash() local 451 csum += *p++; in init_axis_flash() 452 csum += *p++; in init_axis_flash() 453 csum += *p++; in init_axis_flash() 454 csum += *p++; in init_axis_flash() 456 ptable_ok = (csum == ptable_head->checksum); in init_axis_flash()
|
/linux-2.4.37.9/net/ipv4/ |
D | icmp.c | 104 unsigned int csum; member 289 unsigned int csum; in icmp_glue_bits() local 295 icmp_param->csum=skb_copy_and_csum_bits(icmp_param->skb, in icmp_glue_bits() 297 to, fraglen,icmp_param->csum); in icmp_glue_bits() 306 csum = csum_partial_copy_nocheck((void *)&icmp_param->data, in icmp_glue_bits() 308 icmp_param->csum); in icmp_glue_bits() 309 csum=skb_copy_and_csum_bits(icmp_param->skb, in icmp_glue_bits() 313 csum); in icmp_glue_bits() 315 icmph->checksum = csum_fold(csum); in icmp_glue_bits() 337 icmp_param->csum=0; in icmp_reply() [all …]
|
D | tcp_output.c | 476 buff->csum = csum_partial_copy_nocheck(skb->data + len, skb_put(buff, nsize), in tcp_fragment() 481 skb->csum = csum_block_sub(skb->csum, buff->csum, len); in tcp_fragment() 750 skb->csum = csum_block_add(skb->csum, next_skb->csum, skb_size); in tcp_retrans_try_collapse() 886 skb->csum = 0; in tcp_retransmit_skb() 1041 skb->csum = 0; in tcp_send_fin() 1072 skb->csum = 0; in tcp_send_active_reset() 1177 skb->csum = 0; in tcp_make_synack() 1253 buff->csum = 0; in tcp_connect() 1350 buff->csum = 0; in tcp_send_ack() 1384 skb->csum = 0; in tcp_xmit_probe_skb()
|
D | ip_gre.c | 564 u16 csum = 0; in ipgre_rcv() local 586 csum = (u16)csum_fold(skb->csum); in ipgre_rcv() 587 if (csum) in ipgre_rcv() 591 skb->csum = skb_checksum(skb, 0, skb->len, 0); in ipgre_rcv() 593 csum = (u16)csum_fold(skb->csum); in ipgre_rcv() 613 skb->csum = csum_sub(skb->csum, in ipgre_rcv() 627 if (((flags&GRE_CSUM) && csum) || in ipgre_rcv()
|
/linux-2.4.37.9/fs/efs/ |
D | super.c | 39 unsigned int cs, csum, *ui; in module_exit() local 54 for(csum = 0; ui >= ((unsigned int *) vh);) { in module_exit() 56 csum += be32_to_cpu(cs); in module_exit() 58 if (csum) { in module_exit()
|
/linux-2.4.37.9/drivers/scsi/sym53c8xx_2/ |
D | sym_nvram.c | 522 u_short csum; in sym_read_Symbios_nvram() local 536 for (x = 6, csum = 0; x < len - 6; x++) in sym_read_Symbios_nvram() 537 csum += data[x]; in sym_read_Symbios_nvram() 538 if (csum != nvram->checksum) in sym_read_Symbios_nvram() 699 u_short csum; in sym_read_Tekram_nvram() local 722 for (x = 0, csum = 0; x < len - 1; x += 2) in sym_read_Tekram_nvram() 723 csum += data[x] + (data[x+1] << 8); in sym_read_Tekram_nvram() 724 if (csum != 0x1234) in sym_read_Tekram_nvram()
|
/linux-2.4.37.9/include/linux/ |
D | igmp.h | 33 __u16 csum; member 56 __u16 csum; member 65 __u16 csum; member
|
/linux-2.4.37.9/include/asm-parisc/ |
D | eisa_eeprom.h | 28 u_int16_t csum; /* checksum, I dont know how to calulate this */ member 38 u_int16_t csum; member
|
/linux-2.4.37.9/arch/alpha/lib/ |
D | csum_ipv6_magic.S | 20 zapnot $20,15,$20 # .. e1 : zero extend incoming csum 60 addq $0,$1,$0 # .. e1 : merge the carries back into the csum
|
D | ev6-csum_ipv6_magic.S | 63 zapnot $20,15,$20 # U : zero extend incoming csum 95 addq $0,$1,$0 # E : merge the carries back into the csum
|
/linux-2.4.37.9/include/linux/sunrpc/ |
D | xdr.h | 150 unsigned int csum; member 162 struct sk_buff *skb, unsigned int offset, unsigned int csum);
|
/linux-2.4.37.9/drivers/block/ |
D | amiflop.c | 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() [all …]
|
/linux-2.4.37.9/drivers/net/hamradio/soundmodem/ |
D | sm_afsk1200.c | 97 static inline int convolution8_u8(const unsigned char *st, const int *coeff, int csum) in convolution8_u8() argument 99 int sum = -0x80 * csum; in convolution8_u8() 114 static inline int convolution8_s16(const short *st, const int *coeff, int csum) in convolution8_s16() argument
|