Searched refs:tsdata (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/input/touchscreen/ |
| H A D | edt-ft5x06.c | 160 static bool edt_ft5x06_ts_check_crc(struct edt_ft5x06_ts_data *tsdata, in edt_ft5x06_ts_check_crc() argument 170 tsdata->crc_errors++; in edt_ft5x06_ts_check_crc() 171 dev_err_ratelimited(&tsdata->client->dev, in edt_ft5x06_ts_check_crc() 185 struct edt_ft5x06_ts_data *tsdata = i2c_get_clientdata(i2c); in edt_M06_i2c_read() local 208 wbuf[0] = M06_REG_CMD(tsdata->factory_mode); in edt_M06_i2c_read() 209 wbuf[1] = M06_REG_ADDR(tsdata->factory_mode, addr); in edt_M06_i2c_read() 210 wbuf[1] |= tsdata->factory_mode ? 0x80 : 0x40; in edt_M06_i2c_read() 236 tsdata->header_errors++; in edt_M06_i2c_read() 243 if (!edt_ft5x06_ts_check_crc(tsdata, val_buf, val_size)) in edt_M06_i2c_read() 248 if (!edt_ft5x06_ts_check_crc(tsdata, wbuf, 4)) in edt_M06_i2c_read() [all …]
|
| H A D | hycon-hy46xx.c | 82 static bool hycon_hy46xx_check_checksum(struct hycon_hy46xx_data *tsdata, u8 *buf) in hycon_hy46xx_check_checksum() argument 93 dev_err_ratelimited(&tsdata->client->dev, in hycon_hy46xx_check_checksum() 102 struct hycon_hy46xx_data *tsdata = dev_id; in hycon_hy46xx_isr() local 103 struct device *dev = &tsdata->client->dev; in hycon_hy46xx_isr() 110 error = regmap_bulk_read(tsdata->regmap, 0, rdbuf, sizeof(rdbuf)); in hycon_hy46xx_isr() 117 if (!hycon_hy46xx_check_checksum(tsdata, rdbuf)) in hycon_hy46xx_isr() 132 input_mt_slot(tsdata->input, id); in hycon_hy46xx_isr() 133 if (input_mt_report_slot_state(tsdata->input, MT_TOOL_FINGER, in hycon_hy46xx_isr() 135 touchscreen_report_pos(tsdata->input, &tsdata->prop, in hycon_hy46xx_isr() 139 input_mt_report_pointer_emulation(tsdata->input, false); in hycon_hy46xx_isr() [all …]
|
| H A D | pixcir_i2c_ts.c | 93 static void pixcir_ts_parse(struct pixcir_i2c_ts_data *tsdata, in pixcir_ts_parse() argument 102 const struct pixcir_i2c_chip_data *chip = tsdata->chip; in pixcir_ts_parse() 107 readsize = 2 + tsdata->chip->max_fingers * (4 + i); in pixcir_ts_parse() 111 ret = i2c_master_send(tsdata->client, wrbuf, sizeof(wrbuf)); in pixcir_ts_parse() 113 dev_err(&tsdata->client->dev, in pixcir_ts_parse() 119 ret = i2c_master_recv(tsdata->client, rdbuf, readsize); in pixcir_ts_parse() 121 dev_err(&tsdata->client->dev, in pixcir_ts_parse() 128 if (touch > tsdata->chip->max_fingers) in pixcir_ts_parse() 129 touch = tsdata->chip->max_fingers; in pixcir_ts_parse() 135 touchscreen_set_mt_pos(&report->pos[i], &tsdata->prop, in pixcir_ts_parse() [all …]
|