/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | checksum.h | 95 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function 177 sum = csum_add(sum, (__force __wsum)*(const u16 *)buff); in csum_partial() 179 sum = csum_add(sum, (__force __wsum)*(const u32 *)buff); in csum_partial() 181 sum = csum_add(sum, (__force __wsum) in csum_partial() 184 sum = csum_add(sum, (__force __wsum) in csum_partial() 187 sum = csum_add(sum, (__force __wsum) in csum_partial() 190 sum = csum_add(sum, (__force __wsum) in csum_partial() 193 sum = csum_add(sum, (__force __wsum) in csum_partial() 196 sum = csum_add(sum, (__force __wsum) in csum_partial() 199 sum = csum_add(sum, ip_fast_csum_nofold(buff, len >> 2)); in csum_partial()
|
/linux-6.3-rc2/include/net/ |
A D | checksum.h | 59 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function 69 return csum_add(csum, ~addend); in csum_sub() 98 return csum_add(csum, csum_shift(csum2, offset)); in csum_block_add() 128 *sum = csum_fold(csum_add(diff, ~csum_unfold(*sum))); in csum_replace_by_diff() 135 *sum = csum_fold(csum_add(tmp, (__force __wsum)to)); in csum_replace4() 151 *csum = csum_add(csum_sub(*csum, old), new); in csum_replace()
|
A D | inet_ecn.h | 145 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)from), in IP6_ECN_set_ce() 161 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)from), in IP6_ECN_set_ect1()
|
A D | gro.h | 224 !csum_fold(csum_add(psum, NAPI_GRO_CB(skb)->csum))) in __skb_gro_checksum_validate_complete() 323 NAPI_GRO_CB(skb)->csum = csum_add(NAPI_GRO_CB(skb)->csum, delta); in skb_gro_remcsum_process()
|
A D | udp.h | 134 csum = csum_add(csum, skb->csum); in udp_csum_outgoing() 145 csum = csum_add(csum, skb->csum); in udp_csum()
|
/linux-6.3-rc2/net/ipv6/ila/ |
A D | ila_common.c | 51 diff = csum_add(diff, fval); in ila_csum_do_neutral_fmt() 53 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_fmt() 71 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_nofmt()
|
/linux-6.3-rc2/net/core/ |
A D | utils.c | 431 skb->csum = ~csum_add(csum_sub(~(skb->csum), in inet_proto_csum_replace4() 435 *sum = ~csum_fold(csum_add(csum_sub(csum_unfold(*sum), in inet_proto_csum_replace4() 483 *sum = ~csum_fold(csum_add(diff, csum_unfold(*sum))); in inet_proto_csum_replace_by_diff()
|
A D | gro.c | 802 sum = csum_fold(csum_add(NAPI_GRO_CB(skb)->csum, wsum)); in __skb_gro_checksum_complete()
|
/linux-6.3-rc2/arch/sparc/include/asm/ |
A D | checksum_64.h | 133 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function
|
A D | checksum_32.h | 199 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | checksum_64.h | 178 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function
|
/linux-6.3-rc2/net/ipv6/netfilter/ |
A D | ip6t_NPT.c | 71 sum = ~csum_fold(csum_add(csum_unfold((__force __sum16)addr->s6_addr16[idx]), in ip6t_npt_map_pfx()
|
/linux-6.3-rc2/net/dsa/ |
A D | tag_dsa.c | 312 c = csum_add(c, csum_partial(new_header + 2, 2, 0)); in dsa_rcv_ll()
|
/linux-6.3-rc2/net/netfilter/ |
A D | nft_payload.c | 680 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace() 760 skb->csum = ~csum_add(csum_sub(~(skb->csum), fsum), in nft_payload_l4csum_update() 764 sum = ~csum_fold(csum_add(csum_sub(csum_unfold(sum), fsum), in nft_payload_l4csum_update()
|
A D | xt_TCPMSS.c | 242 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)oldlen), in tcpmss_tg6()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_rx.c | 572 return csum_add(hw_checksum, *(__wsum *)vlanh); in get_fixed_vlan_csum() 613 temp = csum_add(hw_checksum, *(__wsum *)ipv6h); in get_fixed_ipv6_csum() 615 skb->csum = csum_add(temp, (__force __wsum)*(__be16 *)&ipv6h->nexthdr); in get_fixed_ipv6_csum()
|
/linux-6.3-rc2/drivers/staging/gdm724x/ |
A D | gdm_lte.c | 200 sum = csum_add(sum, csum_unfold((__force __sum16)pa)); in icmp6_checksum() 205 sum = csum_add(sum, csum_unfold((__force __sum16)*w++)); in icmp6_checksum()
|
/linux-6.3-rc2/net/ipv4/ |
A D | inet_fragment.c | 546 head->csum = csum_add(head->csum, fp->csum); in inet_frag_reasm_finish()
|
A D | udp_offload.c | 135 uh->check = ~csum_fold(csum_add(partial, in __skb_udp_tunnel_segment()
|
A D | icmp.c | 385 csum = csum_add(csum, skb1->csum); in icmp_push_reply()
|
A D | ip_output.c | 1743 arg->csumoffset) = csum_fold(csum_add(nskb->csum, in ip_send_unicast_reply()
|
/linux-6.3-rc2/net/ipv6/ |
A D | icmp.c | 297 tmp_csum = csum_add(tmp_csum, skb->csum); in icmpv6_push_pending_frames()
|
A D | raw.c | 548 tmp_csum = csum_add(tmp_csum, skb->csum); in rawv6_push_pending_frames()
|
A D | udp.c | 1209 csum = csum_add(csum, frags->csum); in udp6_hwcsum_outgoing()
|
/linux-6.3-rc2/include/linux/ |
A D | skbuff.h | 4450 if (!csum_fold(csum_add(psum, skb->csum))) { in __skb_checksum_validate_complete() 4559 skb->csum = csum_add(skb->csum, delta); in skb_remcsum_process()
|