Lines Matching refs:buff
34 unsigned long do_csum_c(const unsigned char * buff, int len, unsigned int psum) in do_csum_c() argument
41 odd = 1 & (unsigned long) buff; in do_csum_c()
43 result = *buff << 8; in do_csum_c()
45 buff++; in do_csum_c()
49 if (2 & (unsigned long) buff) { in do_csum_c()
50 result += *(unsigned short *) buff; in do_csum_c()
53 buff += 2; in do_csum_c()
57 if (4 & (unsigned long) buff) { in do_csum_c()
58 result += *(unsigned int *) buff; in do_csum_c()
61 buff += 4; in do_csum_c()
67 unsigned long w = *(unsigned long *) buff; in do_csum_c()
69 buff += 8; in do_csum_c()
78 result += *(unsigned int *) buff; in do_csum_c()
79 buff += 4; in do_csum_c()
83 result += *(unsigned short *) buff; in do_csum_c()
84 buff += 2; in do_csum_c()
88 result += *buff; in do_csum_c()