Home
last modified time | relevance | path

Searched refs:tsdata (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/input/touchscreen/
Dedt-ft5x06.c161 static bool edt_ft5x06_ts_check_crc(struct edt_ft5x06_ts_data *tsdata, in edt_ft5x06_ts_check_crc() argument
171 tsdata->crc_errors++; in edt_ft5x06_ts_check_crc()
172 dev_err_ratelimited(&tsdata->client->dev, in edt_ft5x06_ts_check_crc()
186 struct edt_ft5x06_ts_data *tsdata = i2c_get_clientdata(i2c); in edt_M06_i2c_read() local
209 wbuf[0] = M06_REG_CMD(tsdata->factory_mode); in edt_M06_i2c_read()
210 wbuf[1] = M06_REG_ADDR(tsdata->factory_mode, addr); in edt_M06_i2c_read()
211 wbuf[1] |= tsdata->factory_mode ? 0x80 : 0x40; in edt_M06_i2c_read()
237 tsdata->header_errors++; in edt_M06_i2c_read()
244 if (!edt_ft5x06_ts_check_crc(tsdata, val_buf, val_size)) in edt_M06_i2c_read()
249 if (!edt_ft5x06_ts_check_crc(tsdata, wbuf, 4)) in edt_M06_i2c_read()
[all …]
Dhycon-hy46xx.c82 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 …]
Dpixcir_i2c_ts.c93 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 …]
Dtsc200x-core.c141 struct tsc200x_data tsdata; in tsc200x_irq_thread() local
145 error = regmap_bulk_read(ts->regmap, TSC200X_REG_X, &tsdata, in tsc200x_irq_thread()
151 if (unlikely(tsdata.x > MAX_12BIT || tsdata.y > MAX_12BIT)) in tsc200x_irq_thread()
155 if (unlikely(tsdata.z1 == 0 || tsdata.z2 > MAX_12BIT)) in tsc200x_irq_thread()
157 if (unlikely(tsdata.z1 >= tsdata.z2)) in tsc200x_irq_thread()
165 ts->in_x == tsdata.x && ts->in_y == tsdata.y && in tsc200x_irq_thread()
166 ts->in_z1 == tsdata.z1 && ts->in_z2 == tsdata.z2) { in tsc200x_irq_thread()
174 ts->in_x = tsdata.x; in tsc200x_irq_thread()
175 ts->in_y = tsdata.y; in tsc200x_irq_thread()
176 ts->in_z1 = tsdata.z1; in tsc200x_irq_thread()
[all …]