Searched refs:chksum (Results 1 – 1 of 1) sorted by relevance
285 unsigned int chksum; in ihex_scan() local330 chksum = len + addr + (addr >> 8) + type; in ihex_scan()332 chksum += HEX2 (buf + 2 * i); in ihex_scan()333 if (((- chksum) & 0xff) != (unsigned int) HEX2 (buf + 2 * i)) in ihex_scan()338 (- chksum) & 0xff, (unsigned int) HEX2 (buf + 2 * i)); in ihex_scan()723 unsigned int chksum; in ihex_write_record() local736 chksum = count + addr + (addr >> 8) + type; in ihex_write_record()741 chksum += *data; in ihex_write_record()744 TOHEX (p, (- chksum) & 0xff); in ihex_write_record()