Lines Matching defs:checksum
474 signed char checksum;
506 checksum = 0;
516 checksum += cmd[i];
518 if (mustek_scsi_pp_send_command_byte (fd, -checksum) != SANE_STATUS_GOOD)
521 "mustek_scsi_pp_send_command: error sending checksum (0x%02X)\n",
522 -checksum);
532 signed char checksum;
544 checksum = 0;
554 checksum += data[i];
556 if (mustek_scsi_pp_send_command_byte (fd, -checksum) != SANE_STATUS_GOOD)
559 "mustek_scsi_pp_send_data_block: error sending checksum (0x%02X)\n",
560 -checksum);
570 signed char checksum;
582 checksum = 0;
586 checksum += buffer[i];
588 if ((signed char) mustek_scsi_pp_read_response (fd) != (-checksum))