Lines Matching refs:mt

392 		fields->mt[0] = fields->st;  in alps_process_bitmap_dolphin()
393 fields->mt[1].x = 2 * box_middle_x - fields->mt[0].x; in alps_process_bitmap_dolphin()
394 fields->mt[1].y = 2 * box_middle_y - fields->mt[0].y; in alps_process_bitmap_dolphin()
470 fields->mt[0].x = in alps_process_bitmap()
473 fields->mt[0].y = in alps_process_bitmap()
477 fields->mt[1].x = in alps_process_bitmap()
480 fields->mt[1].y = in alps_process_bitmap()
486 fields->mt[0].y = priv->y_max - fields->mt[0].y; in alps_process_bitmap()
487 fields->mt[1].y = priv->y_max - fields->mt[1].y; in alps_process_bitmap()
508 input_mt_assign_slots(dev, slot, f->mt, n, 0); in alps_report_mt_data()
510 alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y); in alps_report_mt_data()
523 f->mt[0].x = f->st.x; in alps_report_semi_mt_data()
524 f->mt[0].y = f->st.y; in alps_report_semi_mt_data()
962 static void alps_get_finger_coordinate_v7(struct input_mt_pos *mt, in alps_get_finger_coordinate_v7() argument
966 mt[0].x = ((pkt[2] & 0x80) << 4); in alps_get_finger_coordinate_v7()
967 mt[0].x |= ((pkt[2] & 0x3F) << 5); in alps_get_finger_coordinate_v7()
968 mt[0].x |= ((pkt[3] & 0x30) >> 1); in alps_get_finger_coordinate_v7()
969 mt[0].x |= (pkt[3] & 0x07); in alps_get_finger_coordinate_v7()
970 mt[0].y = (pkt[1] << 3) | (pkt[0] & 0x07); in alps_get_finger_coordinate_v7()
972 mt[1].x = ((pkt[3] & 0x80) << 4); in alps_get_finger_coordinate_v7()
973 mt[1].x |= ((pkt[4] & 0x80) << 3); in alps_get_finger_coordinate_v7()
974 mt[1].x |= ((pkt[4] & 0x3F) << 4); in alps_get_finger_coordinate_v7()
975 mt[1].y = ((pkt[5] & 0x80) << 3); in alps_get_finger_coordinate_v7()
976 mt[1].y |= ((pkt[5] & 0x3F) << 4); in alps_get_finger_coordinate_v7()
980 mt[1].x &= ~0x000F; in alps_get_finger_coordinate_v7()
981 mt[1].y |= 0x000F; in alps_get_finger_coordinate_v7()
983 if (mt[1].y == 0x7ff && mt[1].x == 0xff0) { in alps_get_finger_coordinate_v7()
984 mt[1].x = 0; in alps_get_finger_coordinate_v7()
990 mt[1].x &= ~0x003F; in alps_get_finger_coordinate_v7()
991 mt[1].y &= ~0x0020; in alps_get_finger_coordinate_v7()
992 mt[1].y |= ((pkt[4] & 0x02) << 4); in alps_get_finger_coordinate_v7()
993 mt[1].y |= 0x001F; in alps_get_finger_coordinate_v7()
997 mt[1].x &= ~0x003F; in alps_get_finger_coordinate_v7()
998 mt[1].x |= (pkt[0] & 0x20); in alps_get_finger_coordinate_v7()
999 mt[1].y |= 0x000F; in alps_get_finger_coordinate_v7()
1003 mt[0].y = 0x7FF - mt[0].y; in alps_get_finger_coordinate_v7()
1004 mt[1].y = 0x7FF - mt[1].y; in alps_get_finger_coordinate_v7()
1007 static int alps_get_mt_count(struct input_mt_pos *mt) in alps_get_mt_count() argument
1012 if (mt[i].x != 0 || mt[i].y != 0) in alps_get_mt_count()
1052 alps_get_finger_coordinate_v7(f->mt, p, pkt_id); in alps_decode_packet_v7()
1055 f->fingers = alps_get_mt_count(f->mt); in alps_decode_packet_v7()
1071 if (f->fingers == 1 && f->mt[0].x == 0 && f->mt[0].y == 0) { in alps_decode_packet_v7()
1072 f->mt[0].x = f->mt[1].x; in alps_decode_packet_v7()
1073 f->mt[0].y = f->mt[1].y; in alps_decode_packet_v7()
1074 f->mt[1].x = 0; in alps_decode_packet_v7()
1075 f->mt[1].y = 0; in alps_decode_packet_v7()
1125 alps_report_mt_data(psmouse, alps_get_mt_count(f->mt)); in alps_process_touchpad_packet_v7()
1176 f->mt[0].x = SS4_1F_X_V2(p); in alps_decode_ss4_v2()
1177 f->mt[0].y = SS4_1F_Y_V2(p); in alps_decode_ss4_v2()
1186 f->mt[0].x = SS4_BTL_MF_X_V2(p, 0); in alps_decode_ss4_v2()
1187 f->mt[0].y = SS4_BTL_MF_Y_V2(p, 0); in alps_decode_ss4_v2()
1188 f->mt[1].x = SS4_BTL_MF_X_V2(p, 1); in alps_decode_ss4_v2()
1189 f->mt[1].y = SS4_BTL_MF_Y_V2(p, 1); in alps_decode_ss4_v2()
1191 f->mt[0].x = SS4_STD_MF_X_V2(p, 0); in alps_decode_ss4_v2()
1192 f->mt[0].y = SS4_STD_MF_Y_V2(p, 0); in alps_decode_ss4_v2()
1193 f->mt[1].x = SS4_STD_MF_X_V2(p, 1); in alps_decode_ss4_v2()
1194 f->mt[1].y = SS4_STD_MF_Y_V2(p, 1); in alps_decode_ss4_v2()
1210 f->mt[2].x = SS4_BTL_MF_X_V2(p, 0); in alps_decode_ss4_v2()
1211 f->mt[2].y = SS4_BTL_MF_Y_V2(p, 0); in alps_decode_ss4_v2()
1212 f->mt[3].x = SS4_BTL_MF_X_V2(p, 1); in alps_decode_ss4_v2()
1213 f->mt[3].y = SS4_BTL_MF_Y_V2(p, 1); in alps_decode_ss4_v2()
1217 f->mt[2].x = SS4_STD_MF_X_V2(p, 0); in alps_decode_ss4_v2()
1218 f->mt[2].y = SS4_STD_MF_Y_V2(p, 0); in alps_decode_ss4_v2()
1219 f->mt[3].x = SS4_STD_MF_X_V2(p, 1); in alps_decode_ss4_v2()
1220 f->mt[3].y = SS4_STD_MF_Y_V2(p, 1); in alps_decode_ss4_v2()
1230 } else if (f->mt[3].x == no_data_x && in alps_decode_ss4_v2()
1231 f->mt[3].y == no_data_y) { in alps_decode_ss4_v2()
1232 f->mt[3].x = 0; in alps_decode_ss4_v2()
1233 f->mt[3].y = 0; in alps_decode_ss4_v2()