Home
last modified time | relevance | path

Searched refs:touch_data (Results 1 – 14 of 14) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dchipone_icn8318.c56 struct icn8318_touch_data *touch_data) in icn8318_read_touch_data() argument
69 .buf = (u8 *)touch_data in icn8318_read_touch_data()
86 struct icn8318_touch_data touch_data; in icn8318_irq() local
89 ret = icn8318_read_touch_data(data->client, &touch_data); in icn8318_irq()
95 if (touch_data.softbutton) { in icn8318_irq()
105 if (touch_data.touch_count > ICN8318_MAX_TOUCHES) { in icn8318_irq()
107 touch_data.touch_count, ICN8318_MAX_TOUCHES); in icn8318_irq()
108 touch_data.touch_count = ICN8318_MAX_TOUCHES; in icn8318_irq()
111 for (i = 0; i < touch_data.touch_count; i++) { in icn8318_irq()
112 struct icn8318_touch *touch = &touch_data.touches[i]; in icn8318_irq()
H A Dgslx680_pad.c110 u8 *touch_data; member
709 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gslX680_ts_worker()
718 touches = ts->touch_data[ts->dd->touch_index]; in gslX680_ts_worker()
723 cinfo.x[i] = join_bytes( ( ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf), in gslX680_ts_worker()
724 ts->touch_data[ts->dd->x_index + 4 * i]); in gslX680_ts_worker()
725 cinfo.y[i] = join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gslX680_ts_worker()
726 ts->touch_data[ts->dd->y_index + 4 * i ]); in gslX680_ts_worker()
727 cinfo.id[i] = ((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf0)>>4); in gslX680_ts_worker()
729 cinfo.finger_num=(ts->touch_data[3]<<24)|(ts->touch_data[2]<<16) in gslX680_ts_worker()
730 |(ts->touch_data[1]<<8)|(ts->touch_data[0]); in gslX680_ts_worker()
[all …]
H A Dgslx680_firefly.c134 u8 *touch_data; member
686 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size);
692 touches = ts->touch_data[ts->dd->touch_index];
698 cinfo.x[i] = join_bytes((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf),
699 ts->touch_data[ts->dd->x_index + 4 * i]);
700 cinfo.y[i] = join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1],
701 ts->touch_data[ts->dd->y_index + 4 * i]);
704 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16)
705 | (ts->touch_data[1] << 8) | (ts->touch_data[0]);
734 x = join_bytes((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf),
[all …]
H A Dchipone_icn8505.c326 struct icn8505_touch_data touch_data; in icn8505_irq() local
330 &touch_data, sizeof(touch_data)); in icn8505_irq()
336 if (touch_data.touch_count > ICN8505_MAX_TOUCHES) { in icn8505_irq()
338 touch_data.touch_count, ICN8505_MAX_TOUCHES); in icn8505_irq()
339 touch_data.touch_count = ICN8505_MAX_TOUCHES; in icn8505_irq()
342 for (i = 0; i < touch_data.touch_count; i++) { in icn8505_irq()
343 struct icn8505_touch *touch = &touch_data.touches[i]; in icn8505_irq()
359 touch_data.softbutton == 1); in icn8505_irq()
H A Dgsl3673.c199 u8 *touch_data; member
809 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gsl3673_ts_worker()
814 touches = ts->touch_data[ts->dd->touch_index]; in gsl3673_ts_worker()
818 cinfo.x[i] = join_bytes((ts->touch_data[ts->dd->x_index + in gsl3673_ts_worker()
819 4 * i + 1] & 0xf), ts->touch_data[ts->dd->x_index + 4 * i]); in gsl3673_ts_worker()
820 cinfo.y[i] = join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gsl3673_ts_worker()
821 ts->touch_data[ts->dd->y_index + 4 * i]); in gsl3673_ts_worker()
822 cinfo.id[i] = ((ts->touch_data[ts->dd->x_index + 4 * i + 1] in gsl3673_ts_worker()
825 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16) in gsl3673_ts_worker()
826 | (ts->touch_data[1] << 8) | (ts->touch_data[0]); in gsl3673_ts_worker()
[all …]
H A Dgsl3673_800x1280.c202 u8 *touch_data; member
831 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gsl3673_ts_worker()
836 touches = ts->touch_data[ts->dd->touch_index]; in gsl3673_ts_worker()
840 cinfo.x[i] = join_bytes((ts->touch_data[ts->dd->x_index + in gsl3673_ts_worker()
841 4 * i + 1] & 0xf), ts->touch_data[ts->dd->x_index + 4 * i]); in gsl3673_ts_worker()
842 cinfo.y[i] = join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gsl3673_ts_worker()
843 ts->touch_data[ts->dd->y_index + 4 * i]); in gsl3673_ts_worker()
844 cinfo.id[i] = ((ts->touch_data[ts->dd->x_index + 4 * i + 1] in gsl3673_ts_worker()
847 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16) in gsl3673_ts_worker()
848 | (ts->touch_data[1] << 8) | (ts->touch_data[0]); in gsl3673_ts_worker()
[all …]
H A Dgslx680a.c247 u8 *touch_data; member
811 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gslX680_ts_worker()
819 touches = ts->touch_data[ts->dd->touch_index]; in gslX680_ts_worker()
825 cinfo.x[i] = join_bytes((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf), in gslX680_ts_worker()
826 ts->touch_data[ts->dd->x_index + 4 * i]); in gslX680_ts_worker()
827 cinfo.y[i] = join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gslX680_ts_worker()
828 ts->touch_data[ts->dd->y_index + 4 * i]); in gslX680_ts_worker()
831 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16) in gslX680_ts_worker()
832 | (ts->touch_data[1] << 8) | (ts->touch_data[0]); in gslX680_ts_worker()
864 x = join_bytes((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf), in gslX680_ts_worker()
[all …]
H A Dgslx680.c196 u8 *touch_data; member
996 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gslX680_ts_worker()
1002 touches = ts->touch_data[ts->dd->touch_index]; in gslX680_ts_worker()
1011 touch_data[ts->dd->x_index + 4 * i + 1] & 0xf), in gslX680_ts_worker()
1012 ts->touch_data[ts->dd->x_index + 4 * i]); in gslX680_ts_worker()
1014 join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gslX680_ts_worker()
1015 ts->touch_data[ts->dd->y_index + 4 * i]); in gslX680_ts_worker()
1017 ((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf0) >> 4); in gslX680_ts_worker()
1021 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16) in gslX680_ts_worker()
1022 | (ts->touch_data[1] << 8) | (ts->touch_data[0]); in gslX680_ts_worker()
[all …]
H A Dgslx6801.c156 u8 *touch_data; member
934 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gslX680_ts_worker()
940 touches = ts->touch_data[ts->dd->touch_index]; in gslX680_ts_worker()
948 touch_data[ts->dd->x_index + 4 * i + 1] & 0xf), in gslX680_ts_worker()
949 ts->touch_data[ts->dd->x_index + 4 * i]); in gslX680_ts_worker()
951 join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gslX680_ts_worker()
952 ts->touch_data[ts->dd->y_index + 4 * i]); in gslX680_ts_worker()
954 ((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf0) >> 4); in gslX680_ts_worker()
957 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16) in gslX680_ts_worker()
958 | (ts->touch_data[1] << 8) | (ts->touch_data[0]); in gslX680_ts_worker()
[all …]
H A Diqs5xx.c705 struct iqs5xx_touch_data touch_data[IQS5XX_NUM_CONTACTS]; in iqs5xx_irq() local
719 touch_data, sizeof(touch_data)); in iqs5xx_irq()
723 for (i = 0; i < ARRAY_SIZE(touch_data); i++) { in iqs5xx_irq()
724 u16 pressure = be16_to_cpu(touch_data[i].strength); in iqs5xx_irq()
730 be16_to_cpu(touch_data[i].abs_x)); in iqs5xx_irq()
732 be16_to_cpu(touch_data[i].abs_y)); in iqs5xx_irq()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gsl3676/
H A Dgsl3676.c202 u8 *touch_data; member
804 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gsl_ts_worker()
809 touches = ts->touch_data[ts->dd->touch_index]; in gsl_ts_worker()
813 cinfo.x[i] = join_bytes((ts->touch_data[ts->dd->x_index + in gsl_ts_worker()
814 4 * i + 1] & 0xf), ts->touch_data[ts->dd->x_index + 4 * i]); in gsl_ts_worker()
815 cinfo.y[i] = join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gsl_ts_worker()
816 ts->touch_data[ts->dd->y_index + 4 * i]); in gsl_ts_worker()
817 cinfo.id[i] = ((ts->touch_data[ts->dd->x_index + 4 * i + 1] in gsl_ts_worker()
820 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16) in gsl_ts_worker()
821 | (ts->touch_data[1] << 8) | (ts->touch_data[0]); in gsl_ts_worker()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gslx680_d708/
H A Drockchip_gslX680.c149 u8 *touch_data; member
760 rc = gsl_ts_read(ts->client, 0x80, ts->touch_data, ts->dd->data_size); in gslX680_ts_worker()
766 touches = ts->touch_data[ts->dd->touch_index]; in gslX680_ts_worker()
773 cinfo.x[i] = join_bytes((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf), in gslX680_ts_worker()
774 ts->touch_data[ts->dd->x_index + 4 * i]); in gslX680_ts_worker()
775 cinfo.y[i] = join_bytes(ts->touch_data[ts->dd->y_index + 4 * i + 1], in gslX680_ts_worker()
776 ts->touch_data[ts->dd->y_index + 4 * i]); in gslX680_ts_worker()
779 cinfo.finger_num = (ts->touch_data[3] << 24) | (ts->touch_data[2] << 16) in gslX680_ts_worker()
780 | (ts->touch_data[1] << 8) | (ts->touch_data[0]); in gslX680_ts_worker()
812 x = join_bytes((ts->touch_data[ts->dd->x_index + 4 * i + 1] & 0xf), in gslX680_ts_worker()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gt1x/
H A Dgt1x_generic.c1127 u8 touch_data[1 + 8 * GTP_MAX_TOUCH + 2] = { 0 }; in gt1x_touch_event_handler() local
1149 memcpy(touch_data, data, 11); in gt1x_touch_event_handler()
1156 ret = gt1x_i2c_read((GTP_READ_COOR_ADDR + 11), &touch_data[11], 1 + 8 * touch_num + 2 - 11); in gt1x_touch_event_handler()
1164 check_sum += touch_data[i]; in gt1x_touch_event_handler()
1167 ret = gt1x_i2c_read(GTP_READ_COOR_ADDR, touch_data, 3 + 8 * touch_num); in gt1x_touch_event_handler()
1173 check_sum += touch_data[i]; in gt1x_touch_event_handler()
1185 key_value = touch_data[1 + 8 * touch_num]; in gt1x_touch_event_handler()
1187 if ((touch_data[0] & 0x10) && key_value) { in gt1x_touch_event_handler()
1198 else if (touch_data[1] & 0x80) { in gt1x_touch_event_handler()
1224 coor_data = &touch_data[1]; in gt1x_touch_event_handler()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/hyn_cst2xx/
H A Dhyn_cst2xx.c154 u8 *touch_data; member