Lines Matching refs:features

91 	struct wacom_features *features = &wacom->features;
107 if (features->pressure_max > 255)
109 pressure += (features->pressure_max + 1) / 2;
274 struct wacom_features *features = &wacom->features;
283 if (features->type == GRAPHIRE_BT) {
324 if (features->type == GRAPHIRE_BT)
336 if (features->type == WACOM_G4 ||
337 features->type == WACOM_MO) {
340 } else if (features->type == GRAPHIRE_BT) {
369 switch (features->type) {
415 if (features->type == GRAPHIRE_BT) {
432 struct wacom_features *features = &wacom->features;
438 if (features->type == INTUOS)
443 if (features->quirks & WACOM_QUIRK_MULTI_INPUT)
536 (features->type == WACOM_21UX2))
543 input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max);
544 if (features->quirks & WACOM_QUIRK_MULTI_INPUT)
550 if (features->quirks & WACOM_QUIRK_MULTI_INPUT)
576 if (features->type >= INTUOS3S)
590 struct wacom_features *features = &wacom->features;
598 if (features->type >= INTUOS4S && features->type <= CINTIQ_HYBRID) {
622 struct wacom_features *features = &wacom->features;
639 if (features->type == INTUOS)
645 if (features->type >= INTUOS4S && features->type <= INTUOS4L) {
659 if (features->type != INTUOS4S) {
668 } else if (features->type == DTK) {
680 } else if (features->type == WACOM_13HD) {
695 } else if (features->type == WACOM_24HD) {
743 } else if (features->type == CINTIQ_HYBRID) {
759 } else if (features->type >= INTUOS5S && features->type <= INTUOSPL) {
786 if (features->type == WACOM_21UX2 || features->type == WACOM_22HD) {
806 if (features->type == WACOM_22HD) {
848 (features->type == INTUOS3 ||
849 features->type == INTUOS3S ||
850 features->type == INTUOS4 ||
851 features->type == INTUOS4S ||
852 features->type == INTUOS5 ||
853 features->type == INTUOS5S ||
854 features->type == INTUOSPM ||
855 features->type == INTUOSPS)) {
861 if (features->type == CINTIQ && !(data[1] & 0x40))
864 if (features->type >= INTUOS3S) {
882 if (features->type >= INTUOS3S) {
895 } else if (!(data[1] & 0x10) && features->type < INTUOS3S) {
908 if (features->type >= INTUOS4S && features->type <= INTUOSPL) {
929 if (features->type >= INTUOS3S && features->type <= INTUOS3L) {
934 } else if ((features->type < INTUOS3S || features->type == INTUOS3L ||
935 features->type == INTUOS4L || features->type == INTUOS5L ||
936 features->type == INTUOSPL) &&
1076 if (wacom->features.type == MTTPC || wacom->features.type == MTTPC_B)
1153 if (wacom->features.touch_max > 1 || len > WACOM_PKGLEN_TPC2FG)
1381 unsigned touch_max = wacom_wac->features.touch_max;
1399 input_mt_init_slots(input, wacom_wac->features.touch_max,
1474 unsigned touch_max = wacom_wac->features.touch_max;
1513 if (wacom->wacom_wac.features.type != HID_GENERIC)
1531 if (wacom_wac->features.type != HID_GENERIC)
1543 struct wacom_features *features = &wacom->features;
1569 if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) {
1590 struct wacom_features *features = &wacom->features;
1608 if (features->type >= INTUOSPS && features->type <= INTUOSPL) {
1634 struct wacom_features *features = &wacom->features;
1636 if (features->type == INTUOSHT) {
1675 struct wacom_features *features = &wacom->features;
1684 if (features->type == INTUOSHT && features->touch_max) {
1724 if (data[8] <= features->distance_max)
1725 d = features->distance_max - data[8];
1816 switch (wacom_wac->features.type) {
1927 0, wacom_wac->features.distance_max, 0, 0);
1953 void wacom_setup_device_quirks(struct wacom_features *features)
1957 if (features->device_type == BTN_TOOL_FINGER && !features->x_max) {
1958 features->x_max = 1023;
1959 features->y_max = 1023;
1963 if (features->type >= WIRELESS ||
1964 (features->type >= INTUOS5S && features->type <= INTUOSHT) ||
1965 (features->oVid && features->oPid))
1966 features->quirks |= WACOM_QUIRK_MULTI_INPUT;
1969 if (features->type == BAMBOO_PT &&
1970 features->pktlen == WACOM_PKGLEN_BBTOUCH) {
1971 features->x_max <<= 5;
1972 features->y_max <<= 5;
1973 features->x_fuzz <<= 5;
1974 features->y_fuzz <<= 5;
1975 features->quirks |= WACOM_QUIRK_BBTOUCH_LOWRES;
1978 if (features->type == WIRELESS) {
1981 features->quirks |= WACOM_QUIRK_NO_INPUT;
1984 if (!features->device_type) {
1985 features->quirks |= WACOM_QUIRK_MONITOR;
1986 features->quirks |= WACOM_QUIRK_BATTERY;
1994 struct wacom_features *features = &wacom_wac->features;
1996 if (features->device_type == BTN_TOOL_PEN) {
1997 input_set_abs_params(input_dev, ABS_X, features->x_min,
1998 features->x_max, features->x_fuzz, 0);
1999 input_set_abs_params(input_dev, ABS_Y, features->y_min,
2000 features->y_max, features->y_fuzz, 0);
2002 features->pressure_max, features->pressure_fuzz, 0);
2005 input_abs_set_res(input_dev, ABS_X, features->x_resolution);
2006 input_abs_set_res(input_dev, ABS_Y, features->y_resolution);
2008 if (features->touch_max == 1) {
2010 features->x_max, features->x_fuzz, 0);
2012 features->y_max, features->y_fuzz, 0);
2014 features->x_resolution);
2016 features->y_resolution);
2019 if (features->touch_max > 1) {
2021 features->x_max, features->x_fuzz, 0);
2023 features->y_max, features->y_fuzz, 0);
2025 features->x_resolution);
2027 features->y_resolution);
2035 struct wacom_features *features = &wacom_wac->features;
2039 if (features->type == HID_GENERIC)
2048 switch (features->type) {
2075 features->distance_max,
2141 if (features->device_type == BTN_TOOL_PEN) {
2143 features->distance_max,
2149 } else if (features->device_type == BTN_TOOL_FINGER) {
2153 0, features->x_max, 0, 0);
2155 0, features->y_max, 0, 0);
2156 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER);
2171 if (features->device_type == BTN_TOOL_FINGER) {
2172 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0);
2173 input_set_abs_params(input_dev, ABS_MT_WIDTH_MAJOR, 0, features->x_max, 0, 0);
2174 input_set_abs_params(input_dev, ABS_MT_WIDTH_MINOR, 0, features->y_max, 0, 0);
2183 if (features->device_type == BTN_TOOL_FINGER && features->touch_max > 1)
2184 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_DIRECT);
2193 if (features->device_type != BTN_TOOL_PEN)
2222 if (features->touch_max &&
2223 features->device_type == BTN_TOOL_FINGER) {
2232 if (features->device_type == BTN_TOOL_FINGER) {
2234 if (features->touch_max) {
2235 if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) {
2238 0, features->x_max, 0, 0);
2241 0, features->y_max, 0, 0);
2243 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER);
2250 } else if (features->device_type == BTN_TOOL_PEN) {
2257 features->distance_max,
2275 struct wacom_features *features = &wacom_wac->features;
2290 switch (features->type) {
2404 if (features->device_type != BTN_TOOL_PEN)
2449 if (features->device_type != BTN_TOOL_FINGER)