Lines Matching defs:data

47 	int (*get_touch_data)(struct i2c_client *client, u8 *data);
48 bool (*parse_touch_data)(const u8 *data, unsigned int finger,
51 bool (*continue_polling)(const u8 *data, bool touch);
101 static int ili210x_read_touch_data(struct i2c_client *client, u8 *data)
104 data, ILI210X_DATA_SIZE);
121 static bool ili210x_check_continue_polling(const u8 *data, bool touch)
123 return data[0] & 0xf3;
135 static int ili211x_read_touch_data(struct i2c_client *client, u8 *data)
142 ret = i2c_master_recv(client, data, ILI211X_DATA_SIZE);
149 /* This chip uses custom checksum at the end of data */
151 sum = (sum + data[i]) & 0xff;
153 if ((-sum & 0xff) != data[ILI211X_DATA_SIZE - 1]) {
156 sum, data[ILI211X_DATA_SIZE - 1]);
168 u32 data;
170 data = get_unaligned_be32(touchdata + 1 + (finger * 4) + 0);
171 if (data == 0xffffffff) /* Finger up */
182 static bool ili211x_decline_polling(const u8 *data, bool touch)
213 static bool ili212x_check_continue_polling(const u8 *data, bool touch)
255 static int ili251x_read_touch_data(struct i2c_client *client, u8 *data)
260 data, ILI251X_DATA_SIZE1, 0);
261 if (!error && data[0] == 2) {
262 error = i2c_master_recv(client, data + ILI251X_DATA_SIZE1,
289 static bool ili251x_check_continue_polling(const u8 *data, bool touch)
347 "Unable to get touch data: %d\n", error);
604 rec = (const struct ihex_binrec *)fw->data;
620 memcpy(fw_buf + fw_addr, rec->data, fw_len);
680 u8 data;
684 error = priv->chip->read_reg(client, REG_IC_BUSY, &data, 1);
689 } while (data != REG_IC_BUSY_NOT_BUSY);
912 static void ili210x_power_down(void *data)
914 struct gpio_desc *reset_gpio = data;
919 static void ili210x_stop(void *data)
921 struct ili210x *priv = data;
1042 { .compatible = "ilitek,ili210x", .data = &ili210x_chip },
1043 { .compatible = "ilitek,ili2117", .data = &ili211x_chip },
1044 { .compatible = "ilitek,ili2120", .data = &ili212x_chip },
1045 { .compatible = "ilitek,ili251x", .data = &ili251x_chip },