Lines Matching full:prox
73 hid_warn(wacom->hdev, "%s: tool appears to be hung in-prox. forcing it out.\n", __func__); in wacom_idleprox_timeout()
175 int prox, pressure; in wacom_pl_irq() local
183 prox = data[1] & 0x40; in wacom_pl_irq()
196 /* If the eraser is in prox, STYLUS2 is always set. If we in wacom_pl_irq()
198 * then force the eraser out of prox and let the pen in. in wacom_pl_irq()
208 if (prox) { in wacom_pl_irq()
224 if (!prox) in wacom_pl_irq()
226 input_report_key(input, wacom->tool[0], prox); in wacom_pl_irq()
264 int prox = data[1] & 0x20; in wacom_dtu_irq() local
269 if (prox) { in wacom_dtu_irq()
283 if (!prox) /* out-prox */ in wacom_dtu_irq()
285 input_report_key(input, wacom->tool[0], prox); in wacom_dtu_irq()
294 unsigned short prox, pressure = 0; in wacom_dtus_irq() local
310 prox = data[1] & 0x80; in wacom_dtus_irq()
311 if (prox) { in wacom_dtus_irq()
333 if (!prox) /* out-prox */ in wacom_dtus_irq()
335 input_report_key(input, wacom->tool[0], prox); in wacom_dtus_irq()
348 int prox; in wacom_graphire_irq() local
365 prox = data[1] & 0x80; in wacom_graphire_irq()
366 if (prox || wacom->id[0]) { in wacom_graphire_irq()
367 if (prox) { in wacom_graphire_irq()
430 if (!prox) in wacom_graphire_irq()
433 input_report_key(input, wacom->tool[0], prox); in wacom_graphire_irq()
440 prox = data[7] & 0xf8; in wacom_graphire_irq()
441 if (prox || wacom->id[1]) { in wacom_graphire_irq()
447 if (!prox) in wacom_graphire_irq()
455 prox = (data[7] & 0xf8) || data[8]; in wacom_graphire_irq()
456 if (prox || wacom->id[1]) { in wacom_graphire_irq()
463 if (!prox) in wacom_graphire_irq()
470 prox = data[7] & 0x03; in wacom_graphire_irq()
471 if (prox || wacom->id[1]) { in wacom_graphire_irq()
475 if (!prox) in wacom_graphire_irq()
523 bool prox = false; in wacom_intuos_pad() local
527 /* pad packets. Works as a second tool and is always in prox */ in wacom_intuos_pad()
640 prox = (buttons & ~(~0U << nbuttons)) | (keys & ~(~0U << nkeys)) | in wacom_intuos_pad()
666 input_report_key(input, wacom->tool[1], prox ? 1 : 0); in wacom_intuos_pad()
667 input_report_abs(input, ABS_MISC, prox ? PAD_DEVICE_ID : 0); in wacom_intuos_pad()
788 * when in-prox next time in wacom_exit_report()
825 if (!(((data[1] & 0xfc) == 0xc0) || /* in prox */ in wacom_intuos_inout()
827 ((data[1] & 0xfe) == 0x80))) /* out prox */ in wacom_intuos_inout()
1091 /* process in/out prox events */ in wacom_intuos_irq()
1356 bool prox = frame[0] & 0x40; in wacom_intuos_pro2_bt_pen() local
1365 if (!prox) { in wacom_intuos_pro2_bt_pen()
1426 input_report_key(pen_input, wacom->tool[0], prox); in wacom_intuos_pro2_bt_pen()
1432 wacom->shared->stylus_in_proximity = prox; in wacom_intuos_pro2_bt_pen()
1518 bool prox = expresskeys || center || ringstatus; in wacom_intuos_pro2_bt_pad() local
1531 input_report_key(pad_input, wacom->tool[1], prox ? 1 : 0); in wacom_intuos_pro2_bt_pad()
1532 input_report_abs(pad_input, ABS_MISC, prox ? PAD_DEVICE_ID : 0); in wacom_intuos_pro2_bt_pad()
1753 bool prox = report_touch_events(wacom); in wacom_tpc_single_touch() local
1760 prox = prox && (data[0] & 0x01); in wacom_tpc_single_touch()
1764 prox = prox && (data[2] & 0x01); in wacom_tpc_single_touch()
1768 prox = prox && (data[1] & 0x01); in wacom_tpc_single_touch()
1773 if (prox) { in wacom_tpc_single_touch()
1777 input_report_key(input, BTN_TOUCH, prox); in wacom_tpc_single_touch()
1780 wacom->shared->touch_down = prox; in wacom_tpc_single_touch()
1789 bool prox = data[1] & 0x20; in wacom_tpc_pen() local
1791 if (!wacom->shared->stylus_in_proximity) /* first in prox */ in wacom_tpc_pen()
1796 wacom->shared->stylus_in_proximity = prox; in wacom_tpc_pen()
1808 input_report_key(input, wacom->tool[0], prox); in wacom_tpc_pen()
2265 /* report prox for expresskey events */ in wacom_wac_pad_report()
2670 bool prox = touch_down && report_touch_events(wacom_wac); in wacom_wac_finger_slot() local
2675 prox = false; in wacom_wac_finger_slot()
2692 if (!prox && mt_id < 0) { in wacom_wac_finger_slot()
2699 input_mt_report_slot_state(input, MT_TOOL_FINGER, prox); in wacom_wac_finger_slot()
2702 input_report_key(input, BTN_TOUCH, prox); in wacom_wac_finger_slot()
2705 if (prox) { in wacom_wac_finger_slot()
3155 bool range, prox, rdy; in wacom_bpt_pen() local
3161 prox = (data[1] & 0x40) == 0x40; in wacom_bpt_pen()
3174 if (prox) { in wacom_bpt_pen()
3189 * Convert distance from out prox to distance from tablet. in wacom_bpt_pen()
3205 if (prox || !range) { in wacom_bpt_pen()