Lines Matching full:features

167 	struct wacom_features *features = &wacom->features;  in wacom_pl_irq()  local
205 if (features->pressure_max > 255) in wacom_pl_irq()
207 pressure += (features->pressure_max + 1) / 2; in wacom_pl_irq()
338 struct wacom_features *features = &wacom->features; in wacom_graphire_irq() local
347 if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
388 if (features->type == GRAPHIRE_BT) in wacom_graphire_irq()
400 if (features->type == WACOM_G4 || in wacom_graphire_irq()
401 features->type == WACOM_MO) { in wacom_graphire_irq()
404 } else if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
433 switch (features->type) { in wacom_graphire_irq()
479 if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
494 struct wacom_features *features = &wacom_wac->features; in wacom_intuos_schedule_prox_event() local
499 if (features->type == INTUOSHT2) in wacom_intuos_schedule_prox_event()
510 struct wacom_features *features = &wacom->features; in wacom_intuos_pad() local
514 int buttons = 0, nbuttons = features->numbered_buttons; in wacom_intuos_pad()
527 if (features->type >= INTUOS4S && features->type <= INTUOS4L) { in wacom_intuos_pad()
530 } else if (features->type == DTK) { in wacom_intuos_pad()
532 } else if (features->type == WACOM_13HD) { in wacom_intuos_pad()
534 } else if (features->type == WACOM_24HD) { in wacom_intuos_pad()
553 if (features->oPid) { in wacom_intuos_pad()
561 } else if (features->type == WACOM_27QHD) { in wacom_intuos_pad()
568 if (features->oPid) { in wacom_intuos_pad()
579 } else if (features->type == CINTIQ_HYBRID) { in wacom_intuos_pad()
592 } else if (features->type == CINTIQ_COMPANION_2) { in wacom_intuos_pad()
603 } else if (features->type >= INTUOS5S && features->type <= INTUOSPL) { in wacom_intuos_pad()
614 if (features->type == WACOM_21UX2 || features->type == WACOM_22HD) { in wacom_intuos_pad()
618 if (features->type == WACOM_22HD) { in wacom_intuos_pad()
778 struct wacom_features *features = &wacom->features; in wacom_exit_report() local
780 int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0; in wacom_exit_report()
805 if (features->type >= INTUOS3S) in wacom_exit_report()
816 struct wacom_features *features = &wacom->features; in wacom_intuos_inout() local
819 int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0; in wacom_intuos_inout()
844 if (features->type != INTUOSHT2) in wacom_intuos_inout()
851 input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max); in wacom_intuos_inout()
892 struct wacom_features *features = &wacom->features; in wacom_intuos_general() local
895 int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0; in wacom_intuos_general()
918 (features->type == WACOM_21UX2)) || in wacom_intuos_general()
921 (features->type == INTUOS3 || in wacom_intuos_general()
922 features->type == INTUOS3S || in wacom_intuos_general()
923 features->type == INTUOS4 || in wacom_intuos_general()
924 features->type == INTUOS4S || in wacom_intuos_general()
925 features->type == INTUOS5 || in wacom_intuos_general()
926 features->type == INTUOS5S || in wacom_intuos_general()
927 features->type == INTUOSPM || in wacom_intuos_general()
928 features->type == INTUOSPS)) || in wacom_intuos_general()
930 (features->type == CINTIQ && !(data[1] & 0x40))) in wacom_intuos_general()
936 if (features->type < INTUOS3S) { in wacom_intuos_general()
941 if (features->type == INTUOSHT2) in wacom_intuos_general()
942 distance = features->distance_max - distance; in wacom_intuos_general()
954 if (features->pressure_max < 2047) in wacom_intuos_general()
957 if (features->type != INTUOSHT2) { in wacom_intuos_general()
978 if (features->type >= INTUOS3S) { in wacom_intuos_general()
1029 if (features->type >= INTUOS3S && features->type <= INTUOS3L) { in wacom_intuos_general()
1284 unsigned touch_max = wacom->features.touch_max; in wacom_wac_finger_count_touches()
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()
1366 if (wacom->features.type == INTUOSP2_BT || in wacom_intuos_pro2_bt_pen()
1367 wacom->features.type == INTUOSP2S_BT) { in wacom_intuos_pro2_bt_pen()
1387 if (wacom->features.type == INTUOSP2_BT || in wacom_intuos_pro2_bt_pen()
1388 wacom->features.type == INTUOSP2S_BT) { in wacom_intuos_pro2_bt_pen()
1390 range ? frame[13] : wacom->features.distance_max); in wacom_intuos_pro2_bt_pen()
1393 range ? frame[7] : wacom->features.distance_max); in wacom_intuos_pro2_bt_pen()
1483 int nbuttons = wacom->features.numbered_buttons; in wacom_intuos_pro2_bt_pad()
1558 if (wacom->features.type == INTUOSP2_BT || in wacom_intuos_pro2_bt_irq()
1559 wacom->features.type == INTUOSP2S_BT) { in wacom_intuos_pro2_bt_irq()
1584 if (wacom->features.type == WACOM_27QHDT) { in wacom_24hdt_irq()
1617 if (wacom->features.type != WACOM_27QHDT) { in wacom_24hdt_irq()
1651 if (wacom->features.type == MTTPC || wacom->features.type == MTTPC_B) in wacom_mt_touch()
1727 if (wacom->features.touch_max > 1 || len > WACOM_PKGLEN_TPC2FG) in wacom_tpc_single_touch()
1893 struct wacom_features *features = &wacom_wac->features; in wacom_map_usage() local
1904 fmin += features->offset_left; in wacom_map_usage()
1905 fmax -= features->offset_right; in wacom_map_usage()
1908 fmin += features->offset_top; in wacom_map_usage()
1909 fmax -= features->offset_bottom; in wacom_map_usage()
1934 struct wacom_features *features = &wacom_wac->features; in wacom_wac_battery_usage_mapping() local
1941 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_wac_battery_usage_mapping()
1991 struct wacom_features *features = &wacom_wac->features; in wacom_wac_battery_report() local
1993 if (features->quirks & WACOM_QUIRK_BATTERY) { in wacom_wac_battery_report()
2010 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pad_usage_mapping() local
2018 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2023 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2028 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2037 wacom_numbered_button_to_key(features->numbered_buttons), in wacom_wac_pad_usage_mapping()
2039 features->numbered_buttons++; in wacom_wac_pad_usage_mapping()
2040 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2061 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2065 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2069 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2079 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2083 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2087 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2091 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2099 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2106 wacom_numbered_button_to_key(features->numbered_buttons), in wacom_wac_pad_usage_mapping()
2108 features->numbered_buttons++; in wacom_wac_pad_usage_mapping()
2109 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_wac_pad_usage_mapping()
2120 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pad_event() local
2205 wacom_update_led(wacom, features->numbered_buttons, in wacom_wac_pad_event()
2249 struct wacom_features *features = &wacom_wac->features; in wacom_set_barrel_switch3_usage() local
2251 if (!(features->quirks & WACOM_QUIRK_AESPEN) && in wacom_set_barrel_switch3_usage()
2257 features->quirks |= WACOM_QUIRK_PEN_BUTTON3; in wacom_set_barrel_switch3_usage()
2266 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pen_usage_mapping() local
2319 features->quirks |= WACOM_QUIRK_TOOLSERIAL; in wacom_wac_pen_usage_mapping()
2326 features->quirks |= WACOM_QUIRK_SENSE; in wacom_wac_pen_usage_mapping()
2341 features->quirks &= ~WACOM_QUIRK_PEN_BUTTON3; in wacom_wac_pen_usage_mapping()
2351 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pen_event() local
2370 if (!(features->quirks & WACOM_QUIRK_SENSE)) in wacom_wac_pen_event()
2433 if (features->offset_left && value != features->offset_left) in wacom_wac_pen_event()
2436 features->offset_left); in wacom_wac_pen_event()
2437 features->offset_left = value; in wacom_wac_pen_event()
2440 if (features->offset_right && value != features->offset_right) in wacom_wac_pen_event()
2443 features->offset_right); in wacom_wac_pen_event()
2444 features->offset_right = value; in wacom_wac_pen_event()
2447 if (features->offset_top && value != features->offset_top) in wacom_wac_pen_event()
2450 features->offset_top); in wacom_wac_pen_event()
2451 features->offset_top = value; in wacom_wac_pen_event()
2454 if (features->offset_bottom && value != features->offset_bottom) in wacom_wac_pen_event()
2457 features->offset_bottom); in wacom_wac_pen_event()
2458 features->offset_bottom = value; in wacom_wac_pen_event()
2523 if (wacom_wac->features.quirks & WACOM_QUIRK_PEN_BUTTON3) { in wacom_wac_pen_report()
2572 unsigned touch_max = wacom_wac->features.touch_max; in wacom_wac_finger_usage_mapping()
2624 bool mt = wacom_wac->features.touch_max > 1; in wacom_wac_finger_slot()
2700 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_wac_finger_event() local
2734 if (!features->touch_max) { in wacom_wac_finger_event()
2735 features->touch_max = value; in wacom_wac_finger_event()
2738 "%d -> %d\n", __func__, features->touch_max, value); in wacom_wac_finger_event()
2813 hid_data->num_expected = wacom_wac->features.touch_max; in wacom_wac_finger_pre_report()
2824 unsigned touch_max = wacom_wac->features.touch_max; in wacom_wac_finger_report()
2853 struct wacom_features *features = &wacom_wac->features; in wacom_wac_usage_mapping() local
2856 features->device_type |= WACOM_DEVICETYPE_DIRECT; in wacom_wac_usage_mapping()
2874 if (wacom->wacom_wac.features.type != HID_GENERIC) in wacom_wac_event()
2955 if (wacom_wac->features.type != HID_GENERIC) in wacom_wac_report()
2999 struct wacom_features *features = &wacom->features; in wacom_bpt_touch() local
3018 if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) { in wacom_bpt_touch()
3040 struct wacom_features *features = &wacom->features; in wacom_bpt3_touch_msg() local
3058 if (features->type >= INTUOSPS && features->type <= INTUOSHT2) { in wacom_bpt3_touch_msg()
3084 struct wacom_features *features = &wacom->features; in wacom_bpt3_button_msg() local
3086 if (features->type == INTUOSHT || features->type == INTUOSHT2) { in wacom_bpt3_button_msg()
3130 struct wacom_features *features = &wacom->features; in wacom_bpt_pen() local
3174 if (data[8] <= features->distance_max) in wacom_bpt_pen()
3175 d = features->distance_max - data[8]; in wacom_bpt_pen()
3205 struct wacom_features *features = &wacom->features; in wacom_bpt_irq() local
3207 if ((features->type == INTUOSHT2) && in wacom_bpt_irq()
3208 (features->device_type & WACOM_DEVICETYPE_PEN)) in wacom_bpt_irq()
3257 for (id = 0; id < wacom->features.touch_max; id++) { in wacom_bamboo_pad_touch_event()
3349 struct wacom_features *features = &wacom_wac->features; in wacom_status_irq() local
3355 if ((features->type == INTUOSHT || in wacom_status_irq()
3356 features->type == INTUOSHT2) && in wacom_status_irq()
3358 features->touch_max) { in wacom_status_irq()
3372 !(features->quirks & WACOM_QUIRK_BATTERY)) { in wacom_status_irq()
3373 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_status_irq()
3377 else if ((features->quirks & WACOM_QUIRK_BATTERY) && in wacom_status_irq()
3379 features->quirks &= ~WACOM_QUIRK_BATTERY; in wacom_status_irq()
3390 switch (wacom_wac->features.type) { in wacom_wac_irq()
3530 0, wacom_wac->features.distance_max, wacom_wac->features.distance_fuzz, 0); in wacom_setup_basic_pro_pen()
3536 struct wacom_features *features = &wacom_wac->features; in wacom_setup_cintiq() local
3546 input_set_abs_params(input_dev, ABS_TILT_X, -64, 63, features->tilt_fuzz, 0); in wacom_setup_cintiq()
3548 input_set_abs_params(input_dev, ABS_TILT_Y, -64, 63, features->tilt_fuzz, 0); in wacom_setup_cintiq()
3576 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_setup_device_quirks() local
3579 if (features->type == GRAPHIRE_BT || features->type == WACOM_G4 || in wacom_setup_device_quirks()
3580 features->type == DTUS || in wacom_setup_device_quirks()
3581 (features->type >= INTUOS3S && features->type <= WACOM_MO)) { in wacom_setup_device_quirks()
3582 if (features->device_type & WACOM_DEVICETYPE_PEN) in wacom_setup_device_quirks()
3583 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3587 if (features->device_type & WACOM_DEVICETYPE_TOUCH && !features->x_max) { in wacom_setup_device_quirks()
3588 features->x_max = 1023; in wacom_setup_device_quirks()
3589 features->y_max = 1023; in wacom_setup_device_quirks()
3598 if ((features->type >= INTUOS5S && features->type <= INTUOSPL) || in wacom_setup_device_quirks()
3599 (features->type >= INTUOSHT && features->type <= BAMBOO_PT)) { in wacom_setup_device_quirks()
3600 if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) { in wacom_setup_device_quirks()
3601 if (features->touch_max) in wacom_setup_device_quirks()
3602 features->device_type |= WACOM_DEVICETYPE_TOUCH; in wacom_setup_device_quirks()
3603 if (features->type >= INTUOSHT && features->type <= BAMBOO_PT) in wacom_setup_device_quirks()
3604 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3606 if (features->type == INTUOSHT2) { in wacom_setup_device_quirks()
3607 features->x_max = features->x_max / 10; in wacom_setup_device_quirks()
3608 features->y_max = features->y_max / 10; in wacom_setup_device_quirks()
3611 features->x_max = 4096; in wacom_setup_device_quirks()
3612 features->y_max = 4096; in wacom_setup_device_quirks()
3615 else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) { in wacom_setup_device_quirks()
3616 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3627 if (features->type == BAMBOO_PEN && in wacom_setup_device_quirks()
3628 features->pktlen == WACOM_PKGLEN_BBTOUCH3) in wacom_setup_device_quirks()
3629 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3638 if (features->type == BAMBOO_PAD) in wacom_setup_device_quirks()
3639 features->device_type = WACOM_DEVICETYPE_TOUCH; in wacom_setup_device_quirks()
3641 if (features->type == REMOTE) in wacom_setup_device_quirks()
3642 features->device_type = WACOM_DEVICETYPE_PAD; in wacom_setup_device_quirks()
3644 if (features->type == INTUOSP2_BT || in wacom_setup_device_quirks()
3645 features->type == INTUOSP2S_BT) { in wacom_setup_device_quirks()
3646 features->device_type |= WACOM_DEVICETYPE_PEN | in wacom_setup_device_quirks()
3649 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3652 if (features->type == INTUOSHT3_BT) { in wacom_setup_device_quirks()
3653 features->device_type |= WACOM_DEVICETYPE_PEN | in wacom_setup_device_quirks()
3655 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3658 switch (features->type) { in wacom_setup_device_quirks()
3681 features->device_type |= WACOM_DEVICETYPE_DIRECT; in wacom_setup_device_quirks()
3686 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3689 if ((features->type == BAMBOO_PT || features->type == BAMBOO_TOUCH) && in wacom_setup_device_quirks()
3690 features->pktlen == WACOM_PKGLEN_BBTOUCH) { in wacom_setup_device_quirks()
3691 features->x_max <<= 5; in wacom_setup_device_quirks()
3692 features->y_max <<= 5; in wacom_setup_device_quirks()
3693 features->x_fuzz <<= 5; in wacom_setup_device_quirks()
3694 features->y_fuzz <<= 5; in wacom_setup_device_quirks()
3695 features->quirks |= WACOM_QUIRK_BBTOUCH_LOWRES; in wacom_setup_device_quirks()
3698 if (features->type == WIRELESS) { in wacom_setup_device_quirks()
3699 if (features->device_type == WACOM_DEVICETYPE_WL_MONITOR) { in wacom_setup_device_quirks()
3700 features->quirks |= WACOM_QUIRK_BATTERY; in wacom_setup_device_quirks()
3704 if (features->type == REMOTE) in wacom_setup_device_quirks()
3705 features->device_type |= WACOM_DEVICETYPE_WL_MONITOR; in wacom_setup_device_quirks()
3711 features->quirks &= ~WACOM_QUIRK_TOOLSERIAL; in wacom_setup_device_quirks()
3729 struct wacom_features *features = &wacom_wac->features; in wacom_setup_pen_input_capabilities() local
3731 if (!(features->device_type & WACOM_DEVICETYPE_PEN)) in wacom_setup_pen_input_capabilities()
3734 if (features->device_type & WACOM_DEVICETYPE_DIRECT) in wacom_setup_pen_input_capabilities()
3739 if (features->type == HID_GENERIC) in wacom_setup_pen_input_capabilities()
3747 input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left, in wacom_setup_pen_input_capabilities()
3748 features->x_max - features->offset_right, in wacom_setup_pen_input_capabilities()
3749 features->x_fuzz, 0); in wacom_setup_pen_input_capabilities()
3750 input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top, in wacom_setup_pen_input_capabilities()
3751 features->y_max - features->offset_bottom, in wacom_setup_pen_input_capabilities()
3752 features->y_fuzz, 0); in wacom_setup_pen_input_capabilities()
3754 features->pressure_max, features->pressure_fuzz, 0); in wacom_setup_pen_input_capabilities()
3757 input_abs_set_res(input_dev, ABS_X, features->x_resolution); in wacom_setup_pen_input_capabilities()
3758 input_abs_set_res(input_dev, ABS_Y, features->y_resolution); in wacom_setup_pen_input_capabilities()
3760 switch (features->type) { in wacom_setup_pen_input_capabilities()
3768 features->distance_max, in wacom_setup_pen_input_capabilities()
3769 features->distance_fuzz, 0); in wacom_setup_pen_input_capabilities()
3825 features->distance_max, in wacom_setup_pen_input_capabilities()
3826 features->distance_fuzz, 0); in wacom_setup_pen_input_capabilities()
3870 if (features->type == INTUOSHT2 || in wacom_setup_pen_input_capabilities()
3871 features->type == INTUOSHT3_BT) { in wacom_setup_pen_input_capabilities()
3880 features->distance_max, in wacom_setup_pen_input_capabilities()
3881 features->distance_fuzz, 0); in wacom_setup_pen_input_capabilities()
3894 struct wacom_features *features = &wacom_wac->features; in wacom_setup_touch_input_capabilities() local
3896 if (!(features->device_type & WACOM_DEVICETYPE_TOUCH)) in wacom_setup_touch_input_capabilities()
3899 if (features->device_type & WACOM_DEVICETYPE_DIRECT) in wacom_setup_touch_input_capabilities()
3904 if (features->type == HID_GENERIC) in wacom_setup_touch_input_capabilities()
3911 if (features->touch_max == 1) { in wacom_setup_touch_input_capabilities()
3913 features->x_max, features->x_fuzz, 0); in wacom_setup_touch_input_capabilities()
3915 features->y_max, features->y_fuzz, 0); in wacom_setup_touch_input_capabilities()
3917 features->x_resolution); in wacom_setup_touch_input_capabilities()
3919 features->y_resolution); in wacom_setup_touch_input_capabilities()
3921 else if (features->touch_max > 1) { in wacom_setup_touch_input_capabilities()
3923 features->x_max, features->x_fuzz, 0); in wacom_setup_touch_input_capabilities()
3925 features->y_max, features->y_fuzz, 0); in wacom_setup_touch_input_capabilities()
3927 features->x_resolution); in wacom_setup_touch_input_capabilities()
3929 features->y_resolution); in wacom_setup_touch_input_capabilities()
3932 switch (features->type) { in wacom_setup_touch_input_capabilities()
3967 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
3968 input_set_abs_params(input_dev, ABS_MT_TOUCH_MINOR, 0, features->y_max, 0, 0); in wacom_setup_touch_input_capabilities()
3969 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER); in wacom_setup_touch_input_capabilities()
3973 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
3974 input_set_abs_params(input_dev, ABS_MT_WIDTH_MAJOR, 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
3975 input_set_abs_params(input_dev, ABS_MT_WIDTH_MINOR, 0, features->y_max, 0, 0); in wacom_setup_touch_input_capabilities()
3993 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_DIRECT); in wacom_setup_touch_input_capabilities()
4008 if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) { in wacom_setup_touch_input_capabilities()
4011 0, features->x_max, 0, 0); in wacom_setup_touch_input_capabilities()
4014 0, features->y_max, 0, 0); in wacom_setup_touch_input_capabilities()
4016 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER); in wacom_setup_touch_input_capabilities()
4020 input_mt_init_slots(input_dev, features->touch_max, in wacom_setup_touch_input_capabilities()
4094 if (wacom->wacom_wac.features.type == WACOM_21UX2) in wacom_is_led_toggled()
4099 if (wacom->wacom_wac.features.type == INTUOSP2_BT) in wacom_is_led_toggled()
4112 if (wacom->wacom_wac.features.type == WACOM_24HD) in wacom_update_led()
4167 struct wacom_features *features = &wacom_wac->features; in wacom_setup_pad_input_capabilities() local
4169 if ((features->type == HID_GENERIC) && features->numbered_buttons > 0) in wacom_setup_pad_input_capabilities()
4170 features->device_type |= WACOM_DEVICETYPE_PAD; in wacom_setup_pad_input_capabilities()
4172 if (!(features->device_type & WACOM_DEVICETYPE_PAD)) in wacom_setup_pad_input_capabilities()
4175 if (features->type == REMOTE && input_dev == wacom_wac->pad_input) in wacom_setup_pad_input_capabilities()
4194 wacom_setup_numbered_buttons(input_dev, features->numbered_buttons); in wacom_setup_pad_input_capabilities()
4196 switch (features->type) { in wacom_setup_pad_input_capabilities()
4227 if (!features->oPid) in wacom_setup_pad_input_capabilities()
4242 if (!features->oPid) in wacom_setup_pad_input_capabilities()