Lines Matching refs:cksum
99 u32 cksum = seed; in esas2r_calc_byte_xor_cksum() local
100 u8 *p = (u8 *)&cksum; in esas2r_calc_byte_xor_cksum()
106 cksum = cksum ^ *addr; in esas2r_calc_byte_xor_cksum()
111 cksum = cksum ^ *(u32 *)addr; in esas2r_calc_byte_xor_cksum()
116 cksum = cksum ^ *addr; in esas2r_calc_byte_xor_cksum()
125 u8 cksum = seed; in esas2r_calc_byte_cksum() local
128 cksum = cksum + p[len]; in esas2r_calc_byte_cksum()
129 return cksum; in esas2r_calc_byte_cksum()
182 u8 cksum = 0; in build_flash_msg() local
187 cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, in build_flash_msg()
197 cksum, in build_flash_msg()
667 u16 cksum; in calc_fi_checksum() local
673 cksum = 0; in calc_fi_checksum()
676 cksum = cksum + le16_to_cpu(*pw); in calc_fi_checksum()
678 return cksum; in calc_fi_checksum()