Lines Matching refs:result
49 unsigned int result = 0; in do_csum() local
56 result += (*buff << 8); in do_csum()
58 result = *buff; in do_csum()
65 result += *(unsigned short *) buff; in do_csum()
75 result += carry; in do_csum()
76 result += w; in do_csum()
77 carry = (w > result); in do_csum()
79 result += carry; in do_csum()
80 result = (result & 0xffff) + (result >> 16); in do_csum()
83 result += *(unsigned short *) buff; in do_csum()
89 result += *buff; in do_csum()
91 result += (*buff << 8); in do_csum()
93 result = from32to16(result); in do_csum()
95 result = ((result >> 8) & 0xff) | ((result & 0xff) << 8); in do_csum()
97 return result; in do_csum()
128 unsigned int result = do_csum(buff, len); in csum_partial() local
131 result += sum; in csum_partial()
132 if (sum > result) in csum_partial()
133 result += 1; in csum_partial()
134 return (__force __wsum)result; in csum_partial()