Lines Matching refs:checksum
135 u16 checksum = 0; in occ_write() local
174 checksum += cmd[i]; in occ_write()
176 cmd[data_length + 4] = checksum >> 8; in occ_write()
177 cmd[data_length + 5] = checksum & 0xFF; in occ_write()
221 u16 checksum; in occ_verify_checksum() local
224 checksum = resp->seq_no; in occ_verify_checksum()
225 checksum += resp->cmd_type; in occ_verify_checksum()
226 checksum += resp->return_status; in occ_verify_checksum()
227 checksum += (data_length >> 8) + (data_length & 0xFF); in occ_verify_checksum()
230 checksum += resp->data[i]; in occ_verify_checksum()
232 if (checksum != checksum_resp) in occ_verify_checksum()