/net/ipv6/ |
H A D | ip6_checksum.c | 16 __u32 sum = (__force u32)csum; local 18 sum += (__force u32)saddr->s6_addr32[0]; 19 carry = (sum < (__force u32)saddr->s6_addr32[0]); 20 sum += carry; 22 sum += (__force u32)saddr->s6_addr32[1]; 23 carry = (sum < (__force u32)saddr->s6_addr32[1]); 24 sum += carry; 26 sum += (__force u32)saddr->s6_addr32[2]; 27 carry = (sum < (__force u32)saddr->s6_addr32[2]); 28 sum [all...] |
H A D | tcpv6_offload.c | 40 __sum16 sum; local 57 sum = csum_fold(skb_checksum(skb, 61 if (sum)
|
H A D | ip6_tunnel.c | 105 struct pcpu_tstats sum = { 0 }; local 111 sum.rx_packets += tstats->rx_packets; 112 sum.rx_bytes += tstats->rx_bytes; 113 sum.tx_packets += tstats->tx_packets; 114 sum.tx_bytes += tstats->tx_bytes; 116 dev->stats.rx_packets = sum.rx_packets; 117 dev->stats.rx_bytes = sum.rx_bytes; 118 dev->stats.tx_packets = sum.tx_packets; 119 dev->stats.tx_bytes = sum.tx_bytes;
|
/net/batman-adv/ |
H A D | ring_buffer.c | 33 uint16_t count = 0, i = 0, sum = 0; local 40 sum += *ptr; 50 return (uint8_t)(sum / count);
|
H A D | main.h | 295 uint64_t *counters, sum = 0; local 300 sum += counters[idx]; 303 return sum;
|
/net/rds/ |
H A D | ib_stats.c | 79 uint64_t *sum; local 88 sum = (uint64_t *)&stats; 90 *(sum++) += *(src++);
|
H A D | iw_stats.c | 77 uint64_t *sum; local 86 sum = (uint64_t *)&stats; 88 *(sum++) += *(src++);
|
H A D | tcp_stats.c | 56 uint64_t *sum; local 65 sum = (uint64_t *)&stats; 67 *(sum++) += *(src++);
|
H A D | stats.c | 114 uint64_t *sum; local 128 sum = (uint64_t *)&stats; 130 *(sum++) += *(src++);
|
/net/netfilter/ipvs/ |
H A D | ip_vs_est.c | 58 static void ip_vs_read_cpu_stats(struct ip_vs_stats_user *sum, argument 68 sum->conns += s->ustats.conns; 69 sum->inpkts += s->ustats.inpkts; 70 sum->outpkts += s->ustats.outpkts; 76 sum->inbytes += inbytes; 77 sum->outbytes += outbytes; 79 sum->conns = s->ustats.conns; 80 sum->inpkts = s->ustats.inpkts; 81 sum->outpkts = s->ustats.outpkts; 84 sum [all...] |
/net/core/ |
H A D | utils.c | 306 void inet_proto_csum_replace4(__sum16 *sum, struct sk_buff *skb, argument 311 *sum = csum_fold(csum_partial(diff, sizeof(diff), 312 ~csum_unfold(*sum))); 317 *sum = ~csum_fold(csum_partial(diff, sizeof(diff), 318 csum_unfold(*sum))); 322 void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb, argument 331 *sum = csum_fold(csum_partial(diff, sizeof(diff), 332 ~csum_unfold(*sum))); 337 *sum = ~csum_fold(csum_partial(diff, sizeof(diff), 338 csum_unfold(*sum))); [all...] |
H A D | datagram.c | 662 __sum16 sum; local 664 sum = csum_fold(skb_checksum(skb, 0, len, skb->csum)); 665 if (likely(!sum)) { 670 return sum;
|
/net/ipv6/netfilter/ |
H A D | ip6t_NPT.c | 48 __sum16 sum; local 74 sum = ~csum_fold(csum_add(csum_unfold((__force __sum16)addr->s6_addr16[idx]), 76 if (sum == CSUM_MANGLED_0) 77 sum = 0; 78 *(__force __sum16 *)&addr->s6_addr16[idx] = sum;
|
/net/bridge/ |
H A D | br_device.c | 128 struct br_cpu_netstats tmp, sum = { 0 }; local 139 sum.tx_bytes += tmp.tx_bytes; 140 sum.tx_packets += tmp.tx_packets; 141 sum.rx_bytes += tmp.rx_bytes; 142 sum.rx_packets += tmp.rx_packets; 145 stats->tx_bytes = sum.tx_bytes; 146 stats->tx_packets = sum.tx_packets; 147 stats->rx_bytes = sum.rx_bytes; 148 stats->rx_packets = sum.rx_packets;
|
/net/xfrm/ |
H A D | xfrm_hash.h | 20 u32 sum = (__force u32)daddr->a4 + (__force u32)saddr->a4; local 21 return ntohl((__force __be32)sum);
|
/net/dccp/ |
H A D | ackvec.h | 91 * @avr_ack_nonce: the sum of @av_buf_nonce's at the time this record was sent 111 extern int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum);
|
/net/ipv4/ |
H A D | inet_fragment.c | 176 unsigned int sum, sum_truesize = 0; local 191 sum = sum_truesize + f->qsize; 193 *work -= sum; 194 sub_frag_mem_limit(q, sum);
|
H A D | inet_lro.c | 379 int hlen, __wsum sum, 412 skb->csum = sum; 420 void *priv, __wsum sum) 491 hdr_len, sum, lro_mgr->ip_summed); 511 int len, int true_size, void *priv, __wsum sum) 515 skb = __lro_proc_segment(lro_mgr, frags, len, true_size, priv, sum); 375 lro_gen_skb(struct net_lro_mgr *lro_mgr, struct skb_frag_struct *frags, int len, int true_size, void *mac_hdr, int hlen, __wsum sum, u32 ip_summed) argument 417 __lro_proc_segment(struct net_lro_mgr *lro_mgr, struct skb_frag_struct *frags, int len, int true_size, void *priv, __wsum sum) argument 509 lro_receive_frags(struct net_lro_mgr *lro_mgr, struct skb_frag_struct *frags, int len, int true_size, void *priv, __wsum sum) argument
|
H A D | tcp_ipv4.c | 2811 __sum16 sum; local 2827 sum = csum_fold(skb_checksum(skb, 2831 if (sum)
|
/net/appletalk/ |
H A D | ddp.c | 920 int len, unsigned long sum) 924 sum += *data++; 925 sum = rol16(sum, 1); 927 return sum; 932 int len, unsigned long sum) 942 sum = atalk_sum_partial(skb->data + offset, copy, sum); 944 return sum; 962 sum 919 atalk_sum_partial(const unsigned char *data, int len, unsigned long sum) argument 931 atalk_sum_skb(const struct sk_buff *skb, int offset, int len, unsigned long sum) argument 998 unsigned long sum; local [all...] |
/net/ipx/ |
H A D | af_ipx.c | 1222 * NOTE: sum is a net byte order quantity, which optimizes the 1229 __u32 sum = p[1] + (p[2] & (__force u16)htons(0x00ff)); local 1235 sum += *p++; 1239 sum += (__force u16)htons(0xff00) & *p; 1242 sum = (sum & 0xffff) + (sum >> 16); 1245 if (sum >= 0x10000) 1246 sum++; 1250 * here with 0x10000, so this check is the same as ((__u16)sum) [all...] |