Lines Matching +full:half +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
13 * and adds in "sum" (32-bit), while copying the block to dst.
14 * If an access exception occurs on src or dst, it stores -EFAULT
36 * turns a 32-bit partial checksum (e.g. from csum_partial) into a
37 * 1's complement 16-bit checksum.
43 /* swap the two 16-bit halves of sum */ in csum_fold()
45 /* if there is a carry from adding the two 16-bit halves, in csum_fold()
46 it will carry from the lower half into the upper half, in csum_fold()
47 giving us the correct sum in the upper half. */ in csum_fold()
84 * computes the checksum of the TCP/UDP pseudo-header
85 * returns a 16-bit checksum, already complemented
118 * of 32-bit words and is always >= 5.
127 for (i = 0; i < ihl - 1; i++, ptr++) in ip_fast_csum_nofold()
140 : "r" (ihl - 2), "r" (*(const u32 *)iph), "r" (*ptr) in ip_fast_csum_nofold()
154 * and adds in "sum" (32-bit)
156 * returns a 32-bit number suitable for feeding into itself
162 * it's best to have buff aligned on a 32-bit boundary
200 * this routine is used for miscellaneous IP-like checksums, mainly