Lines Matching defs:slot
101 __s32 *contactid; /* the device ContactID assigned to this slot */
230 * these device-dependent functions determine what slot corresponds
235 struct mt_usages *slot)
237 if (*slot->contactid != 0 || application->num_received == 0)
238 return *slot->contactid;
690 /* the value has already been filled, create a new slot */
910 struct mt_usages *slot,
916 return *slot->contactid;
919 return cypress_compute_slot(app, slot);
925 return *slot->contactid - 1;
927 return input_mt_get_slot_by_key(input, *slot->contactid);
1010 struct mt_usages *slot)
1022 if (!slot)
1031 valid = *slot->inrange_state;
1033 valid = *slot->tip_state;
1035 valid = *slot->confidence_state;
1041 slotnum = mt_compute_slot(td, app, slot, input);
1054 confidence_state = *slot->confidence_state;
1057 inrange_state = *slot->inrange_state;
1059 active = *slot->tip_state || inrange_state;
1085 int wide = (*slot->w > *slot->h);
1086 int major = max(*slot->w, *slot->h);
1087 int minor = min(*slot->w, *slot->h);
1096 if (slot->a != DEFAULT_ZERO) {
1107 azimuth = *slot->a;
1128 input_abs_get_max(input, ABS_MT_POSITION_X) - *slot->x :
1129 *slot->x;
1131 input_abs_get_max(input, ABS_MT_POSITION_Y) - *slot->y :
1132 *slot->y;
1134 input_abs_get_max(input, ABS_MT_POSITION_X) - *slot->cx :
1135 *slot->cx;
1137 input_abs_get_max(input, ABS_MT_POSITION_Y) - *slot->cy :
1138 *slot->cy;
1144 input_event(input, EV_ABS, ABS_MT_DISTANCE, !*slot->tip_state);
1146 input_event(input, EV_ABS, ABS_MT_PRESSURE, *slot->p);
1203 struct mt_usages *slot;
1245 list_for_each_entry(slot, &app->mt_usages, list) {
1246 if (!mt_process_slot(td, input, app, slot))