aiptek 414 drivers/input/tablet/aiptek.c struct aiptek *aiptek = urb->context; aiptek 415 drivers/input/tablet/aiptek.c unsigned char *data = aiptek->data; aiptek 416 drivers/input/tablet/aiptek.c struct input_dev *inputdev = aiptek->inputdev; aiptek 417 drivers/input/tablet/aiptek.c struct usb_interface *intf = aiptek->intf; aiptek 442 drivers/input/tablet/aiptek.c if (aiptek->inDelay == 1 && time_after(aiptek->endDelay, jiffies)) { aiptek 446 drivers/input/tablet/aiptek.c aiptek->inDelay = 0; aiptek 447 drivers/input/tablet/aiptek.c aiptek->eventCount++; aiptek 454 drivers/input/tablet/aiptek.c if (aiptek->curSetting.coordinateMode == aiptek 456 drivers/input/tablet/aiptek.c aiptek->diagnostic = aiptek 471 drivers/input/tablet/aiptek.c left = (data[1] & aiptek->curSetting.mouseButtonLeft >> 2) != 0 ? 1 : 0; aiptek 472 drivers/input/tablet/aiptek.c right = (data[1] & aiptek->curSetting.mouseButtonRight >> 2) != 0 ? 1 : 0; aiptek 473 drivers/input/tablet/aiptek.c middle = (data[1] & aiptek->curSetting.mouseButtonMiddle >> 2) != 0 ? 1 : 0; aiptek 487 drivers/input/tablet/aiptek.c if (aiptek->curSetting.wheel != AIPTEK_WHEEL_DISABLE) { aiptek 489 drivers/input/tablet/aiptek.c aiptek->curSetting.wheel); aiptek 490 drivers/input/tablet/aiptek.c aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE; aiptek 492 drivers/input/tablet/aiptek.c if (aiptek->lastMacro != -1) { aiptek 494 drivers/input/tablet/aiptek.c macroKeyEvents[aiptek->lastMacro], 0); aiptek 495 drivers/input/tablet/aiptek.c aiptek->lastMacro = -1; aiptek 504 drivers/input/tablet/aiptek.c if (aiptek->curSetting.coordinateMode == AIPTEK_COORDINATE_RELATIVE_MODE) { aiptek 505 drivers/input/tablet/aiptek.c aiptek->diagnostic = AIPTEK_DIAGNOSTIC_SENDING_ABSOLUTE_IN_RELATIVE; aiptek 507 drivers/input/tablet/aiptek.c (aiptek->curSetting.pointerMode)) { aiptek 508 drivers/input/tablet/aiptek.c aiptek->diagnostic = AIPTEK_DIAGNOSTIC_TOOL_DISALLOWED; aiptek 522 drivers/input/tablet/aiptek.c bs = (data[5] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0; aiptek 523 drivers/input/tablet/aiptek.c pck = (data[5] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0; aiptek 533 drivers/input/tablet/aiptek.c if (aiptek->previousToolMode != aiptek 534 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode) { aiptek 536 drivers/input/tablet/aiptek.c aiptek->previousToolMode, 0); aiptek 538 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode, aiptek 540 drivers/input/tablet/aiptek.c aiptek->previousToolMode = aiptek 541 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode; aiptek 553 drivers/input/tablet/aiptek.c if (aiptek->curSetting.xTilt != aiptek 557 drivers/input/tablet/aiptek.c aiptek->curSetting.xTilt); aiptek 559 drivers/input/tablet/aiptek.c if (aiptek->curSetting.yTilt != AIPTEK_TILT_DISABLE) { aiptek 562 drivers/input/tablet/aiptek.c aiptek->curSetting.yTilt); aiptek 568 drivers/input/tablet/aiptek.c if (aiptek->curSetting.wheel != aiptek 572 drivers/input/tablet/aiptek.c aiptek->curSetting.wheel); aiptek 573 drivers/input/tablet/aiptek.c aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE; aiptek 577 drivers/input/tablet/aiptek.c if (aiptek->lastMacro != -1) { aiptek 579 drivers/input/tablet/aiptek.c macroKeyEvents[aiptek->lastMacro], 0); aiptek 580 drivers/input/tablet/aiptek.c aiptek->lastMacro = -1; aiptek 589 drivers/input/tablet/aiptek.c if (aiptek->curSetting.coordinateMode == AIPTEK_COORDINATE_RELATIVE_MODE) { aiptek 590 drivers/input/tablet/aiptek.c aiptek->diagnostic = AIPTEK_DIAGNOSTIC_SENDING_ABSOLUTE_IN_RELATIVE; aiptek 592 drivers/input/tablet/aiptek.c (aiptek->curSetting.pointerMode)) { aiptek 593 drivers/input/tablet/aiptek.c aiptek->diagnostic = AIPTEK_DIAGNOSTIC_TOOL_DISALLOWED; aiptek 602 drivers/input/tablet/aiptek.c left = (data[5] & aiptek->curSetting.mouseButtonLeft) != 0 ? 1 : 0; aiptek 603 drivers/input/tablet/aiptek.c right = (data[5] & aiptek->curSetting.mouseButtonRight) != 0 ? 1 : 0; aiptek 604 drivers/input/tablet/aiptek.c middle = (data[5] & aiptek->curSetting.mouseButtonMiddle) != 0 ? 1 : 0; aiptek 610 drivers/input/tablet/aiptek.c if (aiptek->previousToolMode != aiptek 611 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode) { aiptek 613 drivers/input/tablet/aiptek.c aiptek->previousToolMode, 0); aiptek 615 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode, aiptek 617 drivers/input/tablet/aiptek.c aiptek->previousToolMode = aiptek 618 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode; aiptek 632 drivers/input/tablet/aiptek.c if (aiptek->curSetting.wheel != AIPTEK_WHEEL_DISABLE) { aiptek 635 drivers/input/tablet/aiptek.c aiptek->curSetting.wheel); aiptek 636 drivers/input/tablet/aiptek.c aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE; aiptek 640 drivers/input/tablet/aiptek.c if (aiptek->lastMacro != -1) { aiptek 642 drivers/input/tablet/aiptek.c macroKeyEvents[aiptek->lastMacro], 0); aiptek 643 drivers/input/tablet/aiptek.c aiptek->lastMacro = -1; aiptek 657 drivers/input/tablet/aiptek.c bs = (data[1] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0; aiptek 658 drivers/input/tablet/aiptek.c pck = (data[1] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0; aiptek 667 drivers/input/tablet/aiptek.c if (aiptek->previousToolMode != aiptek 668 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode) { aiptek 670 drivers/input/tablet/aiptek.c aiptek->previousToolMode, 0); aiptek 672 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode, aiptek 674 drivers/input/tablet/aiptek.c aiptek->previousToolMode = aiptek 675 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode; aiptek 679 drivers/input/tablet/aiptek.c if (aiptek->lastMacro != -1 && aiptek->lastMacro != macro) { aiptek 680 drivers/input/tablet/aiptek.c input_report_key(inputdev, macroKeyEvents[aiptek->lastMacro], 0); aiptek 681 drivers/input/tablet/aiptek.c aiptek->lastMacro = -1; aiptek 684 drivers/input/tablet/aiptek.c if (macro != -1 && macro != aiptek->lastMacro) { aiptek 686 drivers/input/tablet/aiptek.c aiptek->lastMacro = macro; aiptek 699 drivers/input/tablet/aiptek.c left = (data[1]& aiptek->curSetting.mouseButtonLeft) != 0 ? 1 : 0; aiptek 700 drivers/input/tablet/aiptek.c right = (data[1] & aiptek->curSetting.mouseButtonRight) != 0 ? 1 : 0; aiptek 701 drivers/input/tablet/aiptek.c middle = (data[1] & aiptek->curSetting.mouseButtonMiddle) != 0 ? 1 : 0; aiptek 708 drivers/input/tablet/aiptek.c if (aiptek->previousToolMode != aiptek 709 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode) { aiptek 711 drivers/input/tablet/aiptek.c aiptek->previousToolMode, 0); aiptek 713 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode, 1); aiptek 714 drivers/input/tablet/aiptek.c aiptek->previousToolMode = aiptek->curSetting.toolMode; aiptek 718 drivers/input/tablet/aiptek.c if (aiptek->lastMacro != -1 && aiptek->lastMacro != macro) { aiptek 719 drivers/input/tablet/aiptek.c input_report_key(inputdev, macroKeyEvents[aiptek->lastMacro], 0); aiptek 720 drivers/input/tablet/aiptek.c aiptek->lastMacro = -1; aiptek 723 drivers/input/tablet/aiptek.c if (macro != -1 && macro != aiptek->lastMacro) { aiptek 725 drivers/input/tablet/aiptek.c aiptek->lastMacro = macro; aiptek 752 drivers/input/tablet/aiptek.c if (aiptek->previousToolMode != aiptek 753 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode) { aiptek 755 drivers/input/tablet/aiptek.c aiptek->previousToolMode, 0); aiptek 757 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode, aiptek 759 drivers/input/tablet/aiptek.c aiptek->previousToolMode = aiptek 760 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode; aiptek 783 drivers/input/tablet/aiptek.c if (aiptek->previousJitterable != jitterable && aiptek 784 drivers/input/tablet/aiptek.c aiptek->curSetting.jitterDelay != 0 && aiptek->inDelay != 1) { aiptek 785 drivers/input/tablet/aiptek.c aiptek->endDelay = jiffies + aiptek 786 drivers/input/tablet/aiptek.c ((aiptek->curSetting.jitterDelay * HZ) / 1000); aiptek 787 drivers/input/tablet/aiptek.c aiptek->inDelay = 1; aiptek 789 drivers/input/tablet/aiptek.c aiptek->previousJitterable = jitterable; aiptek 827 drivers/input/tablet/aiptek.c struct aiptek *aiptek = input_get_drvdata(inputdev); aiptek 829 drivers/input/tablet/aiptek.c aiptek->urb->dev = interface_to_usbdev(aiptek->intf); aiptek 830 drivers/input/tablet/aiptek.c if (usb_submit_urb(aiptek->urb, GFP_KERNEL) != 0) aiptek 841 drivers/input/tablet/aiptek.c struct aiptek *aiptek = input_get_drvdata(inputdev); aiptek 843 drivers/input/tablet/aiptek.c usb_kill_urb(aiptek->urb); aiptek 851 drivers/input/tablet/aiptek.c aiptek_set_report(struct aiptek *aiptek, aiptek 855 drivers/input/tablet/aiptek.c struct usb_device *udev = interface_to_usbdev(aiptek->intf); aiptek 862 drivers/input/tablet/aiptek.c aiptek->ifnum, buffer, size, 5000); aiptek 866 drivers/input/tablet/aiptek.c aiptek_get_report(struct aiptek *aiptek, aiptek 870 drivers/input/tablet/aiptek.c struct usb_device *udev = interface_to_usbdev(aiptek->intf); aiptek 877 drivers/input/tablet/aiptek.c aiptek->ifnum, buffer, size, 5000); aiptek 884 drivers/input/tablet/aiptek.c aiptek_command(struct aiptek *aiptek, unsigned char command, unsigned char data) aiptek 899 drivers/input/tablet/aiptek.c aiptek_set_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) { aiptek 900 drivers/input/tablet/aiptek.c dev_dbg(&aiptek->intf->dev, aiptek 914 drivers/input/tablet/aiptek.c aiptek_query(struct aiptek *aiptek, unsigned char command, unsigned char data) aiptek 928 drivers/input/tablet/aiptek.c if (aiptek_command(aiptek, command, data) != 0) { aiptek 932 drivers/input/tablet/aiptek.c msleep(aiptek->curSetting.programmableDelay); aiptek 935 drivers/input/tablet/aiptek.c aiptek_get_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) { aiptek 936 drivers/input/tablet/aiptek.c dev_dbg(&aiptek->intf->dev, aiptek 951 drivers/input/tablet/aiptek.c static int aiptek_program_tablet(struct aiptek *aiptek) aiptek 955 drivers/input/tablet/aiptek.c if ((ret = aiptek_command(aiptek, 0x18, 0x04)) < 0) aiptek 959 drivers/input/tablet/aiptek.c if ((ret = aiptek_query(aiptek, 0x02, 0x00)) < 0) aiptek 961 drivers/input/tablet/aiptek.c aiptek->features.modelCode = ret & 0xff; aiptek 964 drivers/input/tablet/aiptek.c if ((ret = aiptek_query(aiptek, 0x03, 0x00)) < 0) aiptek 966 drivers/input/tablet/aiptek.c aiptek->features.odmCode = ret; aiptek 969 drivers/input/tablet/aiptek.c if ((ret = aiptek_query(aiptek, 0x04, 0x00)) < 0) aiptek 971 drivers/input/tablet/aiptek.c aiptek->features.firmwareCode = ret; aiptek 974 drivers/input/tablet/aiptek.c if ((ret = aiptek_query(aiptek, 0x01, 0x00)) < 0) aiptek 976 drivers/input/tablet/aiptek.c input_set_abs_params(aiptek->inputdev, ABS_X, 0, ret - 1, 0, 0); aiptek 979 drivers/input/tablet/aiptek.c if ((ret = aiptek_query(aiptek, 0x01, 0x01)) < 0) aiptek 981 drivers/input/tablet/aiptek.c input_set_abs_params(aiptek->inputdev, ABS_Y, 0, ret - 1, 0, 0); aiptek 984 drivers/input/tablet/aiptek.c if ((ret = aiptek_query(aiptek, 0x08, 0x00)) < 0) aiptek 986 drivers/input/tablet/aiptek.c input_set_abs_params(aiptek->inputdev, ABS_PRESSURE, 0, ret - 1, 0, 0); aiptek 991 drivers/input/tablet/aiptek.c if (aiptek->curSetting.coordinateMode == aiptek 994 drivers/input/tablet/aiptek.c if ((ret = aiptek_command(aiptek, 0x10, 0x01)) < 0) { aiptek 999 drivers/input/tablet/aiptek.c if ((ret = aiptek_command(aiptek, 0x10, 0x00)) < 0) { aiptek 1005 drivers/input/tablet/aiptek.c if ((ret = aiptek_command(aiptek, 0x11, 0x02)) < 0) aiptek 1009 drivers/input/tablet/aiptek.c if ((ret = aiptek_command(aiptek, 0x17, 0x00)) < 0) aiptek 1014 drivers/input/tablet/aiptek.c if ((ret = aiptek_command(aiptek, 0x12, 0xff)) < 0) aiptek 1019 drivers/input/tablet/aiptek.c aiptek->diagnostic = AIPTEK_DIAGNOSTIC_NA; aiptek 1020 drivers/input/tablet/aiptek.c aiptek->eventCount = 0; aiptek 1037 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1040 drivers/input/tablet/aiptek.c input_abs_get_max(aiptek->inputdev, ABS_X) + 1, aiptek 1041 drivers/input/tablet/aiptek.c input_abs_get_max(aiptek->inputdev, ABS_Y) + 1); aiptek 1065 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1069 drivers/input/tablet/aiptek.c aiptek->curSetting.pointerMode)); aiptek 1075 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1081 drivers/input/tablet/aiptek.c aiptek->newSetting.pointerMode = new_mode; aiptek 1102 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1106 drivers/input/tablet/aiptek.c aiptek->curSetting.coordinateMode)); aiptek 1112 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1118 drivers/input/tablet/aiptek.c aiptek->newSetting.coordinateMode = new_mode; aiptek 1144 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1148 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode)); aiptek 1154 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1160 drivers/input/tablet/aiptek.c aiptek->newSetting.toolMode = new_mode; aiptek 1174 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1176 drivers/input/tablet/aiptek.c if (aiptek->curSetting.xTilt == AIPTEK_TILT_DISABLE) { aiptek 1180 drivers/input/tablet/aiptek.c aiptek->curSetting.xTilt); aiptek 1187 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1196 drivers/input/tablet/aiptek.c aiptek->newSetting.xTilt = AIPTEK_TILT_DISABLE; aiptek 1201 drivers/input/tablet/aiptek.c aiptek->newSetting.xTilt = x; aiptek 1216 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1218 drivers/input/tablet/aiptek.c if (aiptek->curSetting.yTilt == AIPTEK_TILT_DISABLE) { aiptek 1222 drivers/input/tablet/aiptek.c aiptek->curSetting.yTilt); aiptek 1229 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1238 drivers/input/tablet/aiptek.c aiptek->newSetting.yTilt = AIPTEK_TILT_DISABLE; aiptek 1243 drivers/input/tablet/aiptek.c aiptek->newSetting.yTilt = y; aiptek 1258 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1260 drivers/input/tablet/aiptek.c return snprintf(buf, PAGE_SIZE, "%d\n", aiptek->curSetting.jitterDelay); aiptek 1266 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1273 drivers/input/tablet/aiptek.c aiptek->newSetting.jitterDelay = j; aiptek 1287 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1290 drivers/input/tablet/aiptek.c aiptek->curSetting.programmableDelay); aiptek 1296 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1303 drivers/input/tablet/aiptek.c aiptek->newSetting.programmableDelay = d; aiptek 1317 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1319 drivers/input/tablet/aiptek.c return snprintf(buf, PAGE_SIZE, "%ld\n", aiptek->eventCount); aiptek 1330 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1333 drivers/input/tablet/aiptek.c switch (aiptek->diagnostic) { aiptek 1347 drivers/input/tablet/aiptek.c if (aiptek->curSetting.pointerMode == aiptek 1376 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1380 drivers/input/tablet/aiptek.c aiptek->curSetting.stylusButtonUpper)); aiptek 1386 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1392 drivers/input/tablet/aiptek.c aiptek->newSetting.stylusButtonUpper = new_button; aiptek 1407 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1411 drivers/input/tablet/aiptek.c aiptek->curSetting.stylusButtonLower)); aiptek 1417 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1423 drivers/input/tablet/aiptek.c aiptek->newSetting.stylusButtonLower = new_button; aiptek 1445 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1449 drivers/input/tablet/aiptek.c aiptek->curSetting.mouseButtonLeft)); aiptek 1455 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1461 drivers/input/tablet/aiptek.c aiptek->newSetting.mouseButtonLeft = new_button; aiptek 1475 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1479 drivers/input/tablet/aiptek.c aiptek->curSetting.mouseButtonMiddle)); aiptek 1485 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1491 drivers/input/tablet/aiptek.c aiptek->newSetting.mouseButtonMiddle = new_button; aiptek 1505 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1509 drivers/input/tablet/aiptek.c aiptek->curSetting.mouseButtonRight)); aiptek 1515 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1521 drivers/input/tablet/aiptek.c aiptek->newSetting.mouseButtonRight = new_button; aiptek 1535 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1537 drivers/input/tablet/aiptek.c if (aiptek->curSetting.wheel == AIPTEK_WHEEL_DISABLE) { aiptek 1541 drivers/input/tablet/aiptek.c aiptek->curSetting.wheel); aiptek 1548 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1555 drivers/input/tablet/aiptek.c aiptek->newSetting.wheel = w; aiptek 1578 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1583 drivers/input/tablet/aiptek.c memcpy(&aiptek->curSetting, &aiptek->newSetting, aiptek 1586 drivers/input/tablet/aiptek.c if (aiptek_program_tablet(aiptek) < 0) aiptek 1601 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1603 drivers/input/tablet/aiptek.c return snprintf(buf, PAGE_SIZE, "0x%04x\n", aiptek->features.odmCode); aiptek 1614 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1616 drivers/input/tablet/aiptek.c return snprintf(buf, PAGE_SIZE, "0x%04x\n", aiptek->features.modelCode); aiptek 1627 drivers/input/tablet/aiptek.c struct aiptek *aiptek = dev_get_drvdata(dev); aiptek 1630 drivers/input/tablet/aiptek.c aiptek->features.firmwareCode); aiptek 1672 drivers/input/tablet/aiptek.c struct aiptek *aiptek; aiptek 1693 drivers/input/tablet/aiptek.c aiptek = kzalloc(sizeof(struct aiptek), GFP_KERNEL); aiptek 1695 drivers/input/tablet/aiptek.c if (!aiptek || !inputdev) { aiptek 1701 drivers/input/tablet/aiptek.c aiptek->data = usb_alloc_coherent(usbdev, AIPTEK_PACKET_LENGTH, aiptek 1702 drivers/input/tablet/aiptek.c GFP_KERNEL, &aiptek->data_dma); aiptek 1703 drivers/input/tablet/aiptek.c if (!aiptek->data) { aiptek 1708 drivers/input/tablet/aiptek.c aiptek->urb = usb_alloc_urb(0, GFP_KERNEL); aiptek 1709 drivers/input/tablet/aiptek.c if (!aiptek->urb) { aiptek 1714 drivers/input/tablet/aiptek.c aiptek->inputdev = inputdev; aiptek 1715 drivers/input/tablet/aiptek.c aiptek->intf = intf; aiptek 1716 drivers/input/tablet/aiptek.c aiptek->ifnum = intf->altsetting[0].desc.bInterfaceNumber; aiptek 1717 drivers/input/tablet/aiptek.c aiptek->inDelay = 0; aiptek 1718 drivers/input/tablet/aiptek.c aiptek->endDelay = 0; aiptek 1719 drivers/input/tablet/aiptek.c aiptek->previousJitterable = 0; aiptek 1720 drivers/input/tablet/aiptek.c aiptek->lastMacro = -1; aiptek 1728 drivers/input/tablet/aiptek.c aiptek->curSetting.pointerMode = AIPTEK_POINTER_EITHER_MODE; aiptek 1729 drivers/input/tablet/aiptek.c aiptek->curSetting.coordinateMode = AIPTEK_COORDINATE_ABSOLUTE_MODE; aiptek 1730 drivers/input/tablet/aiptek.c aiptek->curSetting.toolMode = AIPTEK_TOOL_BUTTON_PEN_MODE; aiptek 1731 drivers/input/tablet/aiptek.c aiptek->curSetting.xTilt = AIPTEK_TILT_DISABLE; aiptek 1732 drivers/input/tablet/aiptek.c aiptek->curSetting.yTilt = AIPTEK_TILT_DISABLE; aiptek 1733 drivers/input/tablet/aiptek.c aiptek->curSetting.mouseButtonLeft = AIPTEK_MOUSE_LEFT_BUTTON; aiptek 1734 drivers/input/tablet/aiptek.c aiptek->curSetting.mouseButtonMiddle = AIPTEK_MOUSE_MIDDLE_BUTTON; aiptek 1735 drivers/input/tablet/aiptek.c aiptek->curSetting.mouseButtonRight = AIPTEK_MOUSE_RIGHT_BUTTON; aiptek 1736 drivers/input/tablet/aiptek.c aiptek->curSetting.stylusButtonUpper = AIPTEK_STYLUS_UPPER_BUTTON; aiptek 1737 drivers/input/tablet/aiptek.c aiptek->curSetting.stylusButtonLower = AIPTEK_STYLUS_LOWER_BUTTON; aiptek 1738 drivers/input/tablet/aiptek.c aiptek->curSetting.jitterDelay = jitterDelay; aiptek 1739 drivers/input/tablet/aiptek.c aiptek->curSetting.programmableDelay = programmableDelay; aiptek 1743 drivers/input/tablet/aiptek.c aiptek->newSetting = aiptek->curSetting; aiptek 1752 drivers/input/tablet/aiptek.c usb_make_path(usbdev, aiptek->features.usbPath, aiptek 1753 drivers/input/tablet/aiptek.c sizeof(aiptek->features.usbPath)); aiptek 1754 drivers/input/tablet/aiptek.c strlcat(aiptek->features.usbPath, "/input0", aiptek 1755 drivers/input/tablet/aiptek.c sizeof(aiptek->features.usbPath)); aiptek 1761 drivers/input/tablet/aiptek.c inputdev->phys = aiptek->features.usbPath; aiptek 1765 drivers/input/tablet/aiptek.c input_set_drvdata(inputdev, aiptek); aiptek 1817 drivers/input/tablet/aiptek.c usb_fill_int_urb(aiptek->urb, aiptek 1821 drivers/input/tablet/aiptek.c aiptek->data, 8, aiptek_irq, aiptek, aiptek 1824 drivers/input/tablet/aiptek.c aiptek->urb->transfer_dma = aiptek->data_dma; aiptek 1825 drivers/input/tablet/aiptek.c aiptek->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; aiptek 1839 drivers/input/tablet/aiptek.c aiptek->curSetting.programmableDelay = speeds[i]; aiptek 1840 drivers/input/tablet/aiptek.c (void)aiptek_program_tablet(aiptek); aiptek 1841 drivers/input/tablet/aiptek.c if (input_abs_get_max(aiptek->inputdev, ABS_X) > 0) { aiptek 1844 drivers/input/tablet/aiptek.c aiptek->curSetting.programmableDelay); aiptek 1860 drivers/input/tablet/aiptek.c usb_set_intfdata(intf, aiptek); aiptek 1873 drivers/input/tablet/aiptek.c err = input_register_device(aiptek->inputdev); aiptek 1882 drivers/input/tablet/aiptek.c fail3: usb_free_urb(aiptek->urb); aiptek 1883 drivers/input/tablet/aiptek.c fail2: usb_free_coherent(usbdev, AIPTEK_PACKET_LENGTH, aiptek->data, aiptek 1884 drivers/input/tablet/aiptek.c aiptek->data_dma); aiptek 1887 drivers/input/tablet/aiptek.c kfree(aiptek); aiptek 1896 drivers/input/tablet/aiptek.c struct aiptek *aiptek = usb_get_intfdata(intf); aiptek 1901 drivers/input/tablet/aiptek.c if (aiptek != NULL) { aiptek 1904 drivers/input/tablet/aiptek.c usb_kill_urb(aiptek->urb); aiptek 1905 drivers/input/tablet/aiptek.c input_unregister_device(aiptek->inputdev); aiptek 1907 drivers/input/tablet/aiptek.c usb_free_urb(aiptek->urb); aiptek 1910 drivers/input/tablet/aiptek.c aiptek->data, aiptek->data_dma); aiptek 1911 drivers/input/tablet/aiptek.c kfree(aiptek);