Lines Matching full:features

134 	struct wacom_features *features = &wacom->features;  in wacom_pl_irq()  local
172 if (features->pressure_max > 255) in wacom_pl_irq()
174 pressure += (features->pressure_max + 1) / 2; in wacom_pl_irq()
305 struct wacom_features *features = &wacom->features; in wacom_graphire_irq() local
314 if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
355 if (features->type == GRAPHIRE_BT) in wacom_graphire_irq()
367 if (features->type == WACOM_G4 || in wacom_graphire_irq()
368 features->type == WACOM_MO) { in wacom_graphire_irq()
371 } else if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
400 switch (features->type) { in wacom_graphire_irq()
446 if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
461 struct wacom_features *features = &wacom_wac->features; in wacom_intuos_schedule_prox_event() local
466 if (features->type == INTUOSHT2) in wacom_intuos_schedule_prox_event()
477 struct wacom_features *features = &wacom->features; in wacom_intuos_pad() local
481 int buttons = 0, nbuttons = features->numbered_buttons; in wacom_intuos_pad()
494 if (features->type >= INTUOS4S && features->type <= INTUOS4L) { in wacom_intuos_pad()
497 } else if (features->type == DTK) { in wacom_intuos_pad()
499 } else if (features->type == WACOM_13HD) { in wacom_intuos_pad()
501 } else if (features->type == WACOM_24HD) { in wacom_intuos_pad()
520 if (features->oPid) { in wacom_intuos_pad()
528 } else if (features->type == WACOM_27QHD) { in wacom_intuos_pad()
535 if (features->oPid) { in wacom_intuos_pad()
546 } else if (features->type == CINTIQ_HYBRID) { in wacom_intuos_pad()
559 } else if (features->type == CINTIQ_COMPANION_2) { in wacom_intuos_pad()
570 } else if (features->type >= INTUOS5S && features->type <= INTUOSPL) { in wacom_intuos_pad()
581 if (features->type == WACOM_21UX2 || features->type == WACOM_22HD) { in wacom_intuos_pad()
585 if (features->type == WACOM_22HD) { in wacom_intuos_pad()
732 struct wacom_features *features = &wacom->features; in wacom_exit_report() local
734 int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0; in wacom_exit_report()
759 if (features->type >= INTUOS3S) in wacom_exit_report()
770 struct wacom_features *features = &wacom->features; in wacom_intuos_inout() local
773 int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0; in wacom_intuos_inout()
798 if (features->type != INTUOSHT2) in wacom_intuos_inout()
805 input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max); in wacom_intuos_inout()
839 struct wacom_features *features = &wacom->features; in wacom_intuos_general() local
842 int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0; in wacom_intuos_general()
865 (features->type == WACOM_21UX2)) || in wacom_intuos_general()
868 (features->type == INTUOS3 || in wacom_intuos_general()
869 features->type == INTUOS3S || in wacom_intuos_general()
870 features->type == INTUOS4 || in wacom_intuos_general()
871 features->type == INTUOS4S || in wacom_intuos_general()
872 features->type == INTUOS5 || in wacom_intuos_general()
873 features->type == INTUOS5S || in wacom_intuos_general()
874 features->type == INTUOSPM || in wacom_intuos_general()
875 features->type == INTUOSPS)) || in wacom_intuos_general()
877 (features->type == CINTIQ && !(data[1] & 0x40))) in wacom_intuos_general()
883 if (features->type < INTUOS3S) { in wacom_intuos_general()
888 if (features->type == INTUOSHT2) in wacom_intuos_general()
889 distance = features->distance_max - distance; in wacom_intuos_general()
901 if (features->pressure_max < 2047) in wacom_intuos_general()
904 if (features->type != INTUOSHT2) { in wacom_intuos_general()
925 if (features->type >= INTUOS3S) { in wacom_intuos_general()
976 if (features->type >= INTUOS3S && features->type <= INTUOS3L) { in wacom_intuos_general()
1231 unsigned touch_max = wacom->features.touch_max; in wacom_wac_finger_count_touches()
1260 if (wacom->features.type == INTUOSP2_BT || in wacom_intuos_pro2_bt_pen()
1261 wacom->features.type == INTUOSP2S_BT) { in wacom_intuos_pro2_bt_pen()
1313 if (wacom->features.type == INTUOSP2_BT || in wacom_intuos_pro2_bt_pen()
1314 wacom->features.type == INTUOSP2S_BT) { in wacom_intuos_pro2_bt_pen()
1334 if (wacom->features.type == INTUOSP2_BT || in wacom_intuos_pro2_bt_pen()
1335 wacom->features.type == INTUOSP2S_BT) { in wacom_intuos_pro2_bt_pen()
1337 range ? frame[13] : wacom->features.distance_max); in wacom_intuos_pro2_bt_pen()
1340 range ? frame[7] : wacom->features.distance_max); in wacom_intuos_pro2_bt_pen()
1430 int nbuttons = wacom->features.numbered_buttons; in wacom_intuos_pro2_bt_pad()
1505 if (wacom->features.type == INTUOSP2_BT || in wacom_intuos_pro2_bt_irq()
1506 wacom->features.type == INTUOSP2S_BT) { in wacom_intuos_pro2_bt_irq()
1534 if (wacom->features.type == WACOM_27QHDT) { in wacom_24hdt_irq()
1567 if (wacom->features.type != WACOM_27QHDT) { in wacom_24hdt_irq()
1601 if (wacom->features.type == MTTPC || wacom->features.type == MTTPC_B) in wacom_mt_touch()
1677 if (wacom->features.touch_max > 1 || len > WACOM_PKGLEN_TPC2FG) in wacom_tpc_single_touch()
1841 struct wacom_features *features = &wacom_wac->features; in wacom_map_usage() local
1852 fmin += features->offset_left; in wacom_map_usage()
1853 fmax -= features->offset_right; in wacom_map_usage()
1856 fmin += features->offset_top; in wacom_map_usage()
1857 fmax -= features->offset_bottom; in wacom_map_usage()
1888 struct wacom_features *features = &wacom_wac->features; in wacom_wac_battery_usage_mapping() local
1895 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_wac_battery_usage_mapping()
1945 struct wacom_features *features = &wacom_wac->features; in wacom_wac_battery_report() local
1947 if (features->quirks & WACOM_QUIRK_BATTERY) { in wacom_wac_battery_report()
1964 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pad_usage_mapping() local
1972 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
1977 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
1982 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
1991 wacom_numbered_button_to_key(features->numbered_buttons), in wacom_wac_pad_usage_mapping()
1993 features->numbered_buttons++; in wacom_wac_pad_usage_mapping()
1994 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2009 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2013 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2017 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2021 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2031 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2035 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2039 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2043 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2051 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2058 wacom_numbered_button_to_key(features->numbered_buttons), in wacom_wac_pad_usage_mapping()
2060 features->numbered_buttons++; in wacom_wac_pad_usage_mapping()
2061 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2072 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pad_event() local
2149 wacom_update_led(wacom, features->numbered_buttons, in wacom_wac_pad_event()
2195 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pen_usage_mapping() local
2240 features->quirks |= WACOM_QUIRK_TOOLSERIAL; in wacom_wac_pen_usage_mapping()
2244 features->quirks |= WACOM_QUIRK_SENSE; in wacom_wac_pen_usage_mapping()
2250 if (!(features->quirks & WACOM_QUIRK_AESPEN)) { in wacom_wac_pen_usage_mapping()
2257 if (!(features->device_type & WACOM_DEVICETYPE_DIRECT)) { in wacom_wac_pen_usage_mapping()
2274 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pen_event() local
2292 if (!(features->quirks & WACOM_QUIRK_SENSE)) in wacom_wac_pen_event()
2352 if (features->offset_left && value != features->offset_left) in wacom_wac_pen_event()
2355 features->offset_left); in wacom_wac_pen_event()
2356 features->offset_left = value; in wacom_wac_pen_event()
2359 if (features->offset_right && value != features->offset_right) in wacom_wac_pen_event()
2362 features->offset_right); in wacom_wac_pen_event()
2363 features->offset_right = value; in wacom_wac_pen_event()
2366 if (features->offset_top && value != features->offset_top) in wacom_wac_pen_event()
2369 features->offset_top); in wacom_wac_pen_event()
2370 features->offset_top = value; in wacom_wac_pen_event()
2373 if (features->offset_bottom && value != features->offset_bottom) in wacom_wac_pen_event()
2376 features->offset_bottom); in wacom_wac_pen_event()
2377 features->offset_bottom = value; in wacom_wac_pen_event()
2479 unsigned touch_max = wacom_wac->features.touch_max; in wacom_wac_finger_usage_mapping()
2528 bool mt = wacom_wac->features.touch_max > 1; in wacom_wac_finger_slot()
2575 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_wac_finger_event() local
2603 features->touch_max = value; in wacom_wac_finger_event()
2660 hid_data->num_expected = wacom_wac->features.touch_max; in wacom_wac_finger_pre_report()
2670 unsigned touch_max = wacom_wac->features.touch_max; in wacom_wac_finger_report()
2694 struct wacom_features *features = &wacom_wac->features; in wacom_wac_usage_mapping() local
2697 features->device_type |= WACOM_DEVICETYPE_DIRECT; in wacom_wac_usage_mapping()
2715 if (wacom->wacom_wac.features.type != HID_GENERIC) in wacom_wac_event()
2796 if (wacom_wac->features.type != HID_GENERIC) in wacom_wac_report()
2840 struct wacom_features *features = &wacom->features; in wacom_bpt_touch() local
2859 if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) { in wacom_bpt_touch()
2881 struct wacom_features *features = &wacom->features; in wacom_bpt3_touch_msg() local
2899 if (features->type >= INTUOSPS && features->type <= INTUOSHT2) { in wacom_bpt3_touch_msg()
2925 struct wacom_features *features = &wacom->features; in wacom_bpt3_button_msg() local
2927 if (features->type == INTUOSHT || features->type == INTUOSHT2) { in wacom_bpt3_button_msg()
2971 struct wacom_features *features = &wacom->features; in wacom_bpt_pen() local
3015 if (data[8] <= features->distance_max) in wacom_bpt_pen()
3016 d = features->distance_max - data[8]; in wacom_bpt_pen()
3046 struct wacom_features *features = &wacom->features; in wacom_bpt_irq() local
3048 if ((features->type == INTUOSHT2) && in wacom_bpt_irq()
3049 (features->device_type & WACOM_DEVICETYPE_PEN)) in wacom_bpt_irq()
3098 for (id = 0; id < wacom->features.touch_max; id++) { in wacom_bamboo_pad_touch_event()
3190 struct wacom_features *features = &wacom_wac->features; in wacom_status_irq() local
3196 if ((features->type == INTUOSHT || in wacom_status_irq()
3197 features->type == INTUOSHT2) && in wacom_status_irq()
3199 features->touch_max) { in wacom_status_irq()
3213 !(features->quirks & WACOM_QUIRK_BATTERY)) { in wacom_status_irq()
3214 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_status_irq()
3218 else if ((features->quirks & WACOM_QUIRK_BATTERY) && in wacom_status_irq()
3220 features->quirks &= ~WACOM_QUIRK_BATTERY; in wacom_status_irq()
3231 switch (wacom_wac->features.type) { in wacom_wac_irq()
3371 0, wacom_wac->features.distance_max, wacom_wac->features.distance_fuzz, 0); in wacom_setup_basic_pro_pen()
3377 struct wacom_features *features = &wacom_wac->features; in wacom_setup_cintiq() local
3387 input_set_abs_params(input_dev, ABS_TILT_X, -64, 63, features->tilt_fuzz, 0); in wacom_setup_cintiq()
3389 input_set_abs_params(input_dev, ABS_TILT_Y, -64, 63, features->tilt_fuzz, 0); in wacom_setup_cintiq()
3417 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_setup_device_quirks() local
3420 if (features->type == GRAPHIRE_BT || features->type == WACOM_G4 || in wacom_setup_device_quirks()
3421 features->type == DTUS || in wacom_setup_device_quirks()
3422 (features->type >= INTUOS3S && features->type <= WACOM_MO)) { in wacom_setup_device_quirks()
3423 if (features->device_type & WACOM_DEVICETYPE_PEN) in wacom_setup_device_quirks()
3424 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3428 if (features->device_type & WACOM_DEVICETYPE_TOUCH && !features->x_max) { in wacom_setup_device_quirks()
3429 features->x_max = 1023; in wacom_setup_device_quirks()
3430 features->y_max = 1023; in wacom_setup_device_quirks()
3439 if ((features->type >= INTUOS5S && features->type <= INTUOSPL) || in wacom_setup_device_quirks()
3440 (features->type >= INTUOSHT && features->type <= BAMBOO_PT)) { in wacom_setup_device_quirks()
3441 if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) { in wacom_setup_device_quirks()
3442 if (features->touch_max) in wacom_setup_device_quirks()
3443 features->device_type |= WACOM_DEVICETYPE_TOUCH; in wacom_setup_device_quirks()
3444 if (features->type >= INTUOSHT && features->type <= BAMBOO_PT) in wacom_setup_device_quirks()
3445 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3447 if (features->type == INTUOSHT2) { in wacom_setup_device_quirks()
3448 features->x_max = features->x_max / 10; in wacom_setup_device_quirks()
3449 features->y_max = features->y_max / 10; in wacom_setup_device_quirks()
3452 features->x_max = 4096; in wacom_setup_device_quirks()
3453 features->y_max = 4096; in wacom_setup_device_quirks()
3456 else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) { in wacom_setup_device_quirks()
3457 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3468 if (features->type == BAMBOO_PEN && in wacom_setup_device_quirks()
3469 features->pktlen == WACOM_PKGLEN_BBTOUCH3) in wacom_setup_device_quirks()
3470 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3479 if (features->type == BAMBOO_PAD) in wacom_setup_device_quirks()
3480 features->device_type = WACOM_DEVICETYPE_TOUCH; in wacom_setup_device_quirks()
3482 if (features->type == REMOTE) in wacom_setup_device_quirks()
3483 features->device_type = WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3485 if (features->type == INTUOSP2_BT || in wacom_setup_device_quirks()
3486 features->type == INTUOSP2S_BT) { in wacom_setup_device_quirks()
3487 features->device_type |= WACOM_DEVICETYPE_PEN | in wacom_setup_device_quirks()
3490 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3493 if (features->type == INTUOSHT3_BT) { in wacom_setup_device_quirks()
3494 features->device_type |= WACOM_DEVICETYPE_PEN | in wacom_setup_device_quirks()
3496 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3499 switch (features->type) { in wacom_setup_device_quirks()
3522 features->device_type |= WACOM_DEVICETYPE_DIRECT; in wacom_setup_device_quirks()
3527 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3530 if ((features->type == BAMBOO_PT || features->type == BAMBOO_TOUCH) && in wacom_setup_device_quirks()
3531 features->pktlen == WACOM_PKGLEN_BBTOUCH) { in wacom_setup_device_quirks()
3532 features->x_max <<= 5; in wacom_setup_device_quirks()
3533 features->y_max <<= 5; in wacom_setup_device_quirks()
3534 features->x_fuzz <<= 5; in wacom_setup_device_quirks()
3535 features->y_fuzz <<= 5; in wacom_setup_device_quirks()
3536 features->quirks |= WACOM_QUIRK_BBTOUCH_LOWRES; in wacom_setup_device_quirks()
3539 if (features->type == WIRELESS) { in wacom_setup_device_quirks()
3540 if (features->device_type == WACOM_DEVICETYPE_WL_MONITOR) { in wacom_setup_device_quirks()
3541 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3545 if (features->type == REMOTE) in wacom_setup_device_quirks()
3546 features->device_type |= WACOM_DEVICETYPE_WL_MONITOR; in wacom_setup_device_quirks()
3552 features->quirks &= ~WACOM_QUIRK_TOOLSERIAL; in wacom_setup_device_quirks()
3570 struct wacom_features *features = &wacom_wac->features; in wacom_setup_pen_input_capabilities() local
3574 if (!(features->device_type & WACOM_DEVICETYPE_PEN)) in wacom_setup_pen_input_capabilities()
3577 if (features->device_type & WACOM_DEVICETYPE_DIRECT) in wacom_setup_pen_input_capabilities()
3582 if (features->type == HID_GENERIC) { in wacom_setup_pen_input_capabilities()
3591 input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left, in wacom_setup_pen_input_capabilities()
3592 features->x_max - features->offset_right, in wacom_setup_pen_input_capabilities()
3593 features->x_fuzz, 0); in wacom_setup_pen_input_capabilities()
3594 input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top, in wacom_setup_pen_input_capabilities()
3595 features->y_max - features->offset_bottom, in wacom_setup_pen_input_capabilities()
3596 features->y_fuzz, 0); in wacom_setup_pen_input_capabilities()
3598 features->pressure_max, features->pressure_fuzz, 0); in wacom_setup_pen_input_capabilities()
3601 input_abs_set_res(input_dev, ABS_X, features->x_resolution); in wacom_setup_pen_input_capabilities()
3602 input_abs_set_res(input_dev, ABS_Y, features->y_resolution); in wacom_setup_pen_input_capabilities()
3604 switch (features->type) { in wacom_setup_pen_input_capabilities()
3612 features->distance_max, in wacom_setup_pen_input_capabilities()
3613 features->distance_fuzz, 0); in wacom_setup_pen_input_capabilities()
3669 features->distance_max, in wacom_setup_pen_input_capabilities()
3670 features->distance_fuzz, 0); in wacom_setup_pen_input_capabilities()
3714 if (features->type == INTUOSHT2 || in wacom_setup_pen_input_capabilities()
3715 features->type == INTUOSHT3_BT) { in wacom_setup_pen_input_capabilities()
3724 features->distance_max, in wacom_setup_pen_input_capabilities()
3725 features->distance_fuzz, 0); in wacom_setup_pen_input_capabilities()
3738 struct wacom_features *features = &wacom_wac->features; in wacom_setup_touch_input_capabilities() local
3742 if (!(features->device_type & WACOM_DEVICETYPE_TOUCH)) in wacom_setup_touch_input_capabilities()
3745 if (features->device_type & WACOM_DEVICETYPE_DIRECT) in wacom_setup_touch_input_capabilities()
3750 if (features->type == HID_GENERIC) in wacom_setup_touch_input_capabilities()
3756 if (features->touch_max == 1) { in wacom_setup_touch_input_capabilities()
3758 features->x_max, features->x_fuzz, 0); in wacom_setup_touch_input_capabilities()
3760 features->y_max, features->y_fuzz, 0); in wacom_setup_touch_input_capabilities()
3762 features->x_resolution); in wacom_setup_touch_input_capabilities()
3764 features->y_resolution); in wacom_setup_touch_input_capabilities()
3766 else if (features->touch_max > 1) { in wacom_setup_touch_input_capabilities()
3768 features->x_max, features->x_fuzz, 0); in wacom_setup_touch_input_capabilities()
3770 features->y_max, features->y_fuzz, 0); in wacom_setup_touch_input_capabilities()
3772 features->x_resolution); in wacom_setup_touch_input_capabilities()
3774 features->y_resolution); in wacom_setup_touch_input_capabilities()
3777 switch (features->type) { in wacom_setup_touch_input_capabilities()
3812 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
3813 input_set_abs_params(input_dev, ABS_MT_TOUCH_MINOR, 0, features->y_max, 0, 0); in wacom_setup_touch_input_capabilities()
3814 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER); in wacom_setup_touch_input_capabilities()
3818 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
3819 input_set_abs_params(input_dev, ABS_MT_WIDTH_MAJOR, 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
3820 input_set_abs_params(input_dev, ABS_MT_WIDTH_MINOR, 0, features->y_max, 0, 0); in wacom_setup_touch_input_capabilities()
3837 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_DIRECT); in wacom_setup_touch_input_capabilities()
3852 if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) { in wacom_setup_touch_input_capabilities()
3855 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
3858 0, features->y_max, 0, 0); in wacom_setup_touch_input_capabilities()
3860 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER); in wacom_setup_touch_input_capabilities()
3864 input_mt_init_slots(input_dev, features->touch_max, in wacom_setup_touch_input_capabilities()
3938 if (wacom->wacom_wac.features.type == WACOM_21UX2) in wacom_is_led_toggled()
3943 if (wacom->wacom_wac.features.type == INTUOSP2_BT) in wacom_is_led_toggled()
3956 if (wacom->wacom_wac.features.type == WACOM_24HD) in wacom_update_led()
4011 struct wacom_features *features = &wacom_wac->features; in wacom_setup_pad_input_capabilities() local
4013 if ((features->type == HID_GENERIC) && features->numbered_buttons > 0) in wacom_setup_pad_input_capabilities()
4014 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_pad_input_capabilities()
4016 if (!(features->device_type & WACOM_DEVICETYPE_PAD)) in wacom_setup_pad_input_capabilities()
4019 if (features->type == REMOTE && input_dev == wacom_wac->pad_input) in wacom_setup_pad_input_capabilities()
4038 wacom_setup_numbered_buttons(input_dev, features->numbered_buttons); in wacom_setup_pad_input_capabilities()
4040 switch (features->type) { in wacom_setup_pad_input_capabilities()
4071 if (!features->oPid) in wacom_setup_pad_input_capabilities()
4086 if (!features->oPid) in wacom_setup_pad_input_capabilities()