Lines Matching refs:raw_cfg_len
530 int i, raw_cfg_len = len - 2; in goodix_check_cfg_8() local
533 for (i = 0; i < raw_cfg_len; i++) in goodix_check_cfg_8()
536 if (check_sum != cfg[raw_cfg_len]) { in goodix_check_cfg_8()
542 if (cfg[raw_cfg_len + 1] != 1) { in goodix_check_cfg_8()
553 int i, raw_cfg_len = ts->chip->config_len - 2; in goodix_calc_cfg_checksum_8() local
556 for (i = 0; i < raw_cfg_len; i++) in goodix_calc_cfg_checksum_8()
560 ts->config[raw_cfg_len] = check_sum; in goodix_calc_cfg_checksum_8()
561 ts->config[raw_cfg_len + 1] = 1; /* Set "config_fresh" bit */ in goodix_calc_cfg_checksum_8()
567 int i, raw_cfg_len = len - 3; in goodix_check_cfg_16() local
570 for (i = 0; i < raw_cfg_len; i += 2) in goodix_check_cfg_16()
573 if (check_sum != get_unaligned_be16(&cfg[raw_cfg_len])) { in goodix_check_cfg_16()
579 if (cfg[raw_cfg_len + 2] != 1) { in goodix_check_cfg_16()
590 int i, raw_cfg_len = ts->chip->config_len - 3; in goodix_calc_cfg_checksum_16() local
593 for (i = 0; i < raw_cfg_len; i += 2) in goodix_calc_cfg_checksum_16()
597 put_unaligned_be16(check_sum, &ts->config[raw_cfg_len]); in goodix_calc_cfg_checksum_16()
598 ts->config[raw_cfg_len + 2] = 1; /* Set "config_fresh" bit */ in goodix_calc_cfg_checksum_16()