Home
last modified time | relevance | path

Searched refs:csum_add (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.1.9/arch/powerpc/include/asm/
Dchecksum.h95 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.1.9/include/net/
Dchecksum.h57 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function
67 return csum_add(csum, ~addend); in csum_sub()
96 return csum_add(csum, csum_shift(csum2, offset)); in csum_block_add()
126 *sum = csum_fold(csum_add(diff, ~csum_unfold(*sum))); in csum_replace_by_diff()
133 *sum = csum_fold(csum_add(tmp, (__force __wsum)to)); in csum_replace4()
149 *csum = csum_add(csum_sub(*csum, old), new); in csum_replace()
Dinet_ecn.h145 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()
Dgro.h224 !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()
Dudp.h134 csum = csum_add(csum, skb->csum); in udp_csum_outgoing()
145 csum = csum_add(csum, skb->csum); in udp_csum()
/linux-6.1.9/net/ipv6/ila/
Dila_common.c51 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.1.9/net/core/
Dutils.c431 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()
Dgro.c793 sum = csum_fold(csum_add(NAPI_GRO_CB(skb)->csum, wsum)); in __skb_gro_checksum_complete()
/linux-6.1.9/arch/sparc/include/asm/
Dchecksum_64.h133 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function
Dchecksum_32.h199 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function
/linux-6.1.9/arch/x86/include/asm/
Dchecksum_64.h179 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() function
/linux-6.1.9/net/ipv6/netfilter/
Dip6t_NPT.c71 sum = ~csum_fold(csum_add(csum_unfold((__force __sum16)addr->s6_addr16[idx]), in ip6t_npt_map_pfx()
/linux-6.1.9/net/netfilter/
Dnft_payload.c557 *sum = csum_fold(csum_add(csum_sub(~csum_unfold(*sum), fsum), tsum)); in nft_csum_replace()
637 skb->csum = ~csum_add(csum_sub(~(skb->csum), fsum), in nft_payload_l4csum_update()
641 sum = ~csum_fold(csum_add(csum_sub(csum_unfold(sum), fsum), in nft_payload_l4csum_update()
Dxt_TCPMSS.c242 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)oldlen), in tcpmss_tg6()
/linux-6.1.9/net/dsa/
Dtag_dsa.c309 c = csum_add(c, csum_partial(new_header + 2, 2, 0)); in dsa_rcv_ll()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c572 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.1.9/drivers/staging/gdm724x/
Dgdm_lte.c200 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.1.9/net/ipv4/
Dinet_fragment.c540 head->csum = csum_add(head->csum, fp->csum); in inet_frag_reasm_finish()
Dudp_offload.c135 uh->check = ~csum_fold(csum_add(partial, in __skb_udp_tunnel_segment()
Dicmp.c382 csum = csum_add(csum, skb1->csum); in icmp_push_reply()
Dip_output.c1743 arg->csumoffset) = csum_fold(csum_add(nskb->csum, in ip_send_unicast_reply()
/linux-6.1.9/net/ipv6/
Dicmp.c293 tmp_csum = csum_add(tmp_csum, skb->csum); in icmpv6_push_pending_frames()
Draw.c546 tmp_csum = csum_add(tmp_csum, skb->csum); in rawv6_push_pending_frames()
Dudp.c1205 csum = csum_add(csum, frags->csum); in udp6_hwcsum_outgoing()
/linux-6.1.9/include/linux/
Dskbuff.h4422 if (!csum_fold(csum_add(psum, skb->csum))) { in __skb_checksum_validate_complete()
4531 skb->csum = csum_add(skb->csum, delta); in skb_remcsum_process()

12