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()
742 * when in-prox next time in wacom_exit_report()
779 if (!(((data[1] & 0xfc) == 0xc0) || /* in prox */ in wacom_intuos_inout()
781 ((data[1] & 0xfe) == 0x80))) /* out prox */ in wacom_intuos_inout()
1045 /* process in/out prox events */ in wacom_intuos_irq()
1310 bool prox = frame[0] & 0x40; in wacom_intuos_pro2_bt_pen() local
1319 if (!prox) { in wacom_intuos_pro2_bt_pen()
1380 input_report_key(pen_input, wacom->tool[0], prox); in wacom_intuos_pro2_bt_pen()
1386 wacom->shared->stylus_in_proximity = prox; in wacom_intuos_pro2_bt_pen()
1472 bool prox = expresskeys || center || ringstatus; in wacom_intuos_pro2_bt_pad() local
1485 input_report_key(pad_input, wacom->tool[1], prox ? 1 : 0); in wacom_intuos_pro2_bt_pad()
1486 input_report_abs(pad_input, ABS_MISC, prox ? PAD_DEVICE_ID : 0); in wacom_intuos_pro2_bt_pad()
1707 bool prox = report_touch_events(wacom); in wacom_tpc_single_touch() local
1714 prox = prox && (data[0] & 0x01); in wacom_tpc_single_touch()
1718 prox = prox && (data[2] & 0x01); in wacom_tpc_single_touch()
1722 prox = prox && (data[1] & 0x01); in wacom_tpc_single_touch()
1727 if (prox) { in wacom_tpc_single_touch()
1731 input_report_key(input, BTN_TOUCH, prox); in wacom_tpc_single_touch()
1734 wacom->shared->touch_down = prox; in wacom_tpc_single_touch()
1743 bool prox = data[1] & 0x20; in wacom_tpc_pen() local
1745 if (!wacom->shared->stylus_in_proximity) /* first in prox */ in wacom_tpc_pen()
1750 wacom->shared->stylus_in_proximity = prox; in wacom_tpc_pen()
1762 input_report_key(input, wacom->tool[0], prox); in wacom_tpc_pen()
2285 /* report prox for expresskey events */ in wacom_wac_pad_report()
2702 bool prox = touch_down && report_touch_events(wacom_wac); in wacom_wac_finger_slot() local
2707 prox = false; in wacom_wac_finger_slot()
2724 if (!prox && mt_id < 0) { in wacom_wac_finger_slot()
2731 input_mt_report_slot_state(input, MT_TOOL_FINGER, prox); in wacom_wac_finger_slot()
2734 input_report_key(input, BTN_TOUCH, prox); in wacom_wac_finger_slot()
2737 if (prox) { in wacom_wac_finger_slot()
3187 bool range, prox, rdy; in wacom_bpt_pen() local
3193 prox = (data[1] & 0x40) == 0x40; in wacom_bpt_pen()
3206 if (prox) { in wacom_bpt_pen()
3221 * Convert distance from out prox to distance from tablet. in wacom_bpt_pen()
3237 if (prox || !range) { in wacom_bpt_pen()