Searched refs:sum (Results 1 - 21 of 21) sorted by relevance

/net/ipv6/
H A Dip6_checksum.c16 __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 Dtcpv6_offload.c40 __sum16 sum; local
57 sum = csum_fold(skb_checksum(skb,
61 if (sum)
H A Dip6_tunnel.c105 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 Dring_buffer.c33 uint16_t count = 0, i = 0, sum = 0; local
40 sum += *ptr;
50 return (uint8_t)(sum / count);
H A Dmain.h295 uint64_t *counters, sum = 0; local
300 sum += counters[idx];
303 return sum;
/net/rds/
H A Dib_stats.c79 uint64_t *sum; local
88 sum = (uint64_t *)&stats;
90 *(sum++) += *(src++);
H A Diw_stats.c77 uint64_t *sum; local
86 sum = (uint64_t *)&stats;
88 *(sum++) += *(src++);
H A Dtcp_stats.c56 uint64_t *sum; local
65 sum = (uint64_t *)&stats;
67 *(sum++) += *(src++);
H A Dstats.c114 uint64_t *sum; local
128 sum = (uint64_t *)&stats;
130 *(sum++) += *(src++);
/net/netfilter/ipvs/
H A Dip_vs_est.c58 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 Dutils.c306 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 Ddatagram.c662 __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 Dip6t_NPT.c48 __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 Dbr_device.c128 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 Dxfrm_hash.h20 u32 sum = (__force u32)daddr->a4 + (__force u32)saddr->a4; local
21 return ntohl((__force __be32)sum);
/net/dccp/
H A Dackvec.h91 * @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 Dinet_fragment.c176 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 Dinet_lro.c379 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 Dtcp_ipv4.c2811 __sum16 sum; local
2827 sum = csum_fold(skb_checksum(skb,
2831 if (sum)
/net/appletalk/
H A Dddp.c920 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 Daf_ipx.c1222 * 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...]

Completed in 238 milliseconds