Lines Matching refs:buff
35 unsigned long do_csum_c(const unsigned char * buff, int len, unsigned int psum) in do_csum_c() argument
42 odd = 1 & (unsigned long) buff; in do_csum_c()
44 result = *buff << 8; in do_csum_c()
46 buff++; in do_csum_c()
50 if (2 & (unsigned long) buff) { in do_csum_c()
51 result += *(unsigned short *) buff; in do_csum_c()
54 buff += 2; in do_csum_c()
58 if (4 & (unsigned long) buff) { in do_csum_c()
59 result += *(unsigned int *) buff; in do_csum_c()
62 buff += 4; in do_csum_c()
68 unsigned long w = *(unsigned long *) buff; in do_csum_c()
70 buff += 8; in do_csum_c()
79 result += *(unsigned int *) buff; in do_csum_c()
80 buff += 4; in do_csum_c()
84 result += *(unsigned short *) buff; in do_csum_c()
85 buff += 2; in do_csum_c()
89 result += *buff; in do_csum_c()