Lines Matching refs:check_sum
412 u8 check_sum = 0; in goodix_check_cfg_8() local
415 check_sum += cfg[i]; in goodix_check_cfg_8()
416 check_sum = (~check_sum) + 1; in goodix_check_cfg_8()
417 if (check_sum != cfg[raw_cfg_len]) { in goodix_check_cfg_8()
435 u8 check_sum = 0; in goodix_calc_cfg_checksum_8() local
438 check_sum += ts->config[i]; in goodix_calc_cfg_checksum_8()
439 check_sum = (~check_sum) + 1; in goodix_calc_cfg_checksum_8()
441 ts->config[raw_cfg_len] = check_sum; in goodix_calc_cfg_checksum_8()
449 u16 check_sum = 0; in goodix_check_cfg_16() local
452 check_sum += get_unaligned_be16(&cfg[i]); in goodix_check_cfg_16()
453 check_sum = (~check_sum) + 1; in goodix_check_cfg_16()
454 if (check_sum != get_unaligned_be16(&cfg[raw_cfg_len])) { in goodix_check_cfg_16()
472 u16 check_sum = 0; in goodix_calc_cfg_checksum_16() local
475 check_sum += get_unaligned_be16(&ts->config[i]); in goodix_calc_cfg_checksum_16()
476 check_sum = (~check_sum) + 1; in goodix_calc_cfg_checksum_16()
478 put_unaligned_be16(check_sum, &ts->config[raw_cfg_len]); in goodix_calc_cfg_checksum_16()