Lines Matching defs:prox
78 hid_warn(wacom->hdev, "%s: tool appears to be hung in-prox. forcing it out.\n", __func__);
175 int prox, pressure;
183 prox = data[1] & 0x40;
196 /* If the eraser is in prox, STYLUS2 is always set. If we
198 * then force the eraser out of prox and let the pen in.
208 if (prox) {
224 if (!prox)
226 input_report_key(input, wacom->tool[0], prox);
264 int prox = data[1] & 0x20;
269 if (prox) {
283 if (!prox) /* out-prox */
285 input_report_key(input, wacom->tool[0], prox);
294 unsigned short prox, pressure = 0;
310 prox = data[1] & 0x80;
311 if (prox) {
333 if (!prox) /* out-prox */
335 input_report_key(input, wacom->tool[0], prox);
348 int prox;
365 prox = data[1] & 0x80;
366 if (prox || wacom->id[0]) {
367 if (prox) {
430 if (!prox)
433 input_report_key(input, wacom->tool[0], prox);
440 prox = data[7] & 0xf8;
441 if (prox || wacom->id[1]) {
447 if (!prox)
455 prox = (data[7] & 0xf8) || data[8];
456 if (prox || wacom->id[1]) {
463 if (!prox)
470 prox = data[7] & 0x03;
471 if (prox || wacom->id[1]) {
475 if (!prox)
523 bool prox = false;
527 /* pad packets. Works as a second tool and is always in prox */
640 prox = (buttons & ~(~0U << nbuttons)) | (keys & ~(~0U << nkeys)) |
666 input_report_key(input, wacom->tool[1], prox ? 1 : 0);
667 input_report_abs(input, ABS_MISC, prox ? PAD_DEVICE_ID : 0);
789 * when in-prox next time
826 if (!(((data[1] & 0xfc) == 0xc0) || /* in prox */
828 ((data[1] & 0xfe) == 0x80))) /* out prox */
1085 /* process in/out prox events */
1352 bool prox = frame[0] & 0x40;
1361 if (!prox) {
1422 input_report_key(pen_input, wacom->tool[0], prox);
1428 wacom->shared->stylus_in_proximity = prox;
1514 bool prox = expresskeys || center || ringstatus;
1527 input_report_key(pad_input, wacom->tool[1], prox ? 1 : 0);
1528 input_report_abs(pad_input, ABS_MISC, prox ? PAD_DEVICE_ID : 0);
1752 bool prox = report_touch_events(wacom);
1759 prox = prox && (data[0] & 0x01);
1763 prox = prox && (data[2] & 0x01);
1767 prox = prox && (data[1] & 0x01);
1772 if (prox) {
1776 input_report_key(input, BTN_TOUCH, prox);
1779 wacom->shared->touch_down = prox;
1788 bool prox = data[1] & 0x20;
1790 if (!wacom->shared->stylus_in_proximity) /* first in prox */
1795 wacom->shared->stylus_in_proximity = prox;
1807 input_report_key(input, wacom->tool[0], prox);
2263 /* report prox for expresskey events */
2623 bool prox = touch_down && report_touch_events(wacom_wac);
2629 prox = false;
2641 input_mt_report_slot_state(input, MT_TOOL_FINGER, prox);
2644 input_report_key(input, BTN_TOUCH, prox);
2647 if (prox) {
3087 bool range, prox, rdy;
3093 prox = (data[1] & 0x40) == 0x40;
3106 if (prox) {
3121 * Convert distance from out prox to distance from tablet.
3137 if (prox || !range) {