Lines Matching defs:config
116 u8 config[GOODIX_CONFIG_MAX_LENGTH];
477 "The checksum of the config fw is not correct");
496 check_sum += ts->config[i];
499 ts->config[raw_cfg_len] = check_sum;
500 ts->config[raw_cfg_len + 1] = 1; /* Set "config_fresh" bit */
514 "The checksum of the config fw is not correct");
533 check_sum += get_unaligned_be16(&ts->config[i]);
536 put_unaligned_be16(check_sum, &ts->config[raw_cfg_len]);
537 ts->config[raw_cfg_len + 2] = 1; /* Set "config_fresh" bit */
541 * goodix_check_cfg - Checks if config fw is valid
544 * @cfg: firmware config data
551 "The length of the config fw is not correct");
559 * goodix_send_cfg - Write fw config to device
562 * @cfg: config firmware to write to device
574 dev_err(&ts->client->dev, "Failed to write config data: %d",
858 * goodix_get_gpio_config - Get GPIO config from ACPI/DT
962 ts->config, ts->chip->config_len);
964 dev_warn(&ts->client->dev, "Error reading config: %d\n",
971 ts->int_trigger_type = ts->config[TRIGGER_LOC] & 0x03;
972 ts->max_touch_num = ts->config[MAX_CONTACTS_LOC] & 0x0f;
974 x_max = get_unaligned_le16(&ts->config[RESOLUTION_LOC]);
975 y_max = get_unaligned_le16(&ts->config[RESOLUTION_LOC + 2]);
1108 "Invalid config (%d, %d, %d), using defaults\n",
1272 /* update device config */
1382 dev_warn(dev, "Error reading config version: %d, resetting controller\n",
1384 else if (config_ver != ts->config[0])
1386 config_ver, ts->config[0]);
1388 if (error != 0 || config_ver != ts->config[0]) {
1395 error = goodix_send_cfg(ts, ts->config, ts->chip->config_len);