Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 10 of 10) sorted by relevance

/include/asm-generic/
Dchecksum.h17 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
33 u32 sum = (__force u32)csum; in csum_fold() local
34 sum = (sum & 0xffff) + (sum >> 16); in csum_fold()
35 sum = (sum & 0xffff) + (sum >> 16); in csum_fold()
36 return (__force __sum16)~sum; in csum_fold()
47 __u8 proto, __wsum sum);
53 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument
55 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/include/net/
Dchecksum.h39 __wsum sum = csum_partial(src, len, ~0U); in csum_and_copy_to_user() local
42 return sum; in csum_and_copy_to_user()
83 static __always_inline __wsum csum_shift(__wsum sum, int offset) in csum_shift() argument
87 return (__force __wsum)ror32((__force u32)sum, 8); in csum_shift()
88 return sum; in csum_shift()
115 __wsum csum_partial_ext(const void *buff, int len, __wsum sum) in csum_partial_ext() argument
117 return csum_partial(buff, len, sum); in csum_partial_ext()
122 static __always_inline void csum_replace_by_diff(__sum16 *sum, __wsum diff) in csum_replace_by_diff() argument
124 *sum = csum_fold(csum_add(diff, ~csum_unfold(*sum))); in csum_replace_by_diff()
127 static __always_inline void csum_replace4(__sum16 *sum, __be32 from, __be32 to) in csum_replace4() argument
[all …]
/include/drm/
Ddrm_fixed.h191 s64 sum = DRM_FIXED_ONE, term, y = x; in drm_fixp_exp() local
200 sum = sum + term; in drm_fixp_exp()
206 sum = drm_fixp_div(DRM_FIXED_ONE, sum); in drm_fixp_exp()
208 return sum; in drm_fixp_exp()
/include/net/sctp/
Dchecksum.h31 static inline __wsum sctp_csum_update(const void *buff, int len, __wsum sum) in sctp_csum_update() argument
36 return (__force __wsum)crc32c((__force __u32)sum, buff, len); in sctp_csum_update()
/include/uapi/linux/
Dsed-opal.h56 __u32 sum; member
63 __u32 sum; member
Djffs2.h199 jint32_t sum[0]; /* inode summary info */ member
Drkisp1-config.h878 __u32 sum; member
/include/trace/events/
Drxrpc.h1289 __field_struct(struct rxrpc_ack_summary, sum )
1299 memcpy(&__entry->sum, summary, sizeof(__entry->sum));
1305 __print_symbolic(__entry->sum.ack_reason, rxrpc_ack_names),
1307 __print_symbolic(__entry->sum.mode, rxrpc_congest_modes),
1308 __entry->sum.cwnd,
1309 __entry->sum.ssthresh,
1310 __entry->sum.nr_acks, __entry->sum.nr_nacks,
1311 __entry->sum.nr_new_acks, __entry->sum.nr_new_nacks,
1312 __entry->sum.nr_rot_new_acks,
1314 __entry->sum.cumulative_acks,
[all …]
/include/pcmcia/
Dcistpl.h67 u_char sum; member
/include/linux/mlx5/
Ddriver.h265 u64 sum; member