Symbol: aiptek
drivers/input/tablet/aiptek.c
1009
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1012
input_abs_get_max(aiptek->inputdev, ABS_X) + 1,
drivers/input/tablet/aiptek.c
1013
input_abs_get_max(aiptek->inputdev, ABS_Y) + 1);
drivers/input/tablet/aiptek.c
1037
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1040
aiptek->curSetting.pointerMode));
drivers/input/tablet/aiptek.c
1046
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1052
aiptek->newSetting.pointerMode = new_mode;
drivers/input/tablet/aiptek.c
1073
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1076
aiptek->curSetting.coordinateMode));
drivers/input/tablet/aiptek.c
1082
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1088
aiptek->newSetting.coordinateMode = new_mode;
drivers/input/tablet/aiptek.c
1114
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1117
aiptek->curSetting.toolMode));
drivers/input/tablet/aiptek.c
1123
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1129
aiptek->newSetting.toolMode = new_mode;
drivers/input/tablet/aiptek.c
1143
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1145
if (aiptek->curSetting.xTilt == AIPTEK_TILT_DISABLE) {
drivers/input/tablet/aiptek.c
1148
return sysfs_emit(buf, "%d\n", aiptek->curSetting.xTilt);
drivers/input/tablet/aiptek.c
1155
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1164
aiptek->newSetting.xTilt = AIPTEK_TILT_DISABLE;
drivers/input/tablet/aiptek.c
1169
aiptek->newSetting.xTilt = x;
drivers/input/tablet/aiptek.c
1184
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1186
if (aiptek->curSetting.yTilt == AIPTEK_TILT_DISABLE) {
drivers/input/tablet/aiptek.c
1189
return sysfs_emit(buf, "%d\n", aiptek->curSetting.yTilt);
drivers/input/tablet/aiptek.c
1196
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1205
aiptek->newSetting.yTilt = AIPTEK_TILT_DISABLE;
drivers/input/tablet/aiptek.c
1210
aiptek->newSetting.yTilt = y;
drivers/input/tablet/aiptek.c
1225
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1227
return sysfs_emit(buf, "%d\n", aiptek->curSetting.jitterDelay);
drivers/input/tablet/aiptek.c
1233
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1240
aiptek->newSetting.jitterDelay = j;
drivers/input/tablet/aiptek.c
1254
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1256
return sysfs_emit(buf, "%d\n", aiptek->curSetting.programmableDelay);
drivers/input/tablet/aiptek.c
1262
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1269
aiptek->newSetting.programmableDelay = d;
drivers/input/tablet/aiptek.c
1283
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1285
return sysfs_emit(buf, "%ld\n", aiptek->eventCount);
drivers/input/tablet/aiptek.c
1296
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1299
switch (aiptek->diagnostic) {
drivers/input/tablet/aiptek.c
1313
if (aiptek->curSetting.pointerMode ==
drivers/input/tablet/aiptek.c
1342
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1345
aiptek->curSetting.stylusButtonUpper));
drivers/input/tablet/aiptek.c
1351
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1357
aiptek->newSetting.stylusButtonUpper = new_button;
drivers/input/tablet/aiptek.c
1372
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1375
aiptek->curSetting.stylusButtonLower));
drivers/input/tablet/aiptek.c
1381
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1387
aiptek->newSetting.stylusButtonLower = new_button;
drivers/input/tablet/aiptek.c
1409
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1412
aiptek->curSetting.mouseButtonLeft));
drivers/input/tablet/aiptek.c
1418
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1424
aiptek->newSetting.mouseButtonLeft = new_button;
drivers/input/tablet/aiptek.c
1438
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1441
aiptek->curSetting.mouseButtonMiddle));
drivers/input/tablet/aiptek.c
1447
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1453
aiptek->newSetting.mouseButtonMiddle = new_button;
drivers/input/tablet/aiptek.c
1467
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1470
aiptek->curSetting.mouseButtonRight));
drivers/input/tablet/aiptek.c
1476
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1482
aiptek->newSetting.mouseButtonRight = new_button;
drivers/input/tablet/aiptek.c
1496
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1498
if (aiptek->curSetting.wheel == AIPTEK_WHEEL_DISABLE) {
drivers/input/tablet/aiptek.c
1501
return sysfs_emit(buf, "%d\n", aiptek->curSetting.wheel);
drivers/input/tablet/aiptek.c
1508
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1515
aiptek->newSetting.wheel = w;
drivers/input/tablet/aiptek.c
1537
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1542
memcpy(&aiptek->curSetting, &aiptek->newSetting,
drivers/input/tablet/aiptek.c
1545
if (aiptek_program_tablet(aiptek) < 0)
drivers/input/tablet/aiptek.c
1560
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1562
return sysfs_emit(buf, "0x%04x\n", aiptek->features.odmCode);
drivers/input/tablet/aiptek.c
1573
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1575
return sysfs_emit(buf, "0x%04x\n", aiptek->features.modelCode);
drivers/input/tablet/aiptek.c
1586
struct aiptek *aiptek = dev_get_drvdata(dev);
drivers/input/tablet/aiptek.c
1588
return sysfs_emit(buf, "%04x\n", aiptek->features.firmwareCode);
drivers/input/tablet/aiptek.c
1628
struct aiptek *aiptek;
drivers/input/tablet/aiptek.c
1649
aiptek = kzalloc_obj(*aiptek);
drivers/input/tablet/aiptek.c
1651
if (!aiptek || !inputdev) {
drivers/input/tablet/aiptek.c
1657
aiptek->data = usb_alloc_coherent(usbdev, AIPTEK_PACKET_LENGTH,
drivers/input/tablet/aiptek.c
1658
GFP_KERNEL, &aiptek->data_dma);
drivers/input/tablet/aiptek.c
1659
if (!aiptek->data) {
drivers/input/tablet/aiptek.c
1664
aiptek->urb = usb_alloc_urb(0, GFP_KERNEL);
drivers/input/tablet/aiptek.c
1665
if (!aiptek->urb) {
drivers/input/tablet/aiptek.c
1670
aiptek->inputdev = inputdev;
drivers/input/tablet/aiptek.c
1671
aiptek->intf = intf;
drivers/input/tablet/aiptek.c
1672
aiptek->ifnum = intf->cur_altsetting->desc.bInterfaceNumber;
drivers/input/tablet/aiptek.c
1673
aiptek->inDelay = 0;
drivers/input/tablet/aiptek.c
1674
aiptek->endDelay = 0;
drivers/input/tablet/aiptek.c
1675
aiptek->previousJitterable = 0;
drivers/input/tablet/aiptek.c
1676
aiptek->lastMacro = -1;
drivers/input/tablet/aiptek.c
1684
aiptek->curSetting.pointerMode = AIPTEK_POINTER_EITHER_MODE;
drivers/input/tablet/aiptek.c
1685
aiptek->curSetting.coordinateMode = AIPTEK_COORDINATE_ABSOLUTE_MODE;
drivers/input/tablet/aiptek.c
1686
aiptek->curSetting.toolMode = AIPTEK_TOOL_BUTTON_PEN_MODE;
drivers/input/tablet/aiptek.c
1687
aiptek->curSetting.xTilt = AIPTEK_TILT_DISABLE;
drivers/input/tablet/aiptek.c
1688
aiptek->curSetting.yTilt = AIPTEK_TILT_DISABLE;
drivers/input/tablet/aiptek.c
1689
aiptek->curSetting.mouseButtonLeft = AIPTEK_MOUSE_LEFT_BUTTON;
drivers/input/tablet/aiptek.c
1690
aiptek->curSetting.mouseButtonMiddle = AIPTEK_MOUSE_MIDDLE_BUTTON;
drivers/input/tablet/aiptek.c
1691
aiptek->curSetting.mouseButtonRight = AIPTEK_MOUSE_RIGHT_BUTTON;
drivers/input/tablet/aiptek.c
1692
aiptek->curSetting.stylusButtonUpper = AIPTEK_STYLUS_UPPER_BUTTON;
drivers/input/tablet/aiptek.c
1693
aiptek->curSetting.stylusButtonLower = AIPTEK_STYLUS_LOWER_BUTTON;
drivers/input/tablet/aiptek.c
1694
aiptek->curSetting.jitterDelay = jitterDelay;
drivers/input/tablet/aiptek.c
1695
aiptek->curSetting.programmableDelay = programmableDelay;
drivers/input/tablet/aiptek.c
1699
aiptek->newSetting = aiptek->curSetting;
drivers/input/tablet/aiptek.c
1708
usb_make_path(usbdev, aiptek->features.usbPath,
drivers/input/tablet/aiptek.c
1709
sizeof(aiptek->features.usbPath));
drivers/input/tablet/aiptek.c
1710
strlcat(aiptek->features.usbPath, "/input0",
drivers/input/tablet/aiptek.c
1711
sizeof(aiptek->features.usbPath));
drivers/input/tablet/aiptek.c
1717
inputdev->phys = aiptek->features.usbPath;
drivers/input/tablet/aiptek.c
1721
input_set_drvdata(inputdev, aiptek);
drivers/input/tablet/aiptek.c
1771
usb_fill_int_urb(aiptek->urb,
drivers/input/tablet/aiptek.c
1775
aiptek->data, 8, aiptek_irq, aiptek,
drivers/input/tablet/aiptek.c
1778
aiptek->urb->transfer_dma = aiptek->data_dma;
drivers/input/tablet/aiptek.c
1779
aiptek->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
drivers/input/tablet/aiptek.c
1793
aiptek->curSetting.programmableDelay = speeds[i];
drivers/input/tablet/aiptek.c
1794
(void)aiptek_program_tablet(aiptek);
drivers/input/tablet/aiptek.c
1795
if (input_abs_get_max(aiptek->inputdev, ABS_X) > 0) {
drivers/input/tablet/aiptek.c
1798
aiptek->curSetting.programmableDelay);
drivers/input/tablet/aiptek.c
1814
usb_set_intfdata(intf, aiptek);
drivers/input/tablet/aiptek.c
1818
err = input_register_device(aiptek->inputdev);
drivers/input/tablet/aiptek.c
1826
fail3: usb_free_urb(aiptek->urb);
drivers/input/tablet/aiptek.c
1827
fail2: usb_free_coherent(usbdev, AIPTEK_PACKET_LENGTH, aiptek->data,
drivers/input/tablet/aiptek.c
1828
aiptek->data_dma);
drivers/input/tablet/aiptek.c
1831
kfree(aiptek);
drivers/input/tablet/aiptek.c
1840
struct aiptek *aiptek = usb_get_intfdata(intf);
drivers/input/tablet/aiptek.c
1845
if (aiptek != NULL) {
drivers/input/tablet/aiptek.c
1848
usb_kill_urb(aiptek->urb);
drivers/input/tablet/aiptek.c
1849
input_unregister_device(aiptek->inputdev);
drivers/input/tablet/aiptek.c
1850
usb_free_urb(aiptek->urb);
drivers/input/tablet/aiptek.c
1853
aiptek->data, aiptek->data_dma);
drivers/input/tablet/aiptek.c
1854
kfree(aiptek);
drivers/input/tablet/aiptek.c
382
struct aiptek *aiptek = urb->context;
drivers/input/tablet/aiptek.c
383
unsigned char *data = aiptek->data;
drivers/input/tablet/aiptek.c
384
struct input_dev *inputdev = aiptek->inputdev;
drivers/input/tablet/aiptek.c
385
struct usb_interface *intf = aiptek->intf;
drivers/input/tablet/aiptek.c
410
if (aiptek->inDelay == 1 && time_after(aiptek->endDelay, jiffies)) {
drivers/input/tablet/aiptek.c
414
aiptek->inDelay = 0;
drivers/input/tablet/aiptek.c
415
aiptek->eventCount++;
drivers/input/tablet/aiptek.c
422
if (aiptek->curSetting.coordinateMode ==
drivers/input/tablet/aiptek.c
424
aiptek->diagnostic =
drivers/input/tablet/aiptek.c
439
left = (data[1] & aiptek->curSetting.mouseButtonLeft >> 2) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
440
right = (data[1] & aiptek->curSetting.mouseButtonRight >> 2) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
441
middle = (data[1] & aiptek->curSetting.mouseButtonMiddle >> 2) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
455
if (aiptek->curSetting.wheel != AIPTEK_WHEEL_DISABLE) {
drivers/input/tablet/aiptek.c
457
aiptek->curSetting.wheel);
drivers/input/tablet/aiptek.c
458
aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE;
drivers/input/tablet/aiptek.c
460
if (aiptek->lastMacro != -1) {
drivers/input/tablet/aiptek.c
462
macroKeyEvents[aiptek->lastMacro], 0);
drivers/input/tablet/aiptek.c
463
aiptek->lastMacro = -1;
drivers/input/tablet/aiptek.c
472
if (aiptek->curSetting.coordinateMode == AIPTEK_COORDINATE_RELATIVE_MODE) {
drivers/input/tablet/aiptek.c
473
aiptek->diagnostic = AIPTEK_DIAGNOSTIC_SENDING_ABSOLUTE_IN_RELATIVE;
drivers/input/tablet/aiptek.c
475
(aiptek->curSetting.pointerMode)) {
drivers/input/tablet/aiptek.c
476
aiptek->diagnostic = AIPTEK_DIAGNOSTIC_TOOL_DISALLOWED;
drivers/input/tablet/aiptek.c
490
bs = (data[5] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
491
pck = (data[5] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
501
if (aiptek->previousToolMode !=
drivers/input/tablet/aiptek.c
502
aiptek->curSetting.toolMode) {
drivers/input/tablet/aiptek.c
504
aiptek->previousToolMode, 0);
drivers/input/tablet/aiptek.c
506
aiptek->curSetting.toolMode,
drivers/input/tablet/aiptek.c
508
aiptek->previousToolMode =
drivers/input/tablet/aiptek.c
509
aiptek->curSetting.toolMode;
drivers/input/tablet/aiptek.c
521
if (aiptek->curSetting.xTilt !=
drivers/input/tablet/aiptek.c
525
aiptek->curSetting.xTilt);
drivers/input/tablet/aiptek.c
527
if (aiptek->curSetting.yTilt != AIPTEK_TILT_DISABLE) {
drivers/input/tablet/aiptek.c
530
aiptek->curSetting.yTilt);
drivers/input/tablet/aiptek.c
536
if (aiptek->curSetting.wheel !=
drivers/input/tablet/aiptek.c
540
aiptek->curSetting.wheel);
drivers/input/tablet/aiptek.c
541
aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE;
drivers/input/tablet/aiptek.c
545
if (aiptek->lastMacro != -1) {
drivers/input/tablet/aiptek.c
547
macroKeyEvents[aiptek->lastMacro], 0);
drivers/input/tablet/aiptek.c
548
aiptek->lastMacro = -1;
drivers/input/tablet/aiptek.c
557
if (aiptek->curSetting.coordinateMode == AIPTEK_COORDINATE_RELATIVE_MODE) {
drivers/input/tablet/aiptek.c
558
aiptek->diagnostic = AIPTEK_DIAGNOSTIC_SENDING_ABSOLUTE_IN_RELATIVE;
drivers/input/tablet/aiptek.c
560
(aiptek->curSetting.pointerMode)) {
drivers/input/tablet/aiptek.c
561
aiptek->diagnostic = AIPTEK_DIAGNOSTIC_TOOL_DISALLOWED;
drivers/input/tablet/aiptek.c
570
left = (data[5] & aiptek->curSetting.mouseButtonLeft) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
571
right = (data[5] & aiptek->curSetting.mouseButtonRight) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
572
middle = (data[5] & aiptek->curSetting.mouseButtonMiddle) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
578
if (aiptek->previousToolMode !=
drivers/input/tablet/aiptek.c
579
aiptek->curSetting.toolMode) {
drivers/input/tablet/aiptek.c
581
aiptek->previousToolMode, 0);
drivers/input/tablet/aiptek.c
583
aiptek->curSetting.toolMode,
drivers/input/tablet/aiptek.c
585
aiptek->previousToolMode =
drivers/input/tablet/aiptek.c
586
aiptek->curSetting.toolMode;
drivers/input/tablet/aiptek.c
600
if (aiptek->curSetting.wheel != AIPTEK_WHEEL_DISABLE) {
drivers/input/tablet/aiptek.c
603
aiptek->curSetting.wheel);
drivers/input/tablet/aiptek.c
604
aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE;
drivers/input/tablet/aiptek.c
608
if (aiptek->lastMacro != -1) {
drivers/input/tablet/aiptek.c
610
macroKeyEvents[aiptek->lastMacro], 0);
drivers/input/tablet/aiptek.c
611
aiptek->lastMacro = -1;
drivers/input/tablet/aiptek.c
625
bs = (data[1] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
626
pck = (data[1] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
637
if (aiptek->previousToolMode !=
drivers/input/tablet/aiptek.c
638
aiptek->curSetting.toolMode) {
drivers/input/tablet/aiptek.c
640
aiptek->previousToolMode, 0);
drivers/input/tablet/aiptek.c
642
aiptek->curSetting.toolMode,
drivers/input/tablet/aiptek.c
644
aiptek->previousToolMode =
drivers/input/tablet/aiptek.c
645
aiptek->curSetting.toolMode;
drivers/input/tablet/aiptek.c
649
if (aiptek->lastMacro != -1 && aiptek->lastMacro != macro) {
drivers/input/tablet/aiptek.c
650
input_report_key(inputdev, macroKeyEvents[aiptek->lastMacro], 0);
drivers/input/tablet/aiptek.c
651
aiptek->lastMacro = -1;
drivers/input/tablet/aiptek.c
654
if (macro != -1 && macro != aiptek->lastMacro) {
drivers/input/tablet/aiptek.c
656
aiptek->lastMacro = macro;
drivers/input/tablet/aiptek.c
669
left = (data[1]& aiptek->curSetting.mouseButtonLeft) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
670
right = (data[1] & aiptek->curSetting.mouseButtonRight) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
671
middle = (data[1] & aiptek->curSetting.mouseButtonMiddle) != 0 ? 1 : 0;
drivers/input/tablet/aiptek.c
680
if (aiptek->previousToolMode !=
drivers/input/tablet/aiptek.c
681
aiptek->curSetting.toolMode) {
drivers/input/tablet/aiptek.c
683
aiptek->previousToolMode, 0);
drivers/input/tablet/aiptek.c
685
aiptek->curSetting.toolMode, 1);
drivers/input/tablet/aiptek.c
686
aiptek->previousToolMode = aiptek->curSetting.toolMode;
drivers/input/tablet/aiptek.c
690
if (aiptek->lastMacro != -1 && aiptek->lastMacro != macro) {
drivers/input/tablet/aiptek.c
691
input_report_key(inputdev, macroKeyEvents[aiptek->lastMacro], 0);
drivers/input/tablet/aiptek.c
692
aiptek->lastMacro = -1;
drivers/input/tablet/aiptek.c
695
if (macro != -1 && macro != aiptek->lastMacro) {
drivers/input/tablet/aiptek.c
697
aiptek->lastMacro = macro;
drivers/input/tablet/aiptek.c
724
if (aiptek->previousToolMode !=
drivers/input/tablet/aiptek.c
725
aiptek->curSetting.toolMode) {
drivers/input/tablet/aiptek.c
727
aiptek->previousToolMode, 0);
drivers/input/tablet/aiptek.c
729
aiptek->curSetting.toolMode,
drivers/input/tablet/aiptek.c
731
aiptek->previousToolMode =
drivers/input/tablet/aiptek.c
732
aiptek->curSetting.toolMode;
drivers/input/tablet/aiptek.c
756
if (aiptek->previousJitterable != jitterable &&
drivers/input/tablet/aiptek.c
757
aiptek->curSetting.jitterDelay != 0 && aiptek->inDelay != 1) {
drivers/input/tablet/aiptek.c
758
aiptek->endDelay = jiffies +
drivers/input/tablet/aiptek.c
759
((aiptek->curSetting.jitterDelay * HZ) / 1000);
drivers/input/tablet/aiptek.c
760
aiptek->inDelay = 1;
drivers/input/tablet/aiptek.c
762
aiptek->previousJitterable = jitterable;
drivers/input/tablet/aiptek.c
800
struct aiptek *aiptek = input_get_drvdata(inputdev);
drivers/input/tablet/aiptek.c
802
aiptek->urb->dev = interface_to_usbdev(aiptek->intf);
drivers/input/tablet/aiptek.c
803
if (usb_submit_urb(aiptek->urb, GFP_KERNEL) != 0)
drivers/input/tablet/aiptek.c
814
struct aiptek *aiptek = input_get_drvdata(inputdev);
drivers/input/tablet/aiptek.c
816
usb_kill_urb(aiptek->urb);
drivers/input/tablet/aiptek.c
824
aiptek_set_report(struct aiptek *aiptek,
drivers/input/tablet/aiptek.c
828
struct usb_device *udev = interface_to_usbdev(aiptek->intf);
drivers/input/tablet/aiptek.c
835
aiptek->ifnum, buffer, size, 5000);
drivers/input/tablet/aiptek.c
839
aiptek_get_report(struct aiptek *aiptek,
drivers/input/tablet/aiptek.c
843
struct usb_device *udev = interface_to_usbdev(aiptek->intf);
drivers/input/tablet/aiptek.c
850
aiptek->ifnum, buffer, size, 5000);
drivers/input/tablet/aiptek.c
857
aiptek_command(struct aiptek *aiptek, unsigned char command, unsigned char data)
drivers/input/tablet/aiptek.c
872
aiptek_set_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) {
drivers/input/tablet/aiptek.c
873
dev_dbg(&aiptek->intf->dev,
drivers/input/tablet/aiptek.c
887
aiptek_query(struct aiptek *aiptek, unsigned char command, unsigned char data)
drivers/input/tablet/aiptek.c
901
if (aiptek_command(aiptek, command, data) != 0) {
drivers/input/tablet/aiptek.c
905
msleep(aiptek->curSetting.programmableDelay);
drivers/input/tablet/aiptek.c
907
if (aiptek_get_report(aiptek, 3, 2, buf, sizeof_buf) != sizeof_buf) {
drivers/input/tablet/aiptek.c
908
dev_dbg(&aiptek->intf->dev,
drivers/input/tablet/aiptek.c
923
static int aiptek_program_tablet(struct aiptek *aiptek)
drivers/input/tablet/aiptek.c
927
if ((ret = aiptek_command(aiptek, 0x18, 0x04)) < 0)
drivers/input/tablet/aiptek.c
931
if ((ret = aiptek_query(aiptek, 0x02, 0x00)) < 0)
drivers/input/tablet/aiptek.c
933
aiptek->features.modelCode = ret & 0xff;
drivers/input/tablet/aiptek.c
936
if ((ret = aiptek_query(aiptek, 0x03, 0x00)) < 0)
drivers/input/tablet/aiptek.c
938
aiptek->features.odmCode = ret;
drivers/input/tablet/aiptek.c
941
if ((ret = aiptek_query(aiptek, 0x04, 0x00)) < 0)
drivers/input/tablet/aiptek.c
943
aiptek->features.firmwareCode = ret;
drivers/input/tablet/aiptek.c
946
if ((ret = aiptek_query(aiptek, 0x01, 0x00)) < 0)
drivers/input/tablet/aiptek.c
948
input_set_abs_params(aiptek->inputdev, ABS_X, 0, ret - 1, 0, 0);
drivers/input/tablet/aiptek.c
951
if ((ret = aiptek_query(aiptek, 0x01, 0x01)) < 0)
drivers/input/tablet/aiptek.c
953
input_set_abs_params(aiptek->inputdev, ABS_Y, 0, ret - 1, 0, 0);
drivers/input/tablet/aiptek.c
956
if ((ret = aiptek_query(aiptek, 0x08, 0x00)) < 0)
drivers/input/tablet/aiptek.c
958
input_set_abs_params(aiptek->inputdev, ABS_PRESSURE, 0, ret - 1, 0, 0);
drivers/input/tablet/aiptek.c
963
if (aiptek->curSetting.coordinateMode ==
drivers/input/tablet/aiptek.c
966
if ((ret = aiptek_command(aiptek, 0x10, 0x01)) < 0) {
drivers/input/tablet/aiptek.c
971
if ((ret = aiptek_command(aiptek, 0x10, 0x00)) < 0) {
drivers/input/tablet/aiptek.c
977
if ((ret = aiptek_command(aiptek, 0x11, 0x02)) < 0)
drivers/input/tablet/aiptek.c
981
if ((ret = aiptek_command(aiptek, 0x17, 0x00)) < 0)
drivers/input/tablet/aiptek.c
986
if ((ret = aiptek_command(aiptek, 0x12, 0xff)) < 0)
drivers/input/tablet/aiptek.c
991
aiptek->diagnostic = AIPTEK_DIAGNOSTIC_NA;
drivers/input/tablet/aiptek.c
992
aiptek->eventCount = 0;